|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
[gd_scene load_steps=19 format=3 uid="uid://det8556rpxhbv"]
|
|
|
|
|
[gd_scene load_steps=20 format=3 uid="uid://det8556rpxhbv"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://tlr55u0gn20l" path="res://Packed-Scenes/PlayerShip.tscn" id="1_njb5h"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cg6n1hh3lj7rn" path="res://Textures/tile_nebula_green_dff.png" id="2_43vix"]
|
|
|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
[ext_resource type="AudioStream" uid="uid://dlml6o3xscxqf" path="res://Sounds/weapon_player.wav" id="11_bbedd"]
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/GameArea.cs" id="11_p0rh7"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b8gy1u2i0jkyd" path="res://Images/restart.svg" id="15_nxptg"]
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Ui.cs" id="15_xl7yx"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bw288"]
|
|
|
|
|
|
|
|
|
|
@ -46,6 +47,8 @@ region_enabled = true
|
|
|
|
|
region_rect = Rect2(0, 0, 810, 1380)
|
|
|
|
|
script = ExtResource("3_imgbw")
|
|
|
|
|
|
|
|
|
|
[node name="Asteroids" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
|
|
[node name="GameArea" type="Node3D" parent="."]
|
|
|
|
|
script = ExtResource("11_p0rh7")
|
|
|
|
|
|
|
|
|
|
@ -103,118 +106,121 @@ stream = ExtResource("9_rtdps")
|
|
|
|
|
[node name="LaserSound" type="AudioStreamPlayer3D" parent="SoundManager"]
|
|
|
|
|
stream = ExtResource("11_bbedd")
|
|
|
|
|
|
|
|
|
|
[node name="GameManager" type="Node" parent="." node_paths=PackedStringArray("asteroidsContainer", "labelAsteroids", "labelLevel", "labelLifes", "labelNextLevel", "labelPoints", "labelDebug", "labelGameOver", "restartButton", "reachedPointsLabel")]
|
|
|
|
|
script = ExtResource("9_rsrr5")
|
|
|
|
|
debug = false
|
|
|
|
|
asteroids = Array[PackedScene]([ExtResource("5_do6ba"), ExtResource("6_tqoe7"), ExtResource("7_v6ul2")])
|
|
|
|
|
asteroidsContainer = NodePath("../Asteroids")
|
|
|
|
|
labelAsteroids = NodePath("../Control/LabelAsteroids")
|
|
|
|
|
labelLevel = NodePath("../Control/LabelLevel")
|
|
|
|
|
labelLifes = NodePath("../Control/LabelLives")
|
|
|
|
|
labelNextLevel = NodePath("../Control/LabelNextLevel")
|
|
|
|
|
labelPoints = NodePath("../Control/LabelPoints")
|
|
|
|
|
labelDebug = NodePath("../Control/LabelDebug")
|
|
|
|
|
labelGameOver = NodePath("../Control/LabelGameOver")
|
|
|
|
|
restartButton = NodePath("../Control/RestartButton")
|
|
|
|
|
reachedPointsLabel = NodePath("../Control/ReachedPointsLabel")
|
|
|
|
|
|
|
|
|
|
[node name="Asteroids" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
|
|
|
layout_mode = 3
|
|
|
|
|
anchors_preset = 0
|
|
|
|
|
offset_right = 40.0
|
|
|
|
|
offset_bottom = 40.0
|
|
|
|
|
|
|
|
|
|
[node name="LabelAsteroids" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="Ui" type="Node2D" parent="." node_paths=PackedStringArray("labelAsteroids", "labelLevel", "labelLifes", "labelNextLevel", "labelPoints", "labelGameOver", "restartButton", "reachedPointsLabel", "healthBar")]
|
|
|
|
|
script = ExtResource("15_xl7yx")
|
|
|
|
|
labelAsteroids = NodePath("VBoxLabels/LabelAsteroids")
|
|
|
|
|
labelLevel = NodePath("VBoxLabels/LabelLevel")
|
|
|
|
|
labelLifes = NodePath("VBoxLabels/LabelLives")
|
|
|
|
|
labelNextLevel = NodePath("VBoxLabels/LabelNextLevel")
|
|
|
|
|
labelPoints = NodePath("VBoxLabels/LabelPoints")
|
|
|
|
|
labelGameOver = NodePath("VBoxGameOver/LabelGameOver")
|
|
|
|
|
restartButton = NodePath("VBoxGameOver/RestartButton")
|
|
|
|
|
reachedPointsLabel = NodePath("VBoxGameOver/ReachedPointsLabel")
|
|
|
|
|
healthBar = NodePath("VBoxHealth/HealthBar")
|
|
|
|
|
|
|
|
|
|
[node name="VBoxLabels" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
anchors_preset = 2
|
|
|
|
|
anchor_top = 1.0
|
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
offset_top = 1138.0
|
|
|
|
|
offset_right = 152.0
|
|
|
|
|
offset_bottom = 1278.0
|
|
|
|
|
grow_vertical = 0
|
|
|
|
|
|
|
|
|
|
[node name="LabelAsteroids" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 20.0
|
|
|
|
|
offset_top = 20.0
|
|
|
|
|
offset_right = 260.0
|
|
|
|
|
offset_bottom = 40.0
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Asteroids: 0"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelLives" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="LabelLevel" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 20.0
|
|
|
|
|
offset_top = 40.0
|
|
|
|
|
offset_right = 260.0
|
|
|
|
|
offset_bottom = 60.0
|
|
|
|
|
text = "Lives: 3"
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Level: 1"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelPoints" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="LabelLives" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 20.0
|
|
|
|
|
offset_top = 60.0
|
|
|
|
|
offset_right = 260.0
|
|
|
|
|
offset_bottom = 80.0
|
|
|
|
|
text = "Points: 0"
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Lives: 3"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelLevel" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="LabelNextLevel" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 20.0
|
|
|
|
|
offset_top = 80.0
|
|
|
|
|
offset_right = 260.0
|
|
|
|
|
offset_bottom = 100.0
|
|
|
|
|
text = "Level: 1"
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Next Level: 10"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelNextLevel" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="LabelPoints" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 20.0
|
|
|
|
|
offset_top = 100.0
|
|
|
|
|
offset_right = 260.0
|
|
|
|
|
offset_bottom = 120.0
|
|
|
|
|
text = "Next Level: 10"
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Points: 0"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelDebug" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="VBoxGameOver" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
anchors_preset = 8
|
|
|
|
|
anchor_left = 0.5
|
|
|
|
|
anchor_top = 0.5
|
|
|
|
|
anchor_right = 0.5
|
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
|
offset_left = 195.5
|
|
|
|
|
offset_top = 490.0
|
|
|
|
|
offset_right = 603.5
|
|
|
|
|
offset_bottom = 788.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
|
|
[node name="LabelGameOver" type="RichTextLabel" parent="Ui/VBoxGameOver"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 543.0
|
|
|
|
|
offset_top = 1225.0
|
|
|
|
|
offset_right = 783.0
|
|
|
|
|
offset_bottom = 1245.0
|
|
|
|
|
scale = Vector2(1, 1.88)
|
|
|
|
|
bbcode_enabled = true
|
|
|
|
|
text = "[right][color=red]Debug[/color][/right]"
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
theme_override_colors/default_color = Color(1, 0, 0, 1)
|
|
|
|
|
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
|
|
|
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
|
|
|
|
|
theme_override_constants/shadow_offset_x = 1
|
|
|
|
|
theme_override_constants/shadow_offset_y = -1
|
|
|
|
|
theme_override_constants/shadow_outline_size = 0
|
|
|
|
|
theme_override_font_sizes/normal_font_size = 20
|
|
|
|
|
text = "Game Over"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="LabelGameOver" type="RichTextLabel" parent="Control"]
|
|
|
|
|
[node name="ReachedPointsLabel" type="RichTextLabel" parent="Ui/VBoxGameOver"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
offset_left = 12.0
|
|
|
|
|
offset_top = 437.0
|
|
|
|
|
offset_right = 230.0
|
|
|
|
|
offset_bottom = 460.0
|
|
|
|
|
scale = Vector2(3.6, 7.48)
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
bbcode_enabled = true
|
|
|
|
|
text = "[center][shake rate=30 level=10 connected=1][rainbow freq=1.0 sat=0.8 val=0.8]Game Over[/rainbow][/shake][/center]"
|
|
|
|
|
scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
text = "[center]You have reached level 1 and 0 points![/center]"
|
|
|
|
|
|
|
|
|
|
[node name="RestartButton" type="Button" parent="Control"]
|
|
|
|
|
layout_mode = 0
|
|
|
|
|
offset_left = 354.0
|
|
|
|
|
offset_top = 644.0
|
|
|
|
|
offset_right = 462.0
|
|
|
|
|
offset_bottom = 777.0
|
|
|
|
|
[node name="RestartButton" type="Button" parent="Ui/VBoxGameOver"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
size_flags_vertical = 6
|
|
|
|
|
shortcut = SubResource("Shortcut_soxs4")
|
|
|
|
|
icon = ExtResource("15_nxptg")
|
|
|
|
|
icon_alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="ReachedPointsLabel" type="RichTextLabel" parent="Control"]
|
|
|
|
|
layout_mode = 0
|
|
|
|
|
offset_left = 173.0
|
|
|
|
|
offset_top = 600.0
|
|
|
|
|
offset_right = 652.0
|
|
|
|
|
offset_bottom = 626.0
|
|
|
|
|
bbcode_enabled = true
|
|
|
|
|
text = "[center]You have reached level 1 and 0 points![/center]"
|
|
|
|
|
[node name="VBoxHealth" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
anchors_preset = 5
|
|
|
|
|
anchor_left = 0.5
|
|
|
|
|
anchor_right = 0.5
|
|
|
|
|
offset_left = 45.0
|
|
|
|
|
offset_right = 754.0
|
|
|
|
|
offset_bottom = 22.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
|
|
|
|
|
[node name="HealthBar" type="ProgressBar" parent="Ui/VBoxHealth"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
max_value = 10.0
|
|
|
|
|
value = 7.0
|
|
|
|
|
rounded = true
|
|
|
|
|
show_percentage = false
|
|
|
|
|
|
|
|
|
|
[node name="GameManager" type="Node" parent="." node_paths=PackedStringArray("asteroidsContainer")]
|
|
|
|
|
script = ExtResource("9_rsrr5")
|
|
|
|
|
asteroids = Array[PackedScene]([ExtResource("5_do6ba"), ExtResource("6_tqoe7"), ExtResource("7_v6ul2")])
|
|
|
|
|
asteroidsContainer = NodePath("../Asteroids")
|
|
|
|
|
|