- FIX: Ordenar correctament als actors en Z al començar un nivell

This commit is contained in:
2023-02-02 15:41:54 +01:00
parent 545dc96545
commit 1f4274f278
2 changed files with 6 additions and 3 deletions

View File

@@ -132,11 +132,13 @@ actors={
v.dy=v.dy+1
end
end
if needs_sorting then
table.sort(actors.list, compare_actors)
end
if needs_sorting then actors.sort() end
actors.updating=false
end,
sort=function()
table.sort(actors.list, compare_actors)
end
}

View File

@@ -51,6 +51,7 @@ game={
else
update=game.update
end
actors.sort()
fade.fadein()
end,