- creat el object "scene", ja funcional
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user