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:
Dan 2024-05-11 16:09:57 +01:00
parent 2a4a578f19
commit f4e2169009
11 changed files with 203 additions and 37 deletions

View 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")