| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- _jump_p = ingame.kcp("Z");
- _jump_r = ingame.kcr("Z");
- _dash = ingame.kcp("C");
- _attack = ingame.kcp("X");
- _left = ingame.kc(vk_left);
- _right = ingame.kc(vk_right);
- _up = ingame.kc(vk_up);
- _down = ingame.kc(vk_down);
- _inventory = ingame.kcp("I");
- _focus = ingame.kcp("A");
- _pause = ingame.kcp(vk_escape);
- _up_title = title.kcp(vk_up);
- _down_title = title.kcp(vk_down);
- _select_title = title.kcp("Z");
- _left_inv = inventory.kcp(vk_left);
- _right_inv = inventory.kcp(vk_right);
- _up_inv = inventory.kcp(vk_up);
- _down_inv = inventory.kcp(vk_down);
- _close_inv = inventory.kcp("I") || inventory.kcp(vk_escape);
- _save_pause = pause.kcp("Z");
- _close_pause = pause.kcp("X") || pause.kcp(vk_escape);
- if room != rTitle
- exit;
- if _up_title
- {
- menu_index--;
- if menu_index < 0
- menu_index = array_length(menu_options) - 1;
- }
- if _down_title
- {
- menu_index++;
- if menu_index >= array_length(menu_options)
- menu_index = 0;
- }
- for(var i = 0; i < array_length(menu_options); i++)
- {
- var _target = (i == menu_index) ? 1.2 : 1.0;
- option_scale[i] = lerp(option_scale[i], _target, lerp_speed);
- }
- if _select_title
- {
- var _func, _ripple;
- switch(menu_index)
- {
- case 0:
- if !file_exists("ddmyx_save.dat")
- break;
- autodel_handle("title");
-
- _func = function()
- {
- icl(oRippleExpand);
-
- load_game_from_disk();
- };
- _ripple = icl(oRippleShrink, 960, 540);
- _ripple.callback = _func;
- break;
- case 1:
- autodel_handle("title");
-
- _func = function()
- {
- icl(oRippleExpand);
-
- global.save_data = get_default_save_data();
- save_game_to_disk();
- load_game_from_disk();
- };
-
- _ripple = icl(oRippleShrink, 960, 600);
- _ripple.callback = _func;
- break;
- case 3: game_end(); break;
- }
- }
- if instance_exists(info_typer1)
- info_typer1.active = (menu_index == 2);
- if instance_exists(info_typer2)
- info_typer2.active = (menu_index == 2);
- animation_timer += 0.05;
|