- [NEW] 'animations' module
- [NEW] 'game' module - [NEW] 'sprites' module - [NEW] more tiles - [NEW] Can choose which tile layer to edit from the editor menu
This commit is contained in:
18
data/game.lua
Normal file
18
data/game.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
game = {
|
||||
|
||||
enable = function()
|
||||
app.update = game.update
|
||||
sys.beat(20)
|
||||
end,
|
||||
|
||||
update = function()
|
||||
view.origin(0,0)
|
||||
surf.target(0)
|
||||
|
||||
score.draw()
|
||||
|
||||
-- Pintar el mapa i sprites
|
||||
rooms.draw()
|
||||
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user