paperlined.org
games > pc > Spelunky > wiki
document updated 15 years ago, on Feb 8, 2009
// This is a super-map.   It's a user-created map that includes extra customization.
//
// to run this map:
//  1. save this file in the same directory as the game .exe
//  2. start the game in debug mode   (if you're running spelunky_0_99_5.oSign.exe, it automatically starts in debug mode)
//  3. press F3 to go to the load-map screen
//  4. do Tools>Execute Code:
//          execute_file("trainer1.txt")


if (room_get_name(room) != "rLoadLevel") {
    room_goto(rLoadLevel);
    show_message("This file should be executed *after* entering the load-map screen");
} else {
// ==== load the map ====
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;
global.customLevelName = 'whatever'
lvl[00] = "1@00001000000000X10000000000000000000000";
lvl[01] = "111110100000P111110000000000000000000000";
lvl[02] = "000>000<00000100000000000000000000000000";
lvl[03] = "00>00000<000_100000000000000000000000000";
lvl[04] = "0>0000000<00P100000000000000000000000000";
lvl[05] = ">000000000<00100000000000000000000000000";
lvl[06] = "0>0000000<000100000000000000000000000000";
lvl[07] = "00>00000<000_100000000000000000000000000";
lvl[08] = "000>000<0000P100000000000000000000000000";
lvl[09] = "0000101000000100000000000000000000000000";
lvl[10] = "00000&0000000100000000000000000000000000";
lvl[11] = "000000000000_100000000000000000000000000";
lvl[12] = "1111111111111100000000000000000000000000";
lvl[13] = "0000000000000000000000000000000000000000";
lvl[14] = "0000000000000000000000000000000000000000";
lvl[15] = "0000000000000000000000000000000000000000";
lvl[16] = "0000000000000000000000000000000000000000";
lvl[17] = "0000000000000000000000000000000000000000";
lvl[18] = "0000000000000000000000000000000000000000";
lvl[19] = "0000000000000000000000000000000000000000";
lvl[20] = "0000000000000000000000000000000000000000";
lvl[21] = "0000000000000000000000000000000000000000";
lvl[22] = "0000000000000000000000000000000000000000";
lvl[23] = "0000000000000000000000000000000000000000";
lvl[24] = "0000000000000000000000000000000000000000";
lvl[25] = "0000000000000000000000000000000000000000";
lvl[26] = "0000000000000000000000000000000000000000";
lvl[27] = "0000000000000000000000000000000000000000";
lvl[28] = "0000000000000000000000000000000000000000";
lvl[29] = "0000000000000000000000000000000000000000";
lvl[30] = "0000000000000000000000000000000000000000";
lvl[31] = "0000000000000000000000000000000000000000";
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);
    }
}
oLoadLevel.author = "ANONYMOUS";
global.customLevelAuthor = oLoadLevel.author;
oLoadLevel.music = "CAVE";
global.plife = 4;
global.bombs = 4;
global.rope = 4;
global.nextCustomLevel = "NONE";
oLoadLevel.blackOut = false
instance_create(oEntrance.x+8, oEntrance.y+8, oPlayer1);
instance_create(x+16, y, oLevel);
instance_create(x+16, y, oGame);

// ==== do any crazy level-customization needed ====
        // figure out coordinates by adding these to the watch:
        //      floor(oPlayer1.x/16)*16
        //      floor(oPlayer1.y/16)*16
a = instance_create(80,16,oAdvice);
a.message = "Two blocks away";
a.message2 = "all that's needed to avoid arrow traps";


// "solid" supports for oSpringTrap
instance_create(195,144,oBlock);
instance_create(195,80,oBlock);






}       // DO NOT REMOVE THIS FINAL PAREN