Frame 2
_root.stop();
Frame 3
attachMovie("levelmap", "map", this.getNextHighestDepth(), {_x:0, _y:0});
attachMovie("player1", "p1", this.getNextHighestDepth(), {_x:0, _y:0});
attachMovie("player2", "p2", this.getNextHighestDepth(), {_x:0, _y:0});
attachMovie("redblob", "p1life1", this.getNextHighestDepth(), {_x:12, _y:465});
attachMovie("redblob", "p1life2", this.getNextHighestDepth(), {_x:36, _y:465});
attachMovie("redblob", "p1life3", this.getNextHighestDepth(), {_x:60, _y:465});
attachMovie("blueblob", "p2life1", this.getNextHighestDepth(), {_x:636, _y:465});
attachMovie("blueblob", "p2life2", this.getNextHighestDepth(), {_x:612, _y:465});
attachMovie("blueblob", "p2life3", this.getNextHighestDepth(), {_x:588, _y:465});
p1xstartpos = 36;
p1ystartpos = 348;
p2xstartpos = 612;
p2ystartpos = 348;
_root.timer = 0;
_root.powerupcheck = 0;
_root.p1.xspeed = 6;
_root.p1.yspeed = 0;
_root.p1.jumppower = 12;
_root.p1.gravity = 1.5;
_root.p1.history = 1;
_root.p1.xpos = p1xstartpos;
_root.p1.ypos = p1ystartpos;
_root.p1.onground = 0;
_root.p1.lives = 3;
_root.p1.invincible = 0;
_root.p2.xspeed = 6;
_root.p2.yspeed = 0;
_root.p2.jumppower = 12;
_root.p2.gravity = 1.5;
_root.p2.history = 1;
_root.p2.xpos = p2xstartpos;
_root.p2.ypos = p2ystartpos;
_root.p2.onground = 0;
_root.p2.lives = 3;
_root.p2.invincible = 0;
Frame 4
_root.p1.yspeed = _root.p1.yspeed + _root.p1.gravity;
_root.p2.yspeed = _root.p2.yspeed + _root.p2.gravity;
if (_root.p1.yspeed > 24) {
_root.p1.yspeed = 24;
}
if (_root.p2.yspeed > 24) {
_root.p2.yspeed = 24;
}
if (_root.p1.yspeed >= 0) {
_root.p1.yd = Math.floor(((_root.p1.ypos + 11) + _root.p1.yspeed) / 24);
} else {
_root.p1.yd = Math.floor(((_root.p1.ypos - 12) + _root.p1.yspeed) / 24);
}
if (_root.p2.yspeed >= 0) {
_root.p2.yd = Math.floor(((_root.p2.ypos + 11) + _root.p2.yspeed) / 24);
} else {
_root.p2.yd = Math.floor(((_root.p2.ypos - 12) + _root.p2.yspeed) / 24);
}
_root.p1.xd1 = Math.floor((_root.p1.xpos - 12) / 24);
_root.p1.xd2 = Math.floor((_root.p1.xpos + 11) / 24);
_root.p2.xd1 = Math.floor((_root.p2.xpos - 12) / 24);
_root.p2.xd2 = Math.floor((_root.p2.xpos + 11) / 24);
if ((eval ("_root.map.M" add _root.p1.yd)[_root.p1.xd1] == 1) && (eval ("_root.map.M" add _root.p1.yd)[_root.p1.xd2] == 1)) {
_root.p1.ypos = _root.p1.ypos + _root.p1.yspeed;
removeMovieClip(man1);
if (_root.p1.yspeed > 0) {
attachMovie("redblobdown", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else {
attachMovie("redblobup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
} else if (_root.p1.yspeed >= 0) {
_root.p1.ypos = ((_root.p1.yd - 1) * 24) + 12;
_root.p1.yspeed = 0;
removeMovieClip(man1);
attachMovie("redblob", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
_root.p1.onground = 1;
} else {
_root.p1.ypos = ((_root.p1.yd + 1) * 24) + 12;
_root.p1.yspeed = 0;
removeMovieClip(man1);
attachMovie("redblob", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
if ((eval ("_root.map.M" add _root.p2.yd)[_root.p2.xd1] == 1) && (eval ("_root.map.M" add _root.p2.yd)[_root.p2.xd2] == 1)) {
_root.p2.ypos = _root.p2.ypos + _root.p2.yspeed;
removeMovieClip(man2);
if (_root.p2.yspeed > 0) {
attachMovie("blueblobdown", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else {
attachMovie("blueblobup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
} else if (_root.p2.yspeed >= 0) {
_root.p2.ypos = ((_root.p2.yd - 1) * 24) + 12;
_root.p2.yspeed = 0;
removeMovieClip(man2);
attachMovie("blueblob", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
_root.p2.onground = 1;
} else {
_root.p2.ypos = ((_root.p2.yd + 1) * 24) + 12;
_root.p2.yspeed = 0;
removeMovieClip(man2);
attachMovie("blueblob", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
if (((_root.p1.xpos < (_root.p2.xpos + 24)) && (_root.p1.xpos > (_root.p2.xpos - 24))) && (_root.p1.yspeed > 0)) {
if ((_root.p1.ypos > (_root.p2.ypos - 24)) && (_root.p1.ypos < (_root.p2.ypos + 24))) {
if (_root.p2.invincible == 1) {
_root.p1.yspeed = _root.p1.yspeed - _root.p1.jumppower;
_root.p1.ypos = _root.p1.ypos + _root.p1.yspeed;
_root.p1.onground = 0;
removeMovieClip(man1);
attachMovie("redblobup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else {
_root.p2.xpos = _root.map.p2xstartpos;
_root.p2.ypos = _root.map.p2ystartpos;
removeMovieClip(eval ("p2life" add _root.p2.lives));
_root.p2.lives = _root.p2.lives - 1;
_root.p2.statustime = 75;
_root.p2.invincible = 1;
attachMovie("statusbar4", "p2statusbar", this.getNextHighestDepth(), {_x:612, _y:504});
_root.p2.statusscale = 100;
_root.p2.xspeed = 6;
_root.p2.jumppower = 12;
removeMovieClip(man2);
attachMovie("blueblobup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
}
}
if (((_root.p2.xpos < (_root.p1.xpos + 24)) && (_root.p2.xpos > (_root.p1.xpos - 24))) && (_root.p2.yspeed > 0)) {
if ((_root.p2.ypos > (_root.p1.ypos - 24)) && (_root.p2.ypos < (_root.p1.ypos + 24))) {
if (_root.p1.invincible == 1) {
_root.p2.yspeed = _root.p2.yspeed - _root.p2.jumppower;
_root.p2.ypos = _root.p2.ypos + _root.p2.yspeed;
_root.p2.onground = 0;
removeMovieClip(man2);
attachMovie("blueblobup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else {
_root.p1.xpos = _root.map.p1xstartpos;
_root.p1.ypos = _root.map.p1ystartpos;
removeMovieClip(eval ("p1life" add _root.p1.lives));
_root.p1.lives = _root.p1.lives - 1;
_root.p1.statustime = 75;
_root.p1.invincible = 1;
attachMovie("statusbar4", "p1statusbar", this.getNextHighestDepth(), {_x:36, _y:504});
_root.p1.statusscale = 100;
_root.p1.xspeed = 6;
_root.p1.jumppower = 12;
removeMovieClip(man1);
attachMovie("redblobup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
}
}
if ((((_root.p1.xpos < (eval ("_root.map.timerxpos" add _root.site) + 24)) && (_root.p1.xpos > (eval ("_root.map.timerxpos" add _root.site) - 24))) && (_root.p1.ypos < (eval ("_root.map.timerypos" add _root.site) + 24))) && (_root.p1.ypos > (eval ("_root.map.timerypos" add _root.site) - 24))) {
removeMovieClip(powerup);
removeMovieClip(p1statusbar);
_root.site = 5;
_root.p1.statustime = 75;
if (_root.poweruptype == 1) {
_root.p1.invincible = 0;
_root.p1.jumppower = 12;
_root.p2.xspeed = 3;
attachMovie("statusbar1", "p1statusbar", this.getNextHighestDepth(), {_x:36, _y:504});
_root.p1.statusscale = 100;
} else if (_root.poweruptype == 2) {
_root.p1.lives = _root.p1.lives + 1;
attachMovie("redblob", "p1life" add _root.p1.lives, this.getNextHighestDepth(), {_x:12 + ((_root.p1.lives - 1) * 24), _y:465});
} else if (_root.poweruptype == 3) {
attachMovie("statusbar3", "p1statusbar", this.getNextHighestDepth(), {_x:36, _y:504});
_root.p2.xspeed = 4;
_root.p1.invincible = 0;
_root.p1.jumppower = 18;
_root.p1.statusscale = 100;
} else if (_root.poweruptype == 4) {
attachMovie("statusbar4", "p1statusbar", this.getNextHighestDepth(), {_x:36, _y:504});
_root.p2.xspeed = 4;
_root.p1.jumppower = 12;
_root.p1.invincible = 1;
_root.p1.statusscale = 100;
}
}
if ((((_root.p2.xpos < (eval ("_root.map.timerxpos" add _root.site) + 24)) && (_root.p2.xpos > (eval ("_root.map.timerxpos" add _root.site) - 24))) && (_root.p2.ypos < (eval ("_root.map.timerypos" add _root.site) + 24))) && (_root.p2.ypos > (eval ("_root.map.timerypos" add _root.site) - 24))) {
removeMovieClip(powerup);
removeMovieClip(p2statusbar);
_root.site = 5;
_root.p2.statustime = 75;
if (_root.poweruptype == 1) {
_root.p2.invincible = 0;
_root.p2.jumppower = 12;
_root.p1.xspeed = 3;
attachMovie("statusbar1", "p2statusbar", this.getNextHighestDepth(), {_x:612, _y:504});
_root.p2.statusscale = 100;
} else if (_root.poweruptype == 2) {
_root.p2.lives = _root.p2.lives + 1;
attachMovie("blueblob", "p2life" add _root.p2.lives, this.getNextHighestDepth(), {_x:660 - (_root.p2.lives * 24), _y:465});
} else if (_root.poweruptype == 3) {
_root.p1.xspeed = 4;
_root.p2.invincible = 0;
_root.p2.jumppower = 18;
attachMovie("statusbar3", "p2statusbar", this.getNextHighestDepth(), {_x:612, _y:504});
_root.p2.statusscale = 100;
} else if (_root.poweruptype == 4) {
_root.p1.xspeed = 4;
_root.p2.jumppower = 12;
_root.p2.invincible = 1;
attachMovie("statusbar4", "p2statusbar", this.getNextHighestDepth(), {_x:612, _y:504});
_root.p2.statusscale = 100;
}
}
if (_root.p1.lives == 0) {
gotoAndStop (6);
}
if (_root.p2.lives == 0) {
gotoAndStop (7);
}
if (Key.isDown(37) && (!Key.isDown(39))) {
_root.p1.xl = Math.floor(((_root.p1.xpos - 12) - _root.p1.xspeed) / 24);
_root.p1.yl1 = Math.floor((_root.p1.ypos - 12) / 24);
_root.p1.yl2 = Math.floor((_root.p1.ypos + 11) / 24);
if (_root.p1.ypos > (_root.p2.ypos + 24)) {
_root.p1.crashcheck = 0;
} else if (_root.p1.ypos < (_root.p2.ypos - 24)) {
_root.p1.crashcheck = 0;
} else if (_root.p1.xpos < _root.p2.xpos) {
_root.p1.crashcheck = 0;
} else {
_root.p1.crashcheck = _root.p2.xpos + 24;
}
if (((eval ("_root.map.M" add _root.p1.yl1)[_root.p1.xl] == 1) && (eval ("_root.map.M" add _root.p1.yl2)[_root.p1.xl] == 1)) && (_root.p1.xpos > _root.p1.crashcheck)) {
_root.p1.xpos = _root.p1.xpos - _root.p1.xspeed;
}
if (_root.p1.yspeed == 0) {
removeMovieClip(man1);
attachMovie("redblobleft", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else if (_root.p1.yspeed > 0) {
removeMovieClip(man1);
attachMovie("redblobleftdown", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else {
removeMovieClip(man1);
attachMovie("redblobleftup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
}
if (Key.isDown(65) && (!Key.isDown(68))) {
_root.p2.xl = Math.floor(((_root.p2.xpos - 12) - _root.p2.xspeed) / 24);
_root.p2.yl1 = Math.floor((_root.p2.ypos - 12) / 24);
_root.p2.yl2 = Math.floor((_root.p2.ypos + 11) / 24);
if (_root.p2.ypos > (_root.p1.ypos + 24)) {
_root.p2.crashcheck = 0;
} else if (_root.p2.ypos < (_root.p1.ypos - 24)) {
_root.p2.crashcheck = 0;
} else if (_root.p2.xpos < _root.p1.xpos) {
_root.p2.crashcheck = 0;
} else {
_root.p2.crashcheck = _root.p1.xpos + 24;
}
if (((eval ("_root.map.M" add _root.p2.yl1)[_root.p2.xl] == 1) && (eval ("_root.map.M" add _root.p2.yl2)[_root.p2.xl] == 1)) && (_root.p2.xpos > _root.p2.crashcheck)) {
_root.p2.xpos = _root.p2.xpos - _root.p2.xspeed;
}
if (_root.p2.yspeed == 0) {
removeMovieClip(man2);
attachMovie("blueblobleft", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else if (_root.p2.yspeed > 0) {
removeMovieClip(man2);
attachMovie("blueblobleftdown", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else {
removeMovieClip(man2);
attachMovie("blueblobleftup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
}
if (Key.isDown(39) && (!Key.isDown(37))) {
_root.p1.xr = Math.floor(((_root.p1.xpos + 11) + _root.p1.xspeed) / 24);
_root.p1.yr1 = Math.floor((_root.p1.ypos - 12) / 24);
_root.p1.yr2 = Math.floor((_root.p1.ypos + 11) / 24);
if (_root.p1.ypos > (_root.p2.ypos + 24)) {
_root.p1.crashcheck = 1000000 /* 0x0F4240 */;
} else if (_root.p1.ypos < (_root.p2.ypos - 24)) {
_root.p1.crashcheck = 1000000 /* 0x0F4240 */;
} else if (_root.p1.xpos > _root.p2.xpos) {
_root.p1.crashcheck = 1000000 /* 0x0F4240 */;
} else {
_root.p1.crashcheck = _root.p2.xpos - 24;
}
if (((eval ("_root.map.M" add _root.p1.yr1)[_root.p1.xr] == 1) && (eval ("_root.map.M" add _root.p1.yr2)[_root.p1.xr] == 1)) && (_root.p1.xpos < _root.p1.crashcheck)) {
_root.p1.xpos = _root.p1.xpos + _root.p1.xspeed;
}
if (_root.p1.yspeed == 0) {
removeMovieClip(man1);
attachMovie("redblobright", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else if (_root.p1.yspeed > 0) {
removeMovieClip(man1);
attachMovie("redblobrightdown", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
} else {
removeMovieClip(man1);
attachMovie("redblobrightup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
}
if (Key.isDown(68) && (!Key.isDown(65))) {
_root.p2.xr = Math.floor(((_root.p2.xpos + 11) + _root.p2.xspeed) / 24);
_root.p2.yr1 = Math.floor((_root.p2.ypos - 12) / 24);
_root.p2.yr2 = Math.floor((_root.p2.ypos + 11) / 24);
if (_root.p2.ypos > (_root.p1.ypos + 24)) {
_root.p2.crashcheck = 1000000 /* 0x0F4240 */;
} else if (_root.p2.ypos < (_root.p1.ypos - 24)) {
_root.p2.crashcheck = 1000000 /* 0x0F4240 */;
} else if (_root.p2.xpos > _root.p1.xpos) {
_root.p2.crashcheck = 1000000 /* 0x0F4240 */;
} else {
_root.p2.crashcheck = _root.p1.xpos - 24;
}
if (((eval ("_root.map.M" add _root.p2.yr1)[_root.p2.xr] == 1) && (eval ("_root.map.M" add _root.p2.yr2)[_root.p2.xr] == 1)) && (_root.p2.xpos < _root.p2.crashcheck)) {
_root.p2.xpos = _root.p2.xpos + _root.p2.xspeed;
}
if (_root.p2.yspeed == 0) {
removeMovieClip(man2);
attachMovie("blueblobright", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else if (_root.p2.yspeed > 0) {
removeMovieClip(man2);
attachMovie("blueblobrightdown", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
} else {
removeMovieClip(man2);
attachMovie("blueblobrightup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
}
if (Key.isDown(38) && (!Key.isDown(40))) {
_root.p1.yu = Math.floor((_root.p1.ypos - 24) / 24);
_root.p1.xu1 = Math.floor((_root.p1.xpos - 12) / 24);
_root.p1.xu2 = Math.floor((_root.p1.xpos + 11) / 24);
if (((eval ("_root.map.M" add _root.p1.yu)[_root.p1.xu1] != 0) && (eval ("_root.map.M" add _root.p1.yu)[_root.p1.xu2] != 0)) && (_root.p1.onground == 1)) {
_root.p1.yspeed = _root.p1.yspeed - _root.p1.jumppower;
_root.p1.ypos = _root.p1.ypos + _root.p1.yspeed;
_root.p1.onground = 0;
removeMovieClip(man1);
attachMovie("redblobup", "man1", this.getNextHighestDepth(), {_x:_root.p1.xpos, _y:_root.p1.ypos});
}
}
if (Key.isDown(87) && (!Key.isDown(83))) {
_root.p2.yu = Math.floor((_root.p2.ypos - 24) / 24);
_root.p2.xu1 = Math.floor((_root.p2.xpos - 12) / 24);
_root.p2.xu2 = Math.floor((_root.p2.xpos + 11) / 24);
if (((eval ("_root.map.M" add _root.p2.yu)[_root.p2.xu1] != 0) && (eval ("_root.map.M" add _root.p2.yu)[_root.p2.xu2] != 0)) && (_root.p2.onground == 1)) {
_root.p2.yspeed = _root.p2.yspeed - _root.p2.jumppower;
_root.p2.ypos = _root.p2.ypos + _root.p2.yspeed;
_root.p2.onground = 0;
removeMovieClip(man2);
attachMovie("blueblobup", "man2", this.getNextHighestDepth(), {_x:_root.p2.xpos, _y:_root.p2.ypos});
}
}
Frame 5
_root.timer = _root.timer + 1;
_root.p1.statustime = _root.p1.statustime - 1;
_root.p2.statustime = _root.p2.statustime - 1;
_root.p1.statusscale = _root.p1.statusscale - 1.33333333333333;
setProperty(p1statusbar, _xscale , _root.p1.statusscale);
_root.p2.statusscale = _root.p2.statusscale - 1.33333333333333;
setProperty(p2statusbar, _xscale , _root.p2.statusscale);
if (_root.p1.statustime == 0) {
_root.p1.invincible = 0;
_root.p2.xspeed = 6;
_root.p1.jumppower = 12;
removeMovieClip(p1statusbar);
_root.p1.statusscale = 100;
}
if (_root.p2.statustime == 0) {
_root.p2.invincible = 0;
_root.p1.xspeed = 6;
_root.p2.jumppower = 12;
removeMovieClip(p2statusbar);
_root.p2.statusscale = 100;
}
if (_root.timer == 120) {
removeMovieClip(powerup);
_root.site = random(4) + 1;
_root.poweruptype = random(4) + 1;
_root.powerupcheck = site;
timerxpos = eval ("_root.map.timerxpos" add _root.site);
timerypos = eval ("_root.map.timerypos" add _root.site);
if (_root.poweruptype == 1) {
attachMovie("powerup1", "powerup", this.getNextHighestDepth(), {_x:timerxpos, _y:timerypos});
} else if (_root.poweruptype == 2) {
attachMovie("powerup2", "powerup", this.getNextHighestDepth(), {_x:timerxpos, _y:timerypos});
} else if (_root.poweruptype == 3) {
attachMovie("powerup3", "powerup", this.getNextHighestDepth(), {_x:timerxpos, _y:timerypos});
} else if (_root.poweruptype == 4) {
attachMovie("powerup4", "powerup", this.getNextHighestDepth(), {_x:timerxpos, _y:timerypos});
}
_root.timer = 0;
}
gotoAndPlay (4);
Frame 6
removeMovieClip(man1);
removeMovieClip(man2);
removeMovieClip(map);
removeMovieClip(powerup);
removeMovieClip(p1statusbar);
removeMovieClip(p2statusbar);
removeMovieClip(p1life1);
removeMovieClip(p1life2);
removeMovieClip(p1life3);
removeMovieClip(p2life1);
removeMovieClip(p2life2);
removeMovieClip(p2life3);
Frame 7
removeMovieClip(man1);
removeMovieClip(man2);
removeMovieClip(map);
removeMovieClip(powerup);
removeMovieClip(p1statusbar);
removeMovieClip(p2statusbar);
removeMovieClip(p1life1);
removeMovieClip(p1life2);
removeMovieClip(p1life3);
removeMovieClip(p1life4);
removeMovieClip(p1life5);
removeMovieClip(p1life6);
removeMovieClip(p1life7);
removeMovieClip(p1life8);
removeMovieClip(p1life9);
removeMovieClip(p1life10);
removeMovieClip(p2life1);
removeMovieClip(p2life2);
removeMovieClip(p2life3);
removeMovieClip(p2life4);
removeMovieClip(p2life5);
removeMovieClip(p2life6);
removeMovieClip(p2life7);
removeMovieClip(p2life8);
removeMovieClip(p2life9);
removeMovieClip(p2life10);
Symbol 1 MovieClip [levelmap] Frame 1
M0 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
M1 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M2 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M3 = new Array(0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0);
M4 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M5 = new Array(0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0);
M6 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M7 = new Array(0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0);
M8 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M9 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M10 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M11 = new Array(0, 1, 1, 1, 0, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 2, 0, 1, 1, 1, 0);
M12 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M13 = new Array(0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0);
M14 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M15 = new Array(0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0);
M16 = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
M17 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
n1 = 0;
n2 = 0;
n3 = 0;
poweruptilenumber = 1;
while (n1 < 18) {
while (n2 < 27) {
if (eval ("M" add n1)[n2] == 0) {
attachMovie("leveltile", (("wall" add n1) add "-") add n2, n3);
eval ((("wall" add n1) add "-") add n2)._x = (n2 * 24) + 12;
eval ((("wall" add n1) add "-") add n2)._y = (n1 * 24) + 12;
}
if (eval ("M" add n1)[n2] == 1) {
}
if (eval ("M" add n1)[n2] == 2) {
attachMovie("poweruptile", "poweruptile" add poweruptilenumber, n3);
eval ("poweruptile" add poweruptilenumber)._x = (n2 * 24) + 12;
eval ("poweruptile" add poweruptilenumber)._y = (n1 * 24) + 12;
poweruptilenumber = poweruptilenumber + 1;
}
n3++;
n2++;
}
n2 = 0;
n1++;
}
p1xstartpos = 36;
p1ystartpos = 348;
p2xstartpos = 612;
p2ystartpos = 348;
timerxpos1 = poweruptile1._x;
timerypos1 = poweruptile1._y - 24;
timerxpos2 = poweruptile2._x;
timerypos2 = poweruptile2._y - 24;
timerxpos3 = poweruptile3._x;
timerypos3 = poweruptile3._y - 24;
timerxpos4 = poweruptile4._x;
timerypos4 = poweruptile4._y - 24;
timerypos5 = 10000;
timerxpos5 = 10000;
Symbol 2 MovieClip [player1] Frame 1
xspeed = 6;
yspeed = 0;
jumppower = 12;
gravity = 1.5;
history = 1;
xpos = _root.map.p1xstartpos;
ypos = _root.map.p1ystartpos;
onground = 0;
lives = 3;
invincible = 0;
Symbol 3 MovieClip [player2] Frame 1
xspeed = 6;
yspeed = 0;
jumppower = 12;
gravity = 1.5;
history = 1;
xpos = _root.map.p2xstartpos;
ypos = _root.map.p2ystartpos;
onground = 0;
lives = 3;
invincible = 0;
Symbol 68 Button
on (release) {
_root.play();
}
Symbol 69 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 69 MovieClip Frame 2
gotoAndPlay (1);
Symbol 82 Button
on (release) {
gotoAndPlay (3);
}
Symbol 97 Button
on (release) {
gotoAndPlay (2);
}