diff --git a/board.gd b/board.gd index fc5422f..d04743b 100644 --- a/board.gd +++ b/board.gd @@ -26,7 +26,7 @@ func pieces() -> Array[Piece]: # important for consistency. # everything involving pieces is done top to bottom, then left to right # expensive? yes. wasteful? definitely. worth it? i think so. - sorted.sort_custom(func(a, b): return a.lpos.y < b.lpos.y or a.lpos.x < b.lpos.x) + sorted.sort_custom(func(a, b): return a.lpos.y < b.lpos.y or (a.lpos.y == b.lpos.y and a.lpos.x < b.lpos.x)) return sorted func pieces_at(pos: Vector2i) -> Array[Piece]: diff --git a/main.gd b/main.gd index 356a0cc..f0802c9 100644 --- a/main.gd +++ b/main.gd @@ -26,6 +26,7 @@ var levels: Array[PackedScene] = [ preload("res://level/diagonal_bounce_00.tscn"), preload("res://level/ball_bounce_00.tscn"), preload("res://level/timing_00.tscn"), + preload("res://level/lvel_cancelling_00.tscn"), ] var time := 0