<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>sSMissile</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>-5000000</depth>
  <persistent>-1</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>&lt;undefined&gt;</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>global.monsterStr = "Monster";

randomize();

targetx = 48;
targety = 432;
targetroom = rm_a5h01;
screen_surface = -1;
global.targetroom = initroom;
black = 0;
global.classicmode = 0;
global.godmode = 0;
global.enablecontrol = 1;
global.floormaterial = 0;
global.soundamb = 0;
global.moverobj = 0;
global.roomtime = 0;
global.quake = 0;
global.saveslot = 0;
global.save_room = initroom;
global.waterlevel = 0;
global.watertype = 0;
global.wateroffset = 0;
global.monstersleft = 0;
global.gametime = 0;
global.etanks = 0;
global.itemstaken = 0;
global.difficulty = 0;
global.darkness = 0;
global.controltype = 0;
global.vibL = 0;
global.vibR = 0;
global.qbg = 0;
quitgame = 0;
reloadgame = 0;
c_id = 0;
global.gotolog = -1;
global.tiptext = "";
displaygui = 1;
guifont1 = font_add_sprite(512, 48, 0, 1);
guifont1a = font_add_sprite(513, 48, 0, 1);
global.guifont2 = font_add_sprite(514, 48, 0, 0);
showfps = 0;
global.creditsmenuopt = 0;
hudflash = 0;
hudflashfx = 0;
hpalarm = 0;
init = 1;
alarm[0] = 2;
alarm[2] = 1;
nofade = 0;
spr = 0;
sprx = 0;
spry = 0;
aspr1 = sHPickup;
asprx = 0;
aspry = 0;
aspr2 = sHPickup;
aspr2x = 0;
aspr2y = 0;
aspr2a = 0;
mirror = 0;
imgindex = 0;
sprblend = 0;
armmsl = 0;
m1 = "0";
m2 = "0";
m3 = "0";
m4 = "0";
m5 = "0";
m6 = "0";
m7 = "0";
m8 = "0";
m9 = "0";
m10 = "0";
m11 = "0";
m12 = "0";
m13 = "0";
m14 = "0";
m15 = "0";
dm1 = "0";
dm2 = "0";
dm3 = "0";
dm4 = "0";
dm5 = "0";
dm6 = "0";
dm7 = "0";
dm8 = "0";
dm9 = "0";
dm10 = "0";
dm11 = "0";
dm12 = "0";
dm13 = "0";
dm14 = "0";
dm15 = "0";
moffx = 0;
moffy = 0;
kLeft = 0;
kRight = 0;
kUp = 0;
kDown = 0;
kJump = 0;
kAim = 0;
kAim2 = 0;
kFire = 0;
kMissile = 0;
kLeftPressed = 0;
kRightPressed = 0;
kUpPressed = 0;
kDownPressed = 0;
kJumpPressed = 0;
kAimPressed = 0;
kAim2Pressed = 0;
kFirePressed = 0;
kMissilePressed = 0;
kLeftPushedSteps = 0;
kRightPushedSteps = 0;
kUpPushedSteps = 0;
kDownPushedSteps = 0;
kJumpPushedSteps = 0;
kAimPushedSteps = 0;
kAim2PushedSteps = 0;
kFirePushedSteps = 0;
kMissilePushedSteps = 0;
kLeftReleased = 0;
kRightReleased = 0;
kUpReleased = 0;
kDownReleased = 0;
kJumpReleased = 0;
kAimReleased = 0;
kAim2Released = 0;
kFireReleased = 0;
kMissileReleased = 0;
kSelect = 0;
kSelectPressed = 0;
kSelectPushedSteps = 0;
kSelectReleased = 0;
kStart = 0;
kStartPressed = 0;
kStartPushedSteps = 0;
kStartReleased = 0;
kWalk = 0;
kWalkPushedSteps = 0;
kWalkPressed = 0;
kWalkReleased = 0;
kMorph = 0;
kMorphPushedSteps = 0;
kMorphPressed = 0;
kMorphReleased = 0;
kMenu1 = 0;
kMenu1PushedSteps = 0;
kMenu1Pressed = 0;
kMenu1Released = 0;
kMenu2 = 0;
kMenu2PushedSteps = 0;
kMenu2Pressed = 0;
kMenu2Released = 0;
kExit = 0;
markfr = 0;
display_scale = 0;
displayx = 0;
displayy = 0;
gui_surface = 0;
global.opfullscreen = 0;
global.opscale = 0;
global.opwritelog = 0;
global.opapril = 0;

//Gatordile additions
Trail_P_R = 255;
Trail_P_G = 255;
Trail_P_B = 0;
Trail_V_R = 0;
Trail_V_G = 255;
Trail_V_B = 0;
Trail_G_R = 0;
Trail_G_G = 255;
Trail_G_B = 255;

