|
@@ -80,10 +80,11 @@ func _on_tween_completed(_o, key):
|
|
|
move()
|
|
|
|
|
|
func _on_crash(body):
|
|
|
- die()
|
|
|
- generate_wall()
|
|
|
- # TODO : use enum for blocks
|
|
|
- grid.set_cell(posix, posiy, 2)
|
|
|
+ if running:
|
|
|
+ die()
|
|
|
+ generate_wall()
|
|
|
+ # TODO : use enum for blocks
|
|
|
+ grid.set_cell(posix, posiy, 2)
|
|
|
|
|
|
func generate_wall():
|
|
|
# TODO : use enum for blocks
|