Fix sorting
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ function processEntities(delta: number): void {
|
|||||||
function processSystems(ctx: CanvasRenderingContext2D, delta: number): void {
|
function processSystems(ctx: CanvasRenderingContext2D, delta: number): void {
|
||||||
const drawables = sceneInstancesDrawMap.get(currentScene.data.name)!;
|
const drawables = sceneInstancesDrawMap.get(currentScene.data.name)!;
|
||||||
for (const drawable of drawables.sort(
|
for (const drawable of drawables.sort(
|
||||||
(a, b) => b.position.y - a.position.y,
|
(a, b) => a.position.y - b.position.y,
|
||||||
)) {
|
)) {
|
||||||
playAnimation(
|
playAnimation(
|
||||||
ctx,
|
ctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user