43 lines
709 B
Plaintext
43 lines
709 B
Plaintext
if keyboard_check_pressed(vk_escape)
|
|
{
|
|
game_end()
|
|
}
|
|
if keyboard_check(vk_up) and timer >= 6
|
|
{
|
|
timer = 0
|
|
menuselect -= 1
|
|
if menuselect < 0
|
|
{
|
|
menuselect = menuitems - 1
|
|
}
|
|
}
|
|
if keyboard_check(vk_down) and timer >= 6
|
|
{
|
|
timer = 0
|
|
menuselect += 1
|
|
if menuselect > menuitems - 1
|
|
{
|
|
menuselect = 0
|
|
}
|
|
}
|
|
if keyboard_check_pressed(ord("Z")) and tagged = 0
|
|
{
|
|
tagged = 1
|
|
switch menuselect
|
|
{
|
|
case 0:
|
|
room_goto(rm_story)
|
|
break;
|
|
case 1:
|
|
room_goto(rm_settings)
|
|
break;
|
|
case 2:
|
|
game_end()
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
timer += 1
|
|
|