forked from JailDoctor/cacaus
- Musica i so amb SDL_Mixer
This commit is contained in:
10
final.lua
10
final.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user