- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user