Trail_P_R_F = 0;
Trail_P_G_F = 160;
Trail_P_B_F = 240;

Trail_V_R_F = 237;
Trail_V_G_F = 255;
Trail_V_B_F = 135;

Trail_G_R_F = 239;
Trail_G_G_F = 183;
Trail_G_B_F = 255;

Trail_P_R_F_SR = 0;
Trail_P_G_F_SR = 160;
Trail_P_B_F_SR = 240;

Trail_V_R_F_SR = 135;
Trail_V_G_F_SR = 255;
Trail_V_B_F_SR = 135;

Trail_G_R_F_SR = 239;
Trail_G_G_F_SR = 183;
Trail_G_B_F_SR = 255;

// Fix for odd issue with palette draws
if (os_type == os_android) {
    PowerPalette = -1;
    VariaPalette = -1;
    GravityPalette = -1;
    AlphaPalette = -1;
    GammaPalette = -1;
    ZetaPalette = -1;
    OmegaPalette = -1;
    QueenPalette = -1;
    ZetaBlur = -1;
    QueenDead = -1;
    QueenBloodDrop = -1;
    QueenBloodParticle = -1;
}


scr_load_mods(); //Additional modifiers

global.percentscreen = bg_SubScrTop;
global.percent1M = 129;
global.percent1SM = 211;
global.percent1PB = 275;
global.percent2M = 128;
global.percent2SM = 210;
global.percent2PB = 274;

    
pressed_key = false;
shader_on = false;
palette_number = 0;
mod_defaultfilter = 1;

scr_default_global_items();

global.lastSpawnRoom = -1;
global.roomsSinceLastSpawn = 0;
global.lastSeptoggSound = -1;
mod_previous_room = room;
global.gamemode = 0;



// Set the default fonts.
globalvar fontGUI, fontGUI2, fontMenuSmall, fontMenuTiny, fontMenuSmall2, fontSubScr;
fontGUI        = fontGUIDefault;
fontGUI2       = fontGUI2Default;
fontMenuSmall  = fontMenuSmallDefault;
fontMenuTiny   = fontMenuTinyDefault;
fontMenuSmall2 = fontMenuSmall2Default;
fontSubScr     = fontSubScrDefault;

GUIOffset          = 0;
subScrHeaderOffset = 0;
subScrItemOffset   = 0;

// Replace the default fonts if replacement files exist.
ini_open("lang/fonts/sizes.ini");

if(file_exists("lang/fonts/04b09.ttf")) {
    font_replace(fontGUI, "lang/fonts/04b09.ttf", ini_read_real('Sizes', '04b09_(large)', 16), false, false, 32, 255);
    font_replace(fontSubScr, "lang/fonts/04b09.ttf", ini_read_real('Sizes', '04b09_(small)', 8), false, false, 32, 255);
    GUIOffset          = ini_read_real('Offsets', '04b09_(large)_offset', 0);
    subScrHeaderOffset = ini_read_real('Offsets', '04b09_(small)_offset', 0);
}

if(file_exists("lang/fonts/Acknowledge_TT_BRK.ttf")) {
    font_replace(fontGUI2, "lang/fonts/Acknowledge_TT_BRK.ttf", ini_read_real('Sizes', 'Acknowledge_TT_BRK', 13), false, false, 32, 255);
}

if(file_exists("lang/fonts/uni_05_53.ttf")) {
    font_replace(fontMenuSmall, "lang/fonts/uni_05_53.ttf", ini_read_real('Sizes', 'uni_05_53', 8), false, false, 32, 255);
}

if(file_exists("lang/fonts/04b24.ttf")) {
    font_replace(fontMenuTiny, "lang/fonts/04b24.ttf", ini_read_real('Sizes', '04b24', 16), false, false, 32, 255);
    subScrItemOffset = ini_read_real('Offsets', '04b24_offset', -6);
}

if(file_exists("lang/fonts/Glasstown_NBP.ttf")) {
    font_replace(fontMenuSmall2, "lang/fonts/Glasstown_NBP.ttf", ini_read_real('Sizes', 'Glasstown_NBP', 16), false, false, 32, 255);
}

ini_close();



// NOT Dymanic Version Number
global.fontVersion = font_add_sprite_ext(sVersionFont, "V.0123456789", true, 1);

global.am2r_version = "V1.5.2"; // no longer dynamic, not worth the effort to maintain - mostly because of Android oddities.

// Android
global.gamestarted = 0;
global.wave_height = 1;


/* 
    A3 sand tile map pre-load.
    Don't. Touch. These.
*/

