diff --git a/Assets/Audio/90s-game-music-no-copyright-352850.mp3 b/Assets/Audio/90s-game-music-no-copyright-352850.mp3 new file mode 100644 index 0000000..91d9907 Binary files /dev/null and b/Assets/Audio/90s-game-music-no-copyright-352850.mp3 differ diff --git a/Assets/Audio/90s-game-music-no-copyright-352850.mp3.import b/Assets/Audio/90s-game-music-no-copyright-352850.mp3.import new file mode 100644 index 0000000..687d411 --- /dev/null +++ b/Assets/Audio/90s-game-music-no-copyright-352850.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cutsbqvpghkd4" +path="res://.godot/imported/90s-game-music-no-copyright-352850.mp3-53b8f7006719d5c546383f85d95fd09e.mp3str" + +[deps] + +source_file="res://Assets/Audio/90s-game-music-no-copyright-352850.mp3" +dest_files=["res://.godot/imported/90s-game-music-no-copyright-352850.mp3-53b8f7006719d5c546383f85d95fd09e.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/90s-game-ui-1-185094.mp3 b/Assets/Audio/90s-game-ui-1-185094.mp3 new file mode 100644 index 0000000..e4f92a3 Binary files /dev/null and b/Assets/Audio/90s-game-ui-1-185094.mp3 differ diff --git a/Assets/Audio/90s-game-ui-1-185094.mp3.import b/Assets/Audio/90s-game-ui-1-185094.mp3.import new file mode 100644 index 0000000..e0d402e --- /dev/null +++ b/Assets/Audio/90s-game-ui-1-185094.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://f03wvoxqelg5" +path="res://.godot/imported/90s-game-ui-1-185094.mp3-d098162c259a069e5185aad267f43218.mp3str" + +[deps] + +source_file="res://Assets/Audio/90s-game-ui-1-185094.mp3" +dest_files=["res://.godot/imported/90s-game-ui-1-185094.mp3-d098162c259a069e5185aad267f43218.mp3str"] + +[params] + +loop=false +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/collect-points-190037.mp3 b/Assets/Audio/collect-points-190037.mp3 new file mode 100644 index 0000000..6bfa6ad Binary files /dev/null and b/Assets/Audio/collect-points-190037.mp3 differ diff --git a/Assets/Audio/collect-points-190037.mp3.import b/Assets/Audio/collect-points-190037.mp3.import new file mode 100644 index 0000000..59ec539 --- /dev/null +++ b/Assets/Audio/collect-points-190037.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://bxvwf40s8hm66" +path="res://.godot/imported/collect-points-190037.mp3-365c5d1c5879f222e206a83c88be994a.mp3str" + +[deps] + +source_file="res://Assets/Audio/collect-points-190037.mp3" +dest_files=["res://.godot/imported/collect-points-190037.mp3-365c5d1c5879f222e206a83c88be994a.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/game-music-loop-1-143979.mp3 b/Assets/Audio/game-music-loop-1-143979.mp3 new file mode 100644 index 0000000..6bd46c7 Binary files /dev/null and b/Assets/Audio/game-music-loop-1-143979.mp3 differ diff --git a/Assets/Audio/game-music-loop-1-143979.mp3.import b/Assets/Audio/game-music-loop-1-143979.mp3.import new file mode 100644 index 0000000..f6baf64 --- /dev/null +++ b/Assets/Audio/game-music-loop-1-143979.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://b1ccrbyhce4x5" +path="res://.godot/imported/game-music-loop-1-143979.mp3-58a24d9f531635d2e18b8cdd7c83ace7.mp3str" + +[deps] + +source_file="res://Assets/Audio/game-music-loop-1-143979.mp3" +dest_files=["res://.godot/imported/game-music-loop-1-143979.mp3-58a24d9f531635d2e18b8cdd7c83ace7.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/game-music-loop-4-144341.mp3 b/Assets/Audio/game-music-loop-4-144341.mp3 new file mode 100644 index 0000000..21ee468 Binary files /dev/null and b/Assets/Audio/game-music-loop-4-144341.mp3 differ diff --git a/Assets/Audio/game-music-loop-4-144341.mp3.import b/Assets/Audio/game-music-loop-4-144341.mp3.import new file mode 100644 index 0000000..94252fb --- /dev/null +++ b/Assets/Audio/game-music-loop-4-144341.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://btpc0rd4881rf" +path="res://.godot/imported/game-music-loop-4-144341.mp3-84177cb8e60e4ccc5736d9d05a3e1218.mp3str" + +[deps] + +source_file="res://Assets/Audio/game-music-loop-4-144341.mp3" +dest_files=["res://.godot/imported/game-music-loop-4-144341.mp3-84177cb8e60e4ccc5736d9d05a3e1218.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/game-music-loop-5-144569.mp3 b/Assets/Audio/game-music-loop-5-144569.mp3 new file mode 100644 index 0000000..766d881 Binary files /dev/null and b/Assets/Audio/game-music-loop-5-144569.mp3 differ diff --git a/Assets/Audio/game-music-loop-5-144569.mp3.import b/Assets/Audio/game-music-loop-5-144569.mp3.import new file mode 100644 index 0000000..6844c00 --- /dev/null +++ b/Assets/Audio/game-music-loop-5-144569.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cd2271v03xmdm" +path="res://.godot/imported/game-music-loop-5-144569.mp3-8755732a5b5d21dbc2fa4fae46ece6e4.mp3str" + +[deps] + +source_file="res://Assets/Audio/game-music-loop-5-144569.mp3" +dest_files=["res://.godot/imported/game-music-loop-5-144569.mp3-8755732a5b5d21dbc2fa4fae46ece6e4.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Assets/Audio/laser-312360.mp3 b/Assets/Audio/laser-312360.mp3 new file mode 100644 index 0000000..3ac6b9b Binary files /dev/null and b/Assets/Audio/laser-312360.mp3 differ diff --git a/Assets/Audio/laser-312360.mp3.import b/Assets/Audio/laser-312360.mp3.import new file mode 100644 index 0000000..c437320 --- /dev/null +++ b/Assets/Audio/laser-312360.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://bgmgen456wy6x" +path="res://.godot/imported/laser-312360.mp3-d0ebeb59d5e61db43561f0ec6721afaf.mp3str" + +[deps] + +source_file="res://Assets/Audio/laser-312360.mp3" +dest_files=["res://.godot/imported/laser-312360.mp3-d0ebeb59d5e61db43561f0ec6721afaf.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Scenes/Game Scenes/00_main_menu.tscn b/Scenes/Game Scenes/00_main_menu.tscn index 811eb95..122ea8c 100644 --- a/Scenes/Game Scenes/00_main_menu.tscn +++ b/Scenes/Game Scenes/00_main_menu.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=2 format=3 uid="uid://bff7j1pbmewsu"] +[gd_scene load_steps=3 format=3 uid="uid://bff7j1pbmewsu"] [ext_resource type="Script" uid="uid://byyoc0qbtrsq3" path="res://Scripts/main_menu.gd" id="1_1qbve"] +[ext_resource type="AudioStream" uid="uid://b1ccrbyhce4x5" path="res://Assets/Audio/game-music-loop-1-143979.mp3" id="2_ckt2a"] [node name="Main Menu" type="Control"] layout_mode = 3 @@ -36,5 +37,10 @@ text = "Play" layout_mode = 2 text = "Quit Game" +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("2_ckt2a") +autoplay = true +parameters/looping = false + [connection signal="pressed" from="MarginContainer/VBoxContainer/Play" to="." method="_on_play_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/Quit Game" to="." method="_on_quit_game_pressed"] diff --git a/Scenes/Game Scenes/04_reverse_transition_level.tscn b/Scenes/Game Scenes/04_reverse_transition_level.tscn index c124566..6502683 100644 --- a/Scenes/Game Scenes/04_reverse_transition_level.tscn +++ b/Scenes/Game Scenes/04_reverse_transition_level.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=41 format=4 uid="uid://b37ksb7rorgdh"] +[gd_scene load_steps=43 format=4 uid="uid://b37ksb7rorgdh"] -[ext_resource type="Script" uid="uid://cinpy6wt0whwj" path="res://Scripts/04_reverse_transition_level.gd" id="1_ttmyq"] +[ext_resource type="Script" path="res://Scripts/04_reverse_transition_level.gd" id="1_ttmyq"] [ext_resource type="Script" uid="uid://mtv4jj62dn53" path="res://Scripts/player.gd" id="2_nwgn1"] [ext_resource type="PackedScene" uid="uid://cixx5dbanxem1" path="res://Scenes/Scene Assets/blastershot.tscn" id="3_xgayh"] [ext_resource type="SpriteFrames" uid="uid://ddm0765k3wlil" path="res://Assets/2D Assets/SpriteFrames/Player_sprite_frames.tres" id="4_a4pq8"] @@ -8,6 +8,7 @@ [ext_resource type="Script" uid="uid://c4dvbchy5m3tc" path="res://Scripts/destructible_object.gd" id="10_5xtin"] [ext_resource type="Texture2D" uid="uid://d3758kcrsgh5s" path="res://Assets/2D Assets/Props/antenna.png" id="11_axul6"] [ext_resource type="Texture2D" uid="uid://c0jre0obv2jlg" path="res://Assets/2D Assets/1_Industrial_Tileset_1.png" id="11_b7y5f"] +[ext_resource type="AudioStream" uid="uid://bxvwf40s8hm66" path="res://Assets/Audio/collect-points-190037.mp3" id="12_a4pq8"] [ext_resource type="Texture2D" uid="uid://bfbslbfn4cla8" path="res://Assets/2D Assets/1_Industrial_Tileset_1B.png" id="12_ttmyq"] [ext_resource type="Script" uid="uid://c3l0v8hb8wswj" path="res://Scripts/Bolt.gd" id="12_u40gl"] [ext_resource type="PackedScene" uid="uid://bcxi0ij5k1yn" path="res://Scenes/Scene Assets/3d bolt.tscn" id="13_2g5mc"] @@ -15,6 +16,7 @@ [ext_resource type="PackedScene" uid="uid://u7xlfve1uxrm" path="res://Scenes/Game Scenes/pause_menu.tscn" id="14_2g57p"] [ext_resource type="PackedScene" uid="uid://cx0k1lcljgqis" path="res://Scenes/Scene Assets/door.tscn" id="14_ttmyq"] [ext_resource type="PackedScene" uid="uid://cl4y8xdjw1w2y" path="res://Scenes/Scene Assets/User Interface.tscn" id="15_nwgn1"] +[ext_resource type="AudioStream" uid="uid://cutsbqvpghkd4" path="res://Assets/Audio/90s-game-music-no-copyright-352850.mp3" id="17_1214t"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_bjpqr"] size = Vector2(3.24003, 26.5251) @@ -636,6 +638,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 1"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 1"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 2" type="Area2D" parent="Bolts"] position = Vector2(3034, 506) scale = Vector2(0.611111, 0.611111) @@ -648,6 +653,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 2"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 2"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 3" type="Area2D" parent="Bolts"] position = Vector2(2830, 266) scale = Vector2(0.611111, 0.611111) @@ -660,6 +668,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 3"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 3"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 4" type="Area2D" parent="Bolts"] position = Vector2(2684, 267) scale = Vector2(0.611111, 0.611111) @@ -672,6 +683,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 4"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 4"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 5" type="Area2D" parent="Bolts"] position = Vector2(2128, 241) scale = Vector2(0.611111, 0.611111) @@ -684,6 +698,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 5"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 5"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 6" type="Area2D" parent="Bolts"] position = Vector2(2131, 492) scale = Vector2(0.611111, 0.611111) @@ -696,6 +713,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 6"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 6"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 7" type="Area2D" parent="Bolts"] position = Vector2(1549, 454) scale = Vector2(0.611111, 0.611111) @@ -708,6 +728,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 7"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 7"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 8" type="Area2D" parent="Bolts"] position = Vector2(1581, 247) scale = Vector2(0.611111, 0.611111) @@ -720,6 +743,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 8"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 8"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 10" type="Area2D" parent="Bolts"] position = Vector2(1438, 245) scale = Vector2(0.611111, 0.611111) @@ -732,6 +758,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 10"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 10"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 11" type="Area2D" parent="Bolts"] position = Vector2(862, 420) scale = Vector2(0.611111, 0.611111) @@ -744,6 +773,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 11"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 11"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 12" type="Area2D" parent="Bolts"] position = Vector2(-23.0002, 374) scale = Vector2(0.611111, 0.611111) @@ -756,6 +788,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 12"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 12"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 13" type="Area2D" parent="Bolts"] position = Vector2(218, 604) scale = Vector2(0.611111, 0.611111) @@ -768,6 +803,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 13"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 13"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 14" type="Area2D" parent="Bolts"] position = Vector2(-495, 282) scale = Vector2(0.611111, 0.611111) @@ -780,6 +818,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 14"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 14"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 15" type="Area2D" parent="Bolts"] position = Vector2(-830, 447) scale = Vector2(0.611111, 0.611111) @@ -792,6 +833,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 15"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 15"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 16" type="Area2D" parent="Bolts"] position = Vector2(-1531, 248) scale = Vector2(0.611111, 0.611111) @@ -804,6 +848,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 16"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 16"] +stream = ExtResource("12_a4pq8") + [node name="Bolt 9" type="Area2D" parent="Bolts"] position = Vector2(1694, 247) scale = Vector2(0.611111, 0.611111) @@ -816,6 +863,9 @@ texture = SubResource("ViewportTexture_kkwvh") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 9"] shape = SubResource("RectangleShape2D_mg12w") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 9"] +stream = ExtResource("12_a4pq8") + [node name="3D Bolt Texture" type="SubViewport" parent="Bolts"] transparent_bg = true @@ -1045,6 +1095,11 @@ position = Vector2(9, -78) [node name="PauseMenu" parent="." instance=ExtResource("14_2g57p")] visible = false +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("17_1214t") +autoplay = true +parameters/looping = true + [connection signal="body_entered" from="DeathZone" to="Player" method="_on_death_zone_body_entered"] [editable path="Doors/Door_To_05_Level"] diff --git a/Scenes/Game Scenes/Spawn.tscn b/Scenes/Game Scenes/Spawn.tscn index efbf037..c18305d 100644 --- a/Scenes/Game Scenes/Spawn.tscn +++ b/Scenes/Game Scenes/Spawn.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=22 format=4 uid="uid://bab8q3lwp3q54"] +[gd_scene load_steps=24 format=4 uid="uid://bab8q3lwp3q54"] [ext_resource type="Script" uid="uid://chp8mjweukfg7" path="res://Scripts/spawn.gd" id="1_4nwsb"] [ext_resource type="Script" uid="uid://mtv4jj62dn53" path="res://Scripts/player.gd" id="1_t5m8g"] @@ -17,6 +17,8 @@ [ext_resource type="PackedScene" uid="uid://ddec6m135vs08" path="res://Scenes/Scene Assets/Interactable.tscn" id="14_wvwyh"] [ext_resource type="PackedScene" uid="uid://cl4y8xdjw1w2y" path="res://Scenes/Scene Assets/User Interface.tscn" id="15_glk42"] [ext_resource type="PackedScene" uid="uid://u7xlfve1uxrm" path="res://Scenes/Game Scenes/pause_menu.tscn" id="17_6wmlu"] +[ext_resource type="AudioStream" uid="uid://cutsbqvpghkd4" path="res://Assets/Audio/90s-game-music-no-copyright-352850.mp3" id="18_jbuf7"] +[ext_resource type="AudioStream" uid="uid://bxvwf40s8hm66" path="res://Assets/Audio/collect-points-190037.mp3" id="19_bavwu"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_k5v5r"] size = Vector2(1.77364, 26.2927) @@ -187,6 +189,9 @@ texture = SubResource("ViewportTexture_k5v5r") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolt 1"] shape = SubResource("RectangleShape2D_5tcfi") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolt 1"] +stream = ExtResource("19_bavwu") + [node name="3D Bolt Texture" type="SubViewport" parent="."] transparent_bg = true @@ -226,5 +231,10 @@ position = Vector2(25, -74) [node name="PauseMenu" parent="." instance=ExtResource("17_6wmlu")] visible = false +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("18_jbuf7") +autoplay = true +parameters/looping = true + [editable path="Doors/Door_To_start_zone"] [editable path="Doors/Door_To_04_reverse_transition_level"] diff --git a/Scenes/Game Scenes/start_zone.tscn b/Scenes/Game Scenes/start_zone.tscn index 3526741..2047c3f 100644 --- a/Scenes/Game Scenes/start_zone.tscn +++ b/Scenes/Game Scenes/start_zone.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=33 format=4 uid="uid://dtwmjj6275yds"] +[gd_scene load_steps=35 format=4 uid="uid://dtwmjj6275yds"] [ext_resource type="Script" uid="uid://c7c4mejk8vwbh" path="res://Scripts/start_zone.gd" id="1_do66n"] [ext_resource type="Script" uid="uid://mtv4jj62dn53" path="res://Scripts/player.gd" id="1_x3j2f"] @@ -10,9 +10,11 @@ [ext_resource type="Script" uid="uid://c3l0v8hb8wswj" path="res://Scripts/Bolt.gd" id="8_s46xd"] [ext_resource type="PackedScene" uid="uid://bcxi0ij5k1yn" path="res://Scenes/Scene Assets/3d bolt.tscn" id="9_qokbd"] [ext_resource type="TileSet" uid="uid://cymfkwgl45u43" path="res://Assets/Tilesets/ScifiLab/scifi2.0.tres" id="9_s46xd"] +[ext_resource type="AudioStream" uid="uid://bxvwf40s8hm66" path="res://Assets/Audio/collect-points-190037.mp3" id="10_7lbkn"] [ext_resource type="PackedScene" uid="uid://cx0k1lcljgqis" path="res://Scenes/Scene Assets/door.tscn" id="10_qokbd"] [ext_resource type="PackedScene" uid="uid://cl4y8xdjw1w2y" path="res://Scenes/Scene Assets/User Interface.tscn" id="12_aui0f"] [ext_resource type="PackedScene" uid="uid://u7xlfve1uxrm" path="res://Scenes/Game Scenes/pause_menu.tscn" id="13_6ye7e"] +[ext_resource type="AudioStream" uid="uid://cutsbqvpghkd4" path="res://Assets/Audio/90s-game-music-no-copyright-352850.mp3" id="14_4jpsw"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_bowi5"] size = Vector2(38.746, 20) @@ -536,6 +538,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 1"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 1"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 2" type="Area2D" parent="Bolts"] position = Vector2(3132, 588) scale = Vector2(0.611111, 0.611111) @@ -548,6 +553,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 2"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 2"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 3" type="Area2D" parent="Bolts"] position = Vector2(3004, 529) scale = Vector2(0.611111, 0.611111) @@ -560,6 +568,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 3"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 3"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 4" type="Area2D" parent="Bolts"] position = Vector2(2583, 142) scale = Vector2(0.611111, 0.611111) @@ -572,6 +583,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 4"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 4"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 5" type="Area2D" parent="Bolts"] position = Vector2(2127, 261) scale = Vector2(0.611111, 0.611111) @@ -584,6 +598,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 5"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 5"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 6" type="Area2D" parent="Bolts"] position = Vector2(2131, 492) scale = Vector2(0.611111, 0.611111) @@ -596,6 +613,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 6"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 6"] +stream = ExtResource("10_7lbkn") + [node name="3D Bolt Texture" type="SubViewport" parent="Bolts"] transparent_bg = true @@ -613,6 +633,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 7"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 7"] +stream = ExtResource("10_7lbkn") + [node name="Bolt 8" type="Area2D" parent="Bolts"] position = Vector2(4970, 453) scale = Vector2(0.611111, 0.611111) @@ -625,6 +648,9 @@ texture = SubResource("ViewportTexture_do66n") [node name="CollisionShape2D" type="CollisionShape2D" parent="Bolts/Bolt 8"] shape = SubResource("RectangleShape2D_aui0f") +[node name="BoltGet" type="AudioStreamPlayer" parent="Bolts/Bolt 8"] +stream = ExtResource("10_7lbkn") + [node name="Moving Platform2" type="Path2D" parent="."] position = Vector2(1989, 285) curve = SubResource("Curve2D_qokbd") @@ -925,6 +951,11 @@ position = Vector2(23, -51) [node name="PauseMenu" parent="." instance=ExtResource("13_6ye7e")] visible = false +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("14_4jpsw") +autoplay = true +parameters/looping = true + [connection signal="body_entered" from="DeathZone" to="Player" method="_on_death_zone_body_entered"] [editable path="Doors/Door_To_Spawn"] diff --git a/Scenes/Scene Assets/Interactable.tscn b/Scenes/Scene Assets/Interactable.tscn index af1e79c..f34ec66 100644 --- a/Scenes/Scene Assets/Interactable.tscn +++ b/Scenes/Scene Assets/Interactable.tscn @@ -7,7 +7,6 @@ [node name="Node2D" type="Node2D"] script = ExtResource("1_xlm66") -message = null [node name="Sprite2D" type="Sprite2D" parent="."] scale = Vector2(0.0286448, 0.0286448) diff --git a/Scenes/Scene Assets/blastershot.gd b/Scenes/Scene Assets/blastershot.gd index 72e2154..fc69123 100644 --- a/Scenes/Scene Assets/blastershot.gd +++ b/Scenes/Scene Assets/blastershot.gd @@ -12,6 +12,8 @@ var explosion : GPUParticles2D var collision_shape: CollisionShape2D var _charge_ratio = 0 var Destructable_Object : Area2D +var sound = preload("res://Assets/Audio/laser-312360.mp3") +var player = AudioStreamPlayer.new() static var active_projectile_count := 0 @@ -24,6 +26,15 @@ func _ready(): no_longer_on_screen.connect("screen_exited", self._on_screen_exited) connect("body_entered", Callable(self, "_on_body_entered")) sprite.play() + + var audio = AudioStreamPlayer.new() + audio.stream = sound + if _charge_ratio == 1: + audio.pitch_scale = randf_range(0.3,0.4) + else: + audio.pitch_scale = randf_range(0.7, 1.0) + add_child(audio) + audio.play() explosion = get_node("blaster_impact") func _exit_tree(): @@ -68,6 +79,7 @@ func _on_body_entered(body: Node2D) -> void: if sprite: sprite.visible = false explosion.emitting = true + $collide.play() explosion.restart() if is_facing_left == false: explosion.global_position = global_position + Vector2(lerp(-10,25,_charge_ratio), 0) diff --git a/Scenes/Scene Assets/blastershot.tscn b/Scenes/Scene Assets/blastershot.tscn index 32c9282..119996b 100644 --- a/Scenes/Scene Assets/blastershot.tscn +++ b/Scenes/Scene Assets/blastershot.tscn @@ -1,10 +1,12 @@ -[gd_scene load_steps=11 format=3 uid="uid://cixx5dbanxem1"] +[gd_scene load_steps=13 format=3 uid="uid://cixx5dbanxem1"] [ext_resource type="Script" uid="uid://omnnwnlrok7u" path="res://Scenes/Scene Assets/blastershot.gd" id="1_75olm"] [ext_resource type="Texture2D" uid="uid://drkecymfofc52" path="res://Assets/2D Assets/SpriteFrames/Blaster/bolt1.png" id="1_npoyu"] [ext_resource type="Texture2D" uid="uid://cqmja04ftot3d" path="res://Assets/2D Assets/SpriteFrames/Blaster/bolt2.png" id="2_n38fa"] [ext_resource type="Texture2D" uid="uid://o11fg825rqda" path="res://Assets/2D Assets/SpriteFrames/Blaster/bolt3.png" id="3_u7vh8"] [ext_resource type="Texture2D" uid="uid://cdmci7kpwr818" path="res://Assets/2D Assets/SpriteFrames/Blaster/bolt4.png" id="4_tp4sh"] +[ext_resource type="AudioStream" uid="uid://bgmgen456wy6x" path="res://Assets/Audio/laser-312360.mp3" id="6_heb2k"] +[ext_resource type="AudioStream" uid="uid://f03wvoxqelg5" path="res://Assets/Audio/90s-game-ui-1-185094.mp3" id="7_h3wbl"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_kvb8p"] radius = 6.0 @@ -66,3 +68,9 @@ lifetime = 0.53 one_shot = true explosiveness = 1.0 process_material = SubResource("ParticleProcessMaterial_w5v4d") + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("6_heb2k") + +[node name="collide" type="AudioStreamPlayer" parent="."] +stream = ExtResource("7_h3wbl") diff --git a/Scripts/Bolt.gd b/Scripts/Bolt.gd index d21fd0d..fce324f 100644 --- a/Scripts/Bolt.gd +++ b/Scripts/Bolt.gd @@ -7,7 +7,10 @@ func _ready(): func _on_body_entered(body): if body.name == "Player": + $BoltGet.play() + hide() + $CollisionShape2D.disabled = true Logger.log_debug("U GOT A BOLT WOOOOOOOO!", DEBUG_LOGS) - ScoreManager.add_score(1) + ScoreManager.add_score(1) + await get_tree().create_timer($BoltGet.stream.get_length()).timeout queue_free() - diff --git a/end_loop.tscn b/end_loop.tscn index 84bf101..e760932 100644 --- a/end_loop.tscn +++ b/end_loop.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=19 format=4 uid="uid://dtjd5fjo0lvud"] +[gd_scene load_steps=20 format=4 uid="uid://dtjd5fjo0lvud"] [ext_resource type="Script" uid="uid://mtv4jj62dn53" path="res://Scripts/player.gd" id="1_3p7mx"] [ext_resource type="PackedScene" uid="uid://cixx5dbanxem1" path="res://Scenes/Scene Assets/blastershot.tscn" id="2_uks3s"] @@ -14,6 +14,7 @@ [ext_resource type="Script" uid="uid://c3l0v8hb8wswj" path="res://Scripts/Bolt.gd" id="11_10cn8"] [ext_resource type="PackedScene" uid="uid://bcxi0ij5k1yn" path="res://Scenes/Scene Assets/3d bolt.tscn" id="12_6wk3r"] [ext_resource type="PackedScene" uid="uid://cx0k1lcljgqis" path="res://Scenes/Scene Assets/door.tscn" id="13_0hcen"] +[ext_resource type="AudioStream" uid="uid://cutsbqvpghkd4" path="res://Assets/Audio/90s-game-music-no-copyright-352850.mp3" id="15_vseod"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_av6ex"] size = Vector2(1.77364, 26.2927) @@ -204,4 +205,9 @@ position = Vector2(57, -62) [node name="Spawn" parent="Door_To_TestScene" index="1"] position = Vector2(2, -65) +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("15_vseod") +autoplay = true +parameters/looping = true + [editable path="Door_To_TestScene"]