Files
SpaceBots/scene/minigames/steering/astroid.gd
2026-01-21 23:40:20 +01:00

16 lines
283 B
GDScript

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()