global.sand_map = ds_map_create();
ds_map_read(global.sand_map,"[encoded data, 29578 characters]");

global.sandcrn0_map = ds_map_create();
ds_map_read(global.sandcrn0_map,"[encoded data, 29578 characters]");

global.sandcrn1_map = ds_map_create();
ds_map_read(global.sandcrn1_map,"[encoded data, 29578 characters]");

global.sandcrn2_map = ds_map_create();
ds_map_read(global.sandcrn2_map,"[encoded data, 29578 characters]");

global.sandcrn3_map = ds_map_create();
ds_map_read(global.sandcrn3_map,"[encoded data, 29578 characters]");



// 8-bit shader.
shader_on = false;
palette_number = 0;
pressed_key = false;

//Translator Test Room 1.4.3
//translatestep = 0;

//Seed Control 1.4.3
seed = 0;

//IGT mod 1.4.3
mod_IGT = 0;

// Really?
pal_swap_init_system(shPaletteSwap);

// 1.5.1
// This does nothing now, I just didn't want to change all instances of this back to 0.
// Yes, I'm lazy.
// I believe this now works for Linux. Perhaps.
global.gamepadIndex = 0;


/*if ((os_type == os_android) || (os_type == os_linux)) {
    // do nothing
}*/

// WIDESCREEN

widescreen = 0;
widescreen_surface = -1;
widescreen_space = 0;
widescreen_switch = false;

xShake = 0;
yShake = 0;

// This list holds the widths for all the rooms and is vital for widescreen transitions. 
// If rooms are added (or, presumably, removed) it must be recreated.
room_width_map = ds_map_create();
ds_map_read(room_width_map, "[encoded data, 17920 characters]");

