blob: 15a5156269715dcc411f4f6a91153f72ad890ccf (
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
else:
color.r = randi_range(0, 1)
color.g = color.r
color.b = color.r
|