implement ability to lose and win in fishing minigame
This commit is contained in:
16
audio.sex
16
audio.sex
@@ -2,12 +2,16 @@
|
||||
|
||||
(define MENU-CLICK-FILE "res/music/01 - Menu.ogg")
|
||||
(define FISHING-SPOT-FILE "res/music/02 - Fishing Spot.ogg")
|
||||
(define FISHING-START-FILE "res/music/03 - Catch!.ogg")
|
||||
(define GOTCHA-FILE "res/music/04 - Gotcha!.ogg")
|
||||
(define MENU-MUSIC-FILE "res/music/Catch-Phase 01 - Fishing.ogg")
|
||||
(define GAME-MUSIC-FILE "res/music/Catch-Phase 03 - Aqua World.ogg")
|
||||
(define FISHING-MUSIC-FILE "res/music/Catch-Phase 05 - FIH.ogg")
|
||||
|
||||
(var menu-click Sound)
|
||||
(var fishing-spot-sound Sound)
|
||||
(var fishing-start-sound Sound)
|
||||
(var gotcha-sound Sound)
|
||||
|
||||
(var menu-music Music)
|
||||
(var game-music Music)
|
||||
@@ -32,6 +36,8 @@
|
||||
(pub fn audio-init () void
|
||||
(= menu-click (load-sound MENU-CLICK-FILE))
|
||||
(= fishing-spot-sound (load-sound FISHING-SPOT-FILE))
|
||||
(= fishing-start-sound (load-sound FISHING-START-FILE))
|
||||
(= gotcha-sound (load-sound GOTCHA-FILE))
|
||||
(= menu-music (load-music MENU-MUSIC-FILE))
|
||||
(= game-music (load-music GAME-MUSIC-FILE))
|
||||
(= fishing-music (load-music FISHING-MUSIC-FILE)))
|
||||
@@ -43,6 +49,8 @@
|
||||
|
||||
(UnloadSound menu-click)
|
||||
(UnloadSound fishing-spot-sound)
|
||||
(UnloadSound fishing-start-sound)
|
||||
(UnloadSound gotcha-sound)
|
||||
(UnloadMusicStream menu-music)
|
||||
(UnloadMusicStream game-music)
|
||||
(UnloadMusicStream fishing-music))
|
||||
@@ -95,3 +103,11 @@
|
||||
(pub fn audio-play-fishing-spot () void
|
||||
(if (IsSoundValid fishing-spot-sound)
|
||||
(PlaySound fishing-spot-sound)))
|
||||
|
||||
(pub fn audio-play-fishing-start () void
|
||||
(if (IsSoundValid fishing-start-sound)
|
||||
(PlaySound fishing-start-sound)))
|
||||
|
||||
(pub fn audio-play-gotcha () void
|
||||
(if (IsSoundValid gotcha-sound)
|
||||
(PlaySound gotcha-sound)))
|
||||
|
||||
Reference in New Issue
Block a user