Swarm/UI/TestBG/insect_sprite.gd
2025-02-26 23:27:07 +01:00

13 lines
370 B
GDScript

extends Node2D
var rotation_speed: float = 0.0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
rotation_speed = randf_range(-PI/4.0, PI/4.0)
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
rotation += rotation_speed * 0.01