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
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=20 format=3 uid="uid://cdk8rrve1fe3u"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://cdk8rrve1fe3u"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/scripts/level.gd" id="1_inuhq"]
|
||||
[ext_resource type="Script" path="res://scenes/scripts/main_menu.gd" id="1_ges7y"]
|
||||
[ext_resource type="Resource" uid="uid://bn4qhonifxne3" path="res://levels/rules/main_menu.tres" id="2_4iepj"]
|
||||
[ext_resource type="PackedScene" uid="uid://dn6aa6f2f4g4i" path="res://components/RulesComponent.tscn" id="2_hanec"]
|
||||
[ext_resource type="PackedScene" uid="uid://d1uawawum16b0" path="res://scenes/elements/background.tscn" id="4_nllu8"]
|
||||
|
|
@ -19,9 +19,10 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bgcbd6xf0lyrr" path="res://resources/music/bee_background.ogg" id="15_ixwoe"]
|
||||
[ext_resource type="AudioStream" uid="uid://dvsjpsh5dyixq" path="res://resources/SFX/mixkit-european-spring-forest-ambience-1219.wav" id="16_cqdjb"]
|
||||
[ext_resource type="Texture2D" uid="uid://15wckxixnr8y" path="res://resources/images/logo.png" id="19_jw5rd"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3tl5pihlrd8u" path="res://resources/cursors/navigation_s.png" id="20_fw4ew"]
|
||||
|
||||
[node name="MainMenu" type="Node2D"]
|
||||
script = ExtResource("1_inuhq")
|
||||
script = ExtResource("1_ges7y")
|
||||
|
||||
[node name="RulesComponent" parent="." instance=ExtResource("2_hanec")]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -182,4 +183,61 @@ autoplay = true
|
|||
position = Vector2(640, 167)
|
||||
texture = ExtResource("19_jw5rd")
|
||||
|
||||
[node name="LevelSelect" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 720.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="LevelSelect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="LevelSelect/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_top = 100
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LevelSelect/CenterContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MenuButton" type="MenuButton" parent="LevelSelect/CenterContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Level Select"
|
||||
icon = ExtResource("20_fw4ew")
|
||||
flat = false
|
||||
icon_alignment = 2
|
||||
item_count = 6
|
||||
popup/item_0/text = "Level One"
|
||||
popup/item_0/id = 1
|
||||
popup/item_1/text = "Level Two"
|
||||
popup/item_1/id = 2
|
||||
popup/item_2/text = "Level Three"
|
||||
popup/item_2/id = 3
|
||||
popup/item_3/text = "Level Four"
|
||||
popup/item_3/id = 4
|
||||
popup/item_4/text = "Level Five"
|
||||
popup/item_4/id = 5
|
||||
popup/item_5/text = "Level Six"
|
||||
popup/item_5/id = 6
|
||||
|
||||
[node name="HighScores" type="Button" parent="LevelSelect/CenterContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "High Scores"
|
||||
|
||||
[node name="ExitGame" type="Button" parent="LevelSelect/CenterContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Quit Game"
|
||||
|
||||
[editable path="DroneManager"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue