Fix sorting

This commit is contained in:
Schluffe
2026-02-23 23:54:35 +01:00
parent 61f1c30557
commit 51a0fe38ef
+1 -1
View File
@@ -108,7 +108,7 @@ function processEntities(delta: number): void {
function processSystems(ctx: CanvasRenderingContext2D, delta: number): void {
const drawables = sceneInstancesDrawMap.get(currentScene.data.name)!;
for (const drawable of drawables.sort(
(a, b) => b.position.y - a.position.y,
(a, b) => a.position.y - b.position.y,
)) {
playAnimation(
ctx,