forked from NotAShelf/rogged
audio: add dodge, block, crit, and proc sounds
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I860551db6ca06a34785e9129b64d8fc56a6a6964
This commit is contained in:
parent
6c541bcacc
commit
c495dc1d7e
2 changed files with 35 additions and 0 deletions
23
src/audio.c
23
src/audio.c
|
|
@ -98,3 +98,26 @@ void audio_play_stairs(void) {
|
|||
play_tone(600.0f, 0.1f, 0.3f);
|
||||
play_tone(800.0f, 0.15f, 0.3f);
|
||||
}
|
||||
|
||||
void audio_play_dodge(void) {
|
||||
// High-pitched whoosh
|
||||
play_tone(900.0f, 0.08f, 0.3f);
|
||||
}
|
||||
|
||||
void audio_play_block(void) {
|
||||
// Low-then-mid metallic clang
|
||||
play_tone(250.0f, 0.06f, 0.5f);
|
||||
play_tone(350.0f, 0.04f, 0.3f);
|
||||
}
|
||||
|
||||
void audio_play_crit(void) {
|
||||
// Sharp crack with high-pitched follow
|
||||
play_tone(600.0f, 0.05f, 0.7f);
|
||||
play_tone(900.0f, 0.1f, 0.5f);
|
||||
}
|
||||
|
||||
void audio_play_proc(void) {
|
||||
// Ascending two-tone proc chime
|
||||
play_tone(500.0f, 0.08f, 0.4f);
|
||||
play_tone(700.0f, 0.1f, 0.35f);
|
||||
}
|
||||
|
|
|
|||
12
src/audio.h
12
src/audio.h
|
|
@ -25,4 +25,16 @@ void audio_play_player_damage(void);
|
|||
// Play stairs/level change sound
|
||||
void audio_play_stairs(void);
|
||||
|
||||
// Play dodge sound
|
||||
void audio_play_dodge(void);
|
||||
|
||||
// Play block sound
|
||||
void audio_play_block(void);
|
||||
|
||||
// Play critical hit sound
|
||||
void audio_play_crit(void);
|
||||
|
||||
// Play status effect proc sound
|
||||
void audio_play_proc(void);
|
||||
|
||||
#endif // AUDIO_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue