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:
Dan 2024-05-10 14:39:24 +01:00
parent ca4788ce6f
commit b6cdb68b4e
21 changed files with 499 additions and 10 deletions

View file

@ -137,18 +137,20 @@ unique_name_in_owner = true
[node name="UiComponent" parent="." instance=ExtResource("11_ndtvv")]
unique_name_in_owner = true
z_index = 20
z_index = 999
offset_right = 1280.0
offset_bottom = 720.0
mouse_filter = 1
[node name="DroneManager" parent="." instance=ExtResource("12_37aah")]
unique_name_in_owner = true
[node name="LevelCompleteComponent" parent="." instance=ExtResource("13_we755")]
visible = false
z_index = 999
z_index = 1000
offset_right = 1280.0
offset_bottom = 720.0
mouse_filter = 1
[node name="BackgroundMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("14_r7utx")

View file

@ -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))