- Comence a implementar els moduls 'game' i 'actors'
This commit is contained in:
14
data/game.lua
Normal file
14
data/game.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
game={
|
||||
cam={x=0,y=0},
|
||||
|
||||
init=function()
|
||||
mapa.load("test.map")
|
||||
update=game.update
|
||||
end,
|
||||
|
||||
update=function()
|
||||
camera(game.cam.x, game.cam.y)
|
||||
map(0,0,0,0,mapa.w, mapa.h)
|
||||
camera(0,0)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user