forked from team-sg/hero-mark-2
added boss sounds
This commit is contained in:
parent
71134758af
commit
a23ca5347d
6 changed files with 50 additions and 2 deletions
BIN
audio/sounds/boss_hurt.wav
Normal file
BIN
audio/sounds/boss_hurt.wav
Normal file
Binary file not shown.
23
audio/sounds/boss_hurt.wav.import
Normal file
23
audio/sounds/boss_hurt.wav.import
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/boss_hurt.wav-cf46fafb5d349a0fb70c8579bf3872a7.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://audio/sounds/boss_hurt.wav"
|
||||||
|
dest_files=[ "res://.import/boss_hurt.wav-cf46fafb5d349a0fb70c8579bf3872a7.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=0
|
BIN
audio/sounds/scrump_die.wav
Normal file
BIN
audio/sounds/scrump_die.wav
Normal file
Binary file not shown.
23
audio/sounds/scrump_die.wav.import
Normal file
23
audio/sounds/scrump_die.wav.import
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamSample"
|
||||||
|
path="res://.import/scrump_die.wav-93f5cb13b5531416f8704d98fcf005e0.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://audio/sounds/scrump_die.wav"
|
||||||
|
dest_files=[ "res://.import/scrump_die.wav-93f5cb13b5531416f8704d98fcf005e0.sample" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=0
|
2
game.gd
2
game.gd
|
@ -38,6 +38,8 @@ const a_shoot = preload("res://audio/sounds/a_egg_shoot.ogg")
|
||||||
const a_die = preload("res://audio/sounds/die.wav")
|
const a_die = preload("res://audio/sounds/die.wav")
|
||||||
const a_die_skeleton = preload("res://audio/sounds/die_skeleton.wav")
|
const a_die_skeleton = preload("res://audio/sounds/die_skeleton.wav")
|
||||||
const a_gover = preload("res://audio/sounds/gover.wav")
|
const a_gover = preload("res://audio/sounds/gover.wav")
|
||||||
|
const a_boss_hurt = preload("res://audio/sounds/boss_hurt.wav")
|
||||||
|
const a_scrump_die = preload("res://audio/sounds/scrump_die.wav")
|
||||||
#Objects
|
#Objects
|
||||||
const block_text = preload("res://objects/hud/blocktext.tscn")
|
const block_text = preload("res://objects/hud/blocktext.tscn")
|
||||||
const pause_screen = preload("res://objects/hud/pause_screen.tscn")
|
const pause_screen = preload("res://objects/hud/pause_screen.tscn")
|
||||||
|
|
|
@ -29,7 +29,7 @@ func _on_ShootTimer_timeout():
|
||||||
|
|
||||||
func die():
|
func die():
|
||||||
hp -= 1
|
hp -= 1
|
||||||
Game.play_sound(Game.a_die,Game.ac_boss)
|
Game.play_sound(Game.a_boss_hurt,Game.ac_boss)
|
||||||
match hp:
|
match hp:
|
||||||
2:
|
2:
|
||||||
emit_signal("entered_phase", 2)
|
emit_signal("entered_phase", 2)
|
||||||
|
@ -41,7 +41,7 @@ func die():
|
||||||
shoot_time = Vector2(0.3,0.5)
|
shoot_time = Vector2(0.3,0.5)
|
||||||
0:
|
0:
|
||||||
Game.instance_node(Gore,position.x,position.y,map)
|
Game.instance_node(Gore,position.x,position.y,map)
|
||||||
Game.play_sound(Game.a_gover,Game.ac_boss)
|
Game.play_sound(Game.a_scrump_die,Game.ac_boss)
|
||||||
emit_signal("entered_phase",4)
|
emit_signal("entered_phase",4)
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue