blob: be5c6ac21adc9382cf41f9aaf7f37d28f310307f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
extends ColorRect
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(_delta: float) -> void:
if !Globals.FUN:
color.r = 0 if name == "RestrBackground" else 0.18
else:
color.r = randi_range(0, 1)
color.g = color.r
color.b = color.r
|