13 lines
370 B
GDScript
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
|