blob: 9591152dbc32dd40d3540edb0e70af8507479062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extends Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if !Globals.FUN:
rotation = 0
modulate.r = 1
modulate.g = 1
modulate.b = 1
else:
rotation += delta * 20
modulate.r = randi_range(0, 1)
modulate.g = randi_range(0, 1)
modulate.b = randi_range(0, 1)
|