Frame 1
stop();
Stage.showMenu = false;
link.onPress = function () {
getURL ("http://www.bomtoons.com", "_blank");
};
this.onEnterFrame = function () {
bt = _root.getBytesTotal();
bl = _root.getBytesLoaded();
perc = (bl / bt) * 100;
bar._xscale = perc;
if (perc >= 100) {
delete this.onEnterFrame;
gotoAndStop ("main");
}
};
Frame 2
stop();
Frame 3
stop();
_root.dia.unloadMovie();
_root.dia.removeMovieClip();
Frame 4
stop();
_root.gamereqs = new Array();
gamereqs[0] = new Array(1700, 2400, 5000);
gamereqs[1] = new Array(700, 1300, 2000);
gamereqs[2] = new Array(1800, 3800, 5200);
Frame 5
function loadGame(num) {
this.whichgame = num;
thegame.unloadMovie();
thegame.removeMovieClip();
this.attachMovie("game_" + gamnams[num], "thegame", 0);
}
function win(tim, lif) {
stopAllSounds();
trace("API GAME WON! Game id: " + whichgame);
dia.unloadMovie();
dia.removeMovieClip();
d = _root.attachMovie("wrap_winscreen", "dia", 99);
d.tim = tim;
d.lif = lif;
}
function lose() {
stopAllSounds();
trace("API GAME LOST! Game id: " + whichgame);
dia.unloadMovie();
dia.removeMovieClip();
_root.attachMovie("wrap_failscreen", "dia", 99);
}
stop();
stopAllSounds();
var gamnams = new Array("mario", "dd", "zelda");
Frame 6
stop();
trace("here");
for (i in _root) {
i.unloadMovie();
i.removeMovieClip();
delete i.onEnterFrame;
}
dia.unloadMovie();
dia.removeMovieClip();
thegame.unloadMovie();
thegame.removeMovieClip();
_root.gotoAndStop("gam");
Symbol 13 MovieClip Frame 1
this.onPress = function () {
};
Symbol 22 MovieClip Frame 8
stop();
Symbol 24 Button
on (release) {
thegame.unloadMovie();
thegame.removeMovieClip();
_root.so.data.timesplayed[_root.dagam] = _root.so.data.timesplayed[_root.dagam] + 1;
_root.gotoAndStop("redo");
}
Symbol 28 MovieClip Frame 9
stop();
Symbol 29 Button
on (release) {
_root.thegame.unloadMovie();
_root.thegame.removeMovieClip();
_root.gotoAndStop("main");
}
Symbol 31 MovieClip [wrap_failscreen] Frame 10
stop();
Symbol 52 MovieClip Frame 1
this.arr._visible = false;
if (this.tot >= _root.gamereqs[_root.dagam][0]) {
if (_root.so.data.stars[_root.dagam] < 1) {
_root.so.data.stars[_root.dagam] = 1;
}
this.arr._y = s0._y + 5;
this.arr._visible = true;
}
if (this.tot >= _root.gamereqs[_root.dagam][1]) {
if (_root.so.data.stars[_root.dagam] < 2) {
_root.so.data.stars[_root.dagam] = 2;
}
this.arr._y = s2._y + 5;
this.arr._visible = true;
}
if (this.tot >= _root.gamereqs[_root.dagam][2]) {
if (_root.so.data.stars[_root.dagam] < 3) {
_root.so.data.stars[_root.dagam] = 3;
}
this.arr._y = s5._y + 5;
this.arr._visible = true;
}
var numstars = _root.so.data.stars[_root.dagam];
i = 0;
while (i < 7) {
var thing = eval ("s" + i);
thing.full._visible = false;
i++;
}
if (numstars >= 1) {
s0.full._visible = true;
}
if (numstars >= 2) {
s1.full._visible = true;
s2.full._visible = true;
}
if (numstars >= 3) {
s3.full._visible = true;
s4.full._visible = true;
s5.full._visible = true;
}
slot0 = _root.gamereqs[_root.dagam][0];
slot1 = _root.gamereqs[_root.dagam][1];
slot2 = _root.gamereqs[_root.dagam][2];
Symbol 53 MovieClip [wrap_winscreen] Frame 1
guts.tim = this.tim;
guts.lif = this.lif;
guts.tot = this.tim + this.lif;
Symbol 53 MovieClip [wrap_winscreen] Frame 11
stop();
Symbol 85 MovieClip Frame 17
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 115 MovieClip [splode] Frame 23
stop();
this.unloadMovie();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 110
this._parent._parent.attachMovie("spellflash", "spellflash", this._parent._parent.getNextHighestDepth());
this._parent._parent.bg9._visible = true;
this._parent._parent.bg3._visible = false;
this._parent._parent.boss.unloadMovie();
f = this._parent._parent.attachMovie("badzel", "boss2", this._parent._parent.getNextHighestDepth());
f._x = this._parent._parent.zel._x;
f._y = this._parent._parent.zel._y;
f.blinking = true;
f.jumping = true;
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 158 MovieClip Frame 1
this.cacheAsBitmap = true;
this.hit._visible = false;
this.stopmoving = false;
this.cv = 0;
stop();
Symbol 158 MovieClip Frame 25
if (this.hp <= 0) {
gotoAndPlay (30);
} else {
gotoAndStop (1);
}
Symbol 158 MovieClip Frame 30
this.cacheAsBitmap = false;
stopAllSounds();
t = this._parent.attachMovie("explosionset", "explosionset", this._parent.getNextHighestDepth());
t._x = this._x;
t._y = this._y;
Symbol 158 MovieClip Frame 101
this._parent.endPart1();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 69
this._parent.zel._visible = false;
Symbol 181 MovieClip Frame 253
stop();
var tim = this._parent.tim0;
var lif = (this._parent.zel.life * 10);
_root.win(tim, lif);
trace("GAME BEAT!");
Symbol 183 MovieClip [game_zelda] Frame 1
function bottlephys(who) {
who._y = who._y - who.Yvel;
if (who._y < who.ground) {
who.Yvel = who.Yvel - 1;
} else {
who._y = who.ground;
}
if ((who._x > 125) && (who._x < 425)) {
if ((who._y <= 333) && (who.onramp1 != true)) {
who.ground = 333;
who.onramp0 = true;
}
if ((who._x > 200) && (who._x < 355)) {
if (who._y <= 290) {
who.ground = 290;
who.onramp1 = true;
}
} else {
who.ground = 333;
if (who.onramp1 == true) {
who.jumping = true;
who.onramp1 = false;
who.onramp0 = true;
}
}
} else {
who.ground = 370;
if (who.onramp0 == true) {
who.jumping = true;
who.onramp0 = false;
}
}
}
function endPart1() {
b = this.attachMovie("bottle", "bottle", this.getNextHighestDepth());
b._x = boss._x + 125;
b._y = boss._y;
b.Yvel = 0;
bottlefall.start();
b.onEnterFrame = function () {
bottlephys(this);
};
this.endp1 = true;
boss.unloadMovie();
boss.removeMovieClip();
p = this.attachMovie("goforit", "goforit", this.getNextHighestDepth());
p._x = 430;
p._y = 275;
z.blinking = false;
}
function bossHit() {
if ((boss2.blinking != true) && (boss2 != undefined)) {
var thinger = eval ("dash.b" + boss2.hp);
thinger.gotoAndStop("gone");
boss2.guts.gotoAndPlay("hit");
hurt.start();
boss2.hp = boss2.hp - 1;
if (boss2.hp > 0) {
hit.start();
}
if (boss2.hp <= 0) {
trace("THE END!");
kill.start();
}
boss2.jumping = true;
boss2.Yvel = 10;
boss2.Xvel = 10 * (z.guts._xscale / 100);
boss2.blinking = true;
}
if (boss.vuln) {
var thinger = eval ("dash.b" + boss.hp);
thinger.gotoAndStop("gone");
if (endp1 != true) {
boss.gotoAndPlay("hit");
boss.stopmoving = true;
boss.speed = boss.speed + 1;
boss.shotfreq = boss.shotfreq - 0.8;
}
boss.hp = boss.hp - 1;
if (boss.hp > 0) {
hit.start();
}
if (boss.hp <= 0) {
kill.start();
boss.stopmoving = true;
}
}
}
function firePhys(who) {
if (this.pausy != true) {
who._x = who._x + who.Xvel;
who._y = who._y - who.Yvel;
who.Xvel = who.Xvel * 0.95;
who.Yvel = who.Yvel - 1;
if (who._parent.zel.hitTest(who._x, who._y, true) && (who._parent.zel.blinking != true)) {
this.fbcount = this.fbcount + 1;
hurt.start();
j = who._parent.attachMovie("fizz", "fizz" + this.fbcount, this.getNextHighestDepth());
j._x = who._x;
j._y = who._y + (who.Yvel / 1.5);
who._parent.zel.guts.gotoAndStop("hit");
if (who._parent.zel.fairied != true) {
who._parent.zel.attacking = true;
who._parent.zel.blinking = true;
who._parent.zel.jumping = true;
}
who._parent.zel.Xvel = who._parent.zel.Xvel + (who.Xvel * 8);
who._parent.zel.Yvel = 10;
if (who._parent.zel.shielded) {
who._parent.zel.life = who._parent.zel.life - 10;
} else {
who._parent.zel.life = who._parent.zel.life - 20;
}
if (who._parent.zel.fairied == true) {
who._parent.zel.life = 0;
}
if (who._parent.zel.life > 0) {
dash.hlth._xscale = who._parent.zel.life;
} else {
dash.hlth._xscale = 0;
who._parent.zel.life = 0;
myDeath();
pausy = true;
z.guts.gotoAndStop("hit");
}
who.unloadMovie();
who.removeMovieClip();
}
if (who._parent.bg.bgreal.hitTest(who._x, who._y, true)) {
this.fbcount = this.fbcount + 1;
j = who._parent.attachMovie("fizz", "fizz" + this.fbcount, this.getNextHighestDepth());
j._x = who._x;
j._y = who._y + (who.Yvel / 1.5);
whoosh.start();
who.unloadMovie();
who.removeMovieClip();
}
}
if (this.endp1) {
who.unloadMovie();
who.removeMovieClip();
}
}
function bossMove(who) {
if ((who.stopmoving != true) && (this.endp1 != true)) {
if (who.r != true) {
who._x = who._x + who.speed;
}
if ((who._x >= 430) && (who.r != true)) {
who.r = true;
}
if (who.r == true) {
who._x = who._x - who.speed;
}
if ((who._x < -120) && (who.r == true)) {
who.r = false;
}
if (who.t != true) {
who._y = who._y - who.speed;
}
if ((who._y <= -50) && (who.t != true)) {
who.t = true;
}
if (who.t == true) {
who._y = who._y + who.speed;
}
if ((who._y > 80) && (who.t == true)) {
who.t = false;
}
var _local3 = random(150);
if (_local3 == 10) {
if (who.r == false) {
who.r = true;
} else {
who.r = false;
}
}
if (_local3 == 5) {
if (who.t == false) {
who.t = true;
} else {
who.t = false;
}
}
var _local4 = random(2);
who.shotcounter = who.shotcounter + 1;
if (who.shotcounter >= who.shotfreq) {
if (_local4 == 0) {
f = this.attachMovie("fireball", "fireball" + who.fbcount, who.fbcount);
f._x = who._x + 115;
f._y = who._y + 75;
who.fbcount = who.fbcount + 1;
var _local5 = random(2);
if (_local5 == 0) {
f.Xvel = random(5) + 5;
f._xscale = -100;
} else {
f.Xvel = (random(5) + 5) * -1;
}
f.Yvel = 10;
f.cacheAsBitmap = true;
f.onEnterFrame = function () {
this._parent.firePhys(this);
};
}
who.shotcounter = 0;
}
}
}
function resetZel() {
z._x = 0;
z._y = 330;
var _local1 = z.guts.getDepth();
var _local2 = z.guts._xscale;
o = z.attachMovie("zel_guts", "guts", _local1);
o._xscale = _local2;
goforit.unloadMovie();
bg3.impa.gotoAndPlay(1);
z.shielded = false;
z.jumpht = 18;
z.fairied = false;
}
function phys(who) {
if (who.fairied && (!who.fstart)) {
bottlefall.start(0, 999);
who.fstart = true;
}
if (who._x < 0) {
who._x = 0;
}
if (who._x > 550) {
if ((this.endp1 != true) || (this.startp2 == true)) {
who._x = 550;
} else {
bg._visible = false;
bg2._visible = true;
bg3._visible = true;
this.startp2 = true;
h = 0;
while (h < 9) {
var thinger = eval ("dash.b" + h);
thinger.gotoAndStop("full");
h++;
}
resetZel();
}
}
if (this.startp2 != true) {
if (((who._x > 125) && (who._x < 425)) && (who.fairied != true)) {
if ((who._y <= 333) && (who.onramp1 != true)) {
who.ground = 333;
who.onramp0 = true;
}
if ((who._x > 200) && (who._x < 355)) {
if (who._y <= 290) {
who.ground = 290;
who.onramp1 = true;
}
} else {
who.ground = 333;
if (who.onramp1 == true) {
who.jumping = true;
who.onramp1 = false;
who.onramp0 = true;
}
}
} else if (who.fairied != true) {
who.ground = 370;
if (who.onramp0 == true) {
who.jumping = true;
who.onramp0 = false;
}
}
} else {
who.ground = 330;
}
who.absvel = Math.abs(who.Xvel);
who._x = who._x + who.Xvel;
who._y = who._y - who.Yvel;
who.Xvel = who.Xvel * 0.8;
if (who.jumping == true) {
if (who.zenith != true) {
if (who.attacking != true) {
who.guts.gotoAndStop("jumpup");
}
if (who.Yvel <= 0) {
who.zenith = true;
}
} else if (who.attacking != true) {
who.guts.gotoAndStop("jumpdown");
}
who.Yvel = who.Yvel - who.grav;
if ((who._y >= who.ground) && (who.zenith == true)) {
who.jumping = false;
who.Yvel = 0;
who.zenith = false;
who._y = who.ground;
if (who.attacking != true) {
who.landing = true;
}
}
if (Key.isDown(40)) {
if (who.attacking != true) {
who.guts.gotoAndStop("downthrust");
}
}
}
}
function runFlash() {
if (this.spellpow[this.selectaroon] < z.mag) {
this.attachMovie("spellflash", "spellflash", this.getNextHighestDepth());
if (this.selectaroon == 7) {
boss.gotoAndPlay("hit");
boss.guts.gotoAndStop(2);
boss.vuln = true;
kill.start();
}
if (this.selectaroon == 0) {
var _local2 = z.guts.getDepth();
var _local3 = z.guts._xscale;
o = z.attachMovie("zel_guts2", "guts", _local2);
o._xscale = _local3;
z.shielded = true;
}
if (this.selectaroon == 1) {
z.jumpht = 28;
}
if (this.selectaroon == 2) {
z.life = z.life + 40;
if (z.life < 100) {
dash.hlth._xscale = z.life;
} else {
z.life = 100;
dash.hlth._xscale = z.life;
}
}
if (this.selectaroon == 3) {
var _local2 = z.guts.getDepth();
o = z.attachMovie("fairy", "guts", _local2);
z.fairied = true;
}
if (this.selectaroon == 4) {
z.fireballz = true;
}
z.mag = z.mag - this.spellpow[this.selectaroon];
dash.magbar._xscale = z.mag;
}
}
function myDeath() {
this.mydeath = true;
this.attachMovie("endscreen", "endscreen", this.getNextHighestDepth());
z.swapDepths(this.getNextHighestDepth());
}
function swordy(who) {
who._x = who._x + who.Xvel;
who.cv = who.cv + 1;
if ((boss.hit.hitTest(who) && (who._visible == true)) && (!z.fireballz)) {
bossHit();
}
if (who.cv == 5) {
if (!z.fireballz) {
longsword.start();
} else {
whoosh.start();
}
who._visible = true;
if (z.crouchin != true) {
who._y = z._y - 30;
} else {
who._y = z._y - 15;
}
if (z.guts._xscale == -100) {
who.Xvel = who.Xvel * -1;
who._xscale = who._xscale * -1;
who._x = z._x - 38;
}
}
if ((who.cv >= 13) && (z.fireballz != true)) {
delete who.onEnterFrame;
who.unloadMovie();
who.removeMovieClip();
}
if (z.fireballz) {
if ((who._x > 550) || (who._x < 0)) {
delete who.onEnterFrame;
who.unloadMovie();
who.removeMovieClip();
}
}
}
tim0 = 6280;
bottlefall = new Sound();
bottlefall.attachSound("bottlefall.wav");
hit = new Sound();
hit.attachSound("hit.wav");
kill = new Sound();
kill.attachSound("kill.wav");
longsword = new Sound();
longsword.attachSound("longsword.wav");
spellmove = new Sound();
spellmove.attachSound("spellmove.wav");
spellopen = new Sound();
spellopen.attachSound("spellopen.wav");
hurt = new Sound();
hurt.attachSound("hurt.wav");
whoosh = new Sound();
whoosh.attachSound("whoosh.wav");
z = this.attachMovie("zel", "zel", 99);
bg.cacheAsBitmap = true;
bg2._visible = false;
bg3._visible = false;
bg9._visible = false;
this.endclip._visible = false;
dash.swapDepths(9999);
this.selectaroon = 0;
z._x = 45;
z._y = 370;
z.Xvel = 0;
z.Yvel = 0;
z.speed = 2.5;
z.grav = 2;
z.ground = 370;
z.jumpht = 18;
z.landcount = 0;
z.mag = 100;
z.life = 100;
boss.speed = 4;
boss.r = true;
boss.t = true;
boss.shotcounter = 0;
boss.shotfreq = 12;
boss.fbcount = 500;
boss.hp = 8;
boss.cacheAsBitmap = true;
this.onEnterFrame = function () {
if (this.pausy != true) {
if (tim0 > 0) {
tim0 = tim0 - 1;
}
bossMove(this.boss);
phys(z);
if (Key.isDown(39)) {
if (z.fairied != true) {
if ((z.jumping != true) && (z.attacking != true)) {
z.guts.gotoAndStop("walk");
}
z.guts._xscale = 100;
if (z.crouchin != true) {
z.Xvel = z.Xvel + z.speed;
}
} else {
z._x = z._x + (z.speed * 3);
}
}
if (Key.isDown(37)) {
if (z.fairied != true) {
if ((z.jumping != true) && (z.attacking != true)) {
z.guts.gotoAndStop("walk");
}
z.guts._xscale = -100;
if (z.crouchin != true) {
z.Xvel = z.Xvel - z.speed;
}
} else {
z._x = z._x - (z.speed * 3);
}
}
if (Key.isDown(38) && (z.jumping != true)) {
if (z.fairied != true) {
z.jumping = true;
z.Yvel = z.jumpht;
} else if (z._y > 30) {
z._y = z._y - (z.speed * 3);
} else {
z._y = 30;
}
}
if (Key.isDown(40) && (z.jumping != true)) {
if (z.fairied != true) {
if (z.attacking != true) {
z.guts.gotoAndStop("crouch");
z.crouchin = true;
}
} else if (z._y < 370) {
z._y = z._y + (z.speed * 3);
} else {
z._y = 370;
}
} else {
z.crouchin = false;
}
if ((((((!Key.isDown(39)) && (!Key.isDown(37))) && (z.absvel < 1)) && (!Key.isDown(40))) && (z.jumping != true)) && (z.attacking != true)) {
z.guts.gotoAndStop("rest");
}
if ((z.landing == true) && (z.attacking != true)) {
z.guts.gotoAndStop("crouch");
z.landcount = z.landcount + 1;
if (z.landcount > 4) {
z.landing = false;
z.landcount = 0;
}
}
if (Key.isDown(65) && (z.attacking != true)) {
z.attacking = true;
if ((z.life >= 100) || (z.fireballz == true)) {
v = this.attachMovie("throwsword", "swordish", this.getNextHighestDepth());
v._x = z._x;
v.cv = 0;
v.Xvel = 10;
v._visible = false;
v.onEnterFrame = function () {
swordy(this);
};
if (z.fireballz) {
v.sw._visible = false;
} else {
v.fb._visible = false;
}
}
if (z.crouchin != true) {
z.guts.gotoAndStop("attack");
} else {
z.guts.gotoAndStop("crouchattack");
}
}
if (Key.isDown(83) && (this.spellcast != true)) {
this.spellcast = true;
runFlash();
}
} else {
if (((z.absvel > 0) && (z.jumping != true)) && (z.crouching != true)) {
z.guts.gotoAndStop("rest");
}
if (z.attacking == true) {
z.attacking = false;
z.guts.gotoAndStop("rest");
}
if ((z.crouching == true) || (z.landing == true)) {
z.guts.gotoAndStop("crouch");
}
if (mydeath) {
z.guts.gotoAndStop("hit");
}
}
if ((Key.isDown(32) && (!this.intransition)) && (!this.mydeath)) {
if (this.pausy) {
this.pausy = false;
this.spells.gotoAndPlay("collapse");
this.intransition = true;
z.attacking = false;
z.blinking = false;
this.spellcast = false;
} else {
this.pausy = true;
spellopen.start();
this.intransition = true;
if (!this.spellsattached) {
s = this.attachMovie("spells", "spells", this.getNextHighestDepth());
s._x = 300;
s._y = 50;
this.spellsattached = true;
}
this.spells.gotoAndPlay("open");
this.spells.swapDepths(this.getNextHighestDepth());
}
}
if (finalact) {
z._y = z.ground;
var _local4 = 225 - z._x;
z._x = z._x + (_local4 / 15);
z.guts._xscale = 100;
if ((z._x > 224) && (z._x < 226)) {
stopAllSounds();
this.endclip._visible = true;
this.endclip.gotoAndPlay(2);
this.attachMovie("spellflash", "spellflash", this.getNextHighestDepth());
var _local2 = z.guts.getDepth();
var _local3 = z.guts._xscale;
o = z.attachMovie("zel_guts", "guts", _local2);
o._xscale = _local3;
this.bg9._visible = false;
this.bg3._visible = true;
finalact = false;
}
}
};
Symbol 200 MovieClip Frame 4
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
trace("run boss hit for 2");
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 200 MovieClip Frame 9
this.double = false;
this._parent._parent.attacking = false;
Symbol 206 MovieClip Frame 7
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 206 MovieClip Frame 8
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 206 MovieClip Frame 9
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 206 MovieClip Frame 11
this.double = false;
this._parent._parent.attacking = false;
Symbol 211 MovieClip Frame 12
this._parent._parent.attacking = false;
this._parent._parent.blinking = false;
Symbol 212 MovieClip [zel_guts] Frame 1
stop();
Symbol 212 MovieClip [zel_guts] Frame 2
stop();
Symbol 212 MovieClip [zel_guts] Frame 3
stop();
Symbol 212 MovieClip [zel_guts] Frame 4
stop();
Symbol 212 MovieClip [zel_guts] Frame 5
stop();
Symbol 212 MovieClip [zel_guts] Frame 6
stop();
Symbol 212 MovieClip [zel_guts] Frame 7
stop();
Symbol 212 MovieClip [zel_guts] Frame 8
stop();
Symbol 212 MovieClip [zel_guts] Frame 9
stop();
Symbol 228 MovieClip Frame 4
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
trace("run boss hit for 2");
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 228 MovieClip Frame 9
this.double = false;
this._parent._parent.attacking = false;
Symbol 233 MovieClip Frame 7
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 233 MovieClip Frame 8
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 233 MovieClip Frame 9
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.boss2.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
this._parent._parent._parent.longsword.start();
}
Symbol 233 MovieClip Frame 11
this.double = false;
this._parent._parent.attacking = false;
Symbol 235 MovieClip [zel_guts2] Frame 1
stop();
Symbol 235 MovieClip [zel_guts2] Frame 2
stop();
Symbol 235 MovieClip [zel_guts2] Frame 3
stop();
Symbol 235 MovieClip [zel_guts2] Frame 4
stop();
Symbol 235 MovieClip [zel_guts2] Frame 5
stop();
Symbol 235 MovieClip [zel_guts2] Frame 6
stop();
Symbol 235 MovieClip [zel_guts2] Frame 7
stop();
Symbol 235 MovieClip [zel_guts2] Frame 8
stop();
Symbol 235 MovieClip [zel_guts2] Frame 9
stop();
Symbol 251 MovieClip Frame 4
if (this.hing.hitTest(this._parent._parent._parent.boss.hit) && (this.double != true)) {
this._parent._parent._parent.bossHit();
this.double = true;
}
if (this.hing.hitTest(this._parent._parent._parent.bottle)) {
this._parent._parent._parent.bottle.unloadMovie();
this._parent._parent._parent.zel.mag = 100;
this._parent._parent._parent.dash.magbar._xscale = this._parent._parent._parent.zel.mag;
}
Symbol 251 MovieClip Frame 9
this.double = false;
this._parent._parent.attacking = false;
Symbol 256 MovieClip Frame 7
var really = this._parent._parent._parent.zel;
var mag = this._parent._parent;
if ((really._y > (mag._y - 35)) && (really._y < (mag._y + (mag._height / 2)))) {
if ((really._x > (mag._x - 80)) && (really._x < (mag._x + 80))) {
if (!really.blinking) {
this._parent._parent._parent.hurt.start();
really.guts.gotoAndStop("hit");
if (really.fairied != true) {
really.attacking = true;
really.blinking = true;
really.jumping = true;
}
really.Xvel = really.Xvel + (10 * (mag._xscale / 100));
really.Yvel = 15;
if (really.shielded) {
really.life = really.life - 10;
} else {
really.life = really.life - 20;
}
if (really.fairied) {
really.life = 0;
}
if (really.life > 0) {
this._parent._parent._parent.dash.hlth._xscale = really.life;
} else {
this._parent._parent._parent.dash.hlth._xscale = 0;
really.life = 0;
this._parent._parent._parent.myDeath();
this._parent._parent._parent.pausy = true;
really.guts.gotoAndStop("hit");
}
this.double = true;
}
}
}
Symbol 256 MovieClip Frame 11
this.double = false;
this._parent._parent.attacking = false;
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 3
stop();
Symbol 258 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 5
stop();
Symbol 258 MovieClip Frame 6
stop();
Symbol 258 MovieClip Frame 7
stop();
Symbol 258 MovieClip Frame 8
stop();
Symbol 258 MovieClip Frame 9
stop();
Symbol 261 MovieClip [badzel] Frame 1
function theEnd() {
k = this._parent.attachMovie("splode", "splode", this._parent.getNextHighestDepth());
k._x = this._x;
k._y = this._y;
this._parent.intransition = true;
this._parent.finalact = true;
this._parent.pausy = true;
this.unloadMovie();
}
function art(who) {
who.mydist = real._x - who._x;
if (((who.mydist > 105) && (!who.jumping)) && (!who.blinking)) {
who.Xvel = who.Xvel + 2;
}
if (((who.mydist < -105) && (!who.jumping)) && (!who.blinking)) {
who.Xvel = who.Xvel - 2;
}
if (((((who.mydist < 40) && (who.mydist > 0)) && (!who.jumping)) && (!real.jumping)) && (!who.blinking)) {
who.jumping = true;
who.Yvel = 20;
who.Xvel = -24;
}
if (((((who.mydist > -40) && (who.mydist < 0)) && (!who.jumping)) && (!real.jumping)) && (!who.blinking)) {
who.jumping = true;
who.Yvel = 20;
who.Xvel = 24;
}
if (((who.mydist > 40) && (who.mydist < 105)) && (!who.blinking)) {
who.guts.gotoAndStop("attack");
who.attacking = true;
if (real.jumping && (!who.jumping)) {
who.jumping = true;
who.Yvel = 20;
who.Xvel = real.Xvel;
}
if (real.attacking && (!who.jumping)) {
var _local3 = random(5);
if (_local3 == 0) {
who.jumping = true;
who.Yvel = 20;
who.Xvel = 10;
who.downit = true;
}
}
}
if (((who.mydist < -40) && (who.mydist > -105)) && (!who.blinking)) {
who.guts.gotoAndStop("attack");
who.attacking = true;
if (real.jumping && (!who.jumping)) {
who.jumping = true;
who.Yvel = 20;
}
if (real.attacking && (!who.jumping)) {
var _local3 = random(5);
if (_local3 == 0) {
who.jumping = true;
who.Yvel = 20;
who.Xvel = -10;
who.downit = true;
}
}
}
if (real._x < who._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
if (who._x < 0) {
who._x = 0;
}
if (who._x > 550) {
who._x = 550;
}
who.absvel = Math.abs(who.Xvel);
who._x = who._x + who.Xvel;
who._y = who._y - who.Yvel;
who.Xvel = who.Xvel * 0.8;
if (who.jumping) {
if (who.zenith != true) {
if ((who.attacking != true) && (who.blinking != true)) {
who.guts.gotoAndStop("jumpup");
}
if (who.Yvel <= 0) {
who.zenith = true;
}
} else if (who.attacking != true) {
who.guts.gotoAndStop("jumpdown");
}
who.Yvel = who.Yvel - who.grav;
if ((who._y >= who.ground) && (who.zenith == true)) {
who.jumping = false;
who.Yvel = 0;
who.zenith = false;
who._y = who.ground;
if (who.attacking != true) {
who.landing = true;
}
}
if (who.downit) {
if (who.attacking != true) {
who.guts.gotoAndStop("downthrust");
if (real.hitTest(this._x, this._y - 5, true) && (real.blinking != true)) {
this._parent.hurt.start();
real.guts.gotoAndStop("hit");
if (real.fairied != true) {
real.attacking = true;
real.blinking = true;
real.jumping = true;
}
real.Xvel = real.Xvel + (10 * (this._xscale / 100));
real.Yvel = 15;
if (real.shielded) {
real.life = real.life - 10;
} else {
real.life = real.life - 20;
}
if (real.fairied) {
real.life = 0;
}
if (real.life > 0) {
this._parent.dash.hlth._xscale = real.life;
} else {
this._parent.dash.hlth._xscale = 0;
real.life = 0;
this._parent.myDeath();
this._parent.pausy = true;
real.guts.gotoAndStop("hit");
}
}
}
}
}
if ((who.landing == true) && (who.attacking != true)) {
who.guts.gotoAndStop("crouch");
who.landcount = who.landcount + 1;
if (who.landcount > 4) {
who.landing = false;
who.landcount = 0;
}
}
if (who.absvel > 0.5) {
if (who.jumping != true) {
if (who.landing != true) {
who.guts.gotoAndStop("walk");
}
}
} else if (who.jumping != true) {
if (who.landing != true) {
if (!who.attacking) {
who.guts.gotoAndStop("rest");
}
}
}
if (who.blinking && (who.hp > 0)) {
who.mycv = who.mycv + 1;
who.guts.gotoAndStop("hit");
if (who.mycv > 30) {
who.mycv = 0;
who.blinking = false;
}
}
if (who.hp <= 0) {
this.dead = true;
}
}
real = this._parent.zel;
this.ground = 330;
this.grav = 2;
this.Xvel = 0;
this.Yvel = 0;
this.landcount = 0;
this.speed = 4;
this.r = true;
this.t = true;
this.shotcounter = 0;
this.shotfreq = 12;
this.fbcount = 500;
this.hp = 8;
this.mycv = 0;
this.finalcv = 0;
this.newb = true;
this.Yvel = 25;
this.Xvel = 25;
this.zenith = false;
this.vuln = true;
this.onEnterFrame = function () {
if (!this._parent.pausy) {
art(this);
if (this.dead) {
this.guts.gotoAndStop("hit");
this.blinking = true;
finalcv = finalcv + 1;
if (finalcv > 50) {
theEnd();
delete this.onEnterFrame;
}
}
} else {
this.attacking = false;
this.guts.gotoAndStop("rest");
}
};
Symbol 275 MovieClip Frame 1
function moveSel(which) {
this._parent._parent._parent.spellmove.start();
if (which == "d") {
starty = starty + 1;
}
if (which == "u") {
starty = starty - 1;
}
if (starty < 0) {
starty = spellarray.length - 1;
}
if (starty > (spellarray.length - 1)) {
starty = 0;
}
this._parent._parent._parent.selectaroon = starty;
sel._y = spellarray[starty];
}
this.spellarray = new Array(40, 65, 85, 110, 135, 155, 180, 200);
this._parent._parent._parent.spellpow = new Array(16, 8, 50, 40, 16, 16, 16, 64);
this.starty = this._parent._parent._parent.selectaroon;
sel._y = spellarray[starty];
Instance of Symbol 274 MovieClip "sel" in Symbol 275 MovieClip Frame 1
on (keyPress "<Down>") {
this._parent.moveSel("d");
}
on (keyPress "<Up>") {
this._parent.moveSel("u");
}
Symbol 277 MovieClip [spells] Frame 12
this._parent.intransition = false;
stop();
Symbol 277 MovieClip [spells] Frame 13
this._parent.intransition = true;
Symbol 277 MovieClip [spells] Frame 22
this._parent.intransition = false;
this._parent.pausy = false;
stop();
Symbol 280 MovieClip [spellflash] Frame 11
this._parent.spellcast = false;
this.unloadMovie();
this.removeMovieClip();
Symbol 286 MovieClip [goforit] Frame 44
gotoAndPlay (20);
Symbol 295 MovieClip [fizz] Frame 13
this.unloadMovie();
this.removeMovieClip();
Symbol 313 MovieClip [explode] Frame 12
stop();
Symbol 314 MovieClip [explosionset] Frame 76
this.unloadMovie();
this.removeMovieClip();
Symbol 324 MovieClip [endscreen] Frame 1
stopAllSounds();
Symbol 324 MovieClip [endscreen] Frame 73
this._parent.zel._visible = false;
Symbol 324 MovieClip [endscreen] Frame 195
stop();
_root.lose();
Symbol 340 MovieClip [bomtoons_poof] Frame 10
this.removeMovieClip();
Symbol 341 MovieClip [bomtoons_bub2] Frame 20
this.unloadMovie();
this.removeMovieClip();
stop();
Symbol 342 MovieClip [bomtoons_bubeffect] Frame 1
this.bubcount = 0;
this.onEnterFrame = function () {
var _local2 = random(10);
if (_local2 < 1) {
t = this.attachMovie("bomtoons_bub2", "bub", this.bubcount);
t._x = random(75) - 50;
t._y = random(this.height);
t._xscale = random(30) + 20;
t._yscale = t._xscale;
t.Xvel = this._parent._parent.dude.Xvel;
t.onEnterFrame = function () {
if (this.sett != true) {
this.Yvel = random(10);
this.sett = true;
}
this._x = this._x - this.Xvel;
this.Xvel = this.Xvel * 0.99;
this._y = this._y - (this.Yvel + 5);
};
this.bubcount = this.bubcount + 1;
}
};
Symbol 365 MovieClip Frame 4
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 1
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 2
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 3
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 4
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 5
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 6
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 7
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 8
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 9
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 10
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 11
stop();
Symbol 391 MovieClip [bomtoons_dude0] Frame 12
stop();
Symbol 423 MovieClip Frame 4
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 1
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 2
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 3
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 4
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 5
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 6
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 7
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 8
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 9
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 10
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 11
stop();
Symbol 462 MovieClip [bomtoons_dudesmall0] Frame 12
stop();
Symbol 465 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 475 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 477 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 505 MovieClip Frame 64
if (this._parent._parent._parent.hitcount >= 6) {
this.onEnterFrame = function () {
trace("WAITING TO FALL");
if (this._parent._parent._parent.dude.jumping != true) {
this._parent._parent._parent.won = true;
stopAllSounds();
this._parent.gotoAndStop("blow");
delete this.onEnterFrame;
}
};
}
if (this._parent._parent._parent.hitcount < 6) {
trace("GET GOING AGAIN");
this._parent._parent.playhit = false;
this._parent.playhit = false;
this._parent.gotoAndStop("walk");
}
Symbol 558 MovieClip Frame 163
showtim = this._parent._parent._parent.tim0;
lif = 0;
if (this._parent._parent._parent.life._currentframe == 1) {
lif = 500;
}
if (this._parent._parent._parent.life._currentframe == 2) {
lif = 200;
}
_root.win(showtim, lif);
stop();
Symbol 559 MovieClip Frame 1
stop();
delete this.onEnterFrame;
Symbol 559 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
v = 0;
while (v < this._parent._parent.vegarray.length) {
var veb = this._parent._parent.vegarray[v];
var veg = eval ("this._parent._parent.bubs." + veb);
if (this.wartmouth.hitTest(veg)) {
veg.removeMovieClip();
this._parent._parent.vegarray = new Array();
this.playhit = true;
this._parent._parent.hitcount = this._parent._parent.hitcount + 1;
this._parent._parent.hurt.start();
this.gotoAndStop("hit");
trace(this._parent._parent.hitcount);
delete this.onEnterFrame;
}
v++;
}
if (this.wartmouth.hitTest(this._parent._parent.bubs.as)) {
this._parent._parent.hurt.start();
this._parent._parent.hitcount = 6;
this._parent._parent.bubs.as.removeMovieClip();
this._parent._parent.vegarray = new Array();
this.playhit = true;
this.gotoAndStop("hit");
delete this.onEnterFrame;
}
};
Symbol 559 MovieClip Frame 3
stop();
Symbol 559 MovieClip Frame 4
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 3
stop();
Symbol 572 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 574 MovieClip [game_mario] Frame 1
stop();
this.jump = new Sound(this);
this.jump.attachSound("bomtoons_jump");
this.select = new Sound(this);
this.select.attachSound("bomtoons_select");
this.lose = new Sound(this);
this.lose.attachSound("bomtoons_lose");
this.thro = new Sound(this);
this.thro.attachSound("bomtoons_throw");
this.win = new Sound(this);
this.win.attachSound("bomtoons_win");
this.shrink = new Sound(this);
this.shrink.attachSound("bomtoons_shrink");
this.hurt = new Sound(this);
this.hurt.attachSound("bomtoons_hurt");
this.whichdude = 0;
this.onEnterFrame = function () {
if (Key.isDown(32)) {
stopAllSounds();
this.select.start();
delete this.onEnterFrame;
this.gotoAndStop(2);
}
if (this.whichdude == 0) {
this.arrow._x = 190;
}
if (this.whichdude == 1) {
this.arrow._x = 275;
}
if (this.whichdude == 2) {
this.arrow._x = 360;
}
};
Instance of Symbol 465 MovieClip "arrow" in Symbol 574 MovieClip [game_mario] Frame 1
on (keyPress "<Left>") {
this._parent.whichdude = this._parent.whichdude - 1;
this._parent.select.start();
if (this._parent.whichdude < 0) {
this._parent.whichdude = 2;
}
}
on (keyPress "<Right>") {
this._parent.whichdude = this._parent.whichdude + 1;
this._parent.select.start();
if (this._parent.whichdude > 2) {
this._parent.whichdude = 0;
}
}
Symbol 574 MovieClip [game_mario] Frame 2
this.grav = 2;
this.dude.Yvel = 0;
this.dude.Xvel = 0;
this.bubcount = 0;
this.opencount = 0;
this.dude.chargecount = 0;
this.vegcount = 500;
this.vegarray = new Array();
this.allarray = new Array();
this.dude.blink = false;
this.dude.blinkcount = 0;
this.dude.floatcount = 0;
this.hitcount = 0;
tim0 = 5370;
this.hp = 2;
this.createEmptyMovieClip("bubs", 100);
d = this.dude.attachMovie("bomtoons_dude" + this.whichdude, "guts", 0);
d._xscale = 90;
d._yscale = d._xscale;
if (this.whichdude == 0) {
this.speed = 2.2;
this.maxjump = 13.8;
this.friction = 0.8;
}
if (this.whichdude == 1) {
this.speed = 2.1;
this.maxjump = 12;
this.friction = 0.89;
}
if (this.whichdude == 2) {
this.speed = 2;
this.maxjump = 15;
this.friction = 0.75;
}
this.bubeffect = function (who) {
this.bubs.bubeffect._x = who._x;
this.bubs.bubeffect._y = who._y;
};
this.physics = function (who) {
if ((who.dead != true) && (this.won != true)) {
if ((this.wart.guts.hitarea.hitTest(who) && (who.blinking != true)) && (who.inv != true)) {
this.hp = this.hp - 1;
who.Xvel = who.Xvel * -1.5;
who.Yvel = -10;
who.blink = true;
who.inv = true;
}
if (this.bg._y < -650) {
this.life.gotoAndStop("empty");
who.dead = true;
}
if (who.hitTest(this.bg2.as) && (this.bg2.as._visible != false)) {
this.bg2.as._visible = false;
this.bubs.attachMovie("bomtoons_bubeffect", "bubeffect", 555);
f = this.bubs.attachMovie("as", "as", 430);
f._x = (who._x - this.bubs._x) - 50;
f._y = who._y - this.bubs._y;
f.id = 999;
f.onEnterFrame = function () {
this._parent._parent.veggie(this);
this._parent._parent.bubeffect(this);
};
}
if ((who.blink == true) && (who.beenshrunk != true)) {
who.blinkcount = who.blinkcount + 1;
if (who.blinkcount < 5) {
who._yscale = who._yscale - ((who._yscale - 50) / 3);
who.shrinking = true;
this.bg._y = this.bg._y + 1;
if (this.yorby != true) {
this.shrink.start();
this.yorby = true;
}
} else {
who.blink = false;
who.blinkcount = 0;
who.shrinking = false;
who.beenshrunk = true;
who.inv = true;
who.invcount = 0;
this.yorby = false;
}
}
if (who.inv == true) {
who.invcount = who.invcount + 1;
if (who._alpha < 100) {
who._alpha = 100;
} else {
who._alpha = 0;
}
if (who.invcount > 90) {
who.inv = false;
who._alpha = 100;
}
}
if (this.hp == 1) {
this.life.gotoAndStop("half");
if (who.shrinking == false) {
if (who.beensmall != true) {
who.attachMovie("bomtoons_dudesmall" + this.whichdude, "guts", 0);
who.beensmall = true;
if (who._xscale > 0) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who._yscale = 100;
}
}
}
if (this.hp == 0) {
this.life.gotoAndStop("empty");
who.dead = true;
}
this.bg._y = this.bg._y - who.Yvel;
this.bg._x = this.bg._x - who.Xvel;
who.Xvel = who.Xvel * this.friction;
who.nexty = who._y + (who.Yvel * 1.8);
who.midy = who._y - (who._height / 2);
who.topy = (who._y - who._height) + 15;
who.edgex = (who._x + ((who._width / 2) * (who._xscale / 100))) + who.Xvel;
if (this.bg.hitTest(who._x, who.nexty, true)) {
if (who.Yvel > 0) {
who.Yvel = who.Yvel - who.Yvel;
}
if ((who.jumping == true) && (!Key.isDown(38))) {
who.jumping = false;
who.superjump = false;
who.floatcount = 0;
who.floatpressed = false;
}
} else if (this.whichdude != 2) {
if (who.Yvel < 10) {
who.Yvel = who.Yvel + (this.grav / 2);
}
} else {
if (who.jumping == true) {
if ((Key.isDown(38) && (who.Yvel > -1)) && (who.floatcount < 50)) {
who.floatpressed = true;
who.Yvel = 0;
who.floating = true;
if (who.holding != true) {
who.guts.gotoAndStop("jump");
} else {
who.guts.gotoAndStop("jumphold");
}
who.floatcount = who.floatcount + 1;
}
if ((!Key.isDown(38)) || (who.floatcount >= 50)) {
who.floating = false;
if (who.floatpressed == true) {
who.floatcount = 50;
}
}
}
if ((who.Yvel < 10) && (who.floating != true)) {
who.Yvel = who.Yvel + (this.grav / 2);
}
}
if (this.bg.hitTest(who.edgex, who.topy, true) || (this.bg.hitTest(who.edgex, who.nexty, true) and (who.jumping == true))) {
var _local4 = Math.abs(who.Xvel);
if (_local4 > 3.5) {
who.Xvel = who.Xvel * -0.8;
this.bg._x = this.bg._x - who.Xvel;
} else if (who.superjump != true) {
who.Xvel = 0;
if (Key.isDown(37) || (Key.isDown(39))) {
if (who._xscale > 0) {
who.pushingright = true;
} else {
who.pushingleft = true;
}
} else {
who.pushingleft = false;
who.pushingright = false;
}
}
} else {
who.pushingleft = false;
who.pushingright = false;
}
if (this.bg.hitTest(who._x, who.topy, true)) {
who.Yvel = Math.abs(who.Yvel) + 4;
who.pushingleft = false;
who.pushingright = false;
}
this.bg2._x = this.bg._x;
this.bg2._y = this.bg._y;
this.wart._x = this.bg._x;
this.wart._y = this.bg._y;
this.bubs._x = this.bg._x;
this.bubs._y = this.bg._y;
if (who.jumping == true) {
if (who.Yvel < 0) {
if (who.holding != true) {
who.guts.gotoAndStop("jump");
} else {
who.guts.gotoAndStop("jumphold");
}
} else if (who.floating != true) {
if (who.holding != true) {
who.guts.gotoAndStop("run");
} else {
who.guts.gotoAndStop("runhold");
}
}
}
}
if (who.dead == true) {
if (this.killplayed != true) {
stopAllSounds();
this.lose.start();
g = this.attachMovie("theend" + this.whichdude, "theend", 879);
g._x = who._x;
g._y = who._y;
g.Yvel = -25;
this.nosound = true;
g.onEnterFrame = function () {
this._y = this._y + this.Yvel;
this.Yvel = this.Yvel + 1.5;
if (this._y > 450) {
trace("gameover");
_root.lose();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
this.killplayed = true;
}
delete who.onEnterFrame;
who.unloadMovie();
who.removeMovieClip();
}
};
this.veggie = function (who) {
if ((who._y > (Stage.height - this.bg._y)) && (this.dude.jumping != true)) {
if (who.thrown == true) {
this.vegarray = new Array();
}
if (who.id == 999) {
this.bg2.as._visible = true;
this.bubs.bubeffect.unloadMovie();
this.bubs.bubeffect.removeMovieClip();
}
who.removeMovieClip();
}
if ((this.dude.hitTest(who._x + this.bg._x, who._y + this.bg._y, true) && (this.dude.holding != true)) && (who.thrown != true)) {
who.grabbed = true;
this.dude.holding = true;
this.dude.storedheight = this.dude._height;
} else if (who.grabbed != true) {
who._x = who._x + who.Xvel;
who._y = who._y + who.Yvel;
who.Xvel = who.Xvel * 0.93;
who.Yvel = who.Yvel + 0.7;
}
if (who.grabbed == true) {
if (this.dude.ducking == true) {
who._y = (this.dude._y - this.bg._y) - 50;
who._x = (this.dude._x - this.bg._x) + this.dude.Xvel;
} else {
who._x = (this.dude._x - this.bg._x) + this.dude.Xvel;
who._y = ((this.dude._y - this.dude._height) + 20) - this.bg._y;
who._xscale = this.dude._xscale;
if (this.dude.charged == true) {
who._y = (((this.dude._y - this.dude.storedheight) + 20) - this.bg._y) + this.dude.Yvel;
}
}
if (Key.isDown(32)) {
this.thro.start();
this.vegarray.push("veg" + who.id);
who.Xvel = this.dude.Xvel * 2;
if ((who.Xvel < 10) && (who._xscale > 0)) {
who.Xvel = 10;
}
if ((who.Xvel > -10) && (who._xscale < 0)) {
who.Xvel = -10;
}
who._x = who._x + who.Xvel;
who.Yvel = (Math.abs(this.dude.Xvel) + 2) * -0.5;
this.dude.holding = false;
who.thrown = true;
who.grabbed = false;
}
if (this.dude.dead == true) {
who.Yvel = this.grav;
this.dude.holding = false;
who.thrown = true;
who.grabbed = false;
}
}
};
this.ai = function (who) {
if (((who._x < 1750) and (who.goback != true)) && (who.shooting != true)) {
who._x = who._x + 2;
if (who._x >= 1750) {
who.goback = true;
}
}
if ((who.goback == true) && (who.shooting != true)) {
if (who._x > 1600) {
who._x = who._x - 2;
if (who._x <= 1600) {
who.goback = false;
}
}
}
if (who.shooting == true) {
if (this.bubcount == 1) {
var _local3 = random(6);
var _local4 = "bomtoons_veg" + _local3;
v = this.bubs.attachMovie(_local4, "veg" + _local3, this.vegcount);
v._x = 1260;
v._y = 350;
v.onEnterFrame = function () {
this._parent._parent.veggie(this);
};
v.Xvel = -10;
v.Yvel = -5;
v.id = _local3;
this.allarray[v.id] = "veg" + v.id;
this.vegcount = this.vegcount + 1;
}
if (this.bubcount < 12) {
this.bubcount = this.bubcount + 1;
} else {
this.opencount = this.opencount + 1;
if ((this.opencount > 25) && (who.playhit != true)) {
who.shooting = false;
this.bubcount = 0;
this.opencount = 0;
who.playhit = false;
who.gotoAndStop("walk");
}
}
if ((this.bubcount < 12) && (this.bubcount > 6)) {
who.gotoAndStop("shoot");
b = this.bubs.attachMovie("bombub", "bub" + this.bubcount, this.bubcount);
b._x = ((who._parent._x + who._x) - 35) - this.bg2._x;
b._y = ((who._parent._y + who._y) - 115) - this.bg2._y;
b.Xvel = ((120 / this.bubcount) * -1) - random(this.bubcount * 2.5);
b.Yvel = -15 - random(3);
}
}
};
this.shootbubbles = function (who) {
if (who.shooting != true) {
who.shooting = true;
}
};
setInterval(this.shootbubbles, 7000, this.wart.guts);
this.onEnterFrame = function () {
if (((this.won != true) && (!this.dude.dead)) && (!this.nosound)) {
if (tim0 > 0) {
tim0 = tim0 - 1;
}
this.physics(this.dude);
this.ai(this.wart.guts);
if ((Key.isDown(39) && (!Key.isDown(40))) && (this.dude.pushingright != true)) {
if (!this.bg.hitTest(this.dude.edgex, this.dude.topy, true)) {
this.dude.Xvel = this.dude.Xvel + this.speed;
}
this.dude._xscale = 100;
this.dude.charged = false;
if ((this.dude.jumping != true) && (this.dude.Yvel <= 0)) {
if (this.dude.holding != true) {
this.dude.guts.gotoAndStop("run");
} else {
this.dude.guts.gotoAndStop("runhold");
}
}
if (this.dude.Xvel < 0) {
if (this.dude.holding != true) {
this.dude.guts.gotoAndStop("slide");
} else {
this.dude.guts.gotoAndStop("holdslide");
}
}
this.dude.pushingleft = false;
}
if ((Key.isDown(37) && (!Key.isDown(40))) && (this.dude.pushingleft != true)) {
if (!this.bg.hitTest(this.dude.edgex, this.dude.topy, true)) {
this.dude.Xvel = this.dude.Xvel - this.speed;
}
this.dude._xscale = -100;
this.dude.charged = false;
if ((this.dude.jumping != true) && (this.dude.Yvel <= 0)) {
if (this.dude.holding != true) {
this.dude.guts.gotoAndStop("run");
} else {
this.dude.guts.gotoAndStop("runhold");
}
}
if (this.dude.Xvel > 0) {
if (this.dude.holding != true) {
this.dude.guts.gotoAndStop("slide");
} else {
this.dude.guts.gotoAndStop("holdslide");
}
}
this.dude.pushingright = false;
}
if (Key.isDown(38) && (this.dude.jumping != true)) {
this.jump.start();
if (this.dude.charged != true) {
this.dude.Yvel = this.dude.Yvel - (this.maxjump + (Math.abs(this.dude.Xvel) / 5));
} else {
if ((this.whichdude == 0) || (this.whichdude == 2)) {
this.dude.Yvel = this.dude.Yvel - ((this.maxjump + (Math.abs(this.dude.Xvel) / 5)) * 1.8);
}
if (this.whichdude == 1) {
this.dude.Yvel = this.dude.Yvel - ((this.maxjump + (Math.abs(this.dude.Xvel) / 5)) * 2.1);
}
this.dude.superjump = true;
this.dude.charged = false;
}
this.dude.jumping = true;
}
if (Key.isDown(40) && (this.dude.jumping != true)) {
if (this.dude.charged != true) {
this.dude.guts.gotoAndStop("duck");
} else {
this.dude.guts.gotoAndStop("duckcharge");
}
this.dude.ducking = true;
this.dude.chargecount = this.dude.chargecount + 1;
if (this.dude.chargecount > 25) {
this.dude.charged = true;
this.dude.pushingright = false;
this.dude.pushingleft = false;
}
} else {
this.dude.chargecount = 0;
this.dude.ducking = false;
}
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (this.dude.jumping != true)) && (!Key.isDown(40))) {
if (this.dude.holding != true) {
if (this.dude.charged != true) {
this.dude.guts.gotoAndStop("rest");
} else {
this.dude.guts.gotoAndStop("restcharge");
}
} else if (this.dude.charged != true) {
this.dude.guts.gotoAndStop("resthold");
} else {
this.dude.guts.gotoAndStop("restholdcharge");
}
this.dude.pushingright = false;
this.dude.pushingleft = false;
this.dude.ducking = false;
}
if ((!Key.isDown(40)) and (this.dude.charged != true)) {
this.dude.chargecount = 0;
this.dude.ducking = false;
}
} else {
this.dude.guts.gotoAndStop("rest");
this.bubs.bubeffect.unloadMovie();
}
this.wartlife.gotoAndStop("l" + this.hitcount);
};
Symbol 576 MovieClip [bombub] Frame 1
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
this._x = this._x + this.Xvel;
this._y = this._y + this.Yvel;
this.Xvel = this.Xvel * 0.95;
this.Yvel = this.Yvel + 0.7;
v = 0;
while (v < this._parent._parent.allarray.length) {
var veb = this._parent._parent.allarray[v];
var veg = eval ("this._parent._parent.bubs." + veb);
if (this.hitTest(veg) && (veg.grabbed != true)) {
p = this._parent.attachMovie("bomtoons_poof", "poof", this.getNextHighestDepth());
p._x = this._x;
p._y = this._y;
p._xscale = 80;
p._yscale = p._xscale;
veg.removeMovieClip();
this._parent._parent.allarray[veg.id] = undefined;
this.removeMovieClip();
delete this.onEnterFrame;
}
v++;
}
if (Stage.height < (this._y + this._parent._y)) {
this.removeMovieClip();
}
if (this._parent._parent.dude.hitTest(this._x + this._parent._x, this._y + this._parent._y, true) && (this._parent._parent.dude.blink != true)) {
if ((this._parent._parent.hp > 0) && (this._parent._parent.dude.inv != true)) {
this._parent._parent.hp = this._parent._parent.hp - 1;
this._parent._parent.dude.blink = true;
this._parent._parent.dude.blinkcount = 0;
}
this.removeMovieClip();
}
};
Symbol 618 MovieClip Frame 1
this._parent._parent._parent.chkHit(this._parent._parent, this.hitbox);
Symbol 620 MovieClip Frame 1
this._parent._parent._parent.chkHit(this._parent._parent, this.hitbox);
Symbol 623 MovieClip Frame 5
this._parent._parent._parent.chkHitBig(this._parent._parent, this.hitbox);
Symbol 623 MovieClip Frame 10
stop();
Symbol 625 MovieClip Frame 1
if (this._parent._parent.carrying) {
this._parent._parent._parent.barrelFall(this._parent._parent);
}
Symbol 635 MovieClip Frame 1
if (this._parent._parent.carrying) {
this._parent._parent._parent.barrelFall(this._parent._parent);
}
Symbol 635 MovieClip Frame 17
stop();
Symbol 653 MovieClip Frame 1
this._parent._parent.Xvel = (this._parent._xscale / -100) * 10;
Symbol 653 MovieClip Frame 9
this._parent._parent.carrying = false;
this._parent._parent.throwing = false;
Symbol 655 MovieClip Frame 6
this._parent._parent.pickingup = false;
Symbol 659 MovieClip Frame 1
this._visible = false;
Symbol 685 MovieClip Frame 1
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 4
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 7
this._parent._parent.wait = true;
Symbol 685 MovieClip Frame 9
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 15
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 18
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 21
this._parent._parent.wait = false;
Symbol 685 MovieClip Frame 24
this._parent._parent.wait = true;
Symbol 696 MovieClip Frame 19
stop();
Symbol 703 MovieClip Frame 7
this._parent._parent._parent.testAboboHit(this._parent._parent, this.punchtest, 9, true);
Symbol 703 MovieClip Frame 18
this._parent._parent.punching = false;
Symbol 708 MovieClip Frame 7
this._parent._parent._parent.testAboboHit(this._parent._parent, this.punchtest, 5, false);
this._parent._parent.Xvel = 15 * (this._parent._xscale / -100);
Symbol 708 MovieClip Frame 22
this._parent._parent.punching = false;
Symbol 709 MovieClip Frame 1
stop();
Symbol 737 MovieClip [game_dd] Frame 1
function updateHealth() {
if (dude.hp > 0) {
this.hud.bar._xscale = (dude.hp / dude.maxx) * 100;
} else {
this.hud.bar._xscale = 0;
dude.deceased = true;
if (!dude.onground) {
dude.guts.gotoAndStop("fall");
dude.hitcount = 0;
dude.onground = true;
dude.Xvel = (dude.guts._xscale / 100) * 50;
}
}
}
function chkHit(who, box) {
i = 0;
while (i < badz.length) {
thing = eval (badz[i]);
if ((who._y < (thing._y + 10)) && (who._y > (thing._y - 10))) {
if (box.hitTest(thing.guts.hitzone)) {
thing.guts._xscale = who.guts._xscale * -1;
thing.hp = thing.hp - 1;
hitReact(who, thing);
}
}
i++;
}
}
function chkHitBig(who, box) {
swish4.start();
i = 0;
while (i < badz.length) {
thing = eval (badz[i]);
if ((who._y < (thing._y + 10)) && (who._y > (thing._y - 10))) {
if (box.hitTest(thing.guts.hitzone)) {
punch2.start();
thing.hp = thing.hp - 7;
thing.guts._xscale = who.guts._xscale * -1;
hitReact(who, thing, true);
}
}
i++;
}
}
function testAboboHit(who, block, amt, fall) {
if (!dude.blinking) {
if (who.ydist < 15) {
if (block.hitTest(dude.guts.hitarea)) {
dude.guts._xscale = who.guts._xscale * -1;
who.hitcv = 0;
who.fcv = 0;
dude.hp = dude.hp - amt;
updateHealth();
if (fall) {
dude.guts.gotoAndStop("fall");
dude.hitcount = 0;
dude.onground = true;
dude.Xvel = (dude.guts._xscale / 100) * 50;
} else {
dude.hitcount = dude.hitcount + 1;
if (dude.hitcount <= 3) {
dude.guts.gotoAndStop("hit");
dude.beenhit = true;
dude.Xvel = (dude.guts._xscale / 100) * 30;
} else {
dude.guts.gotoAndStop("fall");
dude.hitcount = 0;
dude.onground = true;
dude.Xvel = (dude.guts._xscale / 100) * 50;
}
}
h = _root.attachMovie("dd_hitlight", "hit" + objcv, objcv + 99899);
h._xscale = 70;
h._yscale = h._xscale;
h._x = who._x + ((who.guts._xscale / 100) * -50);
h._y = who._y - 70;
objcv++;
}
}
}
}
function hitReact(who, thing, autofall) {
if (autofall) {
thing.hitcount = 6;
}
thing.hitcount = thing.hitcount + 1;
if (thing.hitcount <= 6) {
h = _root.attachMovie("dd_hitlight2", "hit" + objcv, objcv + 9899999);
h._xscale = 70;
h._yscale = h._xscale;
h._x = who._x + ((who.guts._xscale / 100) * -50);
h._y = who._y - 70;
objcv = objcv + 1;
thing.beenhit = true;
thing.Xvel = (who.guts._xscale / 100) * -2;
thing.guts.gotoAndStop("hit");
who.fighting = true;
thing.fighting = true;
thing.fcv = 0;
who.fcv = 0;
} else {
if (autofall) {
thing.Xvel = (who.guts._xscale / 100) * -30;
} else {
thing.Xvel = (who.guts._xscale / 100) * -10;
}
thing.onground = true;
thing.guts.gotoAndStop("fall");
thing.hitcount = 0;
}
}
function ptimer(who) {
who.pcv = who.pcv + 1;
if (who.pcv >= 12) {
who.punches = 0;
who.pcv = 0;
clearInterval(who.myInt);
}
}
function getWho() {
return(dude);
}
function initGuy(who, sp, pspeed, maxh, maxg, shp) {
who.hp = shp;
who.maxx = who.hp;
who.Xvel = 0;
who.Yvel = 0;
who.speed = sp;
who.attcv = 0;
who.punchspeed = pspeed;
who.hitcv = 0;
who.maxstun = maxh;
who.groundcv = 0;
who.maxground = maxg;
who.punchcv = 0;
who.whichhand = 0;
who.hitcount = 0;
who.recovercv = 0;
who.dcv = 0;
}
function phys(who) {
who.swapDepths(who._y);
if (who.hitcount > 0) {
who.recovercv = who.recovercv + 1;
if (who.recovercv > 80) {
who.hitcount = 0;
who.recovercv = 0;
}
}
if (((((who.Xvel != 0) && (!who.beenhit)) && (!who.onground)) && (!who.punching)) || ((((who.Yvel != 0) && (!who.beenhit)) && (!who.onground)) && (!who.punching))) {
if (!who.attacking) {
if (!who.carrying) {
who.guts.gotoAndStop("walk");
} else if (!who.pickingup) {
if (!who.throwing) {
who.guts.gotoAndStop("carry");
} else {
who.guts.gotoAndStop("throw");
}
} else {
who.guts.gotoAndStop("pickingup");
}
}
}
who.Xvel = who.Xvel * 0.6;
who.Yvel = who.Yvel * 0.6;
who._x = who._x + who.Xvel;
who._y = who._y + who.Yvel;
who.absx = Math.abs(who.Xvel);
if (who.absx < 0.05) {
who.Xvel = 0;
}
who.absy = Math.abs(who.Yvel);
if (who.absy < 0.05) {
who.Yvel = 0;
}
if ((((((who.absy < 1) && (who.absx < 1)) && (!who.attacking)) && (!who.beenhit)) && (!who.onground)) && (!who.punching)) {
if (!who.carrying) {
who.guts.gotoAndStop("rest");
} else if (!who.pickingup) {
if (!who.throwing) {
who.guts.gotoAndStop("carryrest");
} else {
who.guts.gotoAndStop("throw");
}
} else {
who.guts.gotoAndStop("pickingup");
}
}
if (!who.outofbounds) {
if (who._x <= 0) {
who._x = 0;
who.goty = false;
who.gotx = false;
}
if (who._x >= 480) {
who._x = 480;
who.goty = false;
who.gotx = false;
}
if (who._y <= 210) {
who._y = 210;
who.goty = false;
who.gotx = false;
}
if (who._y >= 400) {
who._y = 400;
who.goty = false;
who.gotx = false;
}
}
}
function bossai(who) {
if (!who.beenhit) {
if (!who.onground) {
if (dude._x < who._x) {
if (who.xdist > 10) {
who.guts._xscale = 100;
}
} else if (who.xdist > 10) {
who.guts._xscale = -100;
}
who.fcv = who.fcv + 1;
if (who.fcv >= 15) {
who.fcv = 0;
who.fighting = false;
who.attacking = false;
}
who.xdist = Math.abs(who._x - dude._x);
who.ydist = Math.abs(who._y - dude._y);
if ((who.ydist < 10) && (!dude.onground)) {
if (who.xdist < 100) {
who.fighting = true;
}
}
if (who.fighting) {
if (!who.punching) {
who.punching = true;
who.punchnum = random(2);
}
who.guts.gotoAndStop("punch" + who.punchnum);
}
if (!who.fighting) {
who.dcv = who.dcv + 1;
if (who.dcv >= 50) {
who.dcv = 0;
who.act = random(2);
}
if ((who.act == 0) && (!dude.deceased)) {
if (dude._x < who._x) {
who.dir = -1;
} else {
who.dir = 1;
}
if (who.xdist > 50) {
if (!who.wait) {
who.Xvel = who.speed * who.dir;
} else {
who.Xvel = (who.speed * who.dir) / 1.075;
}
}
if (dude._y < who._y) {
who.ydir = -1;
} else {
who.ydir = 1;
}
if (!who.wait) {
who.Yvel = who.speed * who.ydir;
} else {
who.Yvel = (who.speed * who.ydir) / 1.075;
}
}
if (who.act == 1) {
who.Xvel = 0;
who.Yvel = 0;
}
}
} else if (who.hp > 0) {
who.groundcv = who.groundcv + 1;
if (who.groundcv >= who.maxground) {
who.guts.gotoAndStop("getup");
if (who.groundcv >= (who.maxground + 10)) {
who.hitcount = 0;
who.groundcv = 0;
who.onground = false;
}
}
} else {
who.groundcv = who.groundcv + 1;
if (!who.dead) {
who.blinkcv = 0;
who.numblinks = 0;
who.dead = true;
}
if (who.groundcv >= 25) {
who.blinkcv = who.blinkcv + 1;
if (who.blinkcv > 2) {
who.blinkcv = 0;
who.numblinks = who.numblinks + 1;
who._visible = !who._visible;
if (who.numblinks >= 20) {
if (who != abobo) {
numdeaths = numdeaths + 1;
}
who._visible = false;
who.dead = true;
delete who.onEnterFrame;
who.unloadMovie();
who.removeMovieClip();
if (numdeaths == 2) {
readyfor2ndround = true;
}
if ((numdeaths == 4) && (!abobo._visible)) {
trace("YOU WIN");
runEnd();
}
}
}
}
}
} else {
who.hitcv = who.hitcv + 1;
if (who.hitcv >= who.maxstun) {
who.hitcv = 0;
who.beenhit = false;
}
}
}
function ai0(who) {
if (who.fighting && (!dude.onground)) {
if (!who.beenhit) {
if (!who.onground) {
who.attacking = true;
who.punchcv = who.punchcv + 1;
if (who.punchcv >= who.punchspeed) {
who.punchcv = 0;
who.guts.gotoAndStop("punch" + who.whichhand);
var pnummer = (who.whichhand + 1);
var thinger = eval ("swish" + pnummer);
thinger.setVolume(50);
thinger.start();
thinger.setVolume(50);
who.attcv = 0;
who.ydist = Math.abs(who._y - dude._y);
if (who.guts.punchtest.hitTest(dude.guts.hitarea) && (who.ydist <= 10)) {
if (!dude.blinking) {
dude.guts._xscale = who.guts._xscale * -1;
who.hitcv = 0;
who.fcv = 0;
if (who.whichhand == 0) {
who.whichhand = 1;
} else {
who.whichhand = 0;
}
dude.hitcount = dude.hitcount + 1;
dude.hp = dude.hp - 2;
updateHealth();
if (dude.hitcount <= 3) {
dude.guts.gotoAndStop("hit");
dude.beenhit = true;
dude.Xvel = (dude.guts._xscale / 100) * 2;
} else {
dude.guts.gotoAndStop("fall");
dude.hitcount = 0;
dude.onground = true;
dude.Xvel = (dude.guts._xscale / 100) * 20;
}
h = _root.attachMovie("dd_hitlight", "hit" + objcv, objcv + 777866);
h._xscale = 70;
h._yscale = h._xscale;
h._x = who._x + ((who.guts._xscale / 100) * -50);
h._y = who._y - 70;
objcv++;
}
}
}
}
}
who.fcv = who.fcv + 1;
if (who.fcv >= 15) {
who.fcv = 0;
who.fighting = false;
who.attacking = false;
if (!who.onground) {
who.guts.gotoAndStop("rest");
}
}
who.debug = "fighting";
}
if (!who.beenhit) {
if (!who.onground) {
if (who.attacking) {
who.attcv = who.attcv + 1;
if (who.attcv >= 10) {
who.attcv = 0;
who.guts.gotoAndStop("rest");
}
}
if (dude._x > who._x) {
who.guts._xscale = -100;
} else {
who.guts._xscale = 100;
}
if (!who.fighting) {
who.debug = "";
}
who.distx = Math.abs(who._x - dude._x);
who.disty = Math.abs(who._y - dude._y);
if ((who.disty < 10) && (who.distx < 80)) {
who.fighting = true;
who.fcv = 0;
}
if (!who.fighting) {
if (!who.outofbounds) {
who.dcv = who.dcv + 1;
if (who.dcv >= 50) {
who.dcv = random(50) - 10;
who.dec = random(5);
who.xgoal = random(450);
who.ygoal = random(190) + 210;
}
if (who.dec == 0) {
if (who._x < who.xgoal) {
who.Xvel = who.Xvel + who.speed;
}
if (who._x > who.xgoal) {
who.Xvel = who.Xvel - who.speed;
}
if (who._y < who.ygoal) {
who.Yvel = who.Yvel + who.speed;
}
if (who._y > who.ygoal) {
who.Yvel = who.Yvel - who.speed;
}
who.goaldistx = Math.abs(who.xgoal - who._x);
who.goaldisty = Math.abs(who.ygoal - who._y);
if ((who.goaldistx < 5) && (who.goaldisty < 5)) {
who.dec = 1;
}
}
if (who.dec == 1) {
who.Xvel = 0;
who.Yvel = 0;
}
if (who.dec == 2) {
who.ygoal = dude._y;
who.xgoal = dude._x + ((dude.guts._xscale / 100) * 100);
who.dec = 0;
}
if (who.dec == 3) {
who.dec = 0;
}
if (who.dec == 4) {
who.dec = 1;
}
} else {
if (who._x < who.xgoal) {
who.Xvel = who.Xvel + who.speed;
}
if (who._x > who.xgoal) {
who.Xvel = who.Xvel - who.speed;
}
if (who._y < who.ygoal) {
who.Yvel = who.Yvel + who.speed;
}
if (who._y > who.ygoal) {
who.Yvel = who.Yvel - who.speed;
}
who.goaldistx = Math.abs(who.xgoal - who._x);
who.goaldisty = Math.abs(who.ygoal - who._y);
if ((who.goaldistx < 5) && (who.goaldisty < 5)) {
who.dec = 1;
who.outofbounds = false;
}
}
}
} else if (who.hp > 0) {
who.groundcv = who.groundcv + 1;
if (who.groundcv >= who.maxground) {
who.guts.gotoAndStop("getup");
if (who.groundcv >= (who.maxground + 10)) {
who.hitcount = 0;
who.groundcv = 0;
who.onground = false;
}
}
} else {
who.groundcv = who.groundcv + 1;
if (!who.dead) {
who.blinkcv = 0;
who.numblinks = 0;
who.dead = true;
}
if (who.groundcv >= 25) {
who.blinkcv = who.blinkcv + 1;
if (who.blinkcv > 2) {
who.blinkcv = 0;
who.numblinks = who.numblinks + 1;
who._visible = !who._visible;
if (who.numblinks >= 20) {
numdeaths = numdeaths + 1;
who._visible = false;
who.dead = true;
delete who.onEnterFrame;
who.unloadMovie();
who.removeMovieClip();
if (numdeaths == 2) {
readyfor2ndround = true;
}
if ((numdeaths == 4) && (!abobo._visible)) {
trace("YOU WIN");
runEnd();
}
}
}
}
}
} else {
who.hitcv = who.hitcv + 1;
if (who.hitcv >= who.maxstun) {
who.hitcv = 0;
who.beenhit = false;
}
}
}
function secondRound() {
b = this.attachMovie("dd_bad0", "bad0", 9999);
b.outofbounds = true;
b._xscale = 44;
b._yscale = b._xscale;
b._x = -100;
b._y = 350;
b.xgoal = 250;
b.ygoal = 275;
initGuy(b, 2.5, 12, 4, 40, 20);
b = this.attachMovie("dd_bad0", "bad1", 9998);
b.outofbounds = true;
b._xscale = 44;
b._yscale = b._xscale;
b._x = 600;
b._y = 350;
b.xgoal = 350;
b.ygoal = 375;
initGuy(b, 2.5, 12, 4, 40, 50);
this.badz = new Array(bad0, bad1, abobo);
}
function barrelFall(who) {
barrel._x = who._x + ((who.guts._xscale / 100) * 30);
barrel._y = who._y + 3;
barrel.inair = true;
barrel.guts._y = -350;
barrel._visible = true;
who.carrying = false;
barrel.Xvel = (who.guts._xscale / 100) * 2;
barrel.Yvel = 0;
barrel.bounce = 0;
}
function throwBarrel(who) {
if (barrel.numthrows == undefined) {
barrel.numthrows = 0;
}
barrel.numthrows = barrel.numthrows + 1;
barrel._x = who._x + ((who.guts._xscale / -100) * 50);
barrel._y = who._y + 1;
barrel.inair = true;
barrel.guts._y = -350;
barrel._visible = true;
if (barrel.numthrows < 5) {
barrel.Xvel = (who.guts._xscale / -100) * 10;
} else {
barrel.Xvel = (who.guts._xscale / -100) * 20;
}
barrel.Yvel = 0;
barrel.bounce = 0;
}
function barrelP(who) {
who.swapDepths(who._y);
if (!who.inair) {
who.shad._visible = true;
who.xdist = Math.abs(who._x - dude._x);
who.ydist = Math.abs(who._y - dude._y);
if (((who.xdist < 50) && (who.ydist < 30)) && (who._visible)) {
who.guts.gotoAndStop("lit");
dude.nearbarrel = true;
} else {
dude.nearbarrel = false;
who.guts.gotoAndStop("norm");
}
} else {
if (who.guts._y >= -150) {
who.guts._y = -150;
who.Yvel = who.Yvel * -0.6;
hollowclank.start();
who.bounce = who.bounce + 1;
}
if (who.bounce < 3) {
i = 0;
while (i < badz.length) {
thing = eval (badz[i]);
if ((who._y < (thing._y + 15)) && (who._y > (thing._y - 15))) {
if (who.guts.hitarea.hitTest(thing.guts.hitzone)) {
punch2.start();
thing.hp = thing.hp - 7;
thing.onground = true;
thing.guts.gotoAndStop("fall");
thing.hitcount = 0;
thing.groundcv = 0;
thing.Xvel = who.Xvel;
}
}
i++;
}
}
who._x = who._x + who.Xvel;
who.Xvel = who.Xvel * 0.97;
who.guts._y = who.guts._y + who.Yvel;
who.Yvel = who.Yvel + 5;
if (who.bounce >= 5) {
who.guts._y = -150;
who.inair = false;
delete who.onEnterFrame;
}
}
}
function controls(who) {
if (!this.pausy) {
if (who.blinking) {
who.blinkcv = who.blinkcv + 1;
who.p1._visible = true;
p1._xscale = who.guts._xscale;
if (who.blinkcv >= 5) {
who._visible = !who._visible;
who.blinkcv = 0;
who.deathtoll = who.deathtoll + 1;
if (who.deathtoll >= 23) {
who.deathtoll = 0;
who.blinkcv = 0;
who.blinking = false;
who.p1._visible = false;
who._visible = true;
}
}
}
if (who.beenhit) {
who.hitcv = who.hitcv + 1;
if (who.hitcv >= who.maxstun) {
who.hitcv = 0;
who.beenhit = false;
}
} else if (!who.onground) {
if (who.fighting) {
who.fcv = who.fcv + 1;
if (who.fcv >= 10) {
who.fcv = 0;
who.fighting = false;
}
}
if (!Key.isDown(65)) {
who.aup = true;
}
if (!who.attacking) {
if (Key.isDown(39)) {
who.Xvel = who.Xvel + who.speed;
who.guts._xscale = -100;
}
if (Key.isDown(37)) {
who.Xvel = who.Xvel - who.speed;
who.guts._xscale = 100;
}
if (Key.isDown(38)) {
who.Yvel = who.Yvel - who.speed;
}
if (Key.isDown(40)) {
who.Yvel = who.Yvel + who.speed;
}
} else {
who.attcv = who.attcv + 1;
if (who.attcv >= who.punchspeed) {
who.attcv = 0;
who.attacking = false;
who.uppercut = false;
who.gotoAndStop("rest");
}
}
} else if (!who.deceased) {
who.groundcv = who.groundcv + 1;
if (who.groundcv >= who.maxground) {
who.guts.gotoAndStop("getup");
if (who.groundcv >= (who.maxground + 10)) {
who.groundcv = 0;
who.onground = false;
}
}
} else {
who.guts.gotoAndStop("fall");
who.groundcv = who.groundcv + 1;
if (who.groundcv > 15) {
who.deathtoll = who.deathtoll + 1;
if (!who.beenset) {
who.blinkcv = 0;
who.beenset = true;
}
}
if (who.deathtoll >= 5) {
who._visible = !who._visible;
who.deathtoll = 0;
who.blinkcv = who.blinkcv + 1;
if (who.blinkcv >= 10) {
if (numlives == 1) {
reSpawn();
} else {
youLose();
}
}
}
}
}
}
function reSpawn() {
trace("respawn");
who._x = 250;
who._y = 275;
who.blinking = true;
who.deathtoll = 0;
who.groundcv = 0;
who.onground = false;
who.beenset = false;
who.deceased = false;
numlives = 0;
who.hp = who.maxx;
updateHealth();
}
function youLose() {
dude._visible = false;
who.deathtoll = 0;
who.groundcv = 0;
who.onground = false;
who.beenset = false;
who.deceased = false;
who.hp = who.maxx;
this.pausy = true;
numlives = 0;
hud.numlives = 0;
i = 0;
while (i < badz.length) {
var thing = eval (badz[i]);
thing.gotoAndStop("rest");
i++;
}
trace("YOU LOSE");
_root.lose();
}
function runEnd() {
this.pausy = true;
dude.guts.gotoAndStop("rest");
showtim = tim0;
lif = ((dude.maxx * (numlives + 1)) - (dude.maxx - dude.hp)) * 10;
_root.win(showtim, lif);
}
stop();
dude.guts._xscale = -100;
dude.pcv = 0;
dude.which = 0;
dude.punches = 0;
dude.deathtoll = 0;
dude.blinkcv = 0;
dude.blinking = true;
numdeaths = 0;
numlives = 1;
rcv = 0;
tim0 = 5370;
hud.swapDepths(999);
objcv = 0;
badz = new Array(bad0, bad1, abobo);
this.swish1 = new Sound(this);
swish1.attachSound("swish1.wav");
this.swish2 = new Sound(this);
swish2.attachSound("swish2.wav");
this.swish3 = new Sound(this);
swish3.attachSound("swish3.wav");
this.swish4 = new Sound(this);
swish4.attachSound("swish4.wav");
this.punch2 = new Sound(this);
punch2.attachSound("punch2.wav");
this.hollowclank = new Sound(this);
hollowclank.attachSound("hollowclank.wav");
this.varoop = new Sound(this);
varoop.attachSound("varoop");
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
who = getWho();
if ((!who.beenhit) && (!who.onground)) {
if (who.aup) {
who.aup = false;
if (_local1 == 65) {
if (((!who.carrying) && (!who.nearbarrel)) || ((!who.carrying) && (who.attacking))) {
if (!who.uppercut) {
if (who.pcv == 0) {
who.myInt = setInterval(ptimer, 100, who);
}
if (!who.attacking) {
who.attacking = true;
who.attcv = 0;
if (who.which == 1) {
who.guts.gotoAndStop("punch1");
swish1.setVolume(50);
swish1.start();
swish1.setVolume(50);
who.which = 0;
} else {
who.guts.gotoAndStop("punch0");
swish2.setVolume(50);
swish2.start();
swish2.setVolume(50);
who.which = 1;
}
who.punches = who.punches + 1;
}
if (who.punches > 4) {
who.Xvel = who.Xvel + ((who.guts._xscale / 100) * -20);
who.guts.gotoAndStop("punch2");
who.pcv = 0;
who.attcv = -10;
who.uppercut = true;
who.punches = 0;
clearInterval(who.myInt);
}
}
} else if (!who.nearbarrel) {
if ((!who.throwing) && (!who._parent.barrel.inair)) {
who.throwing = true;
throwBarrel(who);
}
} else {
who.carrying = true;
who.pickingup = true;
varoop.start();
barrel._visible = false;
}
}
}
}
};
Key.addListener(keyListener);
initGuy(this.dude, 3, 5, 4, 40, 50);
initGuy(this.bad0, 2.5, 12, 4, 40, 20);
initGuy(this.bad1, 2.5, 12, 4, 40, 20);
initGuy(this.abobo, 1.8, 12, 4, 40, 90);
this.onEnterFrame = function () {
if (!this.pausy) {
hud.numlives = this.numlives;
phys(this.dude);
i = 0;
while (i < badz.length) {
thing = this["bad" + i];
phys(thing);
ai0(thing);
i++;
}
barrelP(barrel);
phys(this.abobo);
bossai(this.abobo);
controls(this.dude);
if (tim0 > 0) {
tim0 = tim0 - 1;
}
tim = Math.floor(tim0 / 30);
if (readyfor2ndround && (!beendone)) {
rcv = rcv + 1;
if (rcv > 15) {
secondRound();
beendone = true;
}
}
if (abobo.hp > 0) {
hud.bar2._xscale = (abobo.hp / abobo.maxx) * 100;
} else {
hud.bar2._xscale = 0;
}
}
};
Symbol 740 MovieClip [dd_hitlight] Frame 4
this.unloadMovie();
this.removeMovieClip();
Symbol 742 MovieClip [dd_hitlight2] Frame 4
this.unloadMovie();
this.removeMovieClip();
Symbol 773 MovieClip [bomtoons_dude2] Frame 1
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 2
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 3
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 4
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 5
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 6
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 7
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 8
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 9
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 10
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 11
stop();
Symbol 773 MovieClip [bomtoons_dude2] Frame 12
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 1
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 2
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 3
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 4
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 5
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 6
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 7
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 8
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 9
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 10
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 11
stop();
Symbol 808 MovieClip [bomtoons_dudesmall2] Frame 12
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 1
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 2
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 3
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 4
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 5
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 6
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 7
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 8
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 9
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 10
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 11
stop();
Symbol 871 MovieClip [bomtoons_dude1] Frame 12
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 1
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 2
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 3
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 4
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 5
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 6
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 7
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 8
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 9
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 10
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 11
stop();
Symbol 934 MovieClip [bomtoons_dudesmall1] Frame 12
stop();
Symbol 936 MovieClip [bomtoons_veg0] Frame 1
this.cacheAsBitmap = true;
Symbol 938 MovieClip [bomtoons_veg1] Frame 1
this.cacheAsBitmap = true;
Symbol 940 MovieClip [bomtoons_veg2] Frame 1
this.cacheAsBitmap = true;
Symbol 942 MovieClip [bomtoons_veg3] Frame 1
this.cacheAsBitmap = true;
Symbol 944 MovieClip [bomtoons_veg4] Frame 1
this.cacheAsBitmap = true;
Symbol 946 MovieClip [bomtoons_veg5] Frame 1
this.cacheAsBitmap = true;
Symbol 961 MovieClip Frame 1
stop();
Symbol 967 Button
on (release) {
this._visible = false;
_root.so.data.seenit = true;
}
Symbol 980 Button
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 994 MovieClip Frame 13
gotoAndPlay (10);
Symbol 1009 Button
on (press) {
decideGam(0);
}
Symbol 1010 Button
on (press) {
decideGam(1);
}
Symbol 1014 MovieClip Frame 9
stop();
Symbol 1017 Button
on (press) {
decideGam(2);
}
Symbol 1018 Button
on (release) {
chooseRando();
}
Symbol 1026 Button
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 1027 MovieClip Frame 1
function decideGam(num) {
_root.dagam = num;
_root.gotoAndStop("gameoverview");
}
function chooseRando() {
var _local1 = random(3);
decideGam(_local1);
}
function showStars() {
i = 0;
while (i < 9) {
var thing = eval ("s" + i);
thing.full._visible = false;
i++;
}
i = 0;
while (i < 3) {
if (i < _root.so.data.stars[0]) {
var thing = eval ("s" + i);
thing.full._visible = true;
}
i++;
}
cv = 0;
i = 3;
while (i < 6) {
if (cv < _root.so.data.stars[1]) {
var thing = eval ("s" + i);
thing.full._visible = true;
}
cv++;
i++;
}
cv = 0;
i = 6;
while (i < 9) {
if (cv < _root.so.data.stars[2]) {
var thing = eval ("s" + i);
thing.full._visible = true;
}
cv++;
i++;
}
}
_root.so = SharedObject.getLocal("bosses");
if (_root.so.data.stars == undefined) {
_root.so.data.stars = new Array(0, 0, 0);
_root.so.data.timesplayed = new Array(0, 0, 0);
}
if (((_root.so.data.stars[0] == 3) && (_root.so.data.stars[1] == 3)) && (_root.so.data.stars[2] == 3)) {
wyn._visible = true;
wyn.onPress = function () {
gratz._visible = true;
};
} else {
wyn._visible = false;
}
if ((((_root.so.data.stars[0] == 3) && (_root.so.data.stars[1] == 3)) && (_root.so.data.stars[2] == 3)) && (!_root.so.data.seenit)) {
gratz._visible = true;
} else {
gratz._visible = false;
}
showStars();
Symbol 1027 MovieClip Frame 95
stop();
Symbol 1041 MovieClip Frame 9
stop();
Symbol 1044 Button
on (release) {
_root.so.data.timesplayed[_root.dagam] = _root.so.data.timesplayed[_root.dagam] + 1;
_root.gotoAndStop("gam");
}
Symbol 1049 MovieClip Frame 1
this._parent.setTimes(this);
Symbol 1050 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("main");
}
Symbol 1058 MovieClip Frame 1
this._parent.showKeys(_root.dagam, this);
Symbol 1065 MovieClip Frame 1
i = 0;
while (i < 3) {
thing = eval ("i" + i);
thing._visible = false;
i++;
}
var sho = eval ("i" + _root.dagam);
sho._visible = true;
Symbol 1066 MovieClip Frame 1
function setTimes(who) {
who.timesplayed = _root.so.data.timesplayed[_root.dagam];
}
function showKeys(num, who) {
if (keys[num][0]) {
who.b0._visible = true;
} else {
who.b0._visible = false;
}
if (keys[num][1]) {
who.b1._visible = true;
} else {
who.b1._visible = false;
}
if (keys[num][2]) {
who.b2._visible = true;
} else {
who.b2._visible = false;
}
}
m = new Array("http://www.newgrounds.com/audio/listen/42094", "http://www.newgrounds.com/audio/listen/60342", "http://www.newgrounds.com/audio/listen/5330");
ma = new Array("UBERBOT27 - SMB2 CAVERN CHAOS", "NESKIMOS - DOUBLE DRAGON THEME SONG", "GS-SCREAMER - ZELDAII: TEMPLE METAL TECHNO");
mus.msg = "MUSIC: " + ma[_root.dagam];
mus.onPress = function () {
getURL (m[_root.dagam], "_blank");
};
var tits = new Array("WART", "ABOBO", "THUNDERBIRD");
var texts = new Array();
texts[0] = "IN THIS, THE FINAL BOSS OF SUPER-MARIO-BROTHERS 2, YOU WILL FACE THE WICKED WART, WHOSE UPSET STOMACH CAN ONLY BE QUENCHED BY A BARRAGE OF HEALTHY VEGGIES.\n\nUTILIZE THE CHARACTERISTICS OF 3 UNIQUE CHARACTERS TO MAXIMIZE YOUR SCORE.";
texts[1] = "TAKE ON THE ROLE OF BILLY LEE AS HE FIGHTS THE CLASSIC VILLAIN ABOBO IN THIS CALL-BACK TO THE EARLY ARCADE CABINET BEAT-EM-UP GENRE PIONEERED BY DOUBLE-DRAGON.\n\nBUTTON MASHING HAS NEVER BEEN SO MUCH FUN.";
texts[2] = "RETURN TO THE FINAL DUNGEON OF ZELDA II ON THE NES TO TAKE ON THE INTIMIDATING THUNDEBIRD. USE SPELLS, AND SWORD SLASHES TO BRING THIS FLYING NIGHTMARE DOWN.\n\nWILL YOUR SKILLS BE ENOUGH TO OBTAIN THE TRI-FORCE AND RESTORE PEACE TO HYRULE?";
this.tit = tits[_root.dagam];
this.splain = texts[_root.dagam];
keys = new Array();
keys[0] = new Array(false, false, true);
keys[1] = new Array(true, false, false);
keys[2] = new Array(true, true, true);
var numstars = _root.so.data.stars[_root.dagam];
i = 0;
while (i < 7) {
var thing = eval ("s" + i);
thing.full._visible = false;
i++;
}
if (numstars >= 1) {
s0.full._visible = true;
}
if (numstars >= 2) {
s1.full._visible = true;
s2.full._visible = true;
}
if (numstars >= 3) {
s3.full._visible = true;
s4.full._visible = true;
s5.full._visible = true;
}
slot0 = _root.gamereqs[_root.dagam][0];
slot1 = _root.gamereqs[_root.dagam][1];
slot2 = _root.gamereqs[_root.dagam][2];
Symbol 1066 MovieClip Frame 58
stop();
Symbol 1085 MovieClip Frame 1
i = 0;
while (i < 3) {
var thing = eval ("prev" + i);
thing._visible = false;
i++;
}
var sho = eval ("prev" + _root.dagam);
sho._visible = true;
Symbol 1085 MovieClip Frame 69
stop();
_root.loadGame(_root.dagam);