1 |
if no_loop |
2 |
return; |
3 |
if (image_alpha < 1) |
4 |
{ |
5 |
image_alpha += 0.2 |
6 |
return; |
7 |
} |
8 |
var menu_option_number = 1 |
9 |
if retry_enabled |
10 |
menu_option_number += 1 |
11 |
if (rhythm_enabled || autofire_enabled) |
12 |
menu_option_number += 1 |
13 |
if (global.down_keyp && menu_option_number > 1) |
14 |
{ |
15 |
if (menu_option_selected < menu_option_number) |
16 |
menu_option_selected += 1 |
17 |
else |
18 |
menu_option_selected = 1 |
19 |
audio_play_sound(snd_mainmenu_select, 1, 0) |
20 |
} |
21 |
if (global.up_keyp && menu_option_number > 1) |
22 |
{ |
23 |
if (menu_option_selected > 1) |
24 |
menu_option_selected -= 1 |
25 |
else |
26 |
menu_option_selected = menu_option_number |
27 |
audio_play_sound(snd_mainmenu_select, 1, 0) |
28 |
} |
29 |
if keyboard_multicheck_pressed(0) |
30 |
{ |
31 |
if (menu_option_selected == 1) |
32 |
{ |
33 |
instance_create(0, 0, obj_death_screen_fade_out_retry_screen) |
34 |
no_loop = true |
35 |
audio_sound_gain(mus_gameover_yellow, 0, 1200) |
36 |
} |
37 |
else if (menu_option_selected == 2) |
38 |
{ |
39 |
instance_create(0, 0, obj_death_screen_fade_out_screen) |
40 |
no_loop = true |
41 |
audio_sound_gain(mus_gameover_yellow, 0, 1200) |
42 |
} |
43 |
else if (menu_option_selected == 3) |
44 |
{ |
45 |
if rhythm_enabled |
46 |
{ |
47 |
if (global.option_autorhythm == true) |
48 |
global.option_autorhythm = false |
49 |
else |
50 |
global.option_autorhythm = true |
51 |
} |
52 |
if autofire_enabled |
53 |
{ |
54 |
if (global.option_autoshoot == true) |
55 |
global.option_autoshoot = false |
56 |
else |
57 |
global.option_autoshoot = true |
58 |
} |
59 |
audio_play_sound(snd_confirm, 1, 0) |
60 |
} |
61 |
} |