</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="11">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Room map generation
/*
file_text_write_string(txt, string(room_get_name(room)));
file_text_writeln(txt);
file_text_write_string(txt, string(room_width));
file_text_writeln(txt);
file_text_writeln(txt);

file_text_close(txt);*/
/*
ds_map_add(room_width_map, room, room_width);

if (room != room_last)room_goto_next();
else {
    txt = file_text_open_write("rooms.txt");
    file_text_write_string(txt, ds_map_write(room_width_map));
    file_text_close(txt);
}

alarm[11] = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="4">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>global.opfullscreen = !global.opfullscreen;
set_fullscreen(global.opfullscreen);
if (!global.opfullscreen) {
    global.opscale = 1;
    alarm[1] = 1;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="2">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame) {
    if (hpalarm == 0) alarm[2] = 10;
    if (hpalarm == 1) {
        hudflash = 10;
        alarm[2] = 90;
    }
    if (hpalarm == 2) {
        hudflash = 12;
        alarm[2] = 60;
    }
    if (hpalarm == 3) {
        hudflash = 15;
        alarm[2] = 30;
    }
} else alarm[2] = 30;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="1">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>set_window_scale(global.opscale);
display_reset(0, global.opvsync);
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (joystick_exists(global.opjoyid)) {
    global.joydetected = 1;
} else global.joydetected = 0;
init = 0;
//touch_scale = 4;
if (os_type == os_android) instance_create(0, 0, oTouchControls);
//instance_create(0, 0, oTouchControls);
if (1) {
    room_change(19, 0);
} else {
    load_character_vars();
    reset_map();
    init_map();
    global.save_room = initroom;
    set_start_location();
    global.ingame = 1;
    global.newgame = 0;
    global.targetx = 32;
    global.targety = 128;
    global.start_room = asset_get_index("rm_a7b10");
    get_loadout(10);
    mus_set_current(273);
    room_change(global.start_room, 3);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="1">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Check for gamepad input on Android.
if(init) exit;

if(((os_type == os_android) || (os_type == os_linux)) &amp;&amp; global.joydetected == 0) {
    for (var i = 0; i &lt; gamepad_get_device_count(); i++;) {
        if (gamepad_is_connected(i)) {
            for(var ia = 0; ia &lt; gamepad_button_count(i); ia++) {
                if(gamepad_button_check(i, ia)) { 
                    global.opjoyid = i;
                    global.joydetected = 1;
                }
            }
            for(var ia = 0; ia &lt; gamepad_axis_count(i); ia++) {
                if(gamepad_axis_value(i, ia) != 0) {
                    global.opjoyid = i;
                    global.joydetected = 1;
                }
            }
        }
    }
}
</string>
          </argument>
        </arguments>
      </action>
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Input3D Code
/*
for (var i = 0; i &lt; listSize; i++) {
    inputHeld[i] = min(1, keyboard_check(inputArray[i, 0]) + input_gamepad_check(gamepadIndex, inputArray[i, 1])); // 
    inputReleased[i] = 0;
    if (inputHeld[i] != 0) {
        input[i] += 1;
    } else {
        if (input[i] != 0) {
            inputReleased[i] = 1;
        }
        input[i] = 0;
    }
    
    if (input[i] == 1) {
        inputPressed[i] = 1;
    } else {
        inputPressed[i] = 0;
    }
}
</string>
          </argument>
        </arguments>
      </action>
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Widescreen space

if (widescreen) {
    widescreen_space = 106;
} else {
    widescreen_space = 0;
    //view_enabled[1] = false;
    view_visible[1] = false;
}

//wAlpha = max(0, wAlpha - (1/30));
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>//
if (fadedone &gt;= 1 &amp;&amp; room != rm_transition &amp;&amp; room != rm_subscreen &amp;&amp; room != itemroom &amp;&amp; room != rm_death) {
    global.transitiontype = 0;
    event_user(4);
}
//
if (!init) {
    if (os_type == os_linux) {
        linux_keys();
    } else if (os_type == os_android) {
        touch_keys();
    } else { // windows, any other weird platforms
        check_keys();
    }
    if (room != rm_transition) global_control();
    if (kExit &amp;&amp; global.opexitkeyenable) game_end();
    if (kStart &amp;&amp; kStartPushedSteps == 0) event_user(0);
}
//
if (global.ingame == 1) {
    if (malpha &gt; -1) malpha -= 0.02;
    if (malpha &lt;= 0) malpha = 1;
    markfr += 0.25;
    if (markfr &gt; 4) markfr = 0;
    global.roomtime += 1;
    //
    hpalarm = 0;
    if (true)
    {
        if (global.maxhealth &lt; 100)
        {
            //if (global.playerhealth &lt; 50) hpalarm = 1;
            if (global.playerhealth &lt; 30) hpalarm = 2;
            if (global.playerhealth &lt; 10) hpalarm = 3;
        }
        else if (global.maxhealth &lt; 500)
        {
            if (global.playerhealth &lt; 50) hpalarm = 1;
            if (global.playerhealth &lt; 30) hpalarm = 2;
            if (global.playerhealth &lt; 10) hpalarm = 3;
        }
        else
        {
            if (global.playerhealth &lt; 100) hpalarm = 1;
            if (global.playerhealth &lt; 50) hpalarm = 2;
            if (global.playerhealth &lt; 25) hpalarm = 3;
        }
    }
    else
    {
        if (global.maxhealth == 99) {
            if (global.playerhealth &lt; 50) hpalarm = 1;
            if (global.playerhealth &lt; 30) hpalarm = 2;
            if (global.playerhealth &lt; 10) hpalarm = 3;
        } else if (global.maxhealth &gt; 99) {
            if (global.playerhealth &lt; 100) hpalarm = 1;
            if (global.playerhealth &lt; 60) hpalarm = 2;
            if (global.playerhealth &lt; 20) hpalarm = 3;
        }
    }
    //
    if (hudflash &gt; 0) {
        hudflash -= 1;
        if (hudflashfx &gt; 0) {
            hudflashfx -= 1;
        } else hudflashfx = 4;
    }
}
// view:
view_wport[0] = 320;
view_wview[0] = 320;
view_hport[0] = 240;
view_hview[0] = 240; // DEBUG CAMERA
/*view_wport[0] = 640;
view_wview[0] = 640;
view_hport[0] = 480;
view_hview[0] = 480;*/
// display offset:
if (window_get_fullscreen()) {
    if (global.opscale == 0) {
        if (!widescreen) {
            if (display_get_height() &lt; display_get_width()) {
                display_scale = display_get_height() / 240;
            } else display_scale = display_get_width() / (320);
        } else {
            
            if (((display_get_width() / (320 + widescreen_space)) * 240) &lt;= display_get_height()) {
                display_scale = display_get_width() / (320 + widescreen_space);
            }
            else display_scale = display_get_height() / 240;
        }
    } else display_scale = global.opscale;

    //displayx = display_get_width() / 2 - 320 * display_scale / 2;
    //displayy = display_get_height() / 2 - 240 * display_scale / 2;
    displayx = display_get_width() / 2 - (320 + widescreen_space) * display_scale / 2;
    displayy = display_get_height() / 2 - 240 * display_scale / 2;
} else {
    if (window_get_height() &lt; window_get_width()) {
        display_scale = window_get_height() / 240;
    } else display_scale = window_get_width() / (320 + widescreen_space);
    //displayx = window_get_width() / 2 - 320 * display_scale / 2;
    //displayy = window_get_height() / 2 - 240 * display_scale / 2;
    displayx = window_get_width() / 2 - (320 + widescreen_space) * display_scale / 2;
    displayy = window_get_height() / 2 - 240 * display_scale / 2;
}
if (surface_exists(gui_surface)) { // fix for widescreen HUD issues on boot
    if (surface_get_width(gui_surface) != (320 + widescreen_space)) surface_free(gui_surface);
}
if (!surface_exists(gui_surface)) gui_surface = surface_create(320 + widescreen_space, 240);
if (surface_exists(gui_surface)) {
    surface_set_target(gui_surface);
    draw_clear_alpha(c_black, 0);
    if (global.ingame &amp;&amp; displaygui &amp;&amp; instance_exists(oCharacter)) {
        draw_gui();
        // debug room drawing for widescreen debug
        /*if (global.opshowhud &amp;&amp; instance_exists(oTestKeys)) { 
            draw_set_font(fontMenuSmall);
            draw_text(4, 24, room_get_name(room));
        }*/
    }
    surface_reset_target();
}

