random_set_seed(current_time);

global.input_handles_index = [
	"debug",
	"ingame",
	"inventory",
	"title"
]
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);

_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.camera = noone;
global.player = noone;

// debugging
global.developer_mode = true;

// save file
global.save_data = {};
global.save_filename = "ddmyx_save.dat";
application_surface_draw_enable(false);