DeadLine.gd 211 B

12345678910111213141516
  1. class_name DeadLine
  2. extends RayCast2D
  3. signal game_lost
  4. func check_death() -> void:
  5. force_raycast_update()
  6. if is_colliding():
  7. emit_signal("game_lost")
  8. func _on_Grid_has_moved() -> void:
  9. check_death()