paperlined.org
games > pc > Spelunky > levels > lemmings1
document updated 15 years ago, on Feb 10, 2009
// This is an "enhanced user map".   It's a user-created map that includes extra features not found on normal user maps.
//
// To load this map:
//  1. save this file in the same directory as the game .exe
//  2. start the game in debug mode
//          http://paperlined.org/games/pc/Spelunky/releases/spelunky_0_99_5.debug.exe
//          http://spelunky.wikia.com/wiki/Source_code#Debug_mode
//  3. In Spelunky, press F3 to go to the load-map screen
//  4. In the Debug window, do Tools>Execute Code:
//          execute_file("lemmings1.txt")



if (room_get_name(room) != "rLoadLevel") {
    room_goto(rLoadLevel);
    show_message("This file should be executed *after* entering the load-map screen");
} else {


// ==== the map that was output by the level editor ====
global.customLevelName = 'whatever';
lvl[00] = "00000000000000000000000000000000000001w3";
lvl[01] = "0000000L1000000000000000000000000000013w";
lvl[02] = "@000000L100000001000000000000000000001w3";
lvl[03] = "111111111111111111111111111111111111d13w";
lvl[04] = "00000000000000000000000000000000000101w3";
lvl[05] = "00L100000000000000000000000000000001013w";
lvl[06] = "@0L10n0000n0000n0010000000000000000101w3";
lvl[07] = "111111111111111111111111111111111101013w";
lvl[08] = "00000000000000000000000000000000000101w3";
lvl[09] = "000000000000000000000000000000000001013w";
lvl[10] = "00000000000000000000000000000000000101w3";
lvl[11] = "0000000000100000000001n0n0n00010B001013w";
lvl[12] = "d111111111111111111111111111111P11110111";
lvl[13] = "0100000000000000000000000000000000000000";
lvl[14] = "0100100000000000000000000000001000000010";
lvl[15] = "0100110000000000000000000000001000000010";
lvl[16] = "01~01110000000000000^^^^^^^0001000000010";
lvl[17] = "0111111111111111111111111111111111111110";
lvl[18] = "0000000000000000000000000000000000000010";
lvl[19] = "0010000000000000000000000000000000000010";
lvl[20] = "0010000000000000000000000000000000000010";
lvl[21] = "0010000000000000010K0K001K00K01000R00010";
lvl[22] = "1111111111111111111111111111111111111P10";
lvl[23] = "3000000000000000000000000000000000001010";
lvl[24] = "3000000000000000000000000000000000301010";
lvl[25] = "3000000000000000000000000000000000301010";
lvl[26] = "30000000000000000000000000000000003010B&";
lvl[27] = "3000000000000000000000000000000000301l1P";
lvl[28] = "3000000000000000J00000000000000000301110";
lvl[29] = "3000300000300000300000300000300000300000";
lvl[30] = "3X0_3_000_3_000_3_000_3_000_3_000_300000";
lvl[31] = "3333333333333333333333333333333333311111";
oLoadLevel.author = "INTERIOT";
oLoadLevel.music = "CAVE";
global.plife = 2;
global.bombs = 0;
global.rope = 0;
global.nextCustomLevel = "NONE";


// ==== load the level ====
// (this is largely copied from oLoadLevel's constructor)
for (j = 0; j < 32; j += 1)
{
    for (i = 0; i < 40; i += 1)
    {
        scrCreateTileObj(string_char_at(lvl[j], i+1), 16+i*16, 16+j*16);
    }
}
global.customLevel = 1;
instance_activate_all();
with oMenu instance_destroy();
with oPageUp instance_destroy();
with oPageDown instance_destroy();
with oLoadButton instance_destroy();
oLoadLevel.levelLoaded = true;
oLoadLevel.status = 1;
oLoadLevel.blackOut = false
global.customLevelAuthor = oLoadLevel.author;
instance_create(oEntrance.x+8, oEntrance.y+8, oPlayer1);
instance_create(x+16, y, oLevel);
instance_create(x+16, y, oGame);


// ==== do all the things you can't do with the level editor ====
// TODO:
//  - why do they seem to randomly die?  Does it only occur when one of the brothers scrolls offscreen?


// Create the "younger brother".  The "older brother" is the only one who gets the whip, the only one who can place bombs/ropes, 
instance_create(16+8, 112+8, oPlayer1);

// specific items you can't get otherwise
//instance_create(592, 156, oRopeThrow);


}