- 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
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ game={
|
||||
else
|
||||
update=game.update
|
||||
end
|
||||
actors.sort()
|
||||
fade.fadein()
|
||||
end,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user