Add build directory to .gitignore, create export presets for Web and Windows Desktop, adjust z-index and mouse filter in level_1.tscn, add update_game_state function in level.gd, change main_scene path in project.godot, set rendering method to "gl_compatibility", add LevelSelect and related nodes in main_menu.tscn, create scene_manager.tscn with MainMenu node, implement functionality for menu button selection in main_menu.gd.
This commit is contained in:
parent
ca4788ce6f
commit
b6cdb68b4e
21 changed files with 499 additions and 10 deletions
|
|
@ -5,6 +5,9 @@ class_name Level extends Node
|
|||
@onready var ui_controls = get_node("UiComponent") as UIComponent
|
||||
|
||||
func _ready():
|
||||
update_game_state()
|
||||
|
||||
func update_game_state():
|
||||
GameState.required_nectar = rules.game_rules.nectar_required
|
||||
GameState.level_par = rules.game_rules.level_par
|
||||
ui_controls.update_level_text("Level : " + str(rules.game_rules.level_number))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue