2024-10-01 15:56:30 +02:00
|
|
|
extends RigidBody2D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready() -> void:
|
2024-10-22 19:52:35 +02:00
|
|
|
$Sprite.frame = randi_range(0,12)
|
2024-10-01 15:56:30 +02:00
|
|
|
position.x += randi_range(-10,10)
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta: float) -> void:
|
2024-11-04 19:10:10 +01:00
|
|
|
if global_position.y > 100:
|
|
|
|
queue_free()
|