mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
22 lines
386 B
GDScript
22 lines
386 B
GDScript
extends ColorRect
|
|
var active = false
|
|
var position = Vector2()
|
|
var age = 0
|
|
|
|
export var colors = [
|
|
Color("#00ffffff"), #seethrough
|
|
Color("#beed84"), #green
|
|
Color("#91e369"),
|
|
Color("#56c157"),
|
|
Color("#46a65c"),
|
|
Color("#358859")
|
|
]
|
|
|
|
func age_up():
|
|
if !(age >= colors.size() - 1):
|
|
age += 1
|
|
color = colors[age]
|
|
active = true
|
|
|
|
func _ready() -> void:
|
|
color = colors[age]
|