|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
[gd_scene load_steps=20 format=3 uid="uid://det8556rpxhbv"]
|
|
|
|
|
[gd_scene load_steps=22 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"]
|
|
|
|
|
@ -14,11 +14,19 @@
|
|
|
|
|
[ext_resource type="AudioStream" uid="uid://bspwjmgsoxkbn" path="res://Sounds/gameover2.wav" id="9_rtdps"]
|
|
|
|
|
[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/InputManager.cs" id="15_uovst"]
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Ui.cs" id="15_xl7yx"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bw288"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_dqsad"]
|
|
|
|
|
font_size = 50
|
|
|
|
|
font_color = Color(1, 0, 0, 1)
|
|
|
|
|
outline_size = 3
|
|
|
|
|
outline_color = Color(1, 0.999986, 0.00293482, 1)
|
|
|
|
|
shadow_size = 10
|
|
|
|
|
shadow_offset = Vector2(5, 5)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="InputEventKey" id="InputEventKey_gjrl7"]
|
|
|
|
|
device = -1
|
|
|
|
|
keycode = 4194309
|
|
|
|
|
@ -26,21 +34,34 @@ keycode = 4194309
|
|
|
|
|
[sub_resource type="Shortcut" id="Shortcut_soxs4"]
|
|
|
|
|
events = [SubResource("InputEventKey_gjrl7")]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_vf3s8"]
|
|
|
|
|
font_size = 50
|
|
|
|
|
font_color = Color(0.233592, 0.506913, 1, 1)
|
|
|
|
|
outline_size = 3
|
|
|
|
|
outline_color = Color(0, 1, 0.00392157, 1)
|
|
|
|
|
shadow_size = 10
|
|
|
|
|
shadow_offset = Vector2(5, 5)
|
|
|
|
|
|
|
|
|
|
[node name="SpaceShooter" type="Node3D"]
|
|
|
|
|
process_mode = 3
|
|
|
|
|
|
|
|
|
|
[node name="PlayerShip" parent="." node_paths=PackedStringArray("jet", "PlayerRb", "shots") instance=ExtResource("1_njb5h")]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74227e-08, 0, -1, 0, 0, 5)
|
|
|
|
|
jet = NodePath("RigidBody3D/Jet")
|
|
|
|
|
PlayerRb = NodePath("RigidBody3D")
|
|
|
|
|
shots = NodePath("Shots")
|
|
|
|
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 8.8, 0)
|
|
|
|
|
|
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 0.707106, 0.707106, 0, -0.707106, 0.707106, 10, 10, 10)
|
|
|
|
|
|
|
|
|
|
[node name="Background" type="Sprite3D" parent="."]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
transform = Transform3D(1.1, 0, 0, 0, -4.80825e-08, -1, 0, 1.1, -4.37114e-08, 0, -0.5, 0)
|
|
|
|
|
billboard = 1
|
|
|
|
|
shaded = true
|
|
|
|
|
@ -51,8 +72,10 @@ region_rect = Rect2(0, 0, 810, 1380)
|
|
|
|
|
script = ExtResource("3_imgbw")
|
|
|
|
|
|
|
|
|
|
[node name="Asteroids" type="Node3D" parent="."]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
|
|
|
|
|
[node name="GameArea" type="Node3D" parent="."]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
script = ExtResource("11_p0rh7")
|
|
|
|
|
|
|
|
|
|
[node name="Bottom" type="RigidBody3D" parent="GameArea"]
|
|
|
|
|
@ -86,6 +109,7 @@ transform = Transform3D(15, 0, 0, 0, 15, 0, 0, 0, 15, 0, 0, 0)
|
|
|
|
|
shape = SubResource("BoxShape3D_bw288")
|
|
|
|
|
|
|
|
|
|
[node name="SoundManager" type="Node" parent="." node_paths=PackedStringArray("backgroundMusic", "gameOverMusic", "asteroidExplosionSound", "playerExplosionSound", "laserSound")]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
script = ExtResource("8_4ksf0")
|
|
|
|
|
backgroundMusic = NodePath("BackgroundMusic")
|
|
|
|
|
gameOverMusic = NodePath("GameOverMusic")
|
|
|
|
|
@ -110,13 +134,19 @@ stream = ExtResource("9_rtdps")
|
|
|
|
|
stream = ExtResource("11_bbedd")
|
|
|
|
|
|
|
|
|
|
[node name="GameManager" type="Node" parent="." node_paths=PackedStringArray("asteroidsContainer")]
|
|
|
|
|
process_mode = 1
|
|
|
|
|
script = ExtResource("9_rsrr5")
|
|
|
|
|
asteroids = Array[PackedScene]([ExtResource("5_do6ba"), ExtResource("6_tqoe7"), ExtResource("7_v6ul2")])
|
|
|
|
|
asteroidsContainer = NodePath("../Asteroids")
|
|
|
|
|
|
|
|
|
|
[node name="Ui" type="Node2D" parent="." node_paths=PackedStringArray("labelAsteroids", "labelLevel", "labelLifes", "labelNextLevel", "labelPoints", "labelGameOver", "restartButton", "reachedPointsLabel", "healthBar")]
|
|
|
|
|
[node name="InputManager" type="Node" parent="."]
|
|
|
|
|
process_mode = 3
|
|
|
|
|
script = ExtResource("15_uovst")
|
|
|
|
|
|
|
|
|
|
[node name="Ui" type="Node2D" parent="." node_paths=PackedStringArray("rtlAsteroids", "labelLevel", "labelLifes", "labelNextLevel", "labelPoints", "labelGameOver", "restartButton", "reachedPointsLabel", "healthBar", "vBoxPause")]
|
|
|
|
|
process_mode = 3
|
|
|
|
|
script = ExtResource("15_xl7yx")
|
|
|
|
|
labelAsteroids = NodePath("VBoxLabels/LabelAsteroids")
|
|
|
|
|
rtlAsteroids = NodePath("VBoxLabels/rtlAsteroids")
|
|
|
|
|
labelLevel = NodePath("VBoxLabels/LabelLevel")
|
|
|
|
|
labelLifes = NodePath("VBoxLabels/LabelLives")
|
|
|
|
|
labelNextLevel = NodePath("VBoxLabels/LabelNextLevel")
|
|
|
|
|
@ -125,6 +155,7 @@ labelGameOver = NodePath("VBoxGameOver/LabelGameOver")
|
|
|
|
|
restartButton = NodePath("VBoxGameOver/RestartButton")
|
|
|
|
|
reachedPointsLabel = NodePath("VBoxGameOver/ReachedPointsLabel")
|
|
|
|
|
healthBar = NodePath("VBoxHealth/HealthBar")
|
|
|
|
|
vBoxPause = NodePath("VBoxPause")
|
|
|
|
|
|
|
|
|
|
[node name="VBoxLabels" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
anchors_preset = 2
|
|
|
|
|
@ -135,7 +166,7 @@ offset_right = 152.0
|
|
|
|
|
offset_bottom = 1278.0
|
|
|
|
|
grow_vertical = 0
|
|
|
|
|
|
|
|
|
|
[node name="LabelAsteroids" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
[node name="rtlAsteroids" type="RichTextLabel" parent="Ui/VBoxLabels"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Asteroids: 0"
|
|
|
|
|
@ -171,31 +202,25 @@ scroll_active = false
|
|
|
|
|
shortcut_keys_enabled = false
|
|
|
|
|
|
|
|
|
|
[node name="VBoxGameOver" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
visible = false
|
|
|
|
|
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
|
|
|
|
|
offset_left = 197.0
|
|
|
|
|
offset_top = 556.0
|
|
|
|
|
offset_right = 605.0
|
|
|
|
|
offset_bottom = 854.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
|
|
[node name="LabelGameOver" type="RichTextLabel" parent="Ui/VBoxGameOver"]
|
|
|
|
|
[node name="LabelGameOver" type="Label" parent="Ui/VBoxGameOver"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
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
|
|
|
|
|
label_settings = SubResource("LabelSettings_dqsad")
|
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
vertical_alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="ReachedPointsLabel" type="RichTextLabel" parent="Ui/VBoxGameOver"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
@ -208,16 +233,34 @@ layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
size_flags_vertical = 6
|
|
|
|
|
shortcut = SubResource("Shortcut_soxs4")
|
|
|
|
|
icon = ExtResource("15_nxptg")
|
|
|
|
|
icon_alignment = 1
|
|
|
|
|
text = "Restart"
|
|
|
|
|
|
|
|
|
|
[node name="VBoxPause" type="VBoxContainer" parent="Ui"]
|
|
|
|
|
offset_left = 195.5
|
|
|
|
|
offset_top = 647.0
|
|
|
|
|
offset_right = 603.5
|
|
|
|
|
offset_bottom = 788.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
|
|
[node name="LabelPause" type="Label" parent="Ui/VBoxPause"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Pause"
|
|
|
|
|
label_settings = SubResource("LabelSettings_vf3s8")
|
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
vertical_alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="ButtonResume" type="Button" parent="Ui/VBoxPause"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
size_flags_vertical = 6
|
|
|
|
|
text = "Resume
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
offset_top = 1274.0
|
|
|
|
|
offset_right = 152.0
|
|
|
|
|
offset_bottom = 1278.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
|
|
|
|
|
[node name="HealthBar" type="ProgressBar" parent="Ui/VBoxHealth"]
|
|
|
|
|
|