Refactor sound

This commit is contained in:
2021-09-12 17:52:34 +01:00
parent ea333a363b
commit 51a85bd1ec
97 changed files with 409 additions and 177 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import Dodge.Picture.SizeInvariant
import Dodge.Picture.Layer
import Dodge.Render.HUD
import Dodge.Render.MenuScreen
import Dodge.SoundLogic.LoadSound
import Sound.Data
import Geometry
import Picture
@@ -77,7 +78,7 @@ soundPic :: World -> Sound -> Picture
soundPic w s = fixedSizePicClampArrow 50 50 thePic p w
where
p = _soundPos s
thePic = scale 0.15 0.15 $ text "SOUND"
thePic = scale 0.15 0.15 $ text $ soundToOnomato $ _soundChunkID s
crDraw :: World -> Creature -> Picture
crDraw w c = _crPict c c w