Add RulesComponent, GameRulesResource, and BeeDeath state. Update Bee entity with death animation. Include new textures for particles. Add Highlight animation to Beehive.
This commit is contained in:
parent
1da411cacd
commit
d879ca30bd
222 changed files with 3980 additions and 149 deletions
|
|
@ -1,11 +1,8 @@
|
|||
extends Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
visible = false
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta):
|
||||
if GameState.level_complete == true:
|
||||
visible = true
|
||||
|
|
|
|||
|
|
@ -5,8 +5,13 @@ var update_interval : float = 1
|
|||
var last_update : float = 0
|
||||
|
||||
@onready var nectar_bar = get_node("%NectarBar")
|
||||
@onready var help_text_container = get_node("%HelpTextContainer")
|
||||
@onready var help_text_items = help_text_container.get_children()
|
||||
@onready var level_text_label = get_node("%LevelText")
|
||||
|
||||
func _ready():
|
||||
|
||||
hide_help_text()
|
||||
update_ui()
|
||||
|
||||
func _process(delta):
|
||||
|
|
@ -22,3 +27,16 @@ func _process(delta):
|
|||
func update_ui():
|
||||
nectar_bar.value = GameState.gathered_nectar
|
||||
nectar_bar.max_value = GameState.required_nectar
|
||||
|
||||
func hide_help_text():
|
||||
for item in help_text_items:
|
||||
item.hide()
|
||||
|
||||
func show_help_text(label: String):
|
||||
hide_help_text()
|
||||
for item in help_text_items:
|
||||
if item.name == label:
|
||||
item.show()
|
||||
|
||||
func update_level_text(text: String):
|
||||
level_text_label.text = text
|
||||
Loading…
Add table
Add a link
Reference in a new issue