Files
SpaceBots/.svn/pristine/ac/acabad1b13007527c97e7293550a63b937f50eae.svn-base
2026-01-21 23:51:53 +01:00

16 lines
283 B
Plaintext

extends Sprite2D
var speed: float = 50.0
var rotationSpeed: float = PI/8
func _process(delta: float) -> void:
if position.y > 600:
queue_free()
position.y += delta * speed
rotation +=delta * rotationSpeed
func _on_area_2d_area_entered(_area: Area2D) -> void:
queue_free()