Add sound effects to example analyser
This commit is contained in:
Binary file not shown.
+24
-12
@@ -754,19 +754,30 @@ data Block = Block
|
|||||||
}
|
}
|
||||||
data BlockMaterial = WoodBlock | DirtBlock | StoneBlock | GlassBlock | MetalBlock
|
data BlockMaterial = WoodBlock | DirtBlock | StoneBlock | GlassBlock | MetalBlock
|
||||||
data Machine = Machine
|
data Machine = Machine
|
||||||
{ _mcID :: Int
|
{ _mcID :: Int
|
||||||
, _mcWallIDs :: IS.IntSet
|
, _mcWallIDs :: IS.IntSet
|
||||||
, _mcUpdate :: Machine -> World -> World
|
, _mcUpdate :: Machine -> World -> World
|
||||||
, _mcDraw :: Machine -> SPic
|
, _mcDraw :: Machine -> SPic
|
||||||
, _mcPos :: Point2
|
, _mcPos :: Point2
|
||||||
, _mcDir :: Float
|
, _mcDir :: Float
|
||||||
, _mcHP :: Int
|
, _mcHP :: Int
|
||||||
, _mcSensorAmount :: Int
|
, _mcSensor :: Sensor
|
||||||
, _mcSensorToggle :: Bool
|
, _mcDamage :: [Damage]
|
||||||
, _mcDamage :: [Damage]
|
, _mcLSs :: [Int]
|
||||||
, _mcLSs :: [Int]
|
, _mcType :: MachineType
|
||||||
, _mcType :: MachineType
|
|
||||||
}
|
}
|
||||||
|
data Sensor = NoSensor
|
||||||
|
| SensorToggleAmount
|
||||||
|
{ _sensToggle :: Bool
|
||||||
|
, _sensAmount :: Int
|
||||||
|
}
|
||||||
|
| SensorCloseToggle
|
||||||
|
{ _sensCloseToggle :: CloseToggle
|
||||||
|
, _sensToggle :: Bool
|
||||||
|
}
|
||||||
|
deriving (Eq,Ord)
|
||||||
|
data CloseToggle = NotClose | IsClose
|
||||||
|
deriving (Eq,Ord)
|
||||||
data MachineType
|
data MachineType
|
||||||
= StaticMachine
|
= StaticMachine
|
||||||
| Turret
|
| Turret
|
||||||
@@ -1037,3 +1048,4 @@ makeLenses ''TerminalParams
|
|||||||
makeLenses ''TerminalLine
|
makeLenses ''TerminalLine
|
||||||
makeLenses ''ItemValue
|
makeLenses ''ItemValue
|
||||||
makeLenses ''ScreenLayer
|
makeLenses ''ScreenLayer
|
||||||
|
makeLenses ''Sensor
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ data SoundOrigin = InventorySound
|
|||||||
| CrMouth Int
|
| CrMouth Int
|
||||||
| CrWeaponSound Int Int
|
| CrWeaponSound Int Int
|
||||||
| MachineSound Int
|
| MachineSound Int
|
||||||
|
| MachineAltSound Int
|
||||||
| TerminalSound
|
| TerminalSound
|
||||||
| WallSound Int
|
| WallSound Int
|
||||||
| CrReloadSound Int
|
| CrReloadSound Int
|
||||||
|
|||||||
@@ -227,8 +227,7 @@ defaultMachine = Machine
|
|||||||
, _mcPos = V2 0 0
|
, _mcPos = V2 0 0
|
||||||
, _mcDir = 0
|
, _mcDir = 0
|
||||||
, _mcHP = 1000
|
, _mcHP = 1000
|
||||||
, _mcSensorAmount = 0
|
, _mcSensor = NoSensor
|
||||||
, _mcSensorToggle = False
|
|
||||||
, _mcDamage = []
|
, _mcDamage = []
|
||||||
, _mcLSs = []
|
, _mcLSs = []
|
||||||
, _mcType = StaticMachine
|
, _mcType = StaticMachine
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import Dodge.Default
|
|||||||
--import Dodge.Room.RoadBlock
|
--import Dodge.Room.RoadBlock
|
||||||
import Dodge.Placement.Instance
|
import Dodge.Placement.Instance
|
||||||
import Dodge.Placement.Shift
|
import Dodge.Placement.Shift
|
||||||
|
import Dodge.SoundLogic
|
||||||
--import Dodge.Default.Room
|
--import Dodge.Default.Room
|
||||||
--import Dodge.Item.Weapon.BulletGuns
|
--import Dodge.Item.Weapon.BulletGuns
|
||||||
--import Dodge.Item.Weapon.Utility
|
--import Dodge.Item.Weapon.Utility
|
||||||
@@ -66,11 +67,11 @@ analyser' starts sucs fails afters upf pslight psmc = extTrigLitPos pslight $ \t
|
|||||||
, _termTitle = "ANALYSER"
|
, _termTitle = "ANALYSER"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
(\mc -> upf mc . (triggers . ix (fromJust $ _plMID tp) .~ const (_mcSensorToggle mc))
|
(\mc -> upf mc . (triggers . ix (fromJust $ _plMID tp) .~ const (_sensToggle $ _mcSensor mc))
|
||||||
)
|
)
|
||||||
simpleline str = TerminalLineDisplay {_tlPause = 0, _tlString = const (str,white)}
|
simpleline str = TerminalLineDisplay {_tlPause = 0, _tlString = const (str,white)}
|
||||||
testline' mcid = TerminalLineDisplay 0 (testline mcid)
|
testline' mcid = TerminalLineDisplay 0 (testline mcid)
|
||||||
testline mcid w = case w ^? machines . ix mcid . mcSensorToggle of
|
testline mcid w = case w ^? machines . ix mcid . mcSensor . sensToggle of
|
||||||
Just True -> (sucs,green)
|
Just True -> (sucs,green)
|
||||||
_ -> (fails,red)
|
_ -> (fails,red)
|
||||||
updatebuttonname = plType . putButton . btText .~ "ANALYSER"
|
updatebuttonname = plType . putButton . btText .~ "ANALYSER"
|
||||||
@@ -88,8 +89,9 @@ analyser starts sucs fails afters upf pslight psmc = extTrigLitPos pslight $ \tp
|
|||||||
Just $ psPtCont psmc
|
Just $ psPtCont psmc
|
||||||
(PutMachine aquamarine (reverse $ square 10) defaultMachine
|
(PutMachine aquamarine (reverse $ square 10) defaultMachine
|
||||||
{ _mcDraw = const . noPic . colorSH aquamarine . upperPrismPoly 25 $ square 10
|
{ _mcDraw = const . noPic . colorSH aquamarine . upperPrismPoly 25 $ square 10
|
||||||
, _mcUpdate = \mc -> (triggers . ix (fromJust $ _plMID tp) .~ const (_mcSensorToggle mc))
|
, _mcUpdate = \mc -> (triggers . ix (fromJust $ _plMID tp) .~ const (_sensToggle $ _mcSensor mc))
|
||||||
. upf mc
|
. upf mc
|
||||||
|
, _mcSensor = SensorCloseToggle NotClose False
|
||||||
}
|
}
|
||||||
) $ \anmc -> Just
|
) $ \anmc -> Just
|
||||||
$ plSpot .~ shiftRelativeToPS (V2 20 0) (_plSpot anmc)
|
$ plSpot .~ shiftRelativeToPS (V2 20 0) (_plSpot anmc)
|
||||||
@@ -104,15 +106,26 @@ analyser starts sucs fails afters upf pslight psmc = extTrigLitPos pslight $ \tp
|
|||||||
where
|
where
|
||||||
simpleline str = TerminalLineDisplay {_tlPause = 0, _tlString = const (str,white)}
|
simpleline str = TerminalLineDisplay {_tlPause = 0, _tlString = const (str,white)}
|
||||||
testline' mcid = TerminalLineDisplay 0 (testline mcid)
|
testline' mcid = TerminalLineDisplay 0 (testline mcid)
|
||||||
testline mcid w = case w ^? machines . ix mcid . mcSensorToggle of
|
testline mcid w = case w ^? machines . ix mcid . mcSensor . sensToggle of
|
||||||
Just True -> (sucs,green)
|
Just True -> (sucs,green)
|
||||||
_ -> (fails,red)
|
_ -> (fails,red)
|
||||||
updatebuttontext = plType . putButton . btText .~ "ANALYSER"
|
updatebuttontext = plType . putButton . btText .~ "ANALYSER"
|
||||||
|
|
||||||
testYourHealth :: Int -> Machine -> World -> World
|
testYourHealth :: Int -> Machine -> World -> World
|
||||||
testYourHealth hp mc w
|
testYourHealth hp mc w = case (_sensCloseToggle sens
|
||||||
| _crHP ycr >= hp && dist (_crPos ycr) (_mcPos mc) < 40
|
, _sensToggle sens
|
||||||
= w & machines . ix (_mcID mc) . mcSensorToggle .~ True
|
, _crHP ycr >= hp
|
||||||
| otherwise = w
|
, dist (_crPos ycr) (_mcPos mc) < 40) of
|
||||||
|
(_,True,_,_) -> w
|
||||||
|
(_,False,True,True) -> w
|
||||||
|
& machines . ix (_mcID mc) . mcSensor . sensToggle .~ True
|
||||||
|
& playsound dededaS
|
||||||
|
& machines . ix (_mcID mc) . mcSensor . sensCloseToggle .~ IsClose
|
||||||
|
(NotClose,_,False,True) -> w & playsound dededumS
|
||||||
|
& machines . ix (_mcID mc) . mcSensor . sensCloseToggle .~ IsClose
|
||||||
|
(_,_,_,False) -> w & machines . ix (_mcID mc) . mcSensor . sensCloseToggle .~ NotClose
|
||||||
|
_ -> w
|
||||||
where
|
where
|
||||||
|
playsound sid = soundContinue (MachineAltSound (_mcID mc)) (_mcPos mc) sid Nothing
|
||||||
ycr = you w
|
ycr = you w
|
||||||
|
sens = _mcSensor mc
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ damageSensor dt wdth upf ps = pContID ps (PutLS $ lsPosCol (V3 0 0 30) 0.1)
|
|||||||
$ \gw -> (,) gw $ PutMachine yellow (reverse $ square wdth) defaultMachine
|
$ \gw -> (,) gw $ PutMachine yellow (reverse $ square wdth) defaultMachine
|
||||||
{ _mcDraw = sensorSPic wdth $ _sensorCoding (_gParams gw) M.! dt
|
{ _mcDraw = sensorSPic wdth $ _sensorCoding (_gParams gw) M.! dt
|
||||||
, _mcUpdate = \mc -> upf mc . sensorUpdate dt mc
|
, _mcUpdate = \mc -> upf mc . sensorUpdate dt mc
|
||||||
|
, _mcSensor = SensorToggleAmount False 0
|
||||||
, _mcLSs = [lsid]
|
, _mcLSs = [lsid]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,10 +37,10 @@ sensorUpdate :: DamageType -> Machine -> World -> World
|
|||||||
sensorUpdate damF mc w = w & machines . ix mcid %~ upmc
|
sensorUpdate damF mc w = w & machines . ix mcid %~ upmc
|
||||||
& lightSources . ix lsid %~ upls
|
& lightSources . ix lsid %~ upls
|
||||||
where
|
where
|
||||||
upmc = ( mcSensorAmount %~ \x' -> min 1000 (max 0 (x' - 5 + newSense)) )
|
upmc = ( mcSensor . sensAmount %~ \x' -> min 1000 (max 0 (x' - 5 + newSense)) )
|
||||||
. ( mcHP -~ sum dam )
|
. ( mcHP -~ sum dam )
|
||||||
. (mcDamage .~ [])
|
. (mcDamage .~ [])
|
||||||
x = _mcSensorAmount mc
|
x = _sensAmount $ _mcSensor mc
|
||||||
mcid = _mcID mc
|
mcid = _mcID mc
|
||||||
lsid = head (_mcLSs mc)
|
lsid = head (_mcLSs mc)
|
||||||
(senseData,dam) = partitionEithers $ map (damageUsing damF) $ _mcDamage mc
|
(senseData,dam) = partitionEithers $ map (damageUsing damF) $ _mcDamage mc
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ putTerminal' col mcf = ps0PushPS (PutButton thebutton)
|
|||||||
{ _mcDraw = noPic . colorSH col . terminalShape
|
{ _mcDraw = noPic . colorSH col . terminalShape
|
||||||
, _mcHP = 100
|
, _mcHP = 100
|
||||||
, _mcUpdate = mcf (fromJust $ _plMID pl)
|
, _mcUpdate = mcf (fromJust $ _plMID pl)
|
||||||
|
, _mcSensor = SensorCloseToggle NotClose False
|
||||||
})
|
})
|
||||||
$ const Nothing
|
$ const Nothing
|
||||||
where
|
where
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import Dodge.Placement.Instance
|
|||||||
import Dodge.Placement.Instance.Analyser
|
import Dodge.Placement.Instance.Analyser
|
||||||
import Dodge.Default.Room
|
import Dodge.Default.Room
|
||||||
import Dodge.Item.Consumable
|
import Dodge.Item.Consumable
|
||||||
|
import Dodge.Machine
|
||||||
--import Dodge.Item.Weapon.Utility
|
--import Dodge.Item.Weapon.Utility
|
||||||
--import Dodge.LevelGen.Data
|
--import Dodge.LevelGen.Data
|
||||||
--import Geometry.Data
|
--import Geometry.Data
|
||||||
@@ -24,6 +25,7 @@ import Color
|
|||||||
import Shape
|
import Shape
|
||||||
import LensHelp
|
import LensHelp
|
||||||
import Dodge.RandomHelp
|
import Dodge.RandomHelp
|
||||||
|
import Dodge.SoundLogic
|
||||||
|
|
||||||
import qualified Data.Set as S
|
import qualified Data.Set as S
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
@@ -54,7 +56,7 @@ lasSensLightAboveDoor wth ps = extTrigLitPos
|
|||||||
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
|
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
|
||||||
( \tp -> Just $ lightSensor wth (upf $ fromJust $ _plMID tp) ps )
|
( \tp -> Just $ lightSensor wth (upf $ fromJust $ _plMID tp) ps )
|
||||||
where
|
where
|
||||||
upf trid mc w | _mcSensorAmount mc > 900 = w & triggers . ix trid .~ const True
|
upf trid mc w | _sensAmount (_mcSensor mc) > 900 = w & triggers . ix trid .~ const True
|
||||||
| otherwise = w
|
| otherwise = w
|
||||||
|
|
||||||
lightSensByDoor :: Int -> Room -> Room
|
lightSensByDoor :: Int -> Room -> Room
|
||||||
@@ -79,7 +81,7 @@ healthAnalyserByDoor = analyserByDoor
|
|||||||
"PASSED"
|
"PASSED"
|
||||||
"REQUIRES HEALTH AT LEAST 1100"
|
"REQUIRES HEALTH AT LEAST 1100"
|
||||||
(replicate 3 "")
|
(replicate 3 "")
|
||||||
(testYourHealth 1100)
|
(machineAddSound fridgeHumS $ testYourHealth 1100)
|
||||||
|
|
||||||
analyserByDoor :: [String] -> String -> String -> [String]
|
analyserByDoor :: [String] -> String -> String -> [String]
|
||||||
-> (Machine -> World -> World) -> Int -> Room -> Room
|
-> (Machine -> World -> World) -> Int -> Room -> Room
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ sensAboveDoor sensetype wth ps = extTrigLitPos
|
|||||||
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
|
(atFstLnkOutShiftBy (\(p,a) -> (p +.+ rotateV a (V2 18.5 (-2.5)), a)))
|
||||||
( \tp -> Just $ damageSensor sensetype wth (upf $ fromJust $ _plMID tp) ps )
|
( \tp -> Just $ damageSensor sensetype wth (upf $ fromJust $ _plMID tp) ps )
|
||||||
where
|
where
|
||||||
upf trid mc w | _mcSensorAmount mc > 900 = w & triggers . ix trid .~ const True
|
upf trid mc w | _sensAmount (_mcSensor mc) > 900 = w & triggers . ix trid .~ const True
|
||||||
| otherwise = w
|
| otherwise = w
|
||||||
|
|
||||||
sensInsideDoor :: DamageType -> Int -> Room -> Room
|
sensInsideDoor :: DamageType -> Int -> Room -> Room
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-- generated at 2022-03-15 09:41:05.616513405 UTC
|
-- generated at 2022-03-22 10:04:11.692663796 UTC
|
||||||
module Dodge.SoundLogic.ExternallyGeneratedSounds where
|
module Dodge.SoundLogic.ExternallyGeneratedSounds where
|
||||||
import Sound.Data
|
import Sound.Data
|
||||||
soundToVol :: SoundID -> Float
|
soundToVol :: SoundID -> Float
|
||||||
@@ -11,64 +11,66 @@ soundToVol v = case _getSoundID v of
|
|||||||
5 -> 5000
|
5 -> 5000
|
||||||
6 -> 5000
|
6 -> 5000
|
||||||
7 -> 3000
|
7 -> 3000
|
||||||
8 -> 3000
|
8 -> 5000
|
||||||
9 -> 4000
|
9 -> 3000
|
||||||
10 -> 5000
|
10 -> 4000
|
||||||
11 -> 10000
|
11 -> 5000
|
||||||
12 -> 8000
|
12 -> 5000
|
||||||
13 -> 8000
|
13 -> 10000
|
||||||
14 -> 8000
|
14 -> 8000
|
||||||
15 -> 8000
|
15 -> 8000
|
||||||
16 -> 10000
|
16 -> 8000
|
||||||
17 -> 3000
|
17 -> 8000
|
||||||
18 -> 4000
|
18 -> 10000
|
||||||
19 -> 5000
|
19 -> 3000
|
||||||
20 -> 5000
|
20 -> 4000
|
||||||
21 -> 20000
|
21 -> 5000
|
||||||
22 -> 4000
|
22 -> 5000
|
||||||
23 -> 10000
|
23 -> 20000
|
||||||
24 -> 8000
|
24 -> 4000
|
||||||
25 -> 4000
|
25 -> 10000
|
||||||
26 -> 2000
|
26 -> 8000
|
||||||
27 -> 6000
|
27 -> 4000
|
||||||
28 -> 500
|
28 -> 2000
|
||||||
29 -> 5000
|
29 -> 6000
|
||||||
30 -> 8000
|
30 -> 500
|
||||||
31 -> 8000
|
31 -> 5000
|
||||||
32 -> 8000
|
32 -> 8000
|
||||||
33 -> 5000
|
33 -> 8000
|
||||||
34 -> 8000
|
34 -> 8000
|
||||||
35 -> 4000
|
35 -> 5000
|
||||||
36 -> 3000
|
36 -> 8000
|
||||||
37 -> 8000
|
37 -> 4000
|
||||||
38 -> 2000
|
38 -> 3000
|
||||||
39 -> 10000
|
39 -> 8000
|
||||||
40 -> 5000
|
40 -> 2000
|
||||||
41 -> 2000
|
41 -> 10000
|
||||||
42 -> 3000
|
42 -> 5000
|
||||||
43 -> 5000
|
43 -> 2000
|
||||||
44 -> 10000
|
44 -> 3000
|
||||||
45 -> 12000
|
45 -> 5000
|
||||||
46 -> 5000
|
46 -> 10000
|
||||||
47 -> 10000
|
47 -> 12000
|
||||||
48 -> 12000
|
48 -> 5000
|
||||||
49 -> 2000
|
49 -> 10000
|
||||||
50 -> 3000
|
50 -> 12000
|
||||||
51 -> 8000
|
51 -> 2000
|
||||||
52 -> 5000
|
52 -> 3000
|
||||||
53 -> 2000
|
53 -> 8000
|
||||||
54 -> 3000
|
54 -> 5000
|
||||||
55 -> 10000
|
55 -> 2000
|
||||||
56 -> 500
|
56 -> 3000
|
||||||
57 -> 10000
|
57 -> 10000
|
||||||
58 -> 3000
|
58 -> 500
|
||||||
59 -> 15000
|
59 -> 10000
|
||||||
60 -> 10000
|
60 -> 3000
|
||||||
61 -> 3000
|
61 -> 15000
|
||||||
62 -> 1000
|
62 -> 10000
|
||||||
63 -> 15000
|
63 -> 3000
|
||||||
64 -> 10000
|
64 -> 1000
|
||||||
65 -> 8000
|
65 -> 15000
|
||||||
|
66 -> 10000
|
||||||
|
67 -> 8000
|
||||||
_ -> 50
|
_ -> 50
|
||||||
soundToOnomato :: SoundID -> String
|
soundToOnomato :: SoundID -> String
|
||||||
soundToOnomato v = case _getSoundID v of
|
soundToOnomato v = case _getSoundID v of
|
||||||
@@ -80,64 +82,66 @@ soundToOnomato v = case _getSoundID v of
|
|||||||
5 -> "UGGAUGGA"
|
5 -> "UGGAUGGA"
|
||||||
6 -> "KRTNKL"
|
6 -> "KRTNKL"
|
||||||
7 -> "DWAAH"
|
7 -> "DWAAH"
|
||||||
8 -> "BWAH"
|
8 -> "DEDEDUM"
|
||||||
9 -> "TIPTOP"
|
9 -> "BWAH"
|
||||||
10 -> "TINKLE"
|
10 -> "TIPTOP"
|
||||||
11 -> "TATATA"
|
11 -> "DEDEDA"
|
||||||
12 -> "CRSK"
|
12 -> "TINKLE"
|
||||||
13 -> "CRNK"
|
13 -> "TATATA"
|
||||||
14 -> "TAKH"
|
14 -> "CRSK"
|
||||||
15 -> "CRUNK"
|
15 -> "CRNK"
|
||||||
16 -> "SCREE"
|
16 -> "TAKH"
|
||||||
17 -> "TNKTNKTNK"
|
17 -> "CRUNK"
|
||||||
18 -> "TIPTAP"
|
18 -> "SCREE"
|
||||||
19 -> "WRR"
|
19 -> "TNKTNKTNK"
|
||||||
20 -> "HSS"
|
20 -> "TIPTAP"
|
||||||
21 -> "BOOM"
|
21 -> "WRR"
|
||||||
22 -> "CLNK"
|
22 -> "HSS"
|
||||||
23 -> "BRAP"
|
23 -> "BOOM"
|
||||||
24 -> "CRSNK"
|
24 -> "CLNK"
|
||||||
25 -> "TAPP"
|
25 -> "BRAP"
|
||||||
26 -> "BLIH"
|
26 -> "CRSNK"
|
||||||
27 -> "TAPTIP"
|
27 -> "TAPP"
|
||||||
28 -> "CLICK"
|
28 -> "BLIH"
|
||||||
29 -> "FWUMP"
|
29 -> "TAPTIP"
|
||||||
30 -> "RINGGG"
|
30 -> "CLICK"
|
||||||
31 -> "BRAP"
|
31 -> "FWUMP"
|
||||||
32 -> "CRUMPLE"
|
32 -> "RINGGG"
|
||||||
33 -> "TRINKL"
|
33 -> "BRAP"
|
||||||
34 -> "TAK"
|
34 -> "CRUMPLE"
|
||||||
35 -> "SMACK"
|
35 -> "TRINKL"
|
||||||
36 -> "DRR"
|
36 -> "TAK"
|
||||||
37 -> "CRASH"
|
37 -> "SMACK"
|
||||||
38 -> "SWSH"
|
38 -> "DRR"
|
||||||
39 -> "CRAKLE"
|
39 -> "CRASH"
|
||||||
40 -> "CRTINK"
|
40 -> "SWSH"
|
||||||
41 -> "FHP"
|
41 -> "CRAKLE"
|
||||||
42 -> "CHPCHPCHP"
|
42 -> "CRTINK"
|
||||||
43 -> "BIPBIPBIP"
|
43 -> "FHP"
|
||||||
44 -> "CHUGUGUG"
|
44 -> "CHPCHPCHP"
|
||||||
45 -> "BRPBRPBRP"
|
45 -> "BIPBIPBIP"
|
||||||
46 -> "CHNKCHNKCHUNK"
|
46 -> "CHUGUGUG"
|
||||||
47 -> "WRRR"
|
47 -> "BRPBRPBRP"
|
||||||
48 -> "BRDBRDBRD"
|
48 -> "CHNKCHNKCHUNK"
|
||||||
49 -> "PHF"
|
49 -> "WRRR"
|
||||||
50 -> "BWAAH"
|
50 -> "BRDBRDBRD"
|
||||||
51 -> "BEP"
|
51 -> "PHF"
|
||||||
52 -> "HSSS"
|
52 -> "BWAAH"
|
||||||
53 -> "SHUHP"
|
53 -> "BEP"
|
||||||
54 -> "THUD"
|
54 -> "HSSS"
|
||||||
55 -> "WHSSH"
|
55 -> "SHUHP"
|
||||||
56 -> "HMM"
|
56 -> "THUD"
|
||||||
57 -> "BRAHCHCH"
|
57 -> "WHSSH"
|
||||||
58 -> "TIP"
|
58 -> "HMM"
|
||||||
59 -> "BANGG"
|
59 -> "BRAHCHCH"
|
||||||
60 -> "ZHM"
|
60 -> "TIP"
|
||||||
61 -> "TAP"
|
61 -> "BANGG"
|
||||||
62 -> "BLPCHCH"
|
62 -> "ZHM"
|
||||||
63 -> "BANG"
|
63 -> "TAP"
|
||||||
64 -> "CHUGUGUG"
|
64 -> "BLPCHCH"
|
||||||
65 -> "CRISH"
|
65 -> "BANG"
|
||||||
|
66 -> "CHUGUGUG"
|
||||||
|
67 -> "CRISH"
|
||||||
_ -> error "unitialised sound"
|
_ -> error "unitialised sound"
|
||||||
soundPathList :: [String]
|
soundPathList :: [String]
|
||||||
soundPathList =
|
soundPathList =
|
||||||
@@ -149,8 +153,10 @@ soundPathList =
|
|||||||
, "seagullBark.UGGAUGGA.5000.wav"
|
, "seagullBark.UGGAUGGA.5000.wav"
|
||||||
, "smallGlass2.KRTNKL.5000.wav"
|
, "smallGlass2.KRTNKL.5000.wav"
|
||||||
, "skwareFadeTwoSec.DWAAH.3000.wav"
|
, "skwareFadeTwoSec.DWAAH.3000.wav"
|
||||||
|
, "dededum.DEDEDUM.5000.wav"
|
||||||
, "sineRaisePitchOneSec.BWAH.3000.wav"
|
, "sineRaisePitchOneSec.BWAH.3000.wav"
|
||||||
, "twoStepSlow.TIPTOP.4000.wav"
|
, "twoStepSlow.TIPTOP.4000.wav"
|
||||||
|
, "dededa.DEDEDA.5000.wav"
|
||||||
, "smallGlass4.TINKLE.5000.wav"
|
, "smallGlass4.TINKLE.5000.wav"
|
||||||
, "autoB.TATATA.10000.wav"
|
, "autoB.TATATA.10000.wav"
|
||||||
, "glassShat4.CRSK.8000.wav"
|
, "glassShat4.CRSK.8000.wav"
|
||||||
@@ -224,119 +230,123 @@ smallGlass2S :: SoundID
|
|||||||
smallGlass2S = SoundID 6
|
smallGlass2S = SoundID 6
|
||||||
skwareFadeTwoSecS :: SoundID
|
skwareFadeTwoSecS :: SoundID
|
||||||
skwareFadeTwoSecS = SoundID 7
|
skwareFadeTwoSecS = SoundID 7
|
||||||
|
dededumS :: SoundID
|
||||||
|
dededumS = SoundID 8
|
||||||
sineRaisePitchOneSecS :: SoundID
|
sineRaisePitchOneSecS :: SoundID
|
||||||
sineRaisePitchOneSecS = SoundID 8
|
sineRaisePitchOneSecS = SoundID 9
|
||||||
twoStepSlowS :: SoundID
|
twoStepSlowS :: SoundID
|
||||||
twoStepSlowS = SoundID 9
|
twoStepSlowS = SoundID 10
|
||||||
|
dededaS :: SoundID
|
||||||
|
dededaS = SoundID 11
|
||||||
smallGlass4S :: SoundID
|
smallGlass4S :: SoundID
|
||||||
smallGlass4S = SoundID 10
|
smallGlass4S = SoundID 12
|
||||||
autoBS :: SoundID
|
autoBS :: SoundID
|
||||||
autoBS = SoundID 11
|
autoBS = SoundID 13
|
||||||
glassShat4S :: SoundID
|
glassShat4S :: SoundID
|
||||||
glassShat4S = SoundID 12
|
glassShat4S = SoundID 14
|
||||||
glassShat3S :: SoundID
|
glassShat3S :: SoundID
|
||||||
glassShat3S = SoundID 13
|
glassShat3S = SoundID 15
|
||||||
tap2S :: SoundID
|
tap2S :: SoundID
|
||||||
tap2S = SoundID 14
|
tap2S = SoundID 16
|
||||||
impact2S :: SoundID
|
impact2S :: SoundID
|
||||||
impact2S = SoundID 15
|
impact2S = SoundID 17
|
||||||
tone440sawtoothS :: SoundID
|
tone440sawtoothS :: SoundID
|
||||||
tone440sawtoothS = SoundID 16
|
tone440sawtoothS = SoundID 18
|
||||||
reloadS :: SoundID
|
reloadS :: SoundID
|
||||||
reloadS = SoundID 17
|
reloadS = SoundID 19
|
||||||
twoStepS :: SoundID
|
twoStepS :: SoundID
|
||||||
twoStepS = SoundID 18
|
twoStepS = SoundID 20
|
||||||
fireS :: SoundID
|
fireS :: SoundID
|
||||||
fireS = SoundID 19
|
fireS = SoundID 21
|
||||||
foamSprayFadeOutS :: SoundID
|
foamSprayFadeOutS :: SoundID
|
||||||
foamSprayFadeOutS = SoundID 20
|
foamSprayFadeOutS = SoundID 22
|
||||||
explosionS :: SoundID
|
explosionS :: SoundID
|
||||||
explosionS = SoundID 21
|
explosionS = SoundID 23
|
||||||
tapQuietS :: SoundID
|
tapQuietS :: SoundID
|
||||||
tapQuietS = SoundID 22
|
tapQuietS = SoundID 24
|
||||||
autoGunS :: SoundID
|
autoGunS :: SoundID
|
||||||
autoGunS = SoundID 23
|
autoGunS = SoundID 25
|
||||||
glassShat1S :: SoundID
|
glassShat1S :: SoundID
|
||||||
glassShat1S = SoundID 24
|
glassShat1S = SoundID 26
|
||||||
foot3S :: SoundID
|
foot3S :: SoundID
|
||||||
foot3S = SoundID 25
|
foot3S = SoundID 27
|
||||||
healS :: SoundID
|
healS :: SoundID
|
||||||
healS = SoundID 26
|
healS = SoundID 28
|
||||||
twoStep1S :: SoundID
|
twoStep1S :: SoundID
|
||||||
twoStep1S = SoundID 27
|
twoStep1S = SoundID 29
|
||||||
click1S :: SoundID
|
click1S :: SoundID
|
||||||
click1S = SoundID 28
|
click1S = SoundID 30
|
||||||
tap4S :: SoundID
|
tap4S :: SoundID
|
||||||
tap4S = SoundID 29
|
tap4S = SoundID 31
|
||||||
tinitusS :: SoundID
|
tinitusS :: SoundID
|
||||||
tinitusS = SoundID 30
|
tinitusS = SoundID 32
|
||||||
tap3S :: SoundID
|
tap3S :: SoundID
|
||||||
tap3S = SoundID 31
|
tap3S = SoundID 33
|
||||||
impact3S :: SoundID
|
impact3S :: SoundID
|
||||||
impact3S = SoundID 32
|
impact3S = SoundID 34
|
||||||
smallGlass1S :: SoundID
|
smallGlass1S :: SoundID
|
||||||
smallGlass1S = SoundID 33
|
smallGlass1S = SoundID 35
|
||||||
tap1S :: SoundID
|
tap1S :: SoundID
|
||||||
tap1S = SoundID 34
|
tap1S = SoundID 36
|
||||||
hit1S :: SoundID
|
hit1S :: SoundID
|
||||||
hit1S = SoundID 35
|
hit1S = SoundID 37
|
||||||
slideDoorS :: SoundID
|
slideDoorS :: SoundID
|
||||||
slideDoorS = SoundID 36
|
slideDoorS = SoundID 38
|
||||||
impact1S :: SoundID
|
impact1S :: SoundID
|
||||||
impact1S = SoundID 37
|
impact1S = SoundID 39
|
||||||
knifeS :: SoundID
|
knifeS :: SoundID
|
||||||
knifeS = SoundID 38
|
knifeS = SoundID 40
|
||||||
elecCrackleS :: SoundID
|
elecCrackleS :: SoundID
|
||||||
elecCrackleS = SoundID 39
|
elecCrackleS = SoundID 41
|
||||||
smallGlass3S :: SoundID
|
smallGlass3S :: SoundID
|
||||||
smallGlass3S = SoundID 40
|
smallGlass3S = SoundID 42
|
||||||
whiteNoiseFadeInS :: SoundID
|
whiteNoiseFadeInS :: SoundID
|
||||||
whiteNoiseFadeInS = SoundID 41
|
whiteNoiseFadeInS = SoundID 43
|
||||||
reload1S :: SoundID
|
reload1S :: SoundID
|
||||||
reload1S = SoundID 42
|
reload1S = SoundID 44
|
||||||
computerBeepingS :: SoundID
|
computerBeepingS :: SoundID
|
||||||
computerBeepingS = SoundID 43
|
computerBeepingS = SoundID 45
|
||||||
seagullChatter1S :: SoundID
|
seagullChatter1S :: SoundID
|
||||||
seagullChatter1S = SoundID 44
|
seagullChatter1S = SoundID 46
|
||||||
miniS :: SoundID
|
miniS :: SoundID
|
||||||
miniS = SoundID 45
|
miniS = SoundID 47
|
||||||
crankSlowS :: SoundID
|
crankSlowS :: SoundID
|
||||||
crankSlowS = SoundID 46
|
crankSlowS = SoundID 48
|
||||||
fireLoudS :: SoundID
|
fireLoudS :: SoundID
|
||||||
fireLoudS = SoundID 47
|
fireLoudS = SoundID 49
|
||||||
mini1S :: SoundID
|
mini1S :: SoundID
|
||||||
mini1S = SoundID 48
|
mini1S = SoundID 50
|
||||||
whiteNoiseFadeOutS :: SoundID
|
whiteNoiseFadeOutS :: SoundID
|
||||||
whiteNoiseFadeOutS = SoundID 49
|
whiteNoiseFadeOutS = SoundID 51
|
||||||
sineRaisePitchTwoSecS :: SoundID
|
sineRaisePitchTwoSecS :: SoundID
|
||||||
sineRaisePitchTwoSecS = SoundID 50
|
sineRaisePitchTwoSecS = SoundID 52
|
||||||
tone440S :: SoundID
|
tone440S :: SoundID
|
||||||
tone440S = SoundID 51
|
tone440S = SoundID 53
|
||||||
foamSprayLoopS :: SoundID
|
foamSprayLoopS :: SoundID
|
||||||
foamSprayLoopS = SoundID 52
|
foamSprayLoopS = SoundID 54
|
||||||
pickUpS :: SoundID
|
pickUpS :: SoundID
|
||||||
pickUpS = SoundID 53
|
pickUpS = SoundID 55
|
||||||
hitS :: SoundID
|
hitS :: SoundID
|
||||||
hitS = SoundID 54
|
hitS = SoundID 56
|
||||||
missileLaunchS :: SoundID
|
missileLaunchS :: SoundID
|
||||||
missileLaunchS = SoundID 55
|
missileLaunchS = SoundID 57
|
||||||
fridgeHumS :: SoundID
|
fridgeHumS :: SoundID
|
||||||
fridgeHumS = SoundID 56
|
fridgeHumS = SoundID 58
|
||||||
shotgunS :: SoundID
|
shotgunS :: SoundID
|
||||||
shotgunS = SoundID 57
|
shotgunS = SoundID 59
|
||||||
foot1S :: SoundID
|
foot1S :: SoundID
|
||||||
foot1S = SoundID 58
|
foot1S = SoundID 60
|
||||||
bangEchoS :: SoundID
|
bangEchoS :: SoundID
|
||||||
bangEchoS = SoundID 59
|
bangEchoS = SoundID 61
|
||||||
teleS :: SoundID
|
teleS :: SoundID
|
||||||
teleS = SoundID 60
|
teleS = SoundID 62
|
||||||
foot2S :: SoundID
|
foot2S :: SoundID
|
||||||
foot2S = SoundID 61
|
foot2S = SoundID 63
|
||||||
oldMachineBootS :: SoundID
|
oldMachineBootS :: SoundID
|
||||||
oldMachineBootS = SoundID 62
|
oldMachineBootS = SoundID 64
|
||||||
bangS :: SoundID
|
bangS :: SoundID
|
||||||
bangS = SoundID 63
|
bangS = SoundID 65
|
||||||
seagullChatterS :: SoundID
|
seagullChatterS :: SoundID
|
||||||
seagullChatterS = SoundID 64
|
seagullChatterS = SoundID 66
|
||||||
impact4S :: SoundID
|
impact4S :: SoundID
|
||||||
impact4S = SoundID 65
|
impact4S = SoundID 67
|
||||||
|
|||||||
Reference in New Issue
Block a user