mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-25 06:04:19 +00:00
🧹 Cleanup sound code
This commit is contained in:
parent
07f1084555
commit
e3011d26e2
12 changed files with 50 additions and 57 deletions
|
@ -1,15 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="mp3"
|
|
||||||
type="AudioStreamMP3"
|
|
||||||
path="res://.import/arrow.mp3-c704c3e091b4a843e3ab451891555a65.mp3str"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://src/Sounds/arrow.mp3"
|
|
||||||
dest_files=[ "res://.import/arrow.mp3-c704c3e091b4a843e3ab451891555a65.mp3str" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
loop=false
|
|
||||||
loop_offset=0
|
|
|
@ -1,15 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="mp3"
|
|
||||||
type="AudioStreamMP3"
|
|
||||||
path="res://.import/branch.mp3-ccbf592d2fffd882078c09b47c6fdf12.mp3str"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://src/Sounds/branch.mp3"
|
|
||||||
dest_files=[ "res://.import/branch.mp3-ccbf592d2fffd882078c09b47c6fdf12.mp3str" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
loop=false
|
|
||||||
loop_offset=0
|
|
|
@ -1,15 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="mp3"
|
|
||||||
type="AudioStreamMP3"
|
|
||||||
path="res://.import/death.mp3-8d542225ce7221e955aefbc77401940f.mp3str"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://src/Sounds/death.mp3"
|
|
||||||
dest_files=[ "res://.import/death.mp3-8d542225ce7221e955aefbc77401940f.mp3str" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
loop=false
|
|
||||||
loop_offset=0
|
|
|
@ -4,7 +4,7 @@
|
||||||
[ext_resource path="res://src/entities/behaviours/BulletMovement.gd" type="Script" id=2]
|
[ext_resource path="res://src/entities/behaviours/BulletMovement.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://src/entities/behaviours/Ownership.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://src/entities/behaviours/Ownership.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://src/entities/Bullet.gd" type="Script" id=4]
|
[ext_resource path="res://src/entities/Bullet.gd" type="Script" id=4]
|
||||||
[ext_resource path="res://src/entities/behaviours/ArrowSound.gd" type="Script" id=5]
|
[ext_resource path="res://src/sounds/Arrow.mp3" type="AudioStream" id=5]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 16, 8 )
|
extents = Vector2( 16, 8 )
|
||||||
|
@ -27,5 +27,7 @@ script = ExtResource( 2 )
|
||||||
[node name="Ownership" parent="." instance=ExtResource( 3 )]
|
[node name="Ownership" parent="." instance=ExtResource( 3 )]
|
||||||
|
|
||||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
script = ExtResource( 5 )
|
stream = ExtResource( 5 )
|
||||||
|
autoplay = true
|
||||||
|
|
||||||
[connection signal="hit" from="BulletMovement" to="." method="_on_BulletMovement_hit"]
|
[connection signal="hit" from="BulletMovement" to="." method="_on_BulletMovement_hit"]
|
||||||
|
|
|
@ -32,4 +32,5 @@ alliance = -1
|
||||||
|
|
||||||
[node name="BranchSpawn" type="Node" parent="."]
|
[node name="BranchSpawn" type="Node" parent="."]
|
||||||
script = ExtResource( 7 )
|
script = ExtResource( 7 )
|
||||||
|
|
||||||
[connection signal="dead" from="Damageable" to="." method="_on_Damageable_dead"]
|
[connection signal="dead" from="Damageable" to="." method="_on_Damageable_dead"]
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
extends AudioStreamPlayer
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
set_stream(load("res://src/Sounds/arrow.mp3"))
|
|
||||||
play()
|
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
#func _process(delta):
|
|
||||||
# pass
|
|
15
src/sounds/Arrow.mp3.import
Normal file
15
src/sounds/Arrow.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
path="res://.import/Arrow.mp3-034096617a893a977e49af1155ab45bc.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://src/sounds/Arrow.mp3"
|
||||||
|
dest_files=[ "res://.import/Arrow.mp3-034096617a893a977e49af1155ab45bc.mp3str" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
15
src/sounds/Branch.mp3.import
Normal file
15
src/sounds/Branch.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
path="res://.import/Branch.mp3-5d37fbfbb6a12f007268561bc5ec7f37.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://src/sounds/Branch.mp3"
|
||||||
|
dest_files=[ "res://.import/Branch.mp3-5d37fbfbb6a12f007268561bc5ec7f37.mp3str" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
15
src/sounds/Death.mp3.import
Normal file
15
src/sounds/Death.mp3.import
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
path="res://.import/Death.mp3-d9e2895f2f81775cb1dcf8d65bac6b2b.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://src/sounds/Death.mp3"
|
||||||
|
dest_files=[ "res://.import/Death.mp3-d9e2895f2f81775cb1dcf8d65bac6b2b.mp3str" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
Loading…
Reference in a new issue