Skip to content

Commit

Permalink
added sound files
Browse files Browse the repository at this point in the history
implemented sword swing, fireball, ice cone, sunburst
  • Loading branch information
zabayrer committed May 20, 2024
1 parent b2b9984 commit fc567ce
Show file tree
Hide file tree
Showing 36 changed files with 297 additions and 8 deletions.
4 changes: 2 additions & 2 deletions character_scripts/Player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var is_dead = false
@onready var camera_2d = $Camera2D

@onready var spell_cooldown_timer = $SpellCooldownTimer
#@onready var sword_swing = $SwordSwing
@onready var sword_swing = $SwordSwing
@onready var heal_particles = $HealParticles

#annoying functions so that we can use these in other scripts
Expand Down Expand Up @@ -73,7 +73,7 @@ func melee_attack():
var weapon = WeaponManager.get_melee_scene().instantiate()
weapon.player = self
add_child(weapon)
#sword_swing.play()
sword_swing.play()
# animated_sprite_2d.play("attack1")
can_swing = false

Expand Down
8 changes: 7 additions & 1 deletion scenes/player.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[gd_scene load_steps=43 format=3 uid="uid://u0hfdydssq7m"]
[gd_scene load_steps=44 format=3 uid="uid://u0hfdydssq7m"]

[ext_resource type="Script" path="res://character_scripts/Player.gd" id="1_j4g1x"]
[ext_resource type="Texture2D" uid="uid://c7h54bner42ca" path="res://art/player_forward.png" id="3_vyaho"]
[ext_resource type="Script" path="res://scripts/Camera2D.gd" id="4_ben86"]
[ext_resource type="Texture2D" uid="uid://db4ipt5uva7my" path="res://art/Player2.png" id="4_v47rc"]
[ext_resource type="AudioStream" uid="uid://cpjm0yh48hh55" path="res://sounds/sword-slash-and-swing-185432.mp3" id="5_1f2ap"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_nia33"]
size = Vector2(76, 119)
Expand Down Expand Up @@ -354,3 +355,8 @@ max_value = 5.0
step = 0.1
fill_mode = 3
show_percentage = false

[node name="Footsteps" type="AudioStreamPlayer" parent="."]

[node name="SwordSwing" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_1f2ap")
Binary file added sounds/B9RF3M4-fire-sword.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/B9RF3M4-fire-sword.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://6aakqxkonf7a"
path="res://.godot/imported/B9RF3M4-fire-sword.mp3-74e123a046bcaa8c391b1f6b95a80365.mp3str"

[deps]

source_file="res://sounds/B9RF3M4-fire-sword.mp3"
dest_files=["res://.godot/imported/B9RF3M4-fire-sword.mp3-74e123a046bcaa8c391b1f6b95a80365.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/cannon-fire-161072.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/cannon-fire-161072.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://wv38l8l20r62"
path="res://.godot/imported/cannon-fire-161072.mp3-ba2e4f5fa43ccf7e2de60811081676f4.mp3str"

[deps]

source_file="res://sounds/cannon-fire-161072.mp3"
dest_files=["res://.godot/imported/cannon-fire-161072.mp3-ba2e4f5fa43ccf7e2de60811081676f4.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/door-slam-172171.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/door-slam-172171.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://dhne4oeg4kpaj"
path="res://.godot/imported/door-slam-172171.mp3-97856307ba53ed51f29e6b27f41d2bae.mp3str"

[deps]

source_file="res://sounds/door-slam-172171.mp3"
dest_files=["res://.godot/imported/door-slam-172171.mp3-97856307ba53ed51f29e6b27f41d2bae.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/double-squeak-2-103875.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/double-squeak-2-103875.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://b3aw0bhopyie5"
path="res://.godot/imported/double-squeak-2-103875.mp3-9f05a70d56ee03adacb6547d0a7bea9c.mp3str"

[deps]

source_file="res://sounds/double-squeak-2-103875.mp3"
dest_files=["res://.godot/imported/double-squeak-2-103875.mp3-9f05a70d56ee03adacb6547d0a7bea9c.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/footsteps_down_stairs-71740.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/footsteps_down_stairs-71740.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://xycbm4o0pw0r"
path="res://.godot/imported/footsteps_down_stairs-71740.mp3-926c37c9d6b4455ba296f57b6ed2c225.mp3str"

[deps]

source_file="res://sounds/footsteps_down_stairs-71740.mp3"
dest_files=["res://.godot/imported/footsteps_down_stairs-71740.mp3-926c37c9d6b4455ba296f57b6ed2c225.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/heavy-breath-male-63980.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/heavy-breath-male-63980.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://jtgefn01uu1l"
path="res://.godot/imported/heavy-breath-male-63980.mp3-3be599385e46b1b901776a88ee1588cb.mp3str"

[deps]

source_file="res://sounds/heavy-breath-male-63980.mp3"
dest_files=["res://.godot/imported/heavy-breath-male-63980.mp3-3be599385e46b1b901776a88ee1588cb.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/heavy-breathing-14431.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/heavy-breathing-14431.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://bavsjuqkn2hen"
path="res://.godot/imported/heavy-breathing-14431.mp3-8ebbff7b52fa4345bcf938b818bca33d.mp3str"

[deps]

source_file="res://sounds/heavy-breathing-14431.mp3"
dest_files=["res://.godot/imported/heavy-breathing-14431.mp3-8ebbff7b52fa4345bcf938b818bca33d.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/ice2-90655.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/ice2-90655.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://nf76h2fviwbk"
path="res://.godot/imported/ice2-90655.mp3-6e37ac7f70eccd5d2b55bf41dd85a1d2.mp3str"

[deps]

source_file="res://sounds/ice2-90655.mp3"
dest_files=["res://.godot/imported/ice2-90655.mp3-6e37ac7f70eccd5d2b55bf41dd85a1d2.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/main-door-opening-closing-38280.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/main-door-opening-closing-38280.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://c76ip7g53ngm6"
path="res://.godot/imported/main-door-opening-closing-38280.mp3-0883126574d29e7d5feba6f2f63a5908.mp3str"

[deps]

source_file="res://sounds/main-door-opening-closing-38280.mp3"
dest_files=["res://.godot/imported/main-door-opening-closing-38280.mp3-0883126574d29e7d5feba6f2f63a5908.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/ogre_slam.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/ogre_slam.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://dfmo11ct6v2gp"
path="res://.godot/imported/ogre_slam.mp3-bd76e3fd7239773be770302a735f32ef.mp3str"

[deps]

source_file="res://sounds/ogre_slam.mp3"
dest_files=["res://.godot/imported/ogre_slam.mp3-bd76e3fd7239773be770302a735f32ef.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/pop-94319.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/pop-94319.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://bvhfakmc44bam"
path="res://.godot/imported/pop-94319.mp3-324089412de1d5f4a64bbd1c197b57b7.mp3str"

[deps]

source_file="res://sounds/pop-94319.mp3"
dest_files=["res://.godot/imported/pop-94319.mp3-324089412de1d5f4a64bbd1c197b57b7.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/shimmer-glass-81711.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/shimmer-glass-81711.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://dpa5sb2ecgraj"
path="res://.godot/imported/shimmer-glass-81711.mp3-e19f8eb08f7fd7cc2f2dcd35668a3c84.mp3str"

[deps]

source_file="res://sounds/shimmer-glass-81711.mp3"
dest_files=["res://.godot/imported/shimmer-glass-81711.mp3-e19f8eb08f7fd7cc2f2dcd35668a3c84.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/slime-2-30099.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/slime-2-30099.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://mma66pev8bk1"
path="res://.godot/imported/slime-2-30099.mp3-dea96373f18c0e2d3ce2b324c407f354.mp3str"

[deps]

source_file="res://sounds/slime-2-30099.mp3"
dest_files=["res://.godot/imported/slime-2-30099.mp3-dea96373f18c0e2d3ce2b324c407f354.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added sounds/sword-slash-and-swing-185432.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions sounds/sword-slash-and-swing-185432.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://cpjm0yh48hh55"
path="res://.godot/imported/sword-slash-and-swing-185432.mp3-60ecd70a1289f348679fca70c767d65e.mp3str"

[deps]

source_file="res://sounds/sword-slash-and-swing-185432.mp3"
dest_files=["res://.godot/imported/sword-slash-and-swing-185432.mp3-60ecd70a1289f348679fca70c767d65e.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
2 changes: 2 additions & 0 deletions tomes/fireball.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ var type = "fire"

#@onready var cpu_particles_2d = $CPUParticles2D
@onready var fireball_animation = $FireballAnimation
@onready var explosion = $Explosion


# Called when the node enters the scene tree for the first time.
func _ready():
position = get_global_mouse_position()

fireball_animation.play("fireball")
explosion.play()
player.apply_shake()
#cpu_particles_2d.emitting = true

Expand Down
6 changes: 5 additions & 1 deletion tomes/fireball.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_scene load_steps=16 format=3 uid="uid://ch0qfkpi4s11o"]
[gd_scene load_steps=17 format=3 uid="uid://ch0qfkpi4s11o"]

[ext_resource type="Script" path="res://tomes/fireball.gd" id="1_5isqm"]
[ext_resource type="Texture2D" uid="uid://qcyp21s52d5" path="res://icon.svg" id="2_2bi8o"]
[ext_resource type="Texture2D" uid="uid://bbjymm2eoaptu" path="res://art/MagicSpells-Sheet.png" id="2_373pt"]
[ext_resource type="AudioStream" uid="uid://wv38l8l20r62" path="res://sounds/cannon-fire-161072.mp3" id="4_akvmd"]

[sub_resource type="CircleShape2D" id="CircleShape2D_oaidw"]
radius = 76.0263
Expand Down Expand Up @@ -120,3 +121,6 @@ linear_accel_max = -2500.0
scale_amount_min = 50.0
scale_amount_max = 100.0
color_ramp = SubResource("Gradient_0f41u")

[node name="Explosion" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_akvmd")
3 changes: 2 additions & 1 deletion tomes/ice_cone.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ var type = "ice"

#@onready var cpu_particles_2d = $CPUParticles2D
@onready var ice_cone_animation = $IceConeAnimation

@onready var ice_sound = $IceSound

func _ready():
position = player.position
rotation = global_position.direction_to(get_global_mouse_position()).angle() + PI / 2
player.apply_shake()
ice_sound.play()
#cpu_particles_2d.emitting = true
ice_cone_animation.play("ice_cone")

Expand Down
6 changes: 5 additions & 1 deletion tomes/ice_cone.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_scene load_steps=12 format=3 uid="uid://djx3jxny78ig6"]
[gd_scene load_steps=13 format=3 uid="uid://djx3jxny78ig6"]

[ext_resource type="Texture2D" uid="uid://qcyp21s52d5" path="res://icon.svg" id="1_sintp"]
[ext_resource type="Script" path="res://tomes/ice_cone.gd" id="1_xp4w1"]
[ext_resource type="Texture2D" uid="uid://bbjymm2eoaptu" path="res://art/MagicSpells-Sheet.png" id="3_e71sw"]
[ext_resource type="AudioStream" uid="uid://nf76h2fviwbk" path="res://sounds/ice2-90655.mp3" id="4_o0ht6"]

[sub_resource type="AtlasTexture" id="AtlasTexture_qvhpn"]
atlas = ExtResource("3_e71sw")
Expand Down Expand Up @@ -100,4 +101,7 @@ scale_amount_min = 8.0
scale_amount_max = 8.0
color = Color(0.164706, 0.580392, 0.85098, 1)

[node name="IceSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_o0ht6")

[connection signal="area_entered" from="." to="." method="_on_area_entered"]
Loading

0 comments on commit fc567ce

Please sign in to comment.