- Retreballant el sistema de objectes

- Treballant en el fluxe de programa
- Treballant en el guardat/carrega de partida
- Fades encadenats
This commit is contained in:
2023-02-01 19:14:26 +01:00
parent 1250921e4b
commit d48816bd8b
5 changed files with 91 additions and 25 deletions

View File

@@ -1,6 +1,12 @@
actors={
list={},
updating=false,
main={},
init=function()
actors.list={}
actors.updating=false
end,
add=function(actor)
actor.dx,actor.dy=0,0
@@ -53,7 +59,7 @@ actors={
game.update()
if in_scene then scene.cont() end
v.keys=nil
if v.name == actors.hero then
if v.name == actors.main.name then
local switch = switches.search(v.x,v.y)
if switch then switch.action() end
end