Update bee animations, game over component UI, and game state handling. Set up game over conditions based on the number of dead bees.
This commit is contained in:
parent
2a4a578f19
commit
f4e2169009
11 changed files with 203 additions and 37 deletions
15
ui/scripts/game_over_component.gd
Normal file
15
ui/scripts/game_over_component.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends Control
|
||||
|
||||
@onready var main_menu_button = get_node("%MainMenu")
|
||||
|
||||
func _ready():
|
||||
visible = false
|
||||
main_menu_button.connect("pressed", Callable(self, "on_main_menu_pressed"))
|
||||
|
||||
func _process(_delta):
|
||||
if GameState.game_over == true:
|
||||
visible = true
|
||||
|
||||
func on_main_menu_pressed():
|
||||
GameState.reset()
|
||||
SceneMgr.load_scene("MAINMENU")
|
||||
Loading…
Add table
Add a link
Reference in a new issue