- FIX: Ordenar correctament als actors en Z al començar un nivell
This commit is contained in:
@@ -132,11 +132,13 @@ actors={
|
|||||||
v.dy=v.dy+1
|
v.dy=v.dy+1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if needs_sorting then
|
if needs_sorting then actors.sort() end
|
||||||
table.sort(actors.list, compare_actors)
|
|
||||||
end
|
|
||||||
|
|
||||||
actors.updating=false
|
actors.updating=false
|
||||||
|
end,
|
||||||
|
|
||||||
|
sort=function()
|
||||||
|
table.sort(actors.list, compare_actors)
|
||||||
end
|
end
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ game={
|
|||||||
else
|
else
|
||||||
update=game.update
|
update=game.update
|
||||||
end
|
end
|
||||||
|
actors.sort()
|
||||||
fade.fadein()
|
fade.fadein()
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user