diff --git a/assets/audio/railgun.mp3 b/assets/audio/railgun.mp3 new file mode 100644 index 0000000..1e1b107 Binary files /dev/null and b/assets/audio/railgun.mp3 differ diff --git a/assets/audio/railgun.mp3.import b/assets/audio/railgun.mp3.import new file mode 100644 index 0000000..987fc26 --- /dev/null +++ b/assets/audio/railgun.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://0c62t5vtlwh6" +path="res://.godot/imported/railgun.mp3-e6fbed75457f3f96c7373b9c121c03e6.mp3str" + +[deps] + +source_file="res://assets/audio/railgun.mp3" +dest_files=["res://.godot/imported/railgun.mp3-e6fbed75457f3f96c7373b9c121c03e6.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/scenes/towers/railgun_1.tscn b/scenes/towers/railgun_1.tscn index 4ffbee1..0a46229 100644 --- a/scenes/towers/railgun_1.tscn +++ b/scenes/towers/railgun_1.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=13 format=3 uid="uid://biyhuyx177dw8"] +[gd_scene load_steps=14 format=3 uid="uid://biyhuyx177dw8"] [ext_resource type="Script" path="res://scripts/towers/tower.gd" id="1_8623k"] +[ext_resource type="AudioStream" uid="uid://0c62t5vtlwh6" path="res://assets/audio/railgun.mp3" id="3_ixlr3"] [ext_resource type="Texture2D" uid="uid://c02ebkmjpxium" path="res://assets/spritesheets/towers/railgun-1.png" id="3_vo8au"] [sub_resource type="AtlasTexture" id="AtlasTexture_60mof"] @@ -99,5 +100,9 @@ rotation = 1.5708 scale = Vector2(0.3, 0.3) show_percentage = false +[node name="Shoot" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_ixlr3") +volume_db = -20.0 + [connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"] [connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"] diff --git a/scenes/towers/railgun_2.tscn b/scenes/towers/railgun_2.tscn index 63a7d55..9ed8c80 100644 --- a/scenes/towers/railgun_2.tscn +++ b/scenes/towers/railgun_2.tscn @@ -1,8 +1,8 @@ [gd_scene load_steps=14 format=3 uid="uid://ctnlfsnc2gl03"] [ext_resource type="Script" path="res://scripts/towers/tower.gd" id="1_rnv08"] -[ext_resource type="PackedScene" uid="uid://dqa80ptcc8p70" path="res://scenes/bullets/bullet_1.tscn" id="2_fshi3"] [ext_resource type="Texture2D" uid="uid://b0dawx5rlcyo3" path="res://assets/spritesheets/towers/railgun-2.png" id="3_aeasn"] +[ext_resource type="AudioStream" uid="uid://0c62t5vtlwh6" path="res://assets/audio/railgun.mp3" id="3_x4pda"] [sub_resource type="AtlasTexture" id="AtlasTexture_fss1a"] atlas = ExtResource("3_aeasn") @@ -73,7 +73,6 @@ radius = 138.293 [node name="railgun-2" type="Node2D" groups=["Towers"]] script = ExtResource("1_rnv08") -bullet = ExtResource("2_fshi3") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] position = Vector2(-1, 0) @@ -100,5 +99,9 @@ rotation = 1.5708 scale = Vector2(0.3, 0.3) show_percentage = false +[node name="Shoot" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_x4pda") +volume_db = -20.0 + [connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"] [connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"] diff --git a/scenes/towers/railgun_3.tscn b/scenes/towers/railgun_3.tscn index eedc0e5..43382a9 100644 --- a/scenes/towers/railgun_3.tscn +++ b/scenes/towers/railgun_3.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=14 format=3 uid="uid://cfelbpijg3dp0"] [ext_resource type="Script" path="res://scripts/towers/tower.gd" id="1_3s425"] -[ext_resource type="PackedScene" uid="uid://dqa80ptcc8p70" path="res://scenes/bullets/bullet_1.tscn" id="2_af8yd"] +[ext_resource type="AudioStream" uid="uid://0c62t5vtlwh6" path="res://assets/audio/railgun.mp3" id="3_f25ix"] [ext_resource type="Texture2D" uid="uid://dk3toqlc7igld" path="res://assets/spritesheets/towers/railgun-3.png" id="3_g5gi2"] [sub_resource type="AtlasTexture" id="AtlasTexture_g3wst"] @@ -73,7 +73,6 @@ radius = 138.293 [node name="railgun-3" type="Node2D" groups=["Towers"]] script = ExtResource("1_3s425") -bullet = ExtResource("2_af8yd") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] position = Vector2(-1, 0) @@ -100,5 +99,9 @@ rotation = 1.5708 scale = Vector2(0.3, 0.3) show_percentage = false +[node name="Shoot" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("3_f25ix") +volume_db = -20.0 + [connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"] [connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"]