Remove loop dependency on loading dodge sounds
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
module Dodge.WorldEvent.Sound
|
||||
where
|
||||
import Dodge.Data
|
||||
|
||||
import Dodge.SoundLogic
|
||||
import System.Random
|
||||
|
||||
import Control.Lens
|
||||
|
||||
mkSoundBreakGlass :: World -> World
|
||||
mkSoundBreakGlass w = soundOnce soundid $ set randGen g w
|
||||
where
|
||||
(soundid,g) = _randGen w & randomR (37,40)
|
||||
|
||||
mkSoundSplinterGlass :: World -> World
|
||||
mkSoundSplinterGlass w = soundOnce soundid $ set randGen g w
|
||||
where
|
||||
(soundid,g) = _randGen w & randomR (33,36)
|
||||
Reference in New Issue
Block a user