if (debug &gt; 0) {
    global.playerhealth = global.maxhealth;
    global.missiles = 99;
    global.smissiles = 99;
    global.pbombs = 99;
}
//
if (black &gt; 0) black -= 1;
// a workaround for Alt getting stuck on Alt+Tab:
if (os_is_paused()) keyboard_clear(vk_alt);
// on HTML5, keep the game in center of the tab:
if (os_is_browser) set_fullscreen(global.opfullscreen);

//Translator Test Room
/*if(global.ingame &amp;&amp; oControl.mod_debugRoom == 1) {
switch translatestep
{
    case 0:
        if keyboard_check(ord('T')) { translatestep++; }
        break;
    case 1:
        if keyboard_check(ord('R')) { translatestep++; }
        break;
    case 2:
        if keyboard_check(ord('A')) { translatestep++; }
        break;
    case 3:
        if keyboard_check(ord('N')) { translatestep++; }
        break;
    case 4:
        if keyboard_check(ord('S')) { translatestep++; }
        break;
    case 5:
        if keyboard_check(ord('L')) { translatestep++; }
        break;
    case 6:
        if keyboard_check(ord('A')) { translatestep++; }
        break;
    case 7:
        if keyboard_check(ord('T')) { translatestep++; }
        break;
    case 8:
        if keyboard_check(ord('E')) { translatestep++; }
        break;
    case 9:
        if keyboard_check(ord('5')) { translatestep++; }
        break;
    case 10:
        if keyboard_check(ord('7')) { translatestep++; }
        break;
    case 11:
        if keyboard_check(ord('4')) 
        {
            translatestep++; 
            global.targetx = 64;
            global.targety = 1168;
            global.camstartx = 90;
            global.camstarty = 64;
            global.offsetx = 0;
            global.offsety = 0;
            room_goto(rm_TranslationTest);
        }
        break;
    default:
        translatestep = 0;
        break;
}
}
*/
if(instance_exists(oCharacter) &amp;&amp; mod_IGT &amp;&amp; !instance_exists(oIGT)) {
    instance_create(0, 0, oIGT);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="120">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Toggle 8-bit shader.
if (keyboard_check_pressed(vk_f9) &amp;&amp; !pressed_key){
    pressed_key = true;
    palette_number++;
    scr_shader_control();
}

if (!keyboard_check_pressed(vk_f9) &amp;&amp; pressed_key) pressed_key = false;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="75">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Input3D with heavy Lojical mods - Controller Connected

if (os_type == os_linux) {
    var event = ds_map_find_value(async_load, "event_type");
    
    if (event == "gamepad discovered") {
        global.opjoyid = ds_map_find_value(async_load, "pad_index");
    } else if (event == "gamepad lost") {
        global.opjoyid = 1; // reset, I hope (PROBABLY NOT NECESSARY)
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="14">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (surface_exists(screen_surface)) {
    surface_free(screen_surface);
}
if (os_is_native) {
    if (file_exists(working_directory + "/tempscr")) {
        file_delete(working_directory + "/tempscr");
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="13">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>
if (!surface_exists(screen_surface)) screen_surface = surface_create(512+widescreen_space, 256);
surface_set_target(screen_surface);
draw_clear(c_black);

if(widescreen) {
    if (surface_exists(widescreen_surface)) {
        draw_surface(widescreen_surface, 0, 0);
    }
} else if (surface_exists(application_surface)) {
    draw_surface(application_surface, 0, 0);
}
    
surface_reset_target();
if (os_is_native) {

    if(widescreen) {
        if (surface_exists(widescreen_surface)) surface_save(widescreen_surface, working_directory + "/tempscr");
    }
    else {
        if (surface_exists(application_surface)) surface_save(application_surface, working_directory + "/tempscr");
    }
    
}





/*if (!surface_exists(screen_surface)) screen_surface = surface_create(512 + widescreen_space, 256);
surface_set_target(screen_surface);
draw_clear(c_black);

if(widescreen) if (surface_exists(widescreen_surface)) draw_surface(widescreen_surface, 0, 0);
else           if (surface_exists(application_surface)) draw_surface(application_surface, 0, 0);

surface_reset_target();
if (os_is_native) {
    if (widescreen) {
        if (surface_exists(widescreen_surface)) {
            surface_save(widescreen_surface, working_directory + "/tempscr");
        }
    } else if (surface_exists(application_surface)) {
        surface_save(application_surface, working_directory + "/tempscr");
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="12">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>m1 = string(global.map[global.mapposx, global.mapposy]);
m2 = string(global.map[global.mapposx - 2, global.mapposy - 1]);
m3 = string(global.map[global.mapposx - 1, global.mapposy - 1]);
m4 = string(global.map[global.mapposx, global.mapposy - 1]);
m5 = string(global.map[global.mapposx + 1, global.mapposy - 1]);
m6 = string(global.map[global.mapposx + 2, global.mapposy - 1]);
m7 = string(global.map[global.mapposx - 2, global.mapposy]);
m8 = string(global.map[global.mapposx - 1, global.mapposy]);
m9 = string(global.map[global.mapposx + 1, global.mapposy]);
m10 = string(global.map[global.mapposx + 2, global.mapposy]);
m11 = string(global.map[global.mapposx - 2, global.mapposy + 1]);
m12 = string(global.map[global.mapposx - 1, global.mapposy + 1]);
m13 = string(global.map[global.mapposx, global.mapposy + 1]);
m14 = string(global.map[global.mapposx + 1, global.mapposy + 1]);
m15 = string(global.map[global.mapposx + 2, global.mapposy + 1]);
dm1 = global.dmap[global.mapposx, global.mapposy];
dm2 = global.dmap[global.mapposx - 2, global.mapposy - 1];
dm3 = global.dmap[global.mapposx - 1, global.mapposy - 1];
dm4 = global.dmap[global.mapposx, global.mapposy - 1];
dm5 = global.dmap[global.mapposx + 1, global.mapposy - 1];
dm6 = global.dmap[global.mapposx + 2, global.mapposy - 1];
dm7 = global.dmap[global.mapposx - 2, global.mapposy];
dm8 = global.dmap[global.mapposx - 1, global.mapposy];
dm9 = global.dmap[global.mapposx + 1, global.mapposy];
dm10 = global.dmap[global.mapposx + 2, global.mapposy];
dm11 = global.dmap[global.mapposx - 2, global.mapposy + 1];
dm12 = global.dmap[global.mapposx - 1, global.mapposy + 1];
dm13 = global.dmap[global.mapposx, global.mapposy + 1];
dm14 = global.dmap[global.mapposx + 1, global.mapposy + 1];
dm15 = global.dmap[global.mapposx + 2, global.mapposy + 1];
if (global.mapmarker) {
    moffx = global.mapmarkerx - global.mapposx;
    moffy = global.mapmarkery - global.mapposy;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="11">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Player death transition
with (oCharacter) {
    x -= view_xview[0];
    y -= view_yview[0];
    visible = false;
}
view_xview[0] = 0;
view_yview[0] = 0;
mus_current_fadeout();
sfx_stop_all();
sfx_play(sndPlayerDeath);
global.vibL = 0;
global.vibR = 0;
global.ingame = 0;
global.darkness = 0;
global.gotolog = -1;
global.transitiontype = 3;
event_user(3);
room_goto(rm_death);
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="10">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame == 1 &amp;&amp; global.enablecontrol == 1 &amp;&amp; room != rm_transition &amp;&amp; ((!keyboard_check(vk_alt)) || (os_type == os_linux))) {
    event_user(3);
    global.ingame = 0;
    global.targetx = oCharacter.x;
    global.targety = oCharacter.y;
    global.offsetx = 0;
    global.offsety = 0;
    room_persistent = true;
    if (instance_exists(oCharacter)) with (oCharacter) persistent = false;
    if (instance_exists(oCamera)) with (oCamera) persistent = false;
    if (instance_exists(oNotification)) with (oNotification) persistent = false;
    if (instance_exists(oScanMonster)) with (oScanMonster) persistent = false;
    global.currentroom = room;
    global.ssmode = 0;
    room_change(16, 3);
    Mute_Loops();
    global.vibL = 0;
    global.vibR = 0;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="5">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>writelog("UnLoading Room " + string(room));
global.roomtime = 0;
fadedone = 0;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="4">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>writelog("Loading Room " + string(room));
if (room != rm_transition) {
    if (global.ingame == 1 &amp;&amp; instance_number(oCharacter) == 0) {
        player = instance_create(global.save_x, global.save_y, oCharacter);
        with (player) juststarted = 100;
        mus_intro_fanfare();
    }
    if (global.ingame == 1) {
        room_persistent = false;
        if (quitgame) {
            quitgame = 0;
            remove_persistent_objects();
            sfx_stop_all();
            global.ingame = 0;
            global.darkness = 0;
            if (reloadgame == 0) {
                room_change(titleroom, 1); //room_goto(titleroom);
            } else {
                global.newgame = 0;
                room_goto(rm_loading);
            }
            exit;
        }
        ApplyLightPreset();
        Unmute_Loops();
        if (instance_exists(oCharacter)) with (oCharacter) persistent = true;
        if (instance_exists(oCamera)) with (oCamera) persistent = true;
        if (instance_exists(oNotification)) with (oNotification) persistent = true;
        if (instance_exists(oScanMonster)) with (oScanMonster) persistent = true;
    }
} // if (room != rm_transition)
malpha = 1;
fadedone = 0;
if (room == rm_transition) fadedone = 1;
if (room == titleroom &amp;&amp; instance_exists(oPressStart)) {
    global.gamestarted = 0;
    if (os_type == os_android) os_powersave_enable(true);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="3">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string></string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="2">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>debug = 0;
global.ingame = 0;
global.transitiontype = 0;
global.transitionx = 0;
global.transitiony = 0;
init_languages();
load_gameoptions();
writelog("Options Loaded");
init_stats();

randomize_zeta_heads();
randomize_omega_types();

global.mod_fusion_unlocked = 0;
global.mod_gamebeaten = 0;


// Load resource mods.
load_resources();


if (file_exists("data.sav")) load_stats();

if (file_exists("data.sav"))
{
    if (file_exists("extras.sav")) load_stats2();
    else { save_stats2(); load_stats2(); }
}


//Rename old 1.2+ - 1.3.3 files names
if (!file_exists("save1") &amp;&amp; !file_exists("save2") &amp;&amp; !file_exists("save3"))
{
    if (file_exists("saveX1") &amp;&amp; !file_exists("save1")) { file_copy("saveX1", "save1"); }
    if (file_exists("saveX2") &amp;&amp; !file_exists("save2")) { file_copy("saveX2", "save2"); }
    if (file_exists("saveX3") &amp;&amp; !file_exists("save3")) { file_copy("saveX2", "save3"); }
}


global.shaders_compiled = false;
if (shaders_are_supported()) {
    if (shader_is_compiled(shGameBoy) &amp;&amp; shader_is_compiled(shPaletteSwap)) {
      global.shaders_compiled = true;
    }
}

// DEBUG

//global.mod_gamebeaten = false;
</string>
          </argument>
        </arguments>
      </action>
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Input3D Code
/*
input_init();
inputHeld[ds_list_size(inputList)-1] = 0;
inputPressed[ds_list_size(inputList)-1] = 0;
inputReleased[ds_list_size(inputList)-1] = 0;
input[ds_list_size(inputList)-1] = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="77">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>application_surface_draw_enable(0);
draw_clear(c_black);

if (shader_on &amp;&amp; global.shaders_compiled) set_8bit_shader();
/// Draw game surface
if(widescreen) {
    // used view_*port[0] instead of display* previously because Wanderer was supporting all ratios
    if (surface_exists(widescreen_surface)) draw_surface_ext(widescreen_surface, displayx+xShake, displayy+yShake, display_scale, display_scale, 0, c_white, 1);
} else {
    if (surface_exists(application_surface)) draw_game_surface(displayx, displayy, display_scale);
}



shader_reset();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="73">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/// Black bars for certain rooms in widescreen
if (widescreen &amp;&amp; ((room == rm_options) || (room == rm_controller))) {
    draw_rectangle_colour(0, 0, -(ceil(widescreen_space/2)+1), room_height, c_black, c_black, c_black, c_black, 0);
    draw_rectangle_colour(room_width, 0, room_width+(ceil(widescreen_space/2)+1), room_height, c_black, c_black, c_black, c_black, 0);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="72">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (widescreen) set_widescreen();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="64">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame) {
    if (surface_exists(gui_surface)) {
        if (global.ingame &amp;&amp; displaygui &amp;&amp; room != rm_transition &amp;&amp; instance_exists(oCharacter)) {
            var d = application_get_position();
            //draw_surface_ext(gui_surface, displayx - d[0], displayy - d[1], display_scale, display_scale, 0, -1, 1);
            /*if (!global.opfullscreen) {
                draw_surface_ext(gui_surface, ((displayx - d[0])*abs(widescreen-1)) - floor((widescreen_space/2)*display_scale), displayy - d[1], display_scale, display_scale, 0, -1, 1);
            } else {*/
                draw_surface_ext(gui_surface, (displayx - d[0]), displayy - d[1], display_scale, display_scale, 0, -1, 1);
            
            //}
        }
    }
}

//draw_text(4, 32, "Gamepad Index: " + string(global.gamepadIndex));
//draw_text(4, 48, "Control Type: " + string(global.controltype));


if (black &gt; 0) {
    draw_set_alpha(1);
    draw_set_color(c_black);
    draw_rectangle(0, 0, display_get_width(), display_get_height(), false);
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (fadedone &lt; 1 &amp;&amp; room != initroom) {
    if (global.transitiontype &lt; 2) {
        draw_set_alpha(1 - fadedone);
        draw_set_color(c_black);
        draw_rectangle(-widescreen_space/2, 0, room_width+widescreen_space/2, room_height, false);
        //if (instance_exists(oCharacter) &amp;&amp; global.transitiontype == true) draw_character(oCharacter.sprite_index, oCharacter.x, oCharacter.y, oCharacter.aspr1, oCharacter.asprx, oCharacter.aspry, oCharacter.aspr2, oCharacter.aspr2x, oCharacter.aspr2y, oCharacter.aspr2a, oCharacter.mirror, oCharacter.image_blend, 1 - fadedone, oCharacter.armmsl, oCharacter.image_index);
        if (instance_exists(oCharacter) &amp;&amp; global.transitiontype == true) { //BUGFIX
            if(oCharacter.juststarted == 0) {
                draw_set_blend_mode(bm_add);
                draw_character(oCharacter.sprite_index, oCharacter.x, oCharacter.y, oCharacter.aspr1, oCharacter.asprx, oCharacter.aspry, oCharacter.aspr2, oCharacter.aspr2x, oCharacter.aspr2y, oCharacter.aspr2a, oCharacter.mirror, oCharacter.image_blend, 1 - fadedone, oCharacter.armmsl, oCharacter.image_index);
                draw_set_blend_mode(bm_normal);
            }
        }
        fadedone += 0.1;
    }
}
draw_set_alpha(1);
if (showfps) {
    draw_set_font(fontMenuSmall);
    draw_set_color(c_white);
}

draw_set_font(fontMenuTiny);
draw_set_color(c_white);
draw_set_alpha(0.6);
draw_set_halign(fa_right);
if (0) draw_text(view_xview[0] + view_wview[0] - 2, view_yview[0] + 232, "1.1 T1");
if (0) draw_text(view_xview[0] + view_wview[0] - 2, view_yview[0] + 232, "WORK IN PROGRESS");
draw_set_alpha(1);
draw_set_halign(fa_left);

/*
//Added for testing purposes!!!
draw_set_alpha(1);
draw_set_font(fontMenuSmall);
draw_set_color(c_white);
//draw_point(x, y);

var tdraw = 6;
draw_text(10, 16, "RandomGameBool: " + string(oControl.mod_randomgamebool));

</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="123">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (!directory_exists("snap")) directory_create(working_directory + "/" + "snap");
i = -1;
do {
    i += 1;
} until (!file_exists(working_directory + "/snap/snap 0" + string(i) + ".png") &amp;&amp; !file_exists(working_directory + "/snap/snap 00" + string(i) + ".png") &amp;&amp; !file_exists(working_directory + "/snap/snap 000" + string(i) + ".png"));
sname = "snap/snap " + string(i);
if (i &lt; 1000) sname = "snap/snap 0" + string(i);
if (i &lt; 100) sname = "snap/snap 00" + string(i);
if (i &lt; 10) sname = "snap/snap 000" + string(i);
screen_save(sname + ".png");
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="122">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>showfps = !showfps;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="115">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (keyboard_check(vk_alt)) game_end();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="27">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame == 1 &amp;&amp; global.enablecontrol == 1 &amp;&amp; room != rm_transition) {
    event_user(3);
    global.ingame = 0;
    global.targetx = oCharacter.x;
    global.targety = oCharacter.y;
    global.offsetx = 0;
    global.offsety = 0;
    global.camstartx = oCamera.x;
    global.camstarty = oCamera.y;
    with (oCamera) {
        targetx = x;
        targety = y;
    }
    room_persistent = true;
    oCharacter.persistent = false;
    oCamera.persistent = false;
    if (instance_exists(oNotification)) oNotification.persistent = false;
    global.currentroom = room;
    global.transitiontype = 2;
    global.ssmode = 3;
    room_goto(rm_subscreen);
    Mute_Loops();
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="13">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (os_type != os_linux) {
    if (keyboard_check(vk_alt)) {
        alarm[4] = 1;
        black = 5;
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>-1</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
