Add sound effect to railgun 1-3
This commit is contained in:
parent
807103c2a6
commit
f9bdd46250
5 changed files with 35 additions and 5 deletions
BIN
assets/audio/railgun.mp3
Normal file
BIN
assets/audio/railgun.mp3
Normal file
Binary file not shown.
19
assets/audio/railgun.mp3.import
Normal file
19
assets/audio/railgun.mp3.import
Normal file
|
@ -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
|
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue