- creat el object "scene", ja funcional

This commit is contained in:
2023-01-31 15:20:19 +01:00
parent ac1b6cb21e
commit f03ed38d77
5 changed files with 34 additions and 13 deletions

View File

@@ -37,7 +37,6 @@ actors={
if v.path then
v.path.pos=v.path.pos+1
local step=string.sub(v.path.route,v.path.pos,v.path.pos)
if v.path.pos == #v.path.route then v.path=nil end
if step=='u' then
--check collision!
v.y=v.y-1
@@ -69,6 +68,12 @@ actors={
elseif step=='p' then
v.o='r'
end
if v.path.pos == #v.path.route then
v.path=nil
game.update()
scene.cont()
end
end
end
if v.dx > 0 then