mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-03 06:02:15 -05:00
Add sound
This commit is contained in:
parent
63319b72bf
commit
1f9feb0d71
1
assets/sfx_plasma.raw
Normal file
1
assets/sfx_plasma.raw
Normal file
@ -0,0 +1 @@
|
||||
倓剟儏剟剝<EFBFBD>|{wtrnljhe_]_``ekry€噹敍牗安刀膊<E58880>獫拲~rlf_TNGED@GLPWaiw啂湩<E59582>箍排媒勃<E5AA92>巶wleaYQQMO[dx崱寡圪圹圹圳谫儇儇刈渍瘴<E6B88D>3#%#$""!! !!!!""#"$#*Oy澟鬃刎儋仝谯圹苘茌蒉哌哙噜噜噜哌噘磳b:00..,,++*)('&&%$#"" #Lv摰巧颂拖舷瓮掏涡言刳谳苴儇刎氽圯捺噢扌经棆俧YG0323110110/))*-/00-.-*Fu挸抑迂卦沼行鲜扰揽缆屡鞘屯适乔热适醒驶獤俽S8-15679:998984144353243@l摱卩捃谯蒉捃儇种栽蚁沼衔蜕汕量究拷冀赴<E58680>weW?%! &.58;@>?>;7467Fg懓街溥壅罩照氽谲咿僮渍灾盅炎僦踪佘谧痔攘辅憚lO3(" $$" !!!#&(0Ol嫢鞠岩艺乙唐妹破壬仁饶铝烂鞘嫌兆佘茌捋苄将殝x^PRLHEGGA@@:8:975/-)-;IXeu亜噳儌個亊倐倓姂棨<E5A782>付逗还闯炊荡讣坷华湂yl`Y\^cjmorvsputome_a``d`\[XZTQQMHJNPVZchmy啌煟ガ<E7859F>碑<EFBFBD><E7A291><EFBFBD><EFBFBD><EFBFBD>殕vncUMKGCJNPSY^djkr{€€垎|ykgkhfhklmmnnlc\TKNV_p剴灒煘"Ξ<EFBC82>腹季亢背<E4BAA2>á<EFBFBD>牐ぇ<E78990>ぃ殫悊~vmj_OD?8;79BDLW[^^Z]\QLNPXdjotromf[\`cku}€厜暈<E58E9C>肪盼哲徭桤殄徂孕寺担悅uh`WPIHIOU[afkqpppoh^XPLHEB@=<92,,-/37@JT\bgmu}剫挋く缚葡已邢嗡赡考侗<E88083><E4BE97>潨檿憮枙搹寙亇zvspjgfimoqttrqprsrsne\TLD=<;<>CO^ly倗悥湣·<E6B9A3>槕妰}}~亞剛~yuvw{}}}}{{zuy{亝姃枠棓崊倖墠敇攼媯zslghddjv倢棢ウГぇ<D093>様妴厒}~|xrmlkmmqtpkf_ZUONRSXcktxzzwuwzyxx{|ytqmcZTSSZcksy亪嫅挆湞¨<E6B99E><C2A8>━#ウΖΖ<CE96>洍憣噧}wuvy~€倖唵噯噵崓崑<E5B493>xqlha[WSRSUVX^dmx亪崙櫋Й<E6AB8B>洅寚剛€~zwwxxz{{xtoheehnt|剫彂敄槣湜棏媶剚{vqliheddefkquy|€剭枮ぇΑ棈剘{yxuqnmmmoqrsuvuspnnosx|倝憲湡ⅴΓ灅憤媺厓儊{wwwwxxwwtpnnqv}倓倉wsonnoqsstwz~亜唸垍yxyz{|~亞嫆槢灐"湑巿儊€~|{{zyz}~{xvsqoptx|~}|zxusqpnljjkmorvyz{zxwuuuwz~儑崟灖<E5B49F>幢<EFBFBD>檻妴儌們厗厓倐倐€}zwtsrpprtvxyzzxvsomjhhjmquwxwutsstuvwy|€剨悥洘#<E6B498>棓悓妶噲墜崗悙悘崑垍儉€~{xurpponkhfeegijkosuvutrommmnquz€啀敊灐 牉湚槚敁挀枠櫀憣噧<E686A3>|ywuutqnlkklmnpqrqqrrrsuvxz{ywusppppppprv|倝彃摂敂搾拻挀摂搾憪帇垍倎們儍倎€~{yxxxxxxwtrqqpqqponnmlkkkklmmpsw}倗媿帋帋彂拻憦崒寣崗悜拻拺憪帊寢妸増唲<E5A297>|ywtqnljhffeeeefhjlmmlmoqtx}倗媿帋彁悙憫憫悘弿悙悙悗寠増垐垐唴剝亐~|zxvsqomlkjjklmopqstuvvvwwy|~亜唶垑妸媼媽崓崕帋帋崑妷垎厓<E59E8E>~|{{|}}~~}{zyyxxwvvuttuuvwxxyyyzz|}~€亗剠唶垑墛媽實寢媻増噮剝亐~|{zyyyz{{{|||||{{{{|||}}}}}}}||{||}}~~~~~€€亖亖們儎剠厗唵唵唴厔儌<E58E94>~}}}}}}}}}}}}}}}}}}}}}}~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
|
20
main.c
20
main.c
@ -1832,7 +1832,25 @@ void SFG_gameStep()
|
||||
|
||||
if (canShoot)
|
||||
{
|
||||
SFG_playSoundSafe(0,255);
|
||||
uint8_t sound;
|
||||
|
||||
switch (SFG_player.weapon)
|
||||
{
|
||||
case SFG_WEAPON_KNIFE: sound = 255; break;
|
||||
case SFG_WEAPON_ROCKET_LAUNCHER:
|
||||
case SFG_WEAPON_SHOTGUN: sound = 2; break;
|
||||
case SFG_WEAPON_PLASMAGUN:
|
||||
case SFG_WEAPON_SOLUTION: sound = 4; break;
|
||||
default: sound = 0; break;
|
||||
}
|
||||
|
||||
if (sound != 255)
|
||||
SFG_playSoundSafe(sound,255);
|
||||
|
||||
if (SFG_player.weapon != SFG_WEAPON_KNIFE)
|
||||
SFG_playSoundSafe(
|
||||
(SFG_player.weapon == SFG_WEAPON_SHOTGUN ||
|
||||
SFG_player.weapon == SFG_WEAPON_MACHINE_GUN) ? 0 : 4,255);
|
||||
|
||||
if (ammo != SFG_AMMO_NONE)
|
||||
SFG_player.ammo[ammo] -= projectileCount;
|
||||
|
54
sounds.h
54
sounds.h
@ -243,6 +243,60 @@ SFG_PROGRAM_MEMORY uint8_t SFG_sounds[][SFG_SFX_SIZE] =
|
||||
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||||
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||||
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||||
136,136,136,136,136
|
||||
},
|
||||
{ // 4, plasma shot, teleport
|
||||
136,136,136,136,136,136,119,119,118,102,102,85,86,102,103,120,136,153,170,
|
||||
187,187,187,170,169,152,119,102,85,68,68,68,69,86,103,136,154,171,187,204,
|
||||
203,186,169,136,118,102,85,84,69,103,138,189,221,221,221,221,221,221,221,221,
|
||||
221,220,166,50,34,34,34,33,33,34,34,34,34,34,34,34,34,71,156,221,
|
||||
221,221,221,221,221,221,221,221,221,222,238,238,238,221,237,184,99,51,34,34,
|
||||
34,34,34,34,34,34,34,17,17,36,121,188,204,204,204,204,204,204,221,221,
|
||||
221,221,221,221,221,221,221,238,221,219,169,136,101,67,51,51,51,51,50,34,
|
||||
34,35,50,34,36,121,189,221,221,221,221,220,204,204,188,204,204,204,204,204,
|
||||
204,204,205,220,186,152,117,50,51,51,51,51,51,51,51,51,51,51,52,105,
|
||||
189,237,221,221,221,221,221,221,221,205,220,204,204,204,187,187,187,187,186,135,
|
||||
101,50,17,17,18,34,35,51,67,51,51,51,52,105,187,222,221,221,221,221,
|
||||
221,221,221,221,221,221,221,221,221,221,221,221,204,203,169,134,67,34,17,17,
|
||||
17,34,34,33,34,34,34,52,104,171,205,221,221,220,204,204,204,204,204,204,
|
||||
204,204,204,221,221,221,221,221,219,169,135,85,84,68,68,68,67,51,51,50,
|
||||
34,35,69,103,136,136,136,136,135,136,136,136,153,170,187,187,187,187,187,187,
|
||||
187,187,203,169,135,102,85,86,102,103,119,119,118,102,86,102,102,85,85,85,
|
||||
84,68,69,85,102,103,137,154,170,171,186,170,170,170,170,170,152,118,101,68,
|
||||
68,68,85,85,102,103,120,136,135,118,102,102,102,102,102,102,101,84,69,87,
|
||||
137,154,153,170,170,171,187,187,187,187,170,170,169,170,170,170,170,153,152,135,
|
||||
118,101,68,51,51,52,68,85,85,85,85,68,85,102,103,118,102,85,102,103,
|
||||
120,136,153,170,187,204,221,238,238,238,237,221,204,186,152,118,101,84,68,69,
|
||||
86,102,119,119,102,85,84,68,68,51,51,34,34,51,68,85,102,103,120,137,
|
||||
154,171,188,205,221,204,204,203,187,186,170,153,153,153,153,153,136,136,119,119,
|
||||
118,102,102,103,119,119,119,119,118,101,84,67,51,51,68,86,120,137,153,170,
|
||||
170,153,152,135,119,136,136,119,119,119,119,119,119,119,119,136,137,153,153,136,
|
||||
136,136,153,153,136,119,102,102,102,120,137,154,170,170,170,153,152,136,135,119,
|
||||
119,102,102,103,119,102,85,84,69,85,102,119,119,119,119,119,119,119,119,102,
|
||||
85,85,86,103,120,136,153,153,154,170,170,170,170,170,170,170,170,153,153,136,
|
||||
135,119,119,120,136,136,136,136,136,136,136,119,102,101,85,85,85,85,102,120,
|
||||
136,153,170,170,169,152,136,136,135,119,119,119,119,119,102,102,102,119,136,137,
|
||||
153,153,153,153,136,136,119,118,102,102,102,102,119,119,136,137,154,170,169,136,
|
||||
119,119,119,102,102,103,119,119,119,118,102,119,120,137,153,154,170,169,153,136,
|
||||
136,136,135,119,119,119,119,119,102,119,120,136,119,118,102,103,119,119,119,136,
|
||||
136,136,135,119,119,119,136,137,153,154,170,153,136,136,135,119,119,119,120,119,
|
||||
119,119,103,119,119,135,119,119,119,118,102,102,102,119,119,119,119,119,119,119,
|
||||
136,137,154,171,187,170,153,136,136,136,136,136,136,136,135,119,119,119,119,119,
|
||||
119,119,119,118,102,102,102,119,119,119,119,119,119,119,120,136,153,153,170,169,
|
||||
153,152,136,136,136,136,153,152,136,136,136,136,136,119,119,119,118,102,102,102,
|
||||
102,102,103,119,119,118,102,102,119,120,136,153,154,170,169,153,153,153,153,153,
|
||||
153,152,136,136,119,119,119,118,102,102,102,119,119,119,119,119,119,119,119,119,
|
||||
119,119,119,119,119,136,137,153,153,153,153,153,153,153,153,136,136,136,136,136,
|
||||
136,135,119,119,119,119,119,119,119,119,118,102,102,102,102,102,103,119,120,136,
|
||||
136,136,136,153,153,136,136,136,137,153,153,153,152,136,136,136,136,136,135,119,
|
||||
119,102,102,102,102,102,102,102,102,102,103,119,120,136,136,136,153,153,153,153,
|
||||
136,137,153,153,136,136,136,136,136,136,136,136,119,119,119,118,102,102,102,102,
|
||||
103,119,119,119,119,119,119,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||||
136,136,119,119,119,119,136,135,119,119,119,119,119,119,119,119,119,119,119,119,
|
||||
119,120,136,136,136,136,136,136,136,136,136,136,136,136,136,135,119,119,119,119,
|
||||
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,120,136,136,136,
|
||||
136,136,136,136,136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,119,
|
||||
119,119,119,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||||
136,136,136,136,136
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user