Frame 1
function pause(ms) {
start = getTimer();
while ((start + ms) > getTimer()) {
}
}
function levelinit(leveldata) {
if (currlevel == 21) {
chara._x = -30;
chara._y = -30;
removeMovieClip("menubar");
removeMovieClip("bg");
removeMovieClip("messagebox");
errorscreen("Congratulations, you have completed all of the levels...\nThat must've taken a lot of patience.\nSelect Custom Level from the main menu to access the editor, and make some awesome levels to share.");
return(undefined);
}
var _local7 = leveldata.indexOf("/");
time = leveldata.substr(0, _local7);
if (_local7 < 0) {
time = "6000";
} else {
leveldata = leveldata.substr(_local7 + 1, (leveldata.length - _local7) + 1);
}
timeupdate = getTimer() + 1000;
attachMovie("menubar", "menubar", 412);
freemove = 0;
freemovetext = "";
reversedirection = 0;
revcontrol = "";
var _local2 = 0;
while (_local2 < leveldata.length) {
var _local5 = leveldata.charAt(_local2);
var _local4 = (_local2 % 20) * 32;
var _local3 = Math.floor(_local2 / 20) * 32;
symbol = 0;
switch (_local5) {
case "." :
break;
case "E" :
symbol = "platforme";
// unexpected jump
case "J" :
symbol = "platform_jump";
// unexpected jump
case "D" :
symbol = "platform_dirdown";
// unexpected jump
case "R" :
symbol = "platform_dirright";
// unexpected jump
case "U" :
symbol = "platform_dirup";
// unexpected jump
case "x" :
symbol = "platform_xmove";
// unexpected jump
case "y" :
symbol = "platform_ymove";
// unexpected jump
case "L" :
symbol = "platform_dirleft";
// unexpected jump
case "e" :
symbol = "platform_noclear1";
// unexpected jump
case "f" :
symbol = "platform_noclear2";
// unexpected jump
case "g" :
symbol = "platform_noclear3";
// unexpected jump
case "h" :
symbol = "platform_noclear4";
// unexpected jump
case "0" :
symbol = "platform_zero";
// unexpected jump
case "^" :
symbol = "platform_zeroplus";
// unexpected jump
case "C" :
symbol = "platform_reversedir";
// unexpected jump
case "N" :
symbol = "platform_returndir";
// unexpected jump
case "!" :
symbol = "platform_freemove";
// unexpected jump
case "" :
symbol = "platform_teleport";
// unexpected jump
case "*" :
symbol = "platform_unlimited";
// unexpected jump
case "S" :
symbol = "platforms";
chara._x = _local4;
chara._y = _local3;
px = _local4 / 32;
py = _local3 / 32;
targetx = px;
targety = py;
// unexpected jump
default :
if ((_local5 > 0) && (_local5 < 9)) {
symbol = "platform" + _local5;
}
if (!symbol) {
errorscreen("The map contains 1 or more invalid tiles...");
return(undefined);
}
instance = "instance" + (_local2 + 10);
attachMovie(symbol, instance, _local2 + 10);
this[instance]._x = _local4;
this[instance]._y = _local3;
currtile = this[instance];
map[_local4 / 32][_local3 / 32].depth = _local2 + 10;
map[_local4 / 32][_local3 / 32].type = symbol;
}
_local2++;
}
}
function SubtractTile() {
temp = _level0.getInstanceAtDepth(map[px][py].depth);
t = map[px][py].type.substr(8, 1);
if (t == 1) {
temp.removeMovieClip();
attachMovie("disappear", "disappear", map[px][py].depth);
disappear._x = px * 32;
disappear._y = py * 32;
_level0.snddisappear.start(0, 0);
map[px][py].type = 0;
map[px][py].depth = 0;
}
if ((t > 1) && (t < 9)) {
_level0.sndclick.start(0, 0);
t = "platform" + (t - 1);
temp = t;
attachMovie(t, temp, map[px][py].depth);
map[px][py].type = t;
}
t = map[px][py].type.substr(16, 1);
if (t == 1) {
temp.removeMovieClip();
map[px][py].type = 0;
map[px][py].depth = 0;
}
if ((t > 1) && (t < 9)) {
t = "platform_noclear" + (t - 1);
temp = t;
attachMovie(t, temp, map[px][py].depth);
map[px][py].type = t;
}
_level0.getInstanceAtDepth(map[px][py].depth)._x = px * 32;
_level0.getInstanceAtDepth(map[px][py].depth)._y = py * 32;
}
function CheckPlayerTile() {
checktile = 1;
temp = _level0.getInstanceAtDepth(map[px][py].depth);
t = map[px][py].type;
if ((temp == undefined) || (t == "platform_zero")) {
if (freemove) {
freemove--;
freemovetext = "Free move: " + freemove;
return(undefined);
}
freemovetext = "";
Message("\nYou fell off...\nThe password is " + passwords[currlevel]);
tries++;
if (customlevel.length < 1) {
levelinit(levels[currlevel]);
} else {
levelinit(customlevel);
}
} else {
freemove = 0;
freemovetext = "";
}
if (t == "platforme") {
var _local2 = 0;
while (_local2 < 20) {
var _local1 = 0;
while (_local1 < 15) {
z = map[_local2][_local1].type;
z = z.substr(8, 1);
if ((z > 0) && (z < 9)) {
Message("\nYou must clear all the normal numbered platforms before you can finish a level");
return(undefined);
}
_local1++;
}
_local2++;
}
currlevel++;
if (customlevel) {
customlevel = "";
gotoAndStop (1);
return(undefined);
}
Message((("\nYou won! On to level " + currlevel) + "...\nThe password is ") + passwords[currlevel]);
tries = 0;
ClearLevel();
attachMovie("bg_" + (currlevel % 10), "bg", 1);
levelinit(levels[currlevel]);
return(undefined);
}
if (t == "platform_jump") {
_level0.sndjump.start(0, 0);
Jump(currentdirection);
}
if (t == "platform_freemove") {
freemove = 5;
freemovetext = "Free move: 5";
}
if (t == "platform_reversedir") {
reversedirection = true;
revcontrol = "Reverse Controls";
}
if (t == "platform_returndir") {
reversedirection = false;
revcontrol = "";
}
if (t == "platform_zeroplus") {
var _local2 = 0;
while (_local2 < 20) {
var _local1 = 0;
while (_local1 < 15) {
if (map[_local2][_local1].type == "platform_zero") {
map[_local2][_local1].type = "platform_unlimited";
var _local3 = _level0.getInstanceAtDepth(map[_local2][_local1].depth);
var _local5 = _local3._x;
var _local4 = _local3._y;
attachMovie("platform_unlimited", _local3, map[_local2][_local1].depth);
_level0.getInstanceAtDepth(map[_local2][_local1].depth)._x = _local5;
_level0.getInstanceAtDepth(map[_local2][_local1].depth)._y = _local4;
}
_local1++;
}
_local2++;
}
}
if (t == "platform_teleport") {
_level0.sndteleport.start(0, 0);
var _local2 = 0;
while (_local2 < 20) {
var _local1 = 0;
while (_local1 < 15) {
if ((_local2 == px) && (_local1 == py)) {
} else if (map[_local2][_local1].type == "platform_teleport") {
px = _local2;
py = _local1;
targetx = _local2;
targety = _local1;
chara._x = _local2 * 32;
chara._y = _local1 * 32;
return(undefined);
}
_local1++;
}
_local2++;
}
}
}
function MapTile() {
this.depth = 0;
this.type = 0;
}
function Message(text) {
pausetime = true;
attachMovie("messagebox", "messagebox", 411);
msg = text;
messagebox._x = 320;
messagebox._y = 400;
}
function ClearLevel() {
var _local2 = 0;
while (_local2 < 20) {
var _local1 = 0;
while (_local1 < 15) {
var _local3 = _level0.getInstanceAtDepth(map[_local2][_local1].depth);
if (_local3 != undefined) {
_local3.removeMovieClip();
}
map[_local2][_local1].type = 0;
map[_local2][_local1].depth = 0;
_local1++;
}
_local2++;
}
}
function dir(dir) {
var _local2 = chara._x;
var _local1 = chara._y;
attachMovie(dir, "chara", 410);
chara._x = _local2;
chara._y = _local1;
}
function Jump(dir) {
togglism = !togglism;
jumpdir = dir;
jumptime = totalframes;
}
function errorscreen(msg) {
_level0.msg = 0;
removeMovieClip(messagebox);
removeMovieClip(menubar);
error = msg;
gotoAndStop (8);
}
ClearLevel();
i = 0;
msg = 0;
togglism = 0;
customlevel = "";
px = 0;
py = 0;
checktile = 0;
targetx = 0;
targety = 0;
if (!currlevel) {
currlevel = 1;
}
currentdirection = 1;
tries = 0;
seconds = 0;
totalframes = 0;
frames = 0;
jumpdir = 0;
jumptime = 0;
pausetext = "";
freemove = 0;
freemovetext = "";
reversedirection = 0;
revcontrol = "";
pausetime = false;
time = 0;
timeupdate = getTimer() + 1000;
timetext = "inf";
removeMovieClip("menubar");
removeMovieClip("bg");
removeMovieClip("messagebox");
var sndclick = new Sound();
sndclick.attachSound("sndclick");
var sndteleport = new Sound();
sndteleport.attachSound("sndteleport");
var sndjump = new Sound();
sndjump.attachSound("sndjump");
var snddisappear = new Sound();
snddisappear.attachSound("snddisappear");
levels = ["level0", "20/...............................1231.............S..2.1..............1..2.1..............1..1.E..............12121................1.11", "25/.............................................22................1133111.............1.....2...........112.S1..31..........1.2..1..E...........11211211.................1.1.................122", "35/......................eee1111.............e.e2..1.............eee1..E.............1...1..............131..2...............11.S3111111..........1..2.1.1.1.........12..1.21211..........221111...........", "40/..............................................................1111................1..1................1..1................111221111...............1E11321.........11111.221.1.........111111..S.1..............111111", "35/......................................................................2................1124................2..1............2.215312..........113.2.33.3..........S.111....4...............E34.2.................211", "35/............................111.................1.11................1111111E..............1...................1211..........S111...1.1...........111R11111..........1111.1.............12....1..............112321", "40/...........................11..................12L111...............R11.U...E.............1.U...111........441R11.111.1........1.1..J.1.111.....S11222....1............1.112J.1.111........111.**.111.1.............*...111", "50/..........................................S1211.................2.11................2211..................11.111.........1...J1..U.1.........1J...342C.1.................1.E..............111.....1...........1.J.....1........1111......2........1......1!..1........N2871122", "60/....................................111..............eee1.1............11e..2R1............1.eee3.1.........1111..122L1.......112.111..1..1.......1.2S1.2.121.1.......122.123.11111...E.1...J1.244.1......1.111111.1.211......1...D1...1..........1357111111.............*", "60/.............................11RD...........1111.1.ey.......12..1..1.11211.1.....21232e1...1.1.2.....1.....11211.!.1.....1111....*.....1....Je..1.See^...321.111ee.11.1.e....2...1.1...1..1ee1...111ee.1...11.1..1..0E.1.fg1....112111..1..2.f..............11121e", "60/...............................1...................2...........12...!..1............21111..22...........U.......1.........111....211y.........1J1.1113.1y.........112.1.J2.SJ1.........D1.1..1...232......21..11111111.1......3J.........111......21........E", "60/.......................11111..............11...1..............U1233211............11..1..1..............11211J..............1.1.1.21..........11U.11113SE1........1.1.11..21.1........11211..1...1...............22221..................11", "60/...............................................................E....1..............1.11121Le..11S....2.1.1..11.e..111...*8121C..1..fee111....2.U....1..e.........111..112..e........111...1.3eee........111...122e.J...............1.eee...............1.2.................11421.................1.1", "60/............11..................1J..........1111................J..1...................21D..............S223.1..J111E..........221..1U.........1J...2..............1....1..............11...2111............2...J..1J...J1......2J...J.11J...1..............................J...................1", "120/............................111.........E.......1.11441C....1..N11.1221.44.1....1..J.111.......1....1...111........1....3.2.1.121x1111......41411..2.1...3211...3.2J1112.S...2..1...2.321..1.1...1.J1...1......111D111111...1..1......1.........11141..1J.1.1..........1...1111121.J.................111", "120/...2221......101.......2..111....1.1.....1121E2L21111211.....1....J12...D22......1......11111.D111...1..........1111.J...1....J....11..2.....21..JSJ..J21123.....11...J....U.11................121UD11..............2.UL......1...J1....211.......111221....1.1..........1^1....101..........11", "120/.....................21.1111222..11E.....2..1.1...2..1......121S11112.2..1......1.1111..2.2..1......1...131422123211...4331.1..2.......21113.1.11212.111...1..1222.1.2.1^1.1..111.11.111.2111112102.1.12...111.....2..2.11134321...11145.121.1..111.*..2132.1.2241...1153211221.111.1......*", "180/.....................12..*J...J1..J...1...1......1.1......1.1131111.1521......1.1.2...J..2........1.111.1J...1.1E.....1.....11J...J1..J...e...1111...J121J111.e...1...1...1.1...1.1.......1.1SJ1.121.1.......1.1.1.1..1..1..111..1J111J11.2.J1..UJ1.......1...1.....U1.......11111", "180/.221.1112211........11.112...111...D*222R1.112.1...J...*.1.211.1.1141......*.1.21111...2.......*.1.....^..0E12344.1*.1.....J..1S1..J2.JJ.1.......11111221....1.J.....1.J.1..121J.1.1...J.1.1.1.1.1...1.J..*211123L12.1JJ.1.....1..111.1..1.*.1.....1......2211.*.1.....1......RL...*.1.1...111111111111U*222", "180/.........................1122.....1111.......1..2.....1..1......1J..22.11R21.1......1.........1.1......1..J..1121.1J1......1..1..J....1.......12212..1J..J1......1...2..S2..1...1....1.1.1...1..1...1....11311.J11121..J1.....11.......1......eJ..1E.J.....1......14412111J...J1", ""];
stop();
attachMovie("character_d", "chara", 410);
chara._x = -30;
chara._y = -30;
passwords = ["level0", "none", "easyaspie", "itbegins", "cbgames", "thislevelisawasteoftime", "longwaytogo", "luckyseven", "letsjump", "invertedcontrolsohmy", "gettingtougher", "somegenericpassword", "numanuma", "hello", "jumpy", "canyouhandleit", "theyonlygetharder", "thissucks", "igiveup", "annoyinglyhard", "yesitspossible"];
map = [[new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()], [new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile(), new MapTile()]];
Frame 2
function toggletimer() {
pausetime = !pausetime;
if (!pausetime) {
play();
} else {
stop();
}
if (pausetime) {
pausetext = "Paused";
} else {
pausetext = "";
}
}
function dotime() {
if (!pausetime) {
if (getTimer() > timeupdate) {
time = time - 1;
timeupdate = getTimer() + 1000;
}
var _local1 = time % 60;
var _local2 = Math.floor(time / 60);
if (_local1 < 10) {
_local1 = "0" + _local1;
}
timetext = (_local2 + ":") + _local1;
if (!time) {
Message("\nOut of time!");
levelinit(levels[currlevel]);
}
}
}
function doframerate() {
totalframes++;
frames++;
if (getTimer() > (seconds + 1000)) {
seconds = seconds + 1000;
fps = "FPS: " + frames;
frames = 0;
}
}
function moveup() {
var _local1 = _level0.map[px][py].type;
if (((((((((px == targetx) && (py == targety)) && (!msg)) && (!pausetime)) && (!jumptime)) && (_local1 != "platform_dirdown")) && (_local1 != "platform_dirleft")) && (_local1 != "platform_dirright")) && (_local1 != "platform_xmove")) {
SubtractTile();
targety--;
currentdirection = 4;
dir("character_u");
}
}
function movedown() {
var _local1 = _level0.map[px][py].type;
if (((((((((px == targetx) && (py == targety)) && (!msg)) && (!pausetime)) && (!jumptime)) && (_local1 != "platform_dirleft")) && (_local1 != "platform_dirup")) && (_local1 != "platform_dirright")) && (_local1 != "platform_xmove")) {
SubtractTile();
targety++;
currentdirection = 1;
dir("character_d");
}
}
function moveleft() {
var _local1 = _level0.map[px][py].type;
asdf = _local1;
if (((((((((px == targetx) && (py == targety)) && (!msg)) && (!pausetime)) && (!jumptime)) && (_local1 != "platform_dirdown")) && (_local1 != "platform_dirup")) && (_local1 != "platform_dirright")) && (_local1 != "platform_ymove")) {
SubtractTile();
targetx--;
currentdirection = 2;
dir("character_l");
}
}
function moveright() {
var _local1 = _level0.map[px][py].type;
if (((((((((px == targetx) && (py == targety)) && (!msg)) && (!pausetime)) && (!jumptime)) && (_local1 != "platform_dirdown")) && (_local1 != "platform_dirup")) && (_local1 != "platform_dirleft")) && (_local1 != "platform_ymove")) {
SubtractTile();
targetx++;
currentdirection = 3;
dir("character_r");
}
}
if ((px != targetx) || (py != targety)) {
if (targetx > px) {
px = px + 0.125;
}
if (targety > py) {
py = py + 0.125;
}
if (targetx < px) {
px = px - 0.125;
}
if (targety < py) {
py = py - 0.125;
}
chara._x = px * 32;
chara._y = py * 32;
checktile = 0;
}
if (((px == targetx) && (py == targety)) && (!checktile)) {
CheckPlayerTile();
}
doframerate();
dotime();
if (jumptime) {
dist = 0.137931034482759;
targety = targety + ((((totalframes - jumptime) * 2) - 30) / 100);
if (jumpdir == 1) {
targety = targety + dist;
}
if (jumpdir == 4) {
targety = targety - dist;
}
if (jumpdir == 2) {
targetx = targetx - dist;
}
if (jumpdir == 3) {
targetx = targetx + dist;
}
px = targetx;
py = targety;
chara._x = px * 32;
chara._y = py * 32;
if ((totalframes - jumptime) > 28) {
jumptime = 0;
targetx = Math.round(targetx);
targety = Math.round(targety);
px = targetx;
py = targety;
CheckPlayerTile();
}
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 8
stop();
Frame 9
function placetile() {
var _local4 = _level0.s._x / 32;
var _local3 = _level0.s._y / 32;
var _local1 = _local4 + (_local3 * 20);
var _local2 = "tile" + _local1;
attachMovie(_level0.selectedtile, _local2, _local1);
_level0.getInstanceAtDepth(_local1)._x = _level0.s._x;
_level0.getInstanceAtDepth(_local1)._y = _level0.s._y;
System.setClipboard("gay");
}
function cleartile() {
var _local4 = _level0.s._x / 32;
var _local3 = _level0.s._y / 32;
var _local2 = _local4 + (_local3 * 20);
var _local1 = "tile" + _local2;
removeMovieClip(_local1);
}
if (!s) {
attachMovie("selectrectangle", "s", 350);
}
if (_ymouse > 32) {
s._x = Math.floor(_xmouse / 32) * 32;
s._y = Math.floor(_ymouse / 32) * 32;
var x = (s._x / 32);
var y = (s._y / 32);
} else {
clearInterval(interval);
}
Frame 10
gotoAndPlay (9);
Frame 11
stop();
Symbol 91 MovieClip [disappear] Frame 10
this.removeMovieClip();
Symbol 138 MovieClip [messagebox] Frame 10
stop();
Symbol 152 Button
on (release) {
_level0.gotoAndPlay(1);
}
Symbol 156 Button
on (release) {
with (_level0) {
tries++;
if (customlevel.length < 1) {
levelinit(levels[currlevel]);
} else {
levelinit(customlevel);
}
}
}
Symbol 159 Button
on (release) {
_level0.toggletimer();
}
Symbol 172 Button
on (release) {
getURL ("http://members.shaw.ca/ejackisch/cbg/", "_BLANK");
}
Symbol 173 Button
on (release) {
gotoAndStop (11);
}
Symbol 174 Button
on (release) {
gotoAndPlay (4);
}
Symbol 175 Button
on (release) {
gotoAndStop (7);
}
Symbol 181 Button
on (release) {
attachMovie("bg_" + (currlevel % 10), "bg", 1);
levelinit(levels[currlevel]);
gotoAndPlay (2);
}
Symbol 183 Button
on (keyPress "<Left>") {
if (reversedirection) {
moveright();
} else {
moveleft();
}
}
on (keyPress "<Right>") {
if (reversedirection) {
moveleft();
} else {
moveright();
}
}
on (keyPress "<Up>") {
if (reversedirection) {
movedown();
} else {
moveup();
}
}
on (keyPress "<Down>") {
if (reversedirection) {
moveup();
} else {
movedown();
}
}
on (keyPress "<Enter>") {
pausetime = false;
messagebox.removeMovieClip();
msg = false;
}
Symbol 185 Button
on (release) {
gotoAndStop (5);
}
Symbol 187 Button
on (release) {
gotoAndStop (1);
}
Symbol 189 Button
on (release) {
gotoAndStop (6);
}
Symbol 204 Button
on (release) {
levelinit(customlevel);
gotoAndPlay (2);
}
Symbol 207 Button
on (release) {
getURL ("http://members.shaw.ca/ejackisch/editor.html", "_BLANK");
}
Symbol 209 Button
on (release) {
gotoAndPlay (1);
}
Symbol 214 Button
on (press) {
interval = setInterval(placetile, 20);
}
on (release) {
clearInterval(interval);
}
on (keyPress "<Delete>") {
cleartile();
}
on (keyPress "<Enter>") {
pausetime = false;
messagebox.removeMovieClip();
msg = false;
}
Symbol 215 Button
on (release) {
selectedtile = "platform1";
}
Symbol 216 Button
on (release) {
selectedtile = "platform2";
}
Symbol 217 Button
on (release) {
selectedtile = "platform3";
}
Symbol 218 Button
on (release) {
selectedtile = "platform4";
}
Symbol 219 Button
on (release) {
selectedtile = "platform5";
}
Symbol 220 Button
on (release) {
selectedtile = "platform6";
}
Symbol 221 Button
on (release) {
selectedtile = "platform7";
}
Symbol 222 Button
on (release) {
selectedtile = "platform8";
}
Symbol 223 Button
on (release) {
selectedtile = "platforms";
}
Symbol 224 Button
on (release) {
selectedtile = "platforme";
}
Symbol 226 Button
on (release) {
Message("gay");
}
Symbol 255 Button
on (release) {
function passwordlevel(l) {
currlevel = l;
bg_num = currlevel % 10;
if (!bg_num) {
bg_num = 10;
}
attachMovie("bg_" + bg_num, "bg", 1);
levelinit(levels[currlevel]);
gotoAndPlay (2);
}
var a = _level0.inputpw;
if (a == passwords[1]) {
passwordlevel(1);
}
if (a == passwords[2]) {
passwordlevel(2);
}
if (a == passwords[3]) {
passwordlevel(3);
}
if (a == passwords[4]) {
passwordlevel(4);
}
if (a == passwords[5]) {
passwordlevel(5);
}
if (a == passwords[6]) {
passwordlevel(6);
}
if (a == passwords[7]) {
passwordlevel(7);
}
if (a == passwords[8]) {
passwordlevel(8);
}
if (a == passwords[9]) {
passwordlevel(9);
}
if (a == passwords[10]) {
passwordlevel(10);
}
if (a == passwords[11]) {
passwordlevel(11);
}
if (a == passwords[12]) {
passwordlevel(12);
}
if (a == passwords[13]) {
passwordlevel(13);
}
if (a == passwords[14]) {
passwordlevel(14);
}
if (a == passwords[15]) {
passwordlevel(15);
}
if (a == passwords[16]) {
passwordlevel(16);
}
if (a == passwords[17]) {
passwordlevel(17);
}
if (a == passwords[18]) {
passwordlevel(18);
}
if (a == passwords[19]) {
passwordlevel(19);
}
if (a == passwords[20]) {
passwordlevel(20);
}
}