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:
parent
d11319c58f
commit
d3a5b737d9
1 changed files with 2 additions and 0 deletions
2
main.gd
2
main.gd
|
|
@ -121,6 +121,8 @@ func step(move: Vector2i):
|
|||
else:
|
||||
sound.stream = sounds_hit
|
||||
sound.play()
|
||||
if won():
|
||||
advance_level()
|
||||
|
||||
func won() -> bool:
|
||||
for piece in board.pieces():
|
||||
|
|
|
|||
Loading…
Reference in a new issue