- Mute implementat
This commit is contained in:
@@ -29,13 +29,18 @@ function intro_intro()
|
||||
intro_wait=40
|
||||
_update = intro_update
|
||||
end
|
||||
if btnp(KEY_M) then
|
||||
mute = not mute
|
||||
end
|
||||
end
|
||||
|
||||
function intro_update()
|
||||
--playchirp(audio_main_song)
|
||||
--play(audio_main_song)
|
||||
--game_init(true)
|
||||
if btnp(KEY_ESCAPE) then
|
||||
game_init(true)
|
||||
elseif btnp(KEY_M) then
|
||||
mute = not mute
|
||||
end
|
||||
|
||||
intro_wait=intro_wait-1
|
||||
@@ -82,7 +87,7 @@ function intro_update()
|
||||
start_scene(scenes.intro_04,58)
|
||||
intro_step=7
|
||||
elseif intro_step==7 then
|
||||
playchirp(audio_main_song)
|
||||
play(audio_main_song)
|
||||
game_init(true)
|
||||
end
|
||||
intro_wait=40
|
||||
|
||||
Reference in New Issue
Block a user