- Comence a implementar els moduls 'game' i 'actors'

This commit is contained in:
2023-01-30 14:57:41 +01:00
parent adee527d70
commit b916fb39ee
4 changed files with 33 additions and 2 deletions

14
data/game.lua Normal file
View 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
}