- Musica i so amb SDL_Mixer

This commit is contained in:
2023-01-12 19:01:38 +01:00
parent e47441ee08
commit 1a1ff51a24
34 changed files with 169 additions and 129 deletions

View File

@@ -8,7 +8,7 @@ function final_init()
abad.update = abad_nop
_update=update_final
next_actor()
play(audio_final)
playmus(audio_final)
local r,g,b=getcolor(15)
setcolor(17,r,g,b)
--fade.fadein()
@@ -36,9 +36,9 @@ function update_final()
if btnp(KEY_M) then
mute = not mute
if mute then
stopchirp()
stopmusic()
else
play(audio_final)
playmus(audio_final)
end
end
@@ -144,9 +144,9 @@ function update_final2()
if btnp(KEY_M) then
mute = not mute
if mute then
stopchirp()
stopmusic()
else
play(audio_final)
playmus(audio_final)
end
end
final_count=final_count+1