nngn
Loading...
Searching...
No Matches
demo1.lua File Reference

Functions

function DEMO add_stage (text, f)
 
function demo_start () end
 

Variables

local entity = require "nngn.lib.entity"
 
local input = require "nngn.lib.input"
 
local light = require "nngn.lib.light"
 
local map = require "nngn.lib.map"
 
local player = require "nngn.lib.player"
 
local textbox = require "nngn.lib.textbox"
 
 DEMO = {i = 1, stages = {}, data = {}}
 
DEMO data tilesheet0
 
DEMO data tilesheet1
 
DEMO data hm_wall
 
map next = DEMO.data.map_next
 
DEMO data map_next = nil
 

Function Documentation

◆ add_stage()

function DEMO add_stage ( text ,
f  )

◆ demo_start()

function demo_start ( )

Variable Documentation

◆ DEMO

DEMO = {i = 1, stages = {}, data = {}}

◆ entity

local entity = require "nngn.lib.entity"

◆ hm_wall

DEMO data hm_wall
Initial value:
= entity.load(nil, nil, {;
pos = {-112, 16};
collider = {;
type = Collider.AABB;
bb = {32, 64}, m = Math.INFINITY, flags = Collider.SOLID}})
collider
Definition bird.lua:2
local entity
Definition demo1.lua:1
pos
Definition lua_audio.cpp:17
local m
Definition input.lua:28

◆ input

local input = require "nngn.lib.input"

◆ light

local light = require "nngn.lib.light"

◆ map

local map = require "nngn.lib.map"

◆ map_next

DEMO data map_next = nil

◆ next

◆ player

local player = require "nngn.lib.player"

◆ textbox

local textbox = require "nngn.lib.textbox"

◆ tilesheet0

DEMO data tilesheet0
Initial value:
= entity.load(nil, nil, {;
pos = {-128, 128};
renderer = {;
type = Renderer.SPRITE;
size = {512, 512};
tex = "img/chrono_trigger/crono.png"}})
renderer
Definition gamma.lua:13

◆ tilesheet1

DEMO data tilesheet1
Initial value:
= entity.load(nil, nil, {;
pos = {352, 128};
renderer = {;
type = Renderer.SPRITE;
size = {512, 512};
tex = "img/zelda/zelda.png"}})