1
Fork 0
mirror of https://github.com/Cookie-CHR/LD54-SPAce-ltd.git synced 2024-11-21 23:14:18 +00:00
space-ltd/Components/sprite__variations.gd
2023-10-15 18:46:50 +02:00

12 lines
378 B
GDScript

extends Sprite2D
var rng = RandomNumberGenerator.new()
# Called when the node enters the scene tree for the first time.
func _ready():
modulate = Color(1-rng.randf_range(0,0.1),1-rng.randf_range(0,0.1),1-rng.randf_range(0,0.1))
rotation_degrees = randf_range(-360,360)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass