- Mute implementat

This commit is contained in:
2022-12-28 19:24:20 +01:00
parent 5a980fcdfb
commit 5a27c54cb3
8 changed files with 50 additions and 25 deletions

View File

@@ -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