check win if you just pushed

if you reduce a block's velocity to zero you can win without time advancing
This commit is contained in:
mehbark 2025-05-05 14:39:44 -04:00
parent d11319c58f
commit d3a5b737d9

View file

@ -121,6 +121,8 @@ func step(move: Vector2i):
else: else:
sound.stream = sounds_hit sound.stream = sounds_hit
sound.play() sound.play()
if won():
advance_level()
func won() -> bool: func won() -> bool:
for piece in board.pieces(): for piece in board.pieces():