| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #macro RES_W 1280
- #macro RES_H 720
- global.input_handles_index = [
- "debug",
- "ingame",
- "inventory",
- "title",
- "pause"
- ]
- create_dummy_handle();
- for(var i = 0; i < array_length(global.input_handles_index); i++)
- variable_instance_set(id, global.input_handles_index[i], global.handle_dummy);
-
- autoreg_handle("ingame", "ingame", 1);
- autoreg_handle("title", "title", 100);
- global.altcontrol = false;
- _jump_p = undefined;
- _jump_r = undefined;
- _left = undefined;
- _right = undefined;
- _up = undefined;
- _down = undefined;
- _dash = undefined;
- _attack = undefined;
- _inventory = undefined;
- _return = undefined;
- _newgame = undefined;
- _continue = undefined;
- _quitgame = undefined;
- _close = undefined;
- global.in_game_manager = noone;
- global.inventory = noone;
- global.player = noone;
- global.camera = icl(oCamera);
- global.time_scale = 1.0;
- // debugging
- global.developer_mode = true;
- // save file
- global.save_data = {};
- global.dialogue = {};
- global.save_filename = "ddmyx_save.dat";
- icl(oAudioManager);
- icl(oTyper);
- if global.developer_mode
- show_debug_overlay(true);
- // title UI (BETA)
- menu_options = ["CONTINUE", "NEW GAME", "EXIT"];
- menu_index = 0;
- animation_timer = 0;
- lerp_speed = 0.15;
- for(var i = 0; i < array_length(menu_options); i++)
- option_scale[i] = 1;
|