random_set_seed(current_time);

global.player = icl(oPlayer);
global.pauser = noone;
global.UI = icl(oUI);

global.can_pause = true;

// physics relevant
global.g = 0.5;

// time relevant
global.hitstop = 0;
global.time_scale = 1.0;
global.time_scale_t = 1.0;
global.time_scale_duration = 180;

// player status
global.playerHP = global.save_data.player.maxHP;
global.playerINK = 0;

// room transiting
global.door_direction = undefined;
global.target_door_id = -1;
global.target_room = noone;

global.speedrun = false;
global.speedrun_timer = 0;