Combined Code
movieClip 31 {
}
// unknown tag 88 length 65
movieClip 36 tipper {
}
movieClip 41 {
}
movieClip 44 {
}
movieClip 47 {
}
movieClip 48 {
}
movieClip 51 {
}
movieClip 54 {
}
movieClip 55 zeldatile9_3 {
}
movieClip 56 {
}
movieClip 59 {
}
movieClip 61 {
}
movieClip 66 {
}
movieClip 96 {
}
movieClip 105 {
frame 25 {
stop();
}
}
movieClip 106 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 107 {
}
movieClip 108 {
}
movieClip 110 {
}
movieClip 113 {
}
movieClip 114 {
frame 1 {
door3.home = door3._y;
door3._y = door3.home - 100;
}
}
movieClip 115 {
}
movieClip 123 {
}
movieClip 129 {
}
movieClip 132 {
frame 1 {
stop();
}
}
movieClip 133 {
frame 1 {
stop();
}
frame 29 {
stop();
}
}
movieClip 137 {
frame 1 {
stop();
}
frame 22 {
var tar = this._parent._parent._parent;
tar.finalScene();
}
}
movieClip 138 zeldatile8_3 {
frame 1 {
function blowWall() {
brokenwall.swapDepths(99);
blacktop.swapDepths(98);
greenthing.swapDepths(97);
smoke.swapDepths(101);
fader.swapDepths(105);
toppiece._visible = false;
brokenwall._visible = true;
wall1._visible = false;
antiwalk.door1.unloadMovie();
antiwalk.door1.removeMovieClip();
blackness._visible = true;
tar.oldmanbeaten = true;
tar.releaseEnd();
smoke.play();
}
var tar = this._parent._parent;
slidedoor3._visible = false;
topper.swapDepths(103);
fader.swapDepths(105);
if (!tar.oldmanbeaten) {
brokenwall._visible = false;
wall1._visible = true;
blackness._visible = false;
} else {
toppiece._visible = false;
brokenwall._visible = true;
wall1._visible = false;
antiwalk.door1.unloadMovie();
antiwalk.door1.removeMovieClip();
blackness._visible = true;
orbs.o0.gotoAndStop('cracked');
orbs.o1.gotoAndStop('cracked');
orbs.o2.gotoAndStop('cracked');
orbs.o3.gotoAndStop('cracked');
antiwalk.extra.unloadMovie();
antiwalk.extra.removeMovieClip();
}
}
}
movieClip 141 {
}
movieClip 145 {
}
movieClip 146 {
}
movieClip 147 {
frame 1 {
}
}
movieClip 149 {
}
movieClip 150 zeldatile7_4 {
instance trap0 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(1, '');
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap1 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(0, '');
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap2 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 3);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap3 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 2);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap5 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 4);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap7 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 6);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap4 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 5);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap6 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 7);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap9 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 8);
this.closespeedx = 4.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap8 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 9);
this.closespeedx = 4.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
}
movieClip 152 {
frame 1 {
var tar = this._parent._parent._parent._parent;
tar.registerWater(this);
}
}
movieClip 153 {
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
}
movieClip 156 {
}
movieClip 157 {
}
movieClip 158 zeldatile7_3 {
}
movieClip 161 {
frame 1 {
var tar = this._parent._parent._parent._parent;
tar.registerWater(this);
}
}
movieClip 162 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
}
movieClip 163 {
}
movieClip 164 zeldatile7_2 {
}
movieClip 165 {
}
movieClip 168 {
}
movieClip 169 zeldatile6_5 {
}
movieClip 170 {
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
}
movieClip 173 {
}
movieClip 174 {
}
movieClip 175 zeldatile6_4 {
}
movieClip 176 {
}
movieClip 177 {
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2);
}
}
}
movieClip 178 {
}
movieClip 179 zeldatile6_3 {
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 185 zeldatile6_2 {
}
movieClip 188 {
}
movieClip 191 {
}
movieClip 192 {
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 1, 3);
}
}
}
movieClip 195 zelda_key {
}
movieClip 197 {
}
movieClip 198 zeldatile6_1 {
}
movieClip 199 {
}
movieClip 215 {
}
movieClip 216 {
frame 1 {
function openMe() {
var v5 = this._parent._parent._parent;
var v4 = this._parent.myx;
var v3 = this._parent.myy;
var v2 = v5['map' + v4 + '_' + v3].slides;
if (v2[0] || v2[1] || v2[2] || v2[3]) {
this.gotoAndStop('dest' + this.dir);
}
}
openMe();
}
frame 1 {
stop();
var i = 0;
while (i < 4) {
var tar = this['pad' + i];
tar._alpha = 0;
++i;
}
}
frame 15 {
stop();
this._parent._parent._parent.blockSlid(this);
}
frame 29 {
stop();
this._parent._parent._parent.blockSlid(this);
}
frame 45 {
stop();
this._parent._parent._parent.blockSlid(this);
}
frame 61 {
stop();
this._parent._parent._parent.blockSlid(this);
}
}
movieClip 218 {
}
movieClip 219 zeldatile5_4 {
instance specblock of movieClip 216 {
onClipEvent (load) {
dir = 3;
comp = 2;
}
}
}
movieClip 220 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(3, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
}
movieClip 221 {
}
movieClip 222 zeldatile5_3 {
}
movieClip 224 {
}
movieClip 225 zeldatile5_2 {
}
movieClip 226 {
}
movieClip 227 zeldatile4_4 {
instance trap1 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 0);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap0 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 1);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap3 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 2);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap2 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 3);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap5 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 4);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap4 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 5);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap7 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 6);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap6 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 7);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap9 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 8);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap8 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 9);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap10 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 11);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap11 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 10);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap12 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 13);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap13 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 12);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap14 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 15);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap15 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 14);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap16 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 17);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap17 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 16);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap18 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 19);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap19 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array('', 18);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
}
movieClip 229 {
}
movieClip 230 zeldatile4_3 {
}
movieClip 233 {
}
movieClip 234 {
}
movieClip 235 zeldatile4_2 {
frame 1 {
}
}
movieClip 239 {
}
movieClip 242 zelda_meatprize {
}
movieClip 244 {
}
movieClip 245 zeldatile4_0 {
frame 1 {
var tar = this._parent._parent;
if (tar.gotmeat) {
prize._visible = false;
}
}
instance prize of movieClip 242 zelda_meatprize {
onClipEvent (load) {
this.typ = 'zelda_meatprize';
}
}
}
movieClip 246 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 0);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
}
movieClip 248 {
}
movieClip 249 zeldatile3_4 {
}
movieClip 274 {
frame 26 {
stop();
}
}
movieClip 275 {
frame 1 {
stop();
this.nam = 'Mr. Informer';
picid = 66;
}
}
movieClip 279 {
}
movieClip 281 {
}
// unknown tag 88 length 37
movieClip 284 zeldatile3_3 {
frame 1 {
var dawords = 'THE OLD MAN HATES BEEF';
if (this._parent._parent.guyslain) {
dawords = 'ROT IN HELL ABOBO !!!!!';
guy.gotoAndStop('dead');
}
this.box.text = '';
var delay = 3;
var cv = 0;
var count = 0;
if (this == this._parent._parent.bgholder.center) {
this._parent._parent.pausy = true;
this._parent._parent.nokeys = true;
this.onEnterFrame = function () {
if (count < dawords.length) {
++cv;
if (cv >= delay) {
this._parent._parent.textsound.start();
cv = 0;
box.text += dawords.charAt(count);
++count;
}
} else {
this._parent._parent.pausy = false;
this._parent._parent.nokeys = false;
delete this.onEnterFrame;
}
};
}
}
}
movieClip 287 {
}
movieClip 290 {
}
movieClip 292 {
}
movieClip 293 zeldatile3_2 {
}
movieClip 294 {
}
movieClip 295 zeldatile2_4 {
}
movieClip 297 {
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(3, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(3, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(3, 1, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3, 2);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 0);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(1, 3, 0);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(0, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 9);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(9, 0);
}
}
instance of movieClip 152 {
onClipEvent (load) {
this.allowable = new Array(2, 9);
}
}
}
movieClip 298 {
}
movieClip 299 zeldatile2_3 {
}
movieClip 302 {
}
movieClip 304 {
}
movieClip 305 zeldatile2_2 {
instance specblock of movieClip 216 {
onClipEvent (load) {
dir = 0;
comp = 0;
}
}
}
movieClip 308 zelda_ladder {
}
movieClip 309 zeldatile2_0 {
frame 1 {
var tar = this._parent._parent;
if (tar.gotraft) {
prize._visible = false;
}
}
instance prize of movieClip 308 zelda_ladder {
onClipEvent (load) {
this.typ = 'zelda_ladder';
}
}
}
movieClip 316 {
}
movieClip 323 {
frame 1 {
stop();
tar = this._parent._parent._parent._parent;
}
frame 60 {
var t = this._parent._parent._parent._parent;
t.textwrap.dawords = t.map1_8.specialmessage2;
t.textwrap.datxt.text = '';
t.textwrap.cv = 0;
t.textwrap.count = 0;
delete t.textwrap.onEnterFrame;
t.textwrap.onEnterFrame = function () {
if (this.count < this.dawords.length) {
++this.cv;
if (this.cv >= this.del) {
this.cv = 0;
this.datxt.text += this.dawords.charAt(this.count);
++this.count;
}
} else {
delete this.onEnterFrame;
}
};
}
frame 94 {
stop();
tar.endSecret();
}
}
movieClip 324 {
}
movieClip 326 {
}
movieClip 327 zeldatile1_8 {
}
movieClip 328 {
}
movieClip 334 {
frame 23 {
stop();
}
}
movieClip 335 {
frame 1 {
stop();
}
}
movieClip 336 zeldatile1_7 {
instance breakaway0 of movieClip 335 {
onClipEvent (load) {
this.comp = this._parent.antiwalk.door2;
}
}
}
movieClip 338 {
}
movieClip 339 zeldatile1_6 {
instance trap0 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(1, 2);
this.closespeedx = 4.5;
this.closespeedy = 4.5;
this.xdir = 1;
}
}
instance trap1 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(0, 3);
this.closespeedx = 4.5;
this.closespeedy = 4.5;
this.xdir = -1;
}
}
instance trap2 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(0, 3);
this.closespeedx = 4.5;
this.closespeedy = 4.5;
this.xdir = 1;
}
}
instance trap3 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(1, 2);
this.closespeedx = 4.5;
this.closespeedy = 4.5;
this.xdir = -1;
}
}
}
movieClip 341 {
}
movieClip 342 zeldatile1_5 {
}
movieClip 343 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
}
movieClip 344 {
}
movieClip 345 zeldatile1_4 {
}
movieClip 348 {
}
movieClip 349 zeldatile1_3 {
}
movieClip 350 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1, 2);
}
}
}
movieClip 351 {
}
movieClip 352 zeldatile1_2 {
}
movieClip 354 {
}
movieClip 355 zeldatile1_1 {
}
movieClip 357 {
}
movieClip 358 zeldatile1_0 {
}
movieClip 359 {
}
movieClip 360 zeldatile0_6 {
instance specblock of movieClip 216 {
onClipEvent (load) {
dir = 2;
comp = 1;
}
}
}
movieClip 361 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
}
movieClip 362 {
}
movieClip 363 zeldatile0_5 {
}
movieClip 365 {
}
movieClip 366 zeldatile0_4 {
}
movieClip 367 {
}
movieClip 368 zeldatile0_2 {
instance trap0 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(1, 2);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap1 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(0, 3);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
instance trap2 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(0, 3);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = 1;
}
}
instance trap3 of movieClip 147 {
onClipEvent (load) {
this.comps = new Array(1, 2);
this.closespeedx = 5.5;
this.closespeedy = 4;
this.xdir = -1;
}
}
}
movieClip 369 {
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(0, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 1);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(9, 3);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(1, 2);
}
}
instance of movieClip 161 {
onClipEvent (load) {
this.allowable = new Array(2, 3);
}
}
}
movieClip 370 {
}
movieClip 371 zeldatile0_1 {
}
movieClip 374 {
}
movieClip 376 {
}
movieClip 377 zeldatile0_0 {
}
movieClip 384 {
}
movieClip 385 {
}
movieClip 386 zelda_heart {
}
movieClip 387 zelda_bridge {
}
movieClip 396 {
frame 19 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 397 zelda_summoncloud {
}
movieClip 408 zelda_shieldbreak {
frame 15 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 413 {
}
movieClip 414 {
}
movieClip 415 zelda_oldman_fireball {
}
movieClip 422 {
}
movieClip 423 {
}
movieClip 424 zelda_laserpoof {
frame 10 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 428 {
}
movieClip 429 {
}
movieClip 430 zelda_laser {
}
movieClip 437 zelda_smokewrap {
frame 7 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 440 zelda_counter {
}
movieClip 445 {
}
movieClip 447 {
}
movieClip 448 {
}
movieClip 449 zelda_transformer {
}
movieClip 454 {
}
movieClip 455 {
frame 1 {
tar = this._parent._parent._parent._parent._parent;
who = this._parent;
}
frame 45 {
stop();
tar.removeBoulder(who);
}
}
movieClip 456 zelda_target {
}
movieClip 463 {
}
movieClip 480 {
frame 1 {
stop();
}
frame 35 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
var who = this._parent._parent;
tar.removeStomp(who);
}
}
movieClip 481 {
}
movieClip 482 {
}
movieClip 483 zelda_stompgreen {
}
movieClip 490 {
}
movieClip 501 {
frame 1 {
stop();
}
frame 39 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
var who = this._parent._parent;
tar.removeStomp(who);
}
}
movieClip 503 {
}
movieClip 504 {
}
movieClip 505 zelda_stompblue {
}
movieClip 512 zelda_orbsplode {
frame 8 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 515 zelda_oldmanhead {
}
movieClip 518 {
}
movieClip 520 {
}
movieClip 523 {
}
movieClip 526 {
frame 15 {
stop();
}
}
movieClip 527 {
frame 13 {
stop();
}
}
movieClip 528 {
frame 2 {
stop();
}
}
movieClip 530 {
frame 1 {
tar = this._parent._parent._parent._parent;
who = this._parent;
}
frame 31 {
tar.chkBoulderHit(who);
}
frame 32 {
tar.chkBoulderHit(who);
}
frame 33 {
tar.chkBoulderHit(who);
}
frame 45 {
stop();
tar.removeBoulder(who);
}
}
movieClip 531 zelda_boulder {
}
movieClip 534 {
}
movieClip 548 {
frame 1 {
tar = this._parent._parent._parent._parent._parent._parent;
who = this._parent._parent;
who.moving = true;
}
frame 15 {
who.moving = false;
tar.screenshake = 3;
}
frame 30 {
who.moving = true;
}
frame 45 {
who.moving = false;
tar.screenshake = 3;
}
}
movieClip 554 {
frame 1 {
tar = this._parent._parent._parent._parent._parent._parent;
who = this._parent._parent;
who.moving = true;
}
frame 15 {
who.moving = false;
tar.screenshake = 3;
}
frame 30 {
who.moving = true;
}
frame 45 {
who.moving = false;
tar.screenshake = 3;
}
}
movieClip 562 {
frame 1 {
tar = this._parent._parent._parent._parent._parent._parent;
who = this._parent._parent;
who.moving = true;
}
frame 15 {
who.moving = false;
tar.screenshake = 3;
}
frame 30 {
who.moving = true;
}
frame 45 {
who.moving = false;
tar.screenshake = 3;
}
}
movieClip 584 {
frame 53 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.runOldManStomp(this._parent._parent);
}
frame 71 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.endOldManStomp(this._parent._parent);
stop();
}
frame 72 {
stop();
}
frame 73 {
stop();
}
frame 74 {
stop();
}
frame 75 {
stop();
}
frame 76 {
stop();
}
}
movieClip 594 {
}
movieClip 614 {
frame 11 {
stop();
}
}
movieClip 694 {
frame 122 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
tar.oldManDone(this._parent._parent);
}
}
movieClip 695 {
frame 1 {
this._parent.revealed = true;
}
}
movieClip 696 zelda_baddie18 {
frame 1 {
stop();
this.giant = true;
nam = 'Old Giant';
picid = 67;
}
}
movieClip 697 {
frame 7 {
this._parent._parent.revealed = true;
this._parent.gotoAndStop(2);
}
}
movieClip 702 {
}
movieClip 707 {
}
movieClip 712 {
}
movieClip 717 {
}
movieClip 720 {
}
movieClip 721 {
}
movieClip 722 {
}
movieClip 737 {
frame 2 {
this.tar = this._parent._parent._parent._parent._parent._parent;
this.who = this._parent._parent;
box.powa = 10;
}
frame 3 {
tar.chkOldManSwing(who, box);
}
frame 5 {
tar.chkOldManSwing(who, box);
}
frame 7 {
tar.chkOldManSwing(who, box);
}
frame 9 {
tar.chkOldManSwing(who, box);
}
frame 11 {
tar.chkOldManSwing(who, box);
}
frame 13 {
tar.chkOldManSwing(who, box);
}
frame 15 {
tar.chkOldManSwing(who, box);
}
frame 17 {
tar.chkOldManSwing(who, box);
}
frame 19 {
tar.chkOldManSwing(who, box);
}
frame 21 {
tar.chkOldManSwing(who, box);
}
frame 23 {
tar.chkOldManSwing(who, box);
}
frame 25 {
tar.chkOldManSwing(who, box);
}
frame 27 {
tar.chkOldManSwing(who, box);
}
frame 29 {
tar.chkOldManSwing(who, box);
}
frame 31 {
tar.chkOldManSwing(who, box);
}
frame 33 {
tar.chkOldManSwing(who, box);
}
frame 35 {
tar.chkOldManSwing(who, box);
}
frame 37 {
tar.chkOldManSwing(who, box);
}
frame 39 {
tar.chkOldManSwing(who, box);
}
frame 41 {
tar.chkOldManSwing(who, box);
}
frame 43 {
tar.chkOldManSwing(who, box);
}
frame 45 {
tar.chkOldManSwing(who, box);
}
frame 47 {
tar.chkOldManSwing(who, box);
}
frame 49 {
tar.endOldManAtk(this._parent._parent);
stop();
}
}
movieClip 758 {
}
movieClip 762 {
}
movieClip 764 {
frame 110 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
tar.oldManBiggen(this._parent._parent);
}
}
movieClip 765 {
frame 1 {
stop();
}
}
movieClip 766 zelda_baddie17 {
frame 1 {
nam = 'Old Man?';
picid = 67;
}
}
movieClip 769 {
}
movieClip 770 {
frame 1 {
stop();
}
frame 20 {
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 777 {
}
movieClip 784 {
frame 9 {
gotoAndPlay(4);
}
}
movieClip 789 {
}
movieClip 794 {
}
movieClip 799 {
}
movieClip 804 {
}
movieClip 805 {
frame 85 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
tar.splitOldMan(this._parent._parent);
}
}
movieClip 806 {
frame 1 {
stop();
}
}
movieClip 807 zelda_baddie16 {
frame 1 {
nam = 'Old Man';
picid = 67;
}
}
movieClip 816 {
}
movieClip 817 {
}
movieClip 818 zelda_stone {
}
movieClip 821 {
}
movieClip 822 {
}
movieClip 823 zelda_rockproj {
}
movieClip 830 {
}
movieClip 831 {
frame 1 {
stop();
}
}
movieClip 832 zelda_baddie15 {
frame 1 {
this.revealed = true;
nam = 'Statue';
}
}
movieClip 837 {
}
movieClip 838 {
frame 1 {
stop();
}
}
movieClip 839 zelda_baddie14 {
frame 1 {
nam = 'Metro';
picid = 61;
}
}
movieClip 844 {
}
movieClip 845 {
frame 1 {
stop();
}
}
movieClip 846 zelda_baddie13 {
frame 1 {
nam = 'Spiky';
picid = 44;
}
}
movieClip 851 {
}
movieClip 856 {
frame 26 {
stop();
}
}
movieClip 862 {
}
movieClip 868 {
frame 90 {
stop();
}
}
movieClip 869 {
}
movieClip 870 {
frame 1 {
stop();
}
}
movieClip 871 zelda_baddie12 {
frame 1 {
nam = 'Dig Dug';
picid = 49;
}
}
movieClip 876 {
}
movieClip 877 {
frame 1 {
nam = 'manhandla';
picid = 59;
}
}
movieClip 882 {
}
movieClip 883 {
frame 1 {
nam = 'manhandla';
picid = 59;
}
}
movieClip 884 {
frame 1 {
nam = 'manhandla';
picid = 59;
}
}
movieClip 885 {
frame 1 {
nam = 'manhandla';
picid = 59;
}
}
movieClip 888 {
}
movieClip 889 {
frame 1 {
nam = 'manhandla';
}
}
movieClip 890 {
frame 1 {
stop();
nam = 'manhandla';
}
frame 2 {
this._parent.nesty = true;
this._parent.nestnum = 5;
this._parent.numkilled = 0;
tar1.gotoAndPlay(4);
tar0.gotoAndPlay(4);
tar4.inv = true;
var i = 0;
while (i < 5) {
var t = this['tar' + i];
t.hp = 2;
t.powa = 5;
t.blinkcv = 0;
t.hitcv = 0;
++i;
}
}
}
movieClip 891 zelda_baddie11 {
frame 1 {
nam = 'Manhandla';
picid = 59;
}
}
movieClip 896 {
}
movieClip 897 {
frame 1 {
stop();
}
}
movieClip 898 zelda_baddie10 {
frame 1 {
nam = 'Aquamentus';
picid = 52;
}
}
movieClip 903 {
}
movieClip 904 {
frame 1 {
stop();
}
}
movieClip 905 zelda_baddie9 {
frame 1 {
nam = 'Tektike';
picid = 65;
}
}
movieClip 910 {
}
movieClip 913 {
frame 31 {
stop();
}
}
movieClip 916 {
frame 1 {
stop();
}
}
movieClip 917 zelda_baddie8 {
frame 1 {
nam = 'Bob-omb';
picid = 48;
}
}
movieClip 922 {
}
movieClip 923 {
frame 1 {
stop();
}
}
movieClip 924 zelda_baddie7 {
frame 1 {
nam = 'Peahat';
picid = 54;
}
}
movieClip 929 {
}
movieClip 930 {
frame 1 {
stop();
}
}
movieClip 931 zelda_baddie6 {
frame 1 {
nam = 'Flurry';
picid = 55;
}
}
movieClip 932 zelda_baddie5 {
frame 1 {
this.revealed = true;
nam = 'Merman';
picid = 68;
}
}
movieClip 937 {
}
movieClip 938 {
frame 1 {
stop();
}
}
movieClip 939 zelda_baddie4 {
frame 1 {
nam = 'Choco kiss';
picid = 53;
}
}
movieClip 944 {
}
movieClip 945 {
frame 1 {
stop();
}
}
movieClip 946 zelda_baddie3 {
frame 1 {
stop();
nam = 'Octorok';
picid = 58;
}
}
movieClip 949 {
frame 1 {
stop();
}
}
movieClip 950 zelda_baddie2 {
frame 1 {
nam = 'Ghost';
picid = 56;
}
}
movieClip 955 {
}
movieClip 956 {
frame 1 {
stop();
}
}
movieClip 957 zelda_baddie1 {
frame 1 {
nam = 'Shyguy';
picid = 62;
}
}
movieClip 962 {
}
movieClip 963 {
frame 1 {
stop();
}
}
movieClip 964 zelda_baddie0 {
frame 1 {
nam = 'Skeleton';
picid = 63;
}
}
movieClip 987 zelda_swordsplode {
frame 12 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 991 {
}
movieClip 998 zelda_swordproj {
}
movieClip 1007 zelda_meatproj {
}
movieClip 1012 {
}
movieClip 1013 {
}
movieClip 1018 {
}
movieClip 1023 {
}
movieClip 1030 {
}
movieClip 1035 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 11 {
stop();
}
}
movieClip 1044 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 11 {
stop();
}
}
movieClip 1053 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 10 {
stop();
}
}
movieClip 1062 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 10 {
stop();
}
}
movieClip 1071 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 11 {
stop();
}
}
movieClip 1080 {
frame 2 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 4 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.chkSlash(this._parent._parent, this.hitarea);
}
frame 10 {
stop();
}
}
movieClip 1083 {
}
movieClip 1092 {
frame 61 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.startMiniGame();
stop();
}
frame 73 {
stop();
}
}
movieClip 1103 {
}
movieClip 1108 {
}
movieClip 1113 {
}
movieClip 1115 {
frame 55 {
stop();
}
}
movieClip 1126 {
frame 28 {
tar = this._parent._parent._parent._parent._parent._parent;
tar.snailSwitch(this._parent._parent);
}
}
movieClip 1134 {
}
movieClip 1137 {
}
movieClip 1140 {
}
movieClip 1147 {
}
movieClip 1160 {
frame 37 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.finalHeadHit();
}
frame 46 {
stop();
}
}
movieClip 1170 {
frame 52 {
var tar = this._parent._parent._parent;
tar.beginFade();
}
frame 121 {
stop();
tar.restartDungeon();
}
}
movieClip 1177 {
}
movieClip 1182 {
}
movieClip 1189 {
}
movieClip 1190 {
}
movieClip 1211 {
}
movieClip 1212 {
}
movieClip 1213 {
}
movieClip 1214 {
}
movieClip 1219 {
frame 5 {
stop();
}
}
movieClip 1224 {
}
movieClip 1239 {
}
movieClip 1262 {
}
movieClip 1269 {
frame 7 {
stop();
}
}
movieClip 1270 {
}
movieClip 1308 {
frame 32 {
stop();
}
}
movieClip 1312 {
frame 1 {
this.tar = this._parent._parent._parent._parent._parent._parent;
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 62 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 64 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 67 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 70 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 73 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 77 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 82 {
if (!tar.gotmeat) {
meat._visible = false;
}
}
frame 105 {
this.tar = this._parent._parent._parent._parent._parent._parent;
tar.rageDestroy();
}
frame 133 {
stop();
var tar = this._parent._parent._parent._parent._parent._parent;
tar.endRageMove();
}
}
movieClip 1323 {
frame 37 {
var tar = this._parent._parent._parent._parent._parent._parent;
tar.finalHeadHit();
}
frame 46 {
stop();
}
}
movieClip 1324 {
frame 1 {
stop();
}
}
movieClip 1325 zeldadude {
frame 1 {
stop();
}
frame 7 {
gotoAndPlay('raging');
}
}
movieClip 1326 zelda_enemysplat {
frame 9 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 1331 unlockblock1 {
frame 1 {
stop();
}
}
movieClip 1334 {
}
movieClip 1335 {
}
movieClip 1336 {
}
movieClip 1338 {
frame 1 {
stop();
}
}
movieClip 1341 {
}
movieClip 1342 {
}
movieClip 1345 {
}
movieClip 1348 {
frame 1 {
stop();
}
}
movieClip 1349 Preloader {
frame 1 {
function enterFrameHandler() {
var v2 = 0;
v2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (loadingBar) {
loadingBar.gotoAndStop(int(v2 * (loadingBar._totalframes - 1)) + 1);
}
if (v2 >= 1) {
onEnterFrame = null;
gotoAndStop('loaded');
}
}
stop();
var autoPlay;
var className;
onEnterFrame = enterFrameHandler;
}
frame 10 {
function _onPlayClick() {
_root.nextFrame();
_root.play();
_parent._onLoaded();
}
if (playButton) {
playButton.onRelease = _onPlayClick;
playButton.stop();
}
if (autoPlay) {
_onPlayClick(null);
}
}
}
movieClip 1351 Newgrounds API Classes {
#initclip
Object.registerClass('Newgrounds API Classes', com.newgrounds.shims.APIShim);
#endinitclip
}
movieClip 1391 {
}
movieClip 1394 {
}
movieClip 1399 {
}
movieClip 1403 {
}
movieClip 1404 {
}
movieClip 1405 {
}
movieClip 1406 FlashAd {
#initclip
Object.registerClass('FlashAd', com.newgrounds.components.FlashAdBase);
#endinitclip
frame 1 {
stop();
}
frame 30 {
function onPlayClick() {
removeAd();
_visible = false;
}
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
}
}
}
movieClip 1407 APIConnector {
frame 1 {
function _onLoaded() {
gotoAndStop('invisible');
if (_redirect) {
com.newgrounds.API.loadOfficialVersion();
return undefined;
}
}
function _apiConnect() {
var v2 = com.newgrounds.API;
if (v2 && !v2.connected) {
if (!apiId) {
com.newgrounds.Logger.logError('No API ID entered in the API Connector component.', 'You can create an API ID for this submission at http://newgrounds.com/account/flashapi', 'Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).');
return undefined;
}
switch (debugMode) {
case 'Off':
default:
v2.debugMode = v2.RELEASE_MODE;
goto 1299;
case 'Simulate Logged-in User':
//Invalid switch }
v2.debugMode = v2.DEBUG_MODE_LOGGED_IN;
goto 1299;
case 'Off':
v2.debugMode = v2.DEBUG_MODE_LOGGED_OUT;
goto 1299;
case 'Simulate Logged-in User':
v2.debugMode = v2.DEBUG_MODE_NEW_VERSION;
goto 1299;
case 'Simulate Logged-out User':
v2.debugMode = v2.DEBUG_MODE_HOST_BLOCKED;
label 1299:
v2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
v2.connect(_root, apiId, encryptionKey, movieVersion);
}
}
function _onConnected(event) {
if (redirectOnNewVersion && event.__get__success() && (event.__get__data()).newVersion) {
_redirect = true;
}
if (redirectOnHostBlocked && !event.__get__success() && event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED) {
_redirect = true;
}
if (_redirect) {
gotoAndStop('adPreloader');
forceAlwaysOnTop();
}
}
function forceAlwaysOnTop() {
var v2 = getNextHighestDepth();
swapDepths(v2);
if (Stage) {
_x = (Stage.width - _width) / 2;
_y = (Stage.height - _height) / 2;
_visible = true;
}
if (_root && _root instanceof MovieClip) {
(MovieClip(_root)).stop();
}
}
stop();
if (_root && _root instanceof MovieClip) {
(MovieClip(_root)).stop();
}
var apiId;
var encryptionKey;
var movieVersion;
var debugMode;
var connectorType;
var redirectOnHostBlocked;
var redirectOnNewVersion;
var adType;
var className;
var _redirect;
_x = int(_x);
_y = int(_y);
if (!debugMode) {
debugMode = 'Simulate Logged-in User';
}
if (!connectorType) {
connectorType = 'Flash Ad + Preloader';
}
if (!adType) {
adType = 'Video';
}
if (ad) {
ad.adType = adType;
}
switch (connectorType) {
case 'Flash Ad + Preloader':
gotoAndStop('adPreloader');
break;
case 'Flash Ad Only':
gotoAndStop('ad');
break;
case 'Invisible':
gotoAndStop('invisible');
}
_apiConnect();
}
instance ad of movieClip 1406 FlashAd {
onClipEvent (construct) {
apiId = '';
showBorder = true;
adType = 'Video';
}
}
instance loader of movieClip 1349 Preloader {
onClipEvent (construct) {
autoPlay = false;
mainClass = '';
}
}
}
frame 1 {
function newSaveFile() {
so.data.bundle = new Array();
so.data.bundle.lockies = new Array();
so.data.bundle.levlocks = new Array();
_root.lockies = new Array(true, true, true, true);
_root.levlocks = new Array(false, true, true, true, true, true, true, true, true);
saveStuff();
}
function saveStuff() {
var v5 = SharedObject.getLocal('RAGE', localPath, secure);
var v4 = v5.data.bundle.lockies;
var v3 = v5.data.bundle.levlocks;
var v2 = 0;
while (v2 < _root.lockies.length) {
v4[v2] = _root.lockies[v2];
++v2;
}
v2 = 0;
while (v2 < _root.levlocks.length) {
v3[v2] = _root.levlocks[v2];
++v2;
}
v5.flush();
}
function clearSavedData() {
newSaveFile();
}
function aboboMedal(str) {
mpopup.swapDepths(999);
com.newgrounds.API.unlockMedal(str);
}
function chkReset() {
if (!Key.isDown(RESETT)) {
resup = true;
}
if (Key.isDown(RESETT) && resup) {
resup = false;
trashDump();
_root.gotoAndStop('intro');
}
}
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function bigInit() {
stopAllSounds();
fs.onRelease = function () {
if (Stage.displayState == 'normal') {
Stage.displayState = 'fullScreen';
} else {
Stage.displayState = 'normal';
}
};
Stage.showMenu = false;
_root.duckthud = new Sound(this);
_root.duckthud.attachSound('duckthud');
_root.ding = new Sound(_root);
_root.ding.attachSound('ding');
lives = undefined;
realgo = false;
arcadelooprunning = false;
nopress = false;
arcadecv = 0;
onmain = false;
aup = false;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup && !nopress) {
aup = false;
skippy = true;
runIt();
}
if (onmain && !nopress) {
++arcadecv;
if (arcadecv >= 500) {
arcadecv = 0;
onmain = false;
runIt();
arcadelooprunning = true;
}
}
};
}
function runIt() {
gotoAndStop('main');
}
stop();
var so = SharedObject.getLocal('RAGE', localPath, secure);
if (so.data.bundle == undefined) {
newSaveFile();
} else {
_root.lockies = new Array();
_root.levlocks = new Array();
var l = so.data.bundle.lockies;
var m = so.data.bundle.levlocks;
var i = 0;
while (i < l.length) {
_root.lockies[i] = l[i];
++i;
}
var i = 0;
while (i < m.length) {
_root.levlocks[i] = m[i];
++i;
}
}
_root.showmedals = true;
_root._quality = 'HIGH';
skippy = false;
pl.bar._xscale = 0;
Stage.showMenu = false;
_root._xscale = 100;
_root._yscale = _root._xscale;
stop();
this.onEnterFrame = function () {
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
var v3 = Math.round((bl / bt) * 100);
pl.box.gotoAndStop(v3);
pl.box.perc.text = v3 + '%';
if (v3 >= 100) {
delete this.onEnterFrame;
pl.gotoAndPlay('loaded');
pl.but_play.onPress = function () {
_root.bigInit();
gotoAndStop('intro');
};
}
};
}
// unknown tag 88 length 37
movieClip 1427 {
}
movieClip 1431 {
}
movieClip 1432 {
}
movieClip 1477 {
}
movieClip 1480 {
frame 1 {
var rand = 0;
}
frame 118 {
rand = random(2);
if (rand == 0) {
gotoAndPlay('reset');
}
if (rand == 1) {
gotoAndPlay('blow');
}
}
frame 157 {
rand = random(2);
if (rand == 0) {
gotoAndPlay('reset2');
}
if (rand == 1) {
gotoAndPlay('blow');
}
}
frame 309 {
rand = random(2);
if (rand == 1) {
gotoAndPlay('blow2');
}
}
frame 324 {
gotoAndPlay('insert');
}
frame 411 {
stop();
}
}
instance of movieClip 1406 FlashAd {
onClipEvent (construct) {
apiId = '21267:1863xpjy';
showBorder = false;
adType = 'Video';
}
}
movieClip 1485 {
}
// unknown tag 88 length 296
movieClip 1488 Newgrounds API Font {
}
movieClip 1491 {
}
movieClip 1495 {
}
movieClip 1499 {
}
// unknown tag 88 length 75
movieClip 1504 {
}
movieClip 1506 {
}
movieClip 1508 {
}
movieClip 1510 {
}
movieClip 1512 {
}
movieClip 1514 MedalPopup {
frame 1 {
function onMedalUnlocked(event) {
if (event.__get__success()) {
_medalQueue.push(event.__get__data());
showNextUnlock();
}
}
function showNextUnlock() {
if (_unlockedMedal) {
return undefined;
}
if (!_medalQueue.length) {
gotoAndStop('hidden');
onEnterFrame = null;
return undefined;
}
_unlockedMedal = com.newgrounds.Medal(_medalQueue.shift());
if (_root.showmedals) {
gotoAndPlay('medalUnlocked');
}
}
gotoAndStop('hidden');
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
var alwaysOnTop;
_x = int(_x);
_y = int(_y);
var _unlockedMedal;
var _medalQueue = [];
var _alwaysOnTop = true;
if (alwaysOnTop) {
_alwaysOnTop = alwaysOnTop == 'true';
}
}
frame 15 {
function medalPopupEnterFrame() {
if (_alwaysOnTop) {
var v3 = _root.getNextHighestDepth();
this.swapDepths(v3);
}
if (_medalScrollRect) {
_medalScrollRect.offset(2, 0);
medalNameClip.scrollRect = _medalScrollRect;
if (_medalScrollRect.left >= medalNameClip.textField.textWidth + 10) {
_medalScrollRect = null;
play();
}
}
}
var _medalScrollRect;
if (_unlockedMedal) {
if (medalNameClip && medalNameClip.textField) {
var t = _unlockedMedal.name.toUpperCase();
medalNameClip.textField.text = t;
}
if (medalPointsText) {
medalPointsText.text = _unlockedMedal.value.toString();
}
if (medalNameClip.textField.textWidth > medalNameClip._width) {
_medalScrollRect = new flash.geom.Rectangle(-medalNameClip._width, 0, medalNameClip._width, medalNameClip._height);
medalNameClip.textField._width = 1000;
medalNameClip.scrollRect = _medalScrollRect;
}
onEnterFrame = medalPopupEnterFrame;
}
}
frame 23 {
if (_unlockedMedal && medalIcon) {
_unlockedMedal.attachIcon(medalIcon);
}
}
frame 84 {
if (_medalScrollRect) {
stop();
}
}
frame 105 {
stop();
_unlockedMedal = null;
showNextUnlock();
}
}
instance mpopup of movieClip 1514 MedalPopup {
onClipEvent (construct) {
alwaysOnTop = 'true';
}
}
instance of movieClip 1407 APIConnector {
onClipEvent (construct) {
apiId = '21267:1863xpjy';
encryptionKey = 'KQTBWRAQ38i8zxgJNwgHrfSrcJuMqUy3';
debugMode = 'Simulate Logged-in User';
movieVersion = '';
connectorType = 'Invisible';
redirectOnNewVersion = true;
redirectOnHostBlocked = true;
adType = 'Video';
}
}
movieClip 1359 __Packages.com.newgrounds.APIConnection {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIConnection) {
var v1 = function () {
this.reset();
};
com.newgrounds.APIConnection = v1;
var v2 = v1.prototype;
v2.__get__hostURL = function () {
return this._hostURL;
};
v2.__set__hostURL = function (value) {
this._hostURL = value;
this.hostDomain = null;
if (this._hostURL) {
var v2 = this._hostURL.split('/');
if (v2[0] != 'file:' && this._hostURL != 'localhost') {
this.hostDomain = v2[2];
}
}
if (!this.hostDomain) {
this.hostDomain = 'localhost';
}
return this.__get__hostURL();
};
v2.__get__sandboxType = function () {
return System.security.sandboxType;
};
v2.__get__isNetworkHost = function () {
switch (this.__get__sandboxType()) {
return true;
case 'localWithFile':
case 'localWithNetwork':
case 'localTrusted':
case 'application':
return false;
case 'remote':
}
return true;
};
v2.__get__hasUserSession = function () {
return this.sessionId != null && this.sessionId != '' && this.publisherId != 0;
};
v2.__get__connected = function () {
return this.connectionState == com.newgrounds.APIConnection.CONNECTED;
};
v2.reset = function () {
this.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED;
this.encryptionKey = null;
this.sessionId = null;
this.userEmail = null;
this.username = null;
this.userId = 0;
this.userpageFormat = 0;
};
v2.assertInitialized = function () {
if (!this.initialized) {
com.newgrounds.Logger.logError('You must initialized the API using API.connect() before using this command.');
return false;
}
return true;
};
v2.assertConnected = function () {
if (!this.connectionState == com.newgrounds.APIConnection.CONNECTED) {
com.newgrounds.Logger.logError('You must establish a connection using API.connect() before using this command.');
return false;
}
return true;
};
v2.sendSimpleCommand = function (command, completeHandler, parameters, secureParameters) {
if (parameters == undefined) {
parameters = null;
}
if (secureParameters == undefined) {
secureParameters = null;
}
var v2 = new com.newgrounds.APICommand(command);
v2.__set__parameters(parameters);
v2.__set__secureParameters(secureParameters);
if (completeHandler != null) {
v2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler);
}
v2.send(this);
};
v2.sendCommand = function (command) {
command.send(this);
};
v2.loadInBrowser = function (command, newWindow, parameters) {
if (newWindow == undefined) {
newWindow = true;
}
if (parameters == undefined) {
parameters = null;
}
var v2 = new com.newgrounds.APICommand(command);
v2.__set__parameters(parameters);
v2.loadInBrowser(this, newWindow);
};
v1.NOT_CONNECTED = 'notConnected';
v1.CONNECTING = 'connecting';
v1.CONNECTED = 'connected';
v2.connectionState = com.newgrounds.APIConnection.NOT_CONNECTED;
v2.apiURL = 'http://www.ngads.com/gateway_v2.php';
v2.addProperty('connected', v2.__get__connected, function () {});
v2.addProperty('hasUserSession', v2.__get__hasUserSession, function () {});
v2.addProperty('hostURL', v2.__get__hostURL, v2.__set__hostURL);
v2.addProperty('isNetworkHost', v2.__get__isNetworkHost, function () {});
v2.addProperty('sandboxType', v2.__get__sandboxType, function () {});
ASSetPropFlags(com.newgrounds.APIConnection.prototype, null, 1);
}
#endinitclip
}
movieClip 1353 __Packages.com.newgrounds.EventDispatcher {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.EventDispatcher) {
var v1 = function () {
this._listeners = {};
};
com.newgrounds.EventDispatcher = v1;
var v2 = v1.prototype;
v2.addEventListener = function (type, listener) {
if (!this._listeners[type]) {
this._listeners[type] = [];
}
if (typeof listener == 'function') {
this._listeners[type].push({'target': null, 'func': listener});
} else {
this._listeners[type].push(listener);
}
};
v2.removeEventListener = function (type, listener) {
var v3 = this._listeners[type];
if (v3) {
var v5 = v3.length;
var v2 = 0;
while (v2 < v5) {
if (v3[v2].func == listener || v3[v2] == listener) {
v3.splice(v2, 1);
return undefined;
}
++v2;
}
}
};
v2.dispatchEvent = function (event) {
var v4 = this._listeners[event.__get__type()];
if (v4) {
var v5 = v4.length;
var v2 = 0;
while (v2 < v5) {
var v3 = v4[v2];
v3.func.call(v3.target, event);
++v2;
}
}
return true;
};
ASSetPropFlags(com.newgrounds.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 1352 __Packages.com.newgrounds.Event {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Event) {
var v1 = function (type) {
this._type = type;
};
com.newgrounds.Event = v1;
var v2 = v1.prototype;
v2.__get__type = function () {
return this._type;
};
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.Event.prototype, null, 1);
}
#endinitclip
}
movieClip 1354 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIEventDispatcher) {
var v1 = function () {
super();
};
com.newgrounds.APIEventDispatcher = v1;
com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher;
var v2 = v1.prototype;
v1.__get__globalDispatcher = function () {
return com.newgrounds.APIEventDispatcher._globalDispatcher;
};
v1.__set__globalDispatcher = function (value) {
com.newgrounds.APIEventDispatcher._globalDispatcher = value;
return com.newgrounds.APIEventDispatcher.__get__globalDispatcher();
};
v1.initEventQueue = function () {
setInterval(com.newgrounds.APIEventDispatcher.runEventQueue, 50);
return [];
};
v2.dispatchEvent = function (event) {
com.newgrounds.APIEventDispatcher._eventQueue.push({'dispatcher': this, 'event': event});
return true;
};
v2.actualDispatchEvent = function (event) {
var v3 = super.dispatchEvent(event);
if (com.newgrounds.APIEventDispatcher._globalDispatcher && this != com.newgrounds.APIEventDispatcher._globalDispatcher) {
com.newgrounds.APIEventDispatcher._globalDispatcher.dispatchEvent(event);
}
};
v1.runEventQueue = function (event) {
var v3 = com.newgrounds.APIEventDispatcher._eventQueue.length;
if (v3) {
var v4 = com.newgrounds.APIEventDispatcher._eventQueue;
com.newgrounds.APIEventDispatcher._eventQueue = [];
var v1 = 0;
while (v1 < v3) {
var v2 = v4[v1];
v2.dispatcher.actualDispatchEvent(v2.event);
++v1;
}
}
};
v1._eventQueue = com.newgrounds.APIEventDispatcher.initEventQueue();
v1.addProperty('globalDispatcher', v1.__get__globalDispatcher, v1.__set__globalDispatcher);
ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 1357 __Packages.com.newgrounds.encoders.BaseN {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.BaseN) {
var v1 = function (hash) {
if (hash) {
this._hash = hash;
} else {
this._hash = com.newgrounds.encoders.BaseN.DEFAULT_HASH;
}
this._base = this._hash.length;
this._reverseHash = new Object();
var v2 = 0;
while (v2 < this._hash.length) {
this._reverseHash[this._hash.charAt(v2)] = v2;
++v2;
}
};
com.newgrounds.encoders.BaseN = v1;
var v2 = v1.prototype;
v2.encodeUint = function (number, minimumChars) {
if (minimumChars == undefined) {
minimumChars = 1;
}
var v2 = '';
var v3 = number;
while (v3 != 0) {
v2 = this._hash.charAt(v3 % this._base) + v2;
v3 /= this._base;
v3 = int(v3);
}
while (v2.length < minimumChars) {
v2 = this._hash.charAt(0) + v2;
}
return v2;
};
v2.decodeUint = function (encodedNumber) {
var v3 = 0;
var v2 = 0;
while (v2 < encodedNumber.length) {
v3 *= this._base;
v3 += this._reverseHash[encodedNumber.charAt(v2)];
++v2;
}
return v3;
};
v1.DEFAULT_HASH = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/';
ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1);
}
#endinitclip
}
movieClip 1363 __Packages.com.newgrounds.APICommand {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APICommand) {
var v1 = function (command) {
super();
this._command = command;
this._parameters = new Object();
this._secureParameters = new Object();
this._hasTimeout = true;
};
com.newgrounds.APICommand = v1;
com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v1.stopPendingCommands = function () {
for (var v2 in com.newgrounds.APICommand._pendingCommands) {
var v1 = com.newgrounds.APICommand._pendingCommands[v2];
v1.close();
}
com.newgrounds.APICommand._pendingCommands = [];
};
v1.onThrottleTimer = function (event) {
if (getTimer() - com.newgrounds.APICommand._throttleTimestamp >= com.newgrounds.APICommand.THROTTLE_INTERVAL) {
com.newgrounds.APICommand._throttleCount = 0;
com.newgrounds.APICommand._throttleCount = 0;
for (;;) {
if (!(com.newgrounds.APICommand._commandQueue.length && com.newgrounds.APICommand._throttleCount < com.newgrounds.APICommand.THROTTLE_THRESHOLD)) break;
var v1 = com.newgrounds.APICommand._commandQueue.shift();
v1.command.send(v1.connection);
++com.newgrounds.APICommand._throttleCount;
}
}
};
v1.encryptHex = function (hexValue) {
var v4 = hexValue.length % 6;
var v3 = '';
var v1 = 0;
while (v1 < hexValue.length) {
v3 += com.newgrounds.APICommand._encryptor.encodeUint(int('0x' + hexValue.substr(v1, 6)), 4);
v1 += 6;
}
return v4.toString() + v3;
};
v2.__get__command = function () {
return this._command;
};
v2.__set__command = function (value) {
this._command = value;
return this.__get__command();
};
v2.__get__hasTimeout = function () {
return this._hasTimeout;
};
v2.__set__hasTimeout = function (val) {
this._hasTimeout = val;
return this.__get__hasTimeout();
};
v2.__get__parameters = function () {
return this._parameters;
};
v2.__set__parameters = function (object) {
this._parameters = new Object();
if (object) {
for (var v3 in object) {
this._parameters[v3] = object[v3];
}
}
return this.__get__parameters();
};
v2.__get__preventCache = function () {
return this._preventCache;
};
v2.__set__preventCache = function (value) {
this._preventCache = value;
return this.__get__preventCache();
};
v2.__get__secureParameters = function () {
return this._secureParameters;
};
v2.__set__secureParameters = function (object) {
this._secureParameters = new Object();
if (object) {
for (var v3 in object) {
this._secureParameters[v3] = object[v3];
}
}
return this.__get__secureParameters();
};
v2.__get__hasSecureParameters = function () {
for (var v2 in this._secureParameters) {
return true;
}
return false;
};
v2.addFile = function (filename, data, dataField, contentType) {
if (contentType == undefined) {
contentType = 'application/octet-stream';
}
if (!this._files) {
this._files = new Object();
}
var v3 = {'filename': filename, 'data': data, 'dataField': dataField, 'contentType': contentType};
this._files[filename] = v3;
};
v2.removeFile = function (filename) {
if (this._files) {
delete this._files[filename];
}
};
v2.clearFiles = function () {
this._files = null;
};
v2.close = function () {
if (this._loader) {
clearInterval(this._timeoutTimer);
var v2 = 0;
while (v2 < com.newgrounds.APICommand._pendingCommands.length) {
if (com.newgrounds.APICommand._pendingCommands[v2] == this) {
com.newgrounds.APICommand._pendingCommands.splice(v2, 1);
break;
}
++v2;
}
this._loader = null;
}
};
v2.loadInBrowser = function (connection, newWindow) {
this._parameters.command_id = this._command;
this._parameters.tracker_id = connection.apiId ? connection.apiId : 1;
if (connection.debug) {
this._parameters.debug = 1;
}
var v3 = connection.apiURL + '?host=' + escape(connection.hostDomain);
for (var v4 in this._parameters) {
v3 += '&' + escape(v4) + '=' + escape(this._parameters[v4]);
}
var v6;
if (newWindow) {
v6 = '_blank';
} else {
v6 = '_top';
}
_root.getURL(v3, v6);
};
v2.send = function (connection) {
if (com.newgrounds.APICommand._throttleCount >= com.newgrounds.APICommand.THROTTLE_THRESHOLD) {
com.newgrounds.APICommand._commandQueue.push({'connection': connection, 'command': this});
} else {
this.sendInternal(connection);
}
};
v2.sendInternal = function (connection) {
var v4;
v4 = new LoadVars();
v4.command_id = this._command;
v4.tracker_id = connection.apiId;
if (connection.debug) {
v4.debug = 1;
}
if (this._preventCache) {
v4.seed = Math.random();
}
var v2;
var v3;
var v7;
for (v2 in this._parameters) {
v3 = this._parameters[v2];
if (v3 != null) {
if (typeof v3 == 'boolean') {
v4[v2] = int(v3);
} else {
v4[v2] = v3;
}
}
}
if (this.__get__hasSecureParameters()) {
var v6 = new Object();
for (v2 in this._secureParameters) {
v3 = this._secureParameters[v2];
if (v3 != null) {
if (typeof v3 == 'boolean') {
v6[v2] = int(v3);
} else {
v6[v2] = v3;
}
}
}
var v8 = '';
v7 = 0;
while (v7 < 16) {
v8 += com.newgrounds.APICommand.ENCRYPTOR_RADIX.charAt(int(Math.random() * com.newgrounds.APICommand.ENCRYPTOR_RADIX.length));
++v7;
}
v4.command_id = 'securePacket';
v6.command_id = this._command;
v6.as_version = 3;
v6.session_id = connection.sessionId;
v6.user_email = connection.userEmail;
v6.publisher_id = connection.publisherId;
v6.seed = v8;
var v13 = com.newgrounds.crypto.MD5.hash(v8);
var v11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(v6), connection.encryptionKey);
v4.secure = com.newgrounds.APICommand.encryptHex(v13 + v11);
}
com.newgrounds.Logger.logInternal('Sending packet:', v4);
var v12;
v12 = 'application/x-www-form-urlencoded';
for (v2 in v4) {
if (typeof v4[v2] == 'object') {
v4[v2] = com.newgrounds.encoders.json.JSON.encode(v4[v2]);
}
}
if (this._files) {
for (var v10 in this._files) {
var v5 = this._files[v10];
if (typeof v5.data == 'string') {
v4[v10] = v5.data;
} else {
v4[v10] = com.newgrounds.encoders.json.JSON.encode(v5.data);
}
}
}
com.newgrounds.APICommand._pendingCommands.push(this);
++com.newgrounds.APICommand._throttleCount;
com.newgrounds.APICommand._throttleTimestamp = getTimer();
this.startLoader(connection.apiURL, v4, v12);
};
v2.startLoader = function (url, data, contentType) {
this._loader = LoadVars(data);
this._loader.onData = this.as2CompleteHandler;
this._loader.contentType = contentType;
this._loader.sendAndLoad(url, this._loader, 'POST');
if (this._hasTimeout) {
setInterval(this, this.onTimeout, com.newgrounds.APICommand.TIMEOUT_INTERVAL);
}
};
v2.as2CompleteHandler = function (data) {
var v3;
var v2 = 0;
while (v2 < com.newgrounds.APICommand._pendingCommands.length) {
if (com.newgrounds.APICommand._pendingCommands[v2]._loader == this) {
v3 = com.newgrounds.APICommand._pendingCommands[v2];
break;
}
++v2;
}
v3.onComplete(data);
};
v2.onTimeout = function (event) {
this.close();
com.newgrounds.Logger.logError('Command timed out.');
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT));
};
v2.onError = function (error) {
com.newgrounds.Logger.logError('Error when sending command:', error);
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN));
this.close();
};
v2.onComplete = function (data) {
try {
if (!data || data == '') {
throw new Error();
}
com.newgrounds.Logger.logInternal('Received packet:', data);
var v2 = com.newgrounds.encoders.json.JSON.decode(data);
if (!v2) {
throw new Error();
}
if (com.newgrounds.APICommand.bridge) {
com.newgrounds.APICommand.bridge.sendEvent(v2.command_id, v2);
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, v2, (v2 && v2.success) ? com.newgrounds.APIEvent.ERROR_NONE : com.newgrounds.APIEvent.ERROR_COMMAND_FAILED));
}
catch (e) {
com.newgrounds.Logger.logError('Invalid response returned from server: ' + data);
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE));
}
this.close();
};
v1.TIMEOUT_INTERVAL = 10000;
v1.THROTTLE_INTERVAL = 10050;
v1.THROTTLE_TICK_INTERVAL = 1000;
v1.THROTTLE_THRESHOLD = 24;
v1._throttleCount = 0;
v1._commandQueue = [];
v1._throttleTimer = setInterval(com.newgrounds.APICommand.onThrottleTimer, com.newgrounds.APICommand.THROTTLE_TICK_INTERVAL);
v1.ENCRYPTOR_RADIX = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X';
v1._encryptor = new com.newgrounds.encoders.BaseN(com.newgrounds.APICommand.ENCRYPTOR_RADIX);
v1._pendingCommands = [];
v1.CRLF = '\r\n';
v2.addProperty('command', v2.__get__command, v2.__set__command);
v2.addProperty('hasSecureParameters', v2.__get__hasSecureParameters, function () {});
v2.addProperty('hasTimeout', v2.__get__hasTimeout, v2.__set__hasTimeout);
v2.addProperty('parameters', v2.__get__parameters, v2.__set__parameters);
v2.addProperty('preventCache', v2.__get__preventCache, v2.__set__preventCache);
v2.addProperty('secureParameters', v2.__get__secureParameters, v2.__set__secureParameters);
ASSetPropFlags(com.newgrounds.APICommand.prototype, null, 1);
}
#endinitclip
}
movieClip 1358 __Packages.com.newgrounds.Bridge {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Bridge) {
var v1 = function (id) {
this._widgetId = id;
this._inConnection = new LocalConnection();
this._outConnection = new LocalConnection();
this._inConnection.receiveEvent = this.receiveEvent;
try {
this._inConnection.connect('rec_' + this._widgetId);
}
com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {'target': this, 'func': this.onLogMessage});
};
com.newgrounds.Bridge = v1;
var v2 = v1.prototype;
v2.onLogMessage = function (event) {
try {
this._outConnection.send(this._widgetId, 'sendEvent', 'trace', String(event.__get__data()));
}
};
v2.sendEvent = function (command, parameters) {
if (this._outConnection) {
parameters = {'data': parameters};
this._outConnection.send(this._widgetId, 'sendEvent', command, parameters);
}
};
v2.receiveEvent = function (event, parameters) {};
v2.onStatus = function (event) {};
ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1);
}
#endinitclip
}
movieClip 1355 __Packages.com.newgrounds.APIEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.APIEvent) {
var v1 = function (type, data, error) {
super(type);
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
if (!error || error == '' || error == com.newgrounds.APIEvent.ERROR_NONE) {
this._error = com.newgrounds.APIEvent.ERROR_NONE;
this._success = true;
} else {
this._error = error;
this._success = false;
}
if (data) {
this._data = data;
} else {
this._data = {};
}
};
com.newgrounds.APIEvent = v1;
com.newgrounds.APIEvent extends com.newgrounds.Event;
var v2 = v1.prototype;
v2.clone = function () {
return new com.newgrounds.APIEvent(this.__get__type(), this._data, this._error);
};
v2.__get__success = function () {
return this._success;
};
v2.__get__data = function () {
return this._data;
};
v2.__get__error = function () {
return this._error;
};
v1.COMMAND_COMPLETE = 'commandComplete';
v1.MEDAL_UNLOCK_CONFIRMED = 'medalUnlockConfirmed';
v1.ICON_LOADED = 'iconLoaded';
v1.API_CONNECTED = 'movieConnected';
v1.LOG = 'log';
v1.MEDAL_UNLOCKED = 'medalUnlocked';
v1.SCORES_LOADED = 'scoresLoaded';
v1.SCORE_POSTED = 'scorePosted';
v1.QUERY_COMPLETE = 'queryComplete';
v1.FILE_LOADED = 'fileLoaded';
v1.FILE_SAVED = 'fileSaved';
v1.FILE_REQUESTED = 'fileRequested';
v1.VOTE_COMPLETE = 'voteComplete';
v1.ERROR_NONE = 'noError';
v1.ERROR_UNKNOWN = 'unknownError';
v1.ERROR_COMMAND_FAILED = 'commandFailed';
v1.ERROR_NOT_CONNECTED = 'notConnected';
v1.ERROR_INVALID_ARGUMENT = 'invalidArgument';
v1.ERROR_TIMED_OUT = 'timedOut';
v1.ERROR_BAD_FILE = 'badFile';
v1.ERROR_BAD_RESPONSE = 'badResponse';
v1.ERROR_SENDING_COMMAND = 'errorSendingCommand';
v1.ERROR_HOST_BLOCKED = 'hostBlocked';
v1.ERROR_ALREADY_VOTED = 'alreadyVoted';
v1.ERROR_NOT_LOGGED_IN = 'notLoggedIn';
v1.ERROR_WRONG_ENCRYPTION_KEY = 'wrongEncryptionKey';
v2.addProperty('data', v2.__get__data, function () {});
v2.addProperty('error', v2.__get__error, function () {});
v2.addProperty('success', v2.__get__success, function () {});
ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 1374 __Packages.com.newgrounds.API {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.API) {
var v1 = function () {};
com.newgrounds.API = v1;
var v2 = v1.prototype;
v1.__get__connected = function () {
return com.newgrounds.API._connection.__get__connected();
};
v1.__get__isNetworkHost = function () {
return com.newgrounds.API._connection.__get__isNetworkHost();
};
v1.__get__apiId = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.apiId;
};
v1.__get__debugMode = function () {
return com.newgrounds.API._debugMode;
};
v1.__set__debugMode = function (val) {
com.newgrounds.API._debugMode = val;
return com.newgrounds.API.__get__debugMode();
};
v1.__get__publisherId = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.publisherId;
};
v1.__get__sessionId = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.sessionId;
};
v1.__get__hostDomain = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.hostDomain;
};
v1.__get__hostURL = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.__get__hostURL();
};
v1.__get__isNewgrounds = function () {
return com.newgrounds.API._connection.publisherId == 1;
};
v1.__get__hasUserSession = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.__get__hasUserSession();
};
v1.__get__username = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.username;
};
v1.__get__userId = function () {
com.newgrounds.API._connection.assertInitialized();
return com.newgrounds.API._connection.userId;
};
v1.assertConnected = function (eventType) {
if (eventType == undefined) {
eventType = null;
}
if (com.newgrounds.API._connection.assertConnected()) {
return true;
} else {
if (eventType) {
com.newgrounds.API.dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
}
return false;
}
};
v1.__get__adsApproved = function () {
return com.newgrounds.API._adsApproved;
};
v1.__get__adFeedURL = function () {
return com.newgrounds.API._adFeedURL;
};
v1.__get__medals = function () {
return com.newgrounds.API._medalsArray;
};
v1.__get__scoreBoards = function () {
return com.newgrounds.API._scoreBoardsArray;
};
v1.__get__saveGroups = function () {
return com.newgrounds.API._saveGroupsArray;
};
v1.connect = function (_root, apiId, encryptionKey, movieVersion) {
if (encryptionKey == undefined) {
encryptionKey = null;
}
if (movieVersion == undefined) {
movieVersion = '';
}
com.newgrounds.APIEventDispatcher.__set__globalDispatcher(com.newgrounds.API._dispatcher);
System.security.loadPolicyFile('http://apifiles.ngfiles.com/crossdomain.xml');
if (com.newgrounds.API._connection.initialized) {
com.newgrounds.Logger.logError('Connection already in progress. Please call API.disconnect() before attempting another connection.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
return undefined;
}
apiId = com.newgrounds.API.trimWhitespace(apiId);
if (encryptionKey) {
encryptionKey = com.newgrounds.API.trimWhitespace(encryptionKey);
}
if (!apiId || apiId == '') {
com.newgrounds.Logger.logError('No apiId given. Please use the API ID from your API settings page.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return undefined;
}
com.newgrounds.Logger.logMessage('====== Newgrounds API v' + com.newgrounds.API.VERSION + ' ======');
com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTING;
_root = _root;
com.newgrounds.API._movieVersion = movieVersion;
com.newgrounds.API._connection.apiId = apiId;
var v4;
v4 = apiId.indexOf(':');
if (v4 != -1) {
com.newgrounds.API._connection.trackerId = int(apiId.substring(0, v4));
} else {
com.newgrounds.API._connection.trackerId = int(apiId);
}
if (!com.newgrounds.API._connection.trackerId) {
com.newgrounds.Logger.logError('Invalid API ID: ' + apiId);
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return undefined;
}
com.newgrounds.API._connection.encryptionKey = encryptionKey;
com.newgrounds.API._connection.initialized = true;
com.newgrounds.API._connection.__set__hostURL(_root._url);
com.newgrounds.API.doConnect(_root);
};
v1.doConnect = function (flashVars) {
if (com.newgrounds.API.__get__isNetworkHost() && com.newgrounds.API._debugMode != com.newgrounds.API.RELEASE_MODE) {
com.newgrounds.Logger.logMessage('Live file detected, turning off debug mode.');
com.newgrounds.API._debugMode = com.newgrounds.API.RELEASE_MODE;
}
if (flashVars && flashVars.NewgroundsAPI_SandboxID) {
com.newgrounds.API._bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID);
com.newgrounds.APICommand.bridge = com.newgrounds.API._bridge;
}
if (com.newgrounds.API._debugMode == com.newgrounds.API.RELEASE_MODE) {
if (flashVars) {
if (flashVars.NewgroundsAPI_UserName) {
com.newgrounds.API._connection.username = flashVars.NewgroundsAPI_UserName;
}
if (flashVars.NewgroundsAPI_UserID) {
com.newgrounds.API._connection.userId = flashVars.NewgroundsAPI_UserID;
}
if (flashVars.NewgroundsAPI_PublisherID) {
com.newgrounds.API._connection.publisherId = flashVars.NewgroundsAPI_PublisherID;
}
if (flashVars.NewgroundsAPI_UserpageFormat) {
com.newgrounds.API._connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat;
}
if (flashVars.NewgroundsAPI_SessionID) {
com.newgrounds.API._connection.sessionId = flashVars.NewgroundsAPI_SessionID;
}
if (flashVars.NewgroundsAPI_SaveGroupID) {
com.newgrounds.API._requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID;
}
if (flashVars.NewgroundsAPI_SaveFileID) {
com.newgrounds.API._requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID;
}
}
} else {
com.newgrounds.API._connection.debug = true;
if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN || com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_OUT) {
com.newgrounds.API._connection.publisherId = 1;
}
if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_LOGGED_IN) {
com.newgrounds.API._connection.sessionId = 'D3bu64p1U53R';
com.newgrounds.API._connection.userId = 10;
com.newgrounds.API._connection.username = 'API-Debugger';
}
}
com.newgrounds.API._connection.sendSimpleCommand('connectMovie', com.newgrounds.API.onConnect, {'host': com.newgrounds.API._connection.hostDomain, 'movie_version': com.newgrounds.API._movieVersion, 'publisher_id': com.newgrounds.API._connection.publisherId});
};
v1.onConnect = function (event) {
var v1 = event.__get__data();
if (!event.__get__success()) {
com.newgrounds.Logger.logError('Unable to connect to the API.');
com.newgrounds.API._connection.reset();
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error());
return undefined;
}
if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) {
com.newgrounds.API._adFeedURL = com.newgrounds.API.TEST_AD_FEED_URL;
} else {
if (v1.ad_url) {
com.newgrounds.API._adFeedURL = unescape(v1.ad_url);
}
}
switch (v1.ad_status) {
case -1:
com.newgrounds.Logger.logWarning('Your movie is not approved to run Flash Ads.');
break;
case 0:
com.newgrounds.Logger.logWarning('Your movie is still awaiting approval to run Flash Ads.');
break;
case 1:
com.newgrounds.Logger.logMessage('Your movie is approved to run Flash Ads!');
}
com.newgrounds.API._adsApproved = v1.ad_status == 1;
if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_HOST_BLOCKED || v1.deny_host) {
com.newgrounds.Logger.logWarning(com.newgrounds.API._connection.hostDomain + ' does not have permission to host this movie!', 'Update your API configuration to allow this host.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'officialURL': unescape(v1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED);
com.newgrounds.API._connection.reset();
return undefined;
}
com.newgrounds.API._movieName = v1.movieName ? v1.movieName : '';
com.newgrounds.Logger.logMessage('Connecting to the Newgrounds API Gateway...', '----- ' + v1.movie_name + ' -----');
if (com.newgrounds.API._debugMode == com.newgrounds.API.DEBUG_MODE_NEW_VERSION) {
v1.movie_version = 'Debug Mode';
}
if (v1.movie_version) {
com.newgrounds.Logger.logMessage('A new version of this movie is available.', 'Current version:\t' + com.newgrounds.API._movieVersion, 'Newest version:\t' + v1.movie_version, 'Use API.loadOfficialVersion() to link to the latest version.');
com.newgrounds.API._newVersion = true;
} else {
com.newgrounds.API._newVersion = false;
}
if (v1.request_portal_url) {
com.newgrounds.API._connection.sendSimpleCommand('setPortalID', null, {'portal_url': com.newgrounds.API._connection.__get__hostURL()});
}
com.newgrounds.API._connection.sendSimpleCommand('preloadSettings', com.newgrounds.API.onMetadataLoaded, {'publisher_id': com.newgrounds.API._connection.publisherId, 'user_id': com.newgrounds.API._connection.userId});
};
v1.onMetadataLoaded = function (event) {
var v11 = event.__get__data();
var v1;
var v7;
if (!event.__get__success()) {
com.newgrounds.Logger.logWarning('Unable to load movie metadata.');
com.newgrounds.API.disconnect();
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error());
return undefined;
}
var v10 = 0;
if (v11.medals) {
v10 = v11.medals.length;
var v18;
if (com.newgrounds.API.__get__hasUserSession()) {
v18 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
} else {
v18 = com.newgrounds.API.loadLocal('medals_unlocked');
}
v1 = 0;
while (v1 < v10) {
var v4 = v11.medals[v1];
var v15 = v4.medal_unlocked;
var v17 = v18 && v18[v4.medal_id];
var v14 = com.newgrounds.API.__get__hasUserSession() ? v15 : v17;
if (com.newgrounds.API.__get__debugMode() != com.newgrounds.API.RELEASE_MODE) {
v14 = false;
}
var v5 = new com.newgrounds.Medal(com.newgrounds.API._connection, v4.medal_id, v4.medal_name, v4.medal_description, Boolean(int(v4.secret)), v14, v4.medal_value, v4.medal_difficulty, v4.medal_icon);
v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked, false, 0, true);
v5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed, false, 0, true);
com.newgrounds.API._medals[v5.__get__name()] = v5;
com.newgrounds.API._medalsArray.push(v5);
com.newgrounds.Logger.logMessage(v5);
if (com.newgrounds.API.__get__hasUserSession() && v17 && !v15) {
com.newgrounds.Logger.logMessage('Server missed the "' + v5.__get__name() + '" unlock. Resending...');
v5.unlock();
}
++v1;
}
}
com.newgrounds.Logger.logMessage(v10 + ' medal' + ((v10 != 1) ? 's' : '') + ' initialized.');
v10 = 0;
if (v11.score_boards) {
v10 = v11.score_boards.length;
v1 = 0;
while (v1 < v10) {
var v16 = v11.score_boards[v1];
var v9 = new com.newgrounds.ScoreBoard(com.newgrounds.API._connection, v16.name, v16.id);
com.newgrounds.API._scoreBoards[v9.__get__name()] = v9;
com.newgrounds.API._scoreBoardsArray.push(v9);
com.newgrounds.Logger.logMessage(v9);
++v1;
}
}
com.newgrounds.Logger.logMessage(v10 + ' scoreboard' + ((v10 != 1) ? 's' : '') + ' initialized.');
v10 = 0;
if (v11.save_groups) {
v10 = v11.save_groups.length;
v1 = 0;
while (v1 < v10) {
var v2 = v11.save_groups[v1];
var v13 = [];
if (v2.keys) {
v7 = 0;
while (v7 < v2.keys.length) {
var v6 = v2.keys[v7];
v13.push(new com.newgrounds.SaveKey(v6.name, v6.id, v6.type));
++v7;
}
}
var v12 = [];
if (v2.ratings) {
v1 = 0;
while (v1 < v2.ratings.length) {
var v3 = v2.ratings[v1];
v12.push(new com.newgrounds.SaveRating(v3.name, v3.id, v3.float, v3.min, v3.max));
++v1;
}
}
var v8 = new com.newgrounds.SaveGroup(com.newgrounds.API._connection, v2.group_name, v2.group_id, v2.group_type, v13, v12);
com.newgrounds.API._saveGroups[v8.__get__name()] = v8;
com.newgrounds.API._saveGroupsArray.push(v8);
com.newgrounds.Logger.logMessage(v8);
++v1;
}
}
com.newgrounds.Logger.logMessage(v10 + ' save group' + ((v10 != 1) ? 's' : '') + ' initialized.');
if (v11.save_file_path) {
com.newgrounds.API._saveFilePath = v11.save_file_path + '/';
com.newgrounds.SaveFile._saveFilePath = com.newgrounds.API._saveFilePath;
com.newgrounds.Logger.logInternal('Save file path: ' + com.newgrounds.API._saveFilePath);
}
if (v11.image_file_path) {
com.newgrounds.API._imageFilePath = v11.image_file_path + '/';
com.newgrounds.SaveFile._imageFilePath = com.newgrounds.API._imageFilePath;
com.newgrounds.Logger.logInternal('Image file path: ' + com.newgrounds.API._imageFilePath);
}
com.newgrounds.Logger.logMessage('Connection complete!');
com.newgrounds.API._connection.connectionState = com.newgrounds.APIConnection.CONNECTED;
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {'movieName': com.newgrounds.API._movieName, 'newVersion': com.newgrounds.API._newVersion});
if (com.newgrounds.API._requestedSaveFileId && com.newgrounds.API._requestedSaveGroupId) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded);
com.newgrounds.API.loadSaveFile(com.newgrounds.API._requestedSaveFileId, false);
}
};
v1.disconnect = function () {
if (!com.newgrounds.API._connection.__get__connected()) {
com.newgrounds.Logger.logWarning('The Newgrounds API is already disconnected.');
return undefined;
}
com.newgrounds.API._connection.reset();
for (var v2 in com.newgrounds.API._medals) {
var v1 = com.newgrounds.API._medals[v2];
v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, com.newgrounds.API.onMedalUnlocked);
v1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, com.newgrounds.API.onMedalUnlockConfirmed);
}
com.newgrounds.API._newVersion = false;
com.newgrounds.API._medals = new Object();
com.newgrounds.API._medalsArray = [];
com.newgrounds.API._scoreBoards = new Object();
com.newgrounds.API._scoreBoardsArray = [];
com.newgrounds.API._saveGroups = new Object();
com.newgrounds.API._saveGroupsArray = [];
com.newgrounds.API._sharedObjects = new Object();
com.newgrounds.API._imageFilePath = null;
com.newgrounds.API._saveFilePath = null;
com.newgrounds.Logger.logMessage('Disconnected from the Newgrounds API.');
};
v1.loadNewgrounds = function () {
com.newgrounds.API._connection.loadInBrowser('loadNewgrounds');
};
v1.loadOfficialVersion = function () {
if (com.newgrounds.API._connection.assertInitialized()) {
com.newgrounds.API._connection.loadInBrowser('loadOfficialVersion', false);
}
};
v1.loadMySite = function () {
if (com.newgrounds.API._connection.assertInitialized()) {
com.newgrounds.API._connection.loadInBrowser('loadMySite');
}
};
v1.loadCustomLink = function (linkName) {
if (com.newgrounds.API._connection.assertInitialized()) {
com.newgrounds.API._connection.loadInBrowser('loadCustomLink', true, {'link': linkName});
}
};
v1.getMedal = function (medalName) {
return com.newgrounds.API._medals[medalName];
};
v1.unlockMedal = function (medalName) {
if (!com.newgrounds.API.assertConnected()) {
return undefined;
}
var v1 = com.newgrounds.API._medals[medalName];
if (!v1) {
com.newgrounds.Logger.logError('No medal named "' + medalName + '" w.');
return undefined;
}
v1.unlock();
};
v1.onMedalUnlocked = function (event) {
if (event.__get__success()) {
var v2 = com.newgrounds.Medal(event.__get__data());
var v1;
if (com.newgrounds.API.__get__hasUserSession()) {
v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
if (!v1) {
v1 = new Object();
}
v1[v2.__get__id()] = true;
com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1);
} else {
v1 = com.newgrounds.API.loadLocal('medals_unlocked');
if (!v1) {
v1 = new Object();
}
v1[(com.newgrounds.Medal(event.__get__data())).__get__id()] = true;
com.newgrounds.API.saveLocal('medals_unlocked', v1);
com.newgrounds.Logger.logMessage('User instanceof not logged in. Medal "' + v2.__get__name() + '" unlocked locally.');
}
}
};
v1.onMedalUnlockConfirmed = function (event) {
if (com.newgrounds.API.__get__hasUserSession()) {
var v1 = com.newgrounds.API.loadLocal('medals_unlocked_' + com.newgrounds.API.__get__username());
if (!v1) {
v1 = new Object();
} else {
delete v1[(com.newgrounds.Medal(event.__get__data())).__get__id()];
}
com.newgrounds.API.saveLocal('medals_unlocked_' + com.newgrounds.API.__get__username(), v1);
}
};
v1.clearLocalMedals = function () {
for (var v2 in com.newgrounds.API._medals) {
var v1 = com.newgrounds.API._medals[v2];
v1.setUnlocked(false);
}
if (!com.newgrounds.API.__get__hasUserSession()) {
com.newgrounds.API.saveLocal('medals_unlocked', new Object());
}
};
v1.getScoreBoard = function (scoreBoardName) {
if (!com.newgrounds.API.assertConnected()) {
return null;
}
return com.newgrounds.API._scoreBoards[scoreBoardName];
};
v1.loadScores = function (scoreBoardName, period, firstResult, numResults, tag) {
if (period == undefined) {
period = 'All-Time';
}
if (firstResult == undefined) {
firstResult = 1;
}
if (numResults == undefined) {
numResults = 10;
}
if (tag == undefined) {
tag = null;
}
if (!com.newgrounds.API.assertConnected()) {
return null;
}
var v1 = com.newgrounds.API._scoreBoards[scoreBoardName];
if (!v1) {
com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return null;
}
v1.__set__period(period);
v1.__set__firstResult(firstResult);
v1.__set__numResults(numResults);
v1.__set__tag(tag);
v1.loadScores();
return v1;
};
v1.postScore = function (scoreBoardName, numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (!com.newgrounds.API.assertConnected()) {
return undefined;
}
if (!com.newgrounds.API.__get__hasUserSession()) {
com.newgrounds.Logger.logError('The user must be logged-in to post a score.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN);
return undefined;
}
var v1 = com.newgrounds.API._scoreBoards[scoreBoardName];
if (!v1) {
com.newgrounds.Logger.logError('No scoreboard named "' + scoreBoardName + '" w.');
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return undefined;
}
v1.postScore(numericScore, tag);
};
v1.getSaveGroup = function (groupName) {
if (!com.newgrounds.API.assertConnected()) {
return null;
}
return com.newgrounds.API._saveGroups[groupName];
};
v1.getSaveGroupById = function (id) {
for (var v3 in com.newgrounds.API._saveGroups) {
var v1 = com.newgrounds.API._saveGroups[v3];
if (v1.__get__id() == id) {
return v1;
}
}
return null;
};
v1.createSaveFile = function (groupName) {
if (!com.newgrounds.API.assertConnected()) {
return null;
}
var v1 = com.newgrounds.API.getSaveGroup(groupName);
if (!v1) {
com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.');
return null;
}
return new com.newgrounds.SaveFile(v1);
};
v1.loadSaveFile = function (saveId, loadContents) {
if (loadContents == undefined) {
loadContents = true;
}
com.newgrounds.API._connection.sendSimpleCommand('loadSaveFile', com.newgrounds.API.onFileLoaded, {'save_id': saveId, 'get_contents': loadContents});
};
v1.onFileLoaded = function (event) {
var v2;
if (event.__get__success()) {
v2 = com.newgrounds.SaveFile.fromObject(com.newgrounds.API.getSaveGroupById((event.__get__data()).group_id), (event.__get__data()).file);
if ((event.__get__data()).get_contents) {
v2.load();
} else {
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, v2);
}
} else {
com.newgrounds.Logger.logError('Unable to load file:', event.__get__error());
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error());
}
};
v1.createSaveQuery = function (groupName) {
if (!com.newgrounds.API.assertConnected()) {
return null;
}
var v1 = com.newgrounds.API.getSaveGroup(groupName);
if (!v1) {
com.newgrounds.Logger.logError('The save group "' + groupName + '" w found.');
return null;
}
var v2 = new com.newgrounds.SaveQuery(v1);
return v2;
};
v1.createSaveQueryByDate = function (groupName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var v1 = com.newgrounds.API.createSaveQuery(groupName);
if (!v1) {
return null;
}
v1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending);
return v1;
};
v1.createSaveQueryByName = function (groupName, filename, exactMatch, sortDescending) {
if (exactMatch == undefined) {
exactMatch = false;
}
if (sortDescending == undefined) {
sortDescending = false;
}
var v1 = com.newgrounds.API.createSaveQuery(groupName);
if (!exactMatch) {
v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_CONTAINS, filename);
return v1;
}
v1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.OPERATOR_EQUAL, filename);
return v1;
};
v1.createSaveQueryByRating = function (groupName, ratingName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var v1 = com.newgrounds.API.createSaveQuery(groupName);
v1.sortOn(ratingName, sortDescending);
return v1;
};
v1.onRequestedFileLoaded = function (event) {
com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, com.newgrounds.API.onRequestedFileLoaded);
if (event.__get__success()) {
var v1 = event.__get__data();
if (v1) {
com.newgrounds.API.dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, v1);
}
}
};
v1.addEventListener = function (eventType, listener, priority, useWeakReference) {
if (priority == undefined) {
priority = 0;
}
if (useWeakReference == undefined) {
useWeakReference = true;
}
com.newgrounds.API._dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference);
};
v1.removeEventListener = function (eventType, listener) {
com.newgrounds.API._dispatcher.removeEventListener(eventType, listener);
};
v1.dispatchEvent = function (event, data, error) {
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
com.newgrounds.API._dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error));
};
v1.saveLocal = function (saveId, saveData) {
try {
var v3;
var v2 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey);
if (!com.newgrounds.API._sharedObjects[saveId]) {
com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v2);
}
v3 = com.newgrounds.API._sharedObjects[saveId];
v3.data.data = com.newgrounds.API.encodeData(saveData);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
com.newgrounds.Logger.logError('Unable to save local data.', error);
return false;
return true;
}
throw v0;
}
return true;
};
v1.loadLocal = function (saveId) {
try {
var v1;
var v3 = 'ng_ap_secure_' + com.newgrounds.API._connection.trackerId + '_' + com.newgrounds.crypto.RC4.encrypt(saveId, com.newgrounds.API._connection.encryptionKey);
if (!com.newgrounds.API._sharedObjects[saveId]) {
com.newgrounds.API._sharedObjects[saveId] = SharedObject.getLocal(v3);
}
v1 = com.newgrounds.API._sharedObjects[saveId];
if (v1 && v1.data && v1.data.data) {
return com.newgrounds.API.decodeData(v1.data.data);
}
return null;
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
com.newgrounds.Logger.logError('Unable to load local data.', error);
return null;
}
throw v0;
}
return null;
};
v1.logCustomEvent = function (eventName) {
if (com.newgrounds.API.assertConnected()) {
com.newgrounds.Logger.logMessage('Logged event: ' + eventName);
com.newgrounds.API._connection.sendSimpleCommand('logCustomEvent', null, {'event': eventName});
}
};
v1.encodeData = function (data) {
if (!com.newgrounds.API._connection.assertInitialized()) {
return null;
}
return com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), com.newgrounds.API._connection.encryptionKey);
};
v1.decodeData = function (data) {
if (!com.newgrounds.API._connection.assertInitialized()) {
return null;
}
try {
return com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, com.newgrounds.API._connection.encryptionKey));
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return null;
}
throw v0;
}
return null;
};
v1.stopPendingCommands = function () {
com.newgrounds.APICommand.stopPendingCommands();
com.newgrounds.Logger.logMessage('Pending commands stopped.');
};
v1.setFont = function (textField, font) {
if (textField && font) {
var v2 = textField.getTextFormat();
var v4 = textField.embedFonts;
var v3 = new TextFormat(font);
textField.setNewTextFormat(v3);
textField.setTextFormat(v3);
textField.embedFonts = true;
if (textField.textWidth == 0) {
textField.embedFonts = v4;
textField.setTextFormat(v2);
textField.setNewTextFormat(v2);
} else {
textField.antiAliasType = 'advanced';
textField.sharpness = 120;
}
}
};
v1.trimWhitespace = function (string) {
if (!string) {
return null;
}
var v1 = 0;
while (string.charAt(v1) == ' ') {
++v1;
}
var v3 = string.length - 1;
for (;;) {
if (!(string.charAt(v1) == ' ' && v3 >= 0)) break;
--v3;
}
return string.slice(v1, v3 + 1);
};
v1.VERSION = '3.0.8 AS2';
v1.RELEASE_MODE = 'releaseMode';
v1.DEBUG_MODE_LOGGED_IN = 'debugModeLoggedIn';
v1.DEBUG_MODE_LOGGED_OUT = 'debugModeLoggedOut';
v1.DEBUG_MODE_NEW_VERSION = 'debugModeNewVersion';
v1.DEBUG_MODE_HOST_BLOCKED = 'debugModeHostBlocked';
v1.TEST_AD_FEED_URL = 'http://www.ngads.com/adtest.php';
v1._dispatcher = new com.newgrounds.APIEventDispatcher();
v1._connection = new com.newgrounds.APIConnection();
v1._debugMode = com.newgrounds.API.DEBUG_MODE_LOGGED_IN;
v1._adsApproved = false;
v1._medals = new Object();
v1._medalsArray = [];
v1._scoreBoards = new Object();
v1._scoreBoardsArray = [];
v1._saveGroups = new Object();
v1._saveGroupsArray = [];
v1._sharedObjects = new Object();
v1.addProperty('adFeedURL', v1.__get__adFeedURL, function () {});
v1.addProperty('adsApproved', v1.__get__adsApproved, function () {});
v1.addProperty('apiId', v1.__get__apiId, function () {});
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('debugMode', v1.__get__debugMode, v1.__set__debugMode);
v1.addProperty('hasUserSession', v1.__get__hasUserSession, function () {});
v1.addProperty('hostDomain', v1.__get__hostDomain, function () {});
v1.addProperty('hostURL', v1.__get__hostURL, function () {});
v1.addProperty('isNetworkHost', v1.__get__isNetworkHost, function () {});
v1.addProperty('isNewgrounds', v1.__get__isNewgrounds, function () {});
v1.addProperty('medals', v1.__get__medals, function () {});
v1.addProperty('publisherId', v1.__get__publisherId, function () {});
v1.addProperty('saveGroups', v1.__get__saveGroups, function () {});
v1.addProperty('scoreBoards', v1.__get__scoreBoards, function () {});
v1.addProperty('sessionId', v1.__get__sessionId, function () {});
v1.addProperty('userId', v1.__get__userId, function () {});
v1.addProperty('username', v1.__get__username, function () {});
ASSetPropFlags(com.newgrounds.API.prototype, null, 1);
}
#endinitclip
}
movieClip 1371 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.ImageScanner) {
var v1 = function (hashLength, charsPerPixel) {
if (hashLength) {
this._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH.substr(0, hashLength);
}
this._baseN = new com.newgrounds.encoders.BaseN(this._hash);
if (charsPerPixel) {
this._charsPerPixel = charsPerPixel;
}
this.__set__encodeAlpha(false);
};
com.newgrounds.encoders.ImageScanner = v1;
var v2 = v1.prototype;
v2.__get__encodeAlpha = function () {
return this._encodeAlpha;
};
v2.__set__encodeAlpha = function (v) {
this._encodeAlpha = v;
this._maxPerChannel = int(Math.pow(this._hash.length, this._charsPerPixel / (this._encodeAlpha ? 4 : 3)));
if (this._maxPerChannel > 256) {
this._maxPerChannel = 256;
}
return this.__get__encodeAlpha();
};
v2.encode = function (source, callbackFunction, callbackObject) {
var v4 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'x': 0, 'y': 0, 'output': null};
var v2 = source.width.toString();
var v3 = source.height.toString();
while (v2.length < 3) {
v2 = '0' + v2;
}
while (v3.length < 3) {
v3 = '0' + v3;
}
v4.output = v2 + v3;
var v6 = setInterval(this, 'doEncode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v4);
v4.interval = v6;
};
v2.decode = function (source, callbackFunction, callbackObject) {
var v2 = {'callbackFunction': callbackFunction, 'callbackObject': callbackObject, 'source': source, 'i': 6, 'x': 0, 'y': 0, 'output': null};
var v5 = int(source.substr(0, 3));
var v6 = int(source.substr(3, 3));
v2.output = new flash.display.BitmapData(v5, v6, this._encodeAlpha);
var v4 = setInterval(this, 'doDecode', com.newgrounds.encoders.ImageScanner.WORK_INTERVAL, v2);
v2.interval = v4;
};
v2.doEncode = function (state) {
var v3 = getTimer();
for (;;) {
if (!(state.y < state.source.height && getTimer() - v3 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break;
state.output += this.encodePixel(state.source.getPixel32(state.x, state.y));
++state.x;
if (state.x == state.source.width) {
state.x = 0;
++state.y;
}
}
if (state.y == state.source.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
};
v2.doDecode = function (state) {
var v4 = getTimer();
for (;;) {
if (!(state.y < state.output.height && getTimer() - v4 < com.newgrounds.encoders.ImageScanner.WORK_INTERVAL)) break;
var v3 = this.decodePixel(state.source.substr(state.i, this._charsPerPixel));
state.output.setPixel32(state.x, state.y, v3);
state.i += this._charsPerPixel;
++state.x;
if (state.x == state.output.width) {
state.x = 0;
++state.y;
}
}
if (state.y == state.output.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
};
v2.encodePixel = function (pixel) {
var v3 = pixel >> 24 & 255;
var v4 = pixel >> 16 & 255;
var v5 = pixel >> 8 & 255;
var v2 = pixel & 255;
v3 = int((v3 / 256) * this._maxPerChannel);
v4 = int((v4 / 256) * this._maxPerChannel);
v5 = int((v5 / 256) * this._maxPerChannel);
v2 = int((v2 / 256) * this._maxPerChannel);
var v7 = v4 * this._maxPerChannel * this._maxPerChannel + v5 * this._maxPerChannel + v2;
if (this._encodeAlpha) {
v7 += v3 * this._maxPerChannel * this._maxPerChannel * this._maxPerChannel;
}
return this._baseN.encodeUint(v7, this._charsPerPixel);
};
v2.decodePixel = function (encodedPixel) {
var v3 = 255;
var v5;
var v6;
var v4;
var v7 = 0;
var v2 = this._baseN.decodeUint(encodedPixel);
v4 = v2 % this._maxPerChannel;
v2 /= int(this._maxPerChannel);
v6 = v2 % this._maxPerChannel;
v2 /= int(this._maxPerChannel);
v5 = v2 % this._maxPerChannel;
v2 /= int(this._maxPerChannel);
if (this._encodeAlpha) {
v3 = v2 % this._maxPerChannel;
v2 /= int(this._maxPerChannel);
}
return v3 << 24 | v5 << 16 | v6 << 8 | v4;
};
v1.DEFAULT_HASH = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&';
v2._hash = com.newgrounds.encoders.ImageScanner.DEFAULT_HASH;
v2._charsPerPixel = 2;
v1.WORK_INTERVAL = 33.33333333333334;
v2.addProperty('encodeAlpha', v2.__get__encodeAlpha, v2.__set__encodeAlpha);
ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1);
}
#endinitclip
}
movieClip 1372 __Packages.com.newgrounds.SaveFile {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveFile) {
var v1 = function (group) {
super();
this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.SaveFile.DEFAULT_ICON, null);
this._group = group;
};
com.newgrounds.SaveFile = v1;
com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v1.__get__currentFile = function () {
return com.newgrounds.SaveFile._currentFile;
};
v1.fromObject = function (group, fileData) {
var v4 = new com.newgrounds.SaveFile(group);
v4._name = fileData.filename;
v4._description = fileData.description;
v4._id = fileData.save_id;
v4._authorId = fileData.user_id;
v4._authorName = fileData.user_name;
v4._createdDate = fileData.created;
v4._modifiedDate = fileData.last_update;
v4._views = fileData.views;
if (fileData.thumb && fileData.thumb != '') {
v4._iconLoader.__set__url(com.newgrounds.SaveFile._imageFilePath + fileData.thumb);
}
v4._dataURL = com.newgrounds.SaveFile._saveFilePath + fileData.file;
v4._fileSize = fileData.file_size;
v4._approved = fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED;
v4._readOnly = false;
v4._public = fileData.status != com.newgrounds.SaveFile.STATUS_PRIVATE && fileData.status != com.newgrounds.SaveFile.STATUS_UNAPPROVED;
for (var v8 in fileData.keys) {
var v6 = fileData.keys[v8];
var v2 = group.getKeyById(v6.id);
if (v2) {
v4._keys[v2.__get__name()] = v2.validateValue(v6.value);
}
}
for (var v9 in fileData.ratings) {
var v5 = fileData.ratings[v9];
var v3 = group.getRatingById(v5.id);
if (v3) {
v4._ratings[v3.__get__name()] = v3.validateValue(v5.score);
}
}
return v4;
};
v2.__get__group = function () {
return this._group;
};
v2.__get__name = function () {
return this._name;
};
v2.__set__name = function (val) {
this._name = val;
return this.__get__name();
};
v2.__get__description = function () {
return this._description;
};
v2.__set__description = function (val) {
this._description = val;
return this.__get__description();
};
v2.__get__id = function () {
return this._id;
};
v2.__get__data = function () {
return this._data;
};
v2.__set__data = function (val) {
this._data = val;
return this.__get__data();
};
v2.__get__bytesLoaded = function () {
if (this._data) {
return this.__get__bytesTotal();
} else {
if (!this._dataLoader) {
return 0;
} else {
return this._dataLoader.getBytesLoaded();
}
}
};
v2.__get__bytesTotal = function () {
return this._fileSize;
};
v2.__get__readOnly = function () {
return this._readOnly;
};
v2.__get__draft = function () {
return this._draft;
};
v2.__set__draft = function (v) {
this._draft = v;
return this.__get__draft();
};
v2.__get__authorId = function () {
return this._authorId;
};
v2.__get__authorName = function () {
return this._authorName;
};
v2.__get__keys = function () {
return this._keys;
};
v2.__get__ratings = function () {
return this._ratings;
};
v2.__get__views = function () {
return this._views;
};
v2.__get__createdDate = function () {
return this._createdDate;
};
v2.__get__updatedDate = function () {
return this._modifiedDate;
};
v2.toString = function () {
return 'Save File: ' + this._name;
};
v2.__get__icon = function () {
return this._iconLoader.__get__bitmapData();
};
v2.__set__icon = function (v) {
this.createIcon(v);
return this.__get__icon();
};
v2.__get__iconLoaded = function () {
return this._iconLoader.__get__loaded();
};
v2.createIcon = function (source) {
var v9 = new flash.display.BitmapData(com.newgrounds.SaveFile.ICON_WIDTH, com.newgrounds.SaveFile.ICON_HEIGHT, false, 0);
var v6;
var v5;
var v10 = 0;
var v8 = 0;
if (source instanceof flash.display.BitmapData) {
v6 = source.width;
v5 = source.height;
} else {
if (source instanceof MovieClip) {
v6 = source._width;
v5 = source._height;
var v7 = (MovieClip(source)).getBounds(source);
v10 = v7.xMin;
v8 = v7.yMin;
}
}
var v3 = new flash.geom.Matrix();
var v4;
v4 = Math.min(com.newgrounds.SaveFile.ICON_WIDTH / v6, com.newgrounds.SaveFile.ICON_HEIGHT / v5);
v3.translate(-v10, -v8);
v3.scale(v4, v4);
v3.translate((com.newgrounds.SaveFile.ICON_WIDTH - v6 * v4) / 2, (com.newgrounds.SaveFile.ICON_HEIGHT - v5 * v4) / 2);
v9.draw(source, v3);
this._iconLoader.__set__bitmapData(v9);
};
v2.attachIcon = function (parent) {
if (this._iconLoader) {
return this._iconLoader.attachBitmap(parent);
}
com.newgrounds.Logger.logError('No icon available for this sumbission.');
return null;
};
v2.save = function () {
if (!(this._group.__get__connection()).__get__hasUserSession()) {
com.newgrounds.Logger.logError('The user must be logged-in to save a file.');
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
return undefined;
}
++com.newgrounds.BitmapLoader._cacheSeed;
com.newgrounds.SaveFile._currentFile = this;
if (this.__get__iconLoaded()) {
com.newgrounds.SaveFile.ICON_IMAGE_SCANNER.encode(this.__get__icon(), this.onIconEncoded, this);
} else {
this.encodeData(true);
}
};
v2.onIconEncoded = function (encodedIcon) {
this._encodedIcon = encodedIcon;
this.encodeData(true);
};
v2.doSave = function () {
var v4 = new com.newgrounds.APICommand('saveFile');
(v4.__get__secureParameters()).group = this._group.id;
(v4.__get__secureParameters()).user_name = (this._group.__get__connection()).username;
(v4.__get__secureParameters()).filename = this._name;
(v4.__get__secureParameters()).description = this._description;
if (this._draft) {
(v4.__get__secureParameters()).draft = true;
}
if (this._id && !this._readOnly) {
(v4.__get__secureParameters()).overwrite = 1;
(v4.__get__secureParameters()).save_id = this._id;
}
var v8 = [];
for (var v9 in this._keys) {
var v2 = this._group.getKey(v9);
if (v2) {
v8.push({'id': v2.__get__id(), 'value': v2.validateValue(this._keys[v9])});
} else {
com.newgrounds.Logger.logError('No key named "' + v9 + '" in save group "' + this._group.__get__name() + '".');
}
}
(v4.__get__secureParameters()).keys = v8;
var v7 = [];
for (var v10 in this._ratings) {
var v3 = this._group.getRating(v10);
if (v3) {
v7.push({'id': v3.__get__id(), 'value': v3.validateValue(this._ratings[v10])});
} else {
com.newgrounds.Logger.logError('No rating named "' + v10 + '" in save group "' + this._group.__get__name() + '".');
}
}
(v4.__get__secureParameters()).ratings = v7;
if (typeof this._encodedData == 'string') {
v4.addFile('file', this._encodedData, 'file');
} else {
v4.addFile('file', com.newgrounds.encoders.json.JSON.encode(this._encodedData), 'file');
}
if (this.__get__iconLoaded()) {
v4.addFile('thumbnail', this._encodedIcon, 'thumbnail');
}
v4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {'target': this, 'func': this.onSaveComplete});
(this._group.__get__connection()).sendCommand(v4);
};
v2.encodeData = function (encode) {
this._encoderQueue = [];
this._encoding = encode;
if (encode) {
this._encodedData = this._data;
this.preEncodeObject(this, '_encodedData');
} else {
this.preEncodeObject(this, '_data');
}
this.encodeObject();
};
v2.preEncodeObject = function (parent, property) {
var v3 = parent[property];
var v5;
try {
if (this._encoding) {
v5 = v3 instanceof flash.display.BitmapData;
} else {
v5 = v3.type == '__bitmap';
}
}
var v2 = v3;
var v8;
if (v5) {
this._encoderQueue.push({'parent': parent, 'property': property});
} else {
if (typeof v3 == 'object' && !v8) {
if (this._encoding) {
if (v3 instanceof Array) {
v2 = [];
} else {
v2 = {};
}
for (var v4 in v3) {
v2[v4] = v3[v4];
}
parent[property] = v2;
}
for (v4 in v2) {
this.preEncodeObject(v2, v4);
}
}
}
};
v2.encodeObject = function () {
if (!this._encoderQueue.length) {
if (this._encoding) {
this.doSave();
} else {
this._dataLoaded = true;
this.checkLoadComplete();
}
return undefined;
}
var v6 = this._encoderQueue.pop();
var v4 = v6.parent;
var v3 = v6.property;
var v2 = v4[v3];
var v5;
if (this._encoding) {
v5 = {'type': '__bitmap', 'width': v2.width, 'height': v2.height, 'transparent': v2.transparent};
v4[v3] = v5;
this._encodingParent = v5;
this._encodingProperty = 'data';
com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent);
com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(v2), this.encodeBitmapComplete, this);
} else {
this._encodingParent = v4;
this._encodingProperty = v3;
com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.__set__encodeAlpha(v2.transparent);
com.newgrounds.SaveFile.DATA_IMAGE_SCANNER.decode(String(v2.data), this.encodeBitmapComplete, this);
}
};
v2.encodeBitmapComplete = function (data) {
this._encodingParent[this._encodingProperty] = data;
this.encodeObject();
};
v2.load = function () {
com.newgrounds.SaveFile._currentFile = this;
this._dataLoaded = false;
this._data = null;
if (!this.__get__iconLoaded()) {
this._iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {'target': this, 'func': this.onIconLoaded});
this._iconLoader.load();
}
this._dataLoader = new LoadVars();
var file = this;
this._dataLoader.onData = function (data) {
file.onDataLoaded(data);
};
this._dataLoader.load(this._dataURL);
};
v2.onIconLoaded = function (event) {
if (!event.__get__success() && this._iconLoader.__get__url()) {
com.newgrounds.Logger.logWarning('Unable to load the icon for this save file.');
}
this._iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, this.onIconLoaded);
this.checkLoadComplete();
};
v2.checkLoadComplete = function () {
if (this._dataLoaded && this.__get__iconLoaded()) {
com.newgrounds.Logger.logMessage('Data loaded.');
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this));
}
};
v2.onDataLoaded = function (data) {
try {
if (data) {
if (data.charAt(0) == '{') {
this._data = com.newgrounds.encoders.json.JSON.decode(String(data));
} else {
this._data = String(data);
}
this.encodeData(false);
}
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
com.newgrounds.Logger.logError('Error while loading data:', error);
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
} else {
throw v0;
}
}
};
v2.onDataError = function (error) {
com.newgrounds.Logger.logError('Unable to load data:', error);
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
};
v2.onSaveComplete = function (event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage('File "' + this._name + '" saved!');
if (event.__get__data()) {
this._id = (event.__get__data()).save_id;
this._dataURL = unescape((event.__get__data()).file_url);
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this));
} else {
com.newgrounds.Logger.logError('Error saving file "' + this._name + '":', event.__get__error());
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error()));
}
};
v2.sendVote = function (ratingName, vote) {
var v2 = this._group.getRating(ratingName);
if (!v2) {
com.newgrounds.Logger.logError('No save rating named "' + ratingName + '" exists for this save group.');
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return undefined;
}
vote = v2.validateValue(vote);
if (isNaN(vote)) {
com.newgrounds.Logger.logError('Invalid vote (' + vote + '). ' + ratingName + ' allows a range of ' + v2.__get__minimum() + '-' + v2.__get__maximum() + '.');
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return undefined;
}
com.newgrounds.Logger.logMessage('Voting ' + vote + ' for ' + ratingName + ' on ' + this._name + '...');
(this._group.__get__connection()).sendSimpleCommand('rateSaveFile', {'target': this, 'func': this.onVoteComplete}, null, {'group': this._group.__get__id(), 'save_id': this._id, 'rating_id': v2.__get__id(), 'vote': vote});
};
v2.onVoteComplete = function (event) {
var v2 = event.__get__error();
if ((event.__get__data()).already_voted) {
com.newgrounds.Logger.logError('Vote failed. You\'ve already voted on this rating today.');
v2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED;
}
if (v2 == com.newgrounds.APIEvent.ERROR_NONE) {
var v3 = this._group.getRatingById((event.__get__data()).rating_id);
if (v3) {
this._ratings[v3.__get__name()] = v3.validateValue((event.__get__data()).score);
}
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, v2));
};
v2.clone = function () {
var v3 = new com.newgrounds.SaveFile(this._group);
v3._data = this._data;
v3._description = this._description;
v3._draft = this._draft;
v3._fileSize = this._fileSize;
v3._iconLoader.__set__bitmapData(this._iconLoader.bitmapData);
var v2;
for (v2 in this._keys) {
v3._keys[v2] = this._keys[v2];
}
for (v2 in this._ratings) {
v3._ratings[v2] = this._ratings[v2];
}
v3._name = this._name;
return v3;
};
v1.ICON_WIDTH = 90;
v1.ICON_HEIGHT = 90;
v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultSaveIcon');
v1.STATUS_PRIVATE = 0;
v1.STATUS_SHARED = 1;
v1.STATUS_UNAPPROVED = 2;
v1.STATUS_APPROVED = 3;
v1._imageFilePath = '';
v1._saveFilePath = '';
v1.ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner();
v1.DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6);
v2._keys = new Object();
v2._ratings = new Object();
v2.addProperty('authorId', v2.__get__authorId, function () {});
v2.addProperty('authorName', v2.__get__authorName, function () {});
v2.addProperty('bytesLoaded', v2.__get__bytesLoaded, function () {});
v2.addProperty('bytesTotal', v2.__get__bytesTotal, function () {});
v2.addProperty('createdDate', v2.__get__createdDate, function () {});
v1.addProperty('currentFile', v1.__get__currentFile, function () {});
v2.addProperty('data', v2.__get__data, v2.__set__data);
v2.addProperty('description', v2.__get__description, v2.__set__description);
v2.addProperty('draft', v2.__get__draft, v2.__set__draft);
v2.addProperty('group', v2.__get__group, function () {});
v2.addProperty('icon', v2.__get__icon, v2.__set__icon);
v2.addProperty('iconLoaded', v2.__get__iconLoaded, function () {});
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('keys', v2.__get__keys, function () {});
v2.addProperty('name', v2.__get__name, v2.__set__name);
v2.addProperty('ratings', v2.__get__ratings, function () {});
v2.addProperty('readOnly', v2.__get__readOnly, function () {});
v2.addProperty('updatedDate', v2.__get__updatedDate, function () {});
v2.addProperty('views', v2.__get__views, function () {});
ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1);
}
#endinitclip
}
movieClip 1370 __Packages.com.newgrounds.SaveGroup {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveGroup) {
var v1 = function (connection, name, id, type, keys, ratings) {
this._connection = connection;
this._id = id;
this._name = name;
this._type = type;
this._keysArray = keys;
this._ratingsArray = ratings;
this._keys = new Object();
this._ratings = new Object();
var v11;
for (var v7 in keys) {
var v2 = keys[v7];
this._keys[v2.__get__name()] = v2;
}
for (var v6 in ratings) {
var v3 = ratings[v6];
this._ratings[v3.__get__name()] = v3;
}
};
com.newgrounds.SaveGroup = v1;
var v2 = v1.prototype;
v2.__get__connection = function () {
return this._connection;
};
v2.__get__name = function () {
return this._name;
};
v2.__get__type = function () {
return this._type;
};
v2.__get__id = function () {
return this._id;
};
v2.__get__keys = function () {
return this._keysArray;
};
v2.__get__ratings = function () {
return this._ratingsArray;
};
v2.getKey = function (name) {
return this._keys[name];
};
v2.getRating = function (name) {
return this._ratings[name];
};
v2.getKeyById = function (id) {
for (var v4 in this._keys) {
var v2 = this._keys[v4];
if (v2.__get__id() == id) {
return v2;
}
}
return null;
};
v2.getRatingById = function (id) {
for (var v4 in this._ratings) {
var v2 = this._ratings[v4];
if (v2.__get__id() == id) {
return v2;
}
}
return null;
};
v2.toString = function () {
return 'SaveGroup: ' + this.__get__name() + ' Keys: ' + this._keysArray + ' Ratings: ' + this._ratingsArray;
};
v1.TYPE_SYSTEM = 0;
v1.TYPE_PRIVATE = 1;
v1.TYPE_PUBLIC = 2;
v1.TYPE_MODERATED = 3;
v2.addProperty('connection', v2.__get__connection, function () {});
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('keys', v2.__get__keys, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('ratings', v2.__get__ratings, function () {});
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1);
}
#endinitclip
}
movieClip 1368 __Packages.com.newgrounds.SaveKey {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveKey) {
var v1 = function (name, id, type) {
this._name = name;
this._id = id;
this._type = type;
};
com.newgrounds.SaveKey = v1;
var v2 = v1.prototype;
v2.__get__name = function () {
return this._name;
};
v2.__get__id = function () {
return this._id;
};
v2.__get__type = function () {
return this._type;
};
v2.validateValue = function (value) {
switch (this._type) {
return null;
case com.newgrounds.SaveKey.TYPE_INTEGER:
value = Number(value);
if (!isNaN(value)) {
var v3 = int(value);
if (v3 != value) {
com.newgrounds.Logger.logWarning('Float value ' + value + ' given for integer key "' + this._name + '". Clamping to ' + v3 + '.');
}
return v3;
}
return null;
case com.newgrounds.SaveKey.TYPE_FLOAT:
value = Number(value);
if (!isNaN(value)) {
return isNaN(Number(value));
}
return null;
case com.newgrounds.SaveKey.TYPE_BOOLEAN:
return Boolean(value);
return null;
case com.newgrounds.SaveKey.TYPE_STRING:
return value ? value.toString() : '';
return null;
}
return null;
};
v2.toString = function () {
return this._name;
};
v1.TYPE_FLOAT = 1;
v1.TYPE_INTEGER = 2;
v1.TYPE_STRING = 3;
v1.TYPE_BOOLEAN = 4;
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('type', v2.__get__type, function () {});
ASSetPropFlags(com.newgrounds.SaveKey.prototype, null, 1);
}
#endinitclip
}
movieClip 1369 __Packages.com.newgrounds.SaveRating {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveRating) {
var v1 = function (name, id, isFloat, minimum, maximum) {
this._name = name;
this._id = id;
this._isFloat = isFloat;
this._minimum = minimum;
this._maximum = maximum;
};
com.newgrounds.SaveRating = v1;
var v2 = v1.prototype;
v2.__get__name = function () {
return this._name;
};
v2.__get__id = function () {
return this._id;
};
v2.__get__isFloat = function () {
return this._isFloat;
};
v2.__get__minimum = function () {
return this._minimum;
};
v2.__get__maximum = function () {
return this._maximum;
};
v2.validateValue = function (value) {
var v2 = Number(value);
if (isNaN(v2)) {
com.newgrounds.Logger.logError('Invalid value for rating "' + this._name + '".');
return NaN;
}
if (v2 < this._minimum) {
com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._minimum + '.');
return this._minimum;
}
if (v2 > this._maximum) {
com.newgrounds.Logger.logWarning(v2 + ' is out of acceptable range for rating "' + this._name + '". Clamping to ' + this._maximum + '.');
return this._maximum;
}
if (!this.__get__isFloat()) {
var v3 = int(v2);
if (v3 != v2) {
com.newgrounds.Logger.logWarning('Float value ' + v2 + ' given for integer rating "' + this._name + '". Clamping to ' + v3 + '.');
}
return v3;
}
return v2;
};
v2.toString = function () {
return this._name;
};
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('isFloat', v2.__get__isFloat, function () {});
v2.addProperty('maximum', v2.__get__maximum, function () {});
v2.addProperty('minimum', v2.__get__minimum, function () {});
v2.addProperty('name', v2.__get__name, function () {});
ASSetPropFlags(com.newgrounds.SaveRating.prototype, null, 1);
}
#endinitclip
}
movieClip 1364 __Packages.com.newgrounds.BitmapLoader {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.BitmapLoader) {
var v1 = function (defaultBitmap, url) {
super();
this._bitmapData = defaultBitmap;
this._url = url;
};
com.newgrounds.BitmapLoader = v1;
com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v2.__get__url = function () {
return this._url;
};
v2.__set__url = function (v) {
this._loaded = false;
this._url = v;
return this.__get__url();
};
v2.__get__bitmapData = function () {
return this._bitmapData;
};
v2.__set__bitmapData = function (v) {
this._bitmapData = v;
this._loaded = true;
return this.__get__bitmapData();
};
v2.__get__loaded = function () {
return this._loaded;
};
v2.disposeLoader = function () {
if (this._loader) {
if (this._loaderClip._parent == _root) {
this._loader.unloadClip(this._loaderClip.bitmap);
this._loaderClip.removeMovieClip();
}
this._loader = null;
this._loaderClip = null;
}
};
v2.load = function () {
if (!this._url || this._url == '') {
this.onLoadComplete();
return undefined;
}
this._loaded = false;
if (this._bitmapData) {
this._bitmapData.dispose();
this._bitmapData = null;
}
this.disposeLoader();
this.attachBitmap(null);
};
v2.attachBitmap = function (parent) {
if (!parent) {
parent = _root;
}
var v5 = parent.getNextHighestDepth();
var v3 = parent.createEmptyMovieClip('__bitmap' + v5, v5);
if (!this._loaded && this._url && this._url != '') {
v3.createEmptyMovieClip('bitmap', 0);
this._loader = new MovieClipLoader();
this._loaderClip = v3;
if (parent == _root) {
this._loaderClip._visible = false;
}
var thisObj = this;
this._loaderClip.onEnterFrame = function () {
thisObj.pollLoad();
};
this._loader.addListener({'onLoadError': function () {
thisObj.onLoadComplete();
}});
this._loader.loadClip(this._url, v3.bitmap);
return v3;
}
v3.attachBitmap(this._bitmapData, 0);
return v3;
};
v2.pollLoad = function () {
if (this._loaderClip._width) {
this.onLoadComplete();
}
};
v2.onLoadComplete = function () {
var v2;
if (this._loader && this._loaderClip && this._loaderClip._width) {
try {
this._loaderClip.onEnterFrame = null;
v2 = new flash.display.BitmapData(this._loaderClip._width, this._loaderClip._height, true, 0);
v2.draw(this._loaderClip);
this._bitmapData = v2;
this._loaded = true;
}
catch (error) {
if (v2) {
v2.dispose();
}
}
}
this.disposeLoader();
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, this._loaded ? null : com.newgrounds.APIEvent.ERROR_BAD_FILE));
};
v1._cacheSeed = 0;
v2._loaded = true;
v2.addProperty('bitmapData', v2.__get__bitmapData, v2.__set__bitmapData);
v2.addProperty('loaded', v2.__get__loaded, function () {});
v2.addProperty('url', v2.__get__url, v2.__set__url);
ASSetPropFlags(com.newgrounds.BitmapLoader.prototype, null, 1);
}
#endinitclip
}
movieClip 1373 __Packages.com.newgrounds.SaveQuery {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.SaveQuery) {
var v1 = function (group) {
super();
this._group = group;
this._connection = group.connection;
this.includeAllFields();
};
com.newgrounds.SaveQuery = v1;
com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v2.__get__group = function () {
return this._group;
};
v2.__get__resultsPerPage = function () {
return this._resultsPerPage;
};
v2.__set__resultsPerPage = function (val) {
this._resultsPerPage = Math.min(Math.max(val, 1), 100);
return this.__get__resultsPerPage();
};
v2.__get__page = function () {
return this._page;
};
v2.__set__page = function (val) {
this._page = Math.max(val, 1);
return this.__get__page();
};
v2.prevPage = function () {
this.__set__page(this.__get__page() - 1);
};
v2.nextPage = function () {
this.__set__page(this.__get__page() + 1);
};
v2.__get__isRandomized = function () {
return this._isRandomized;
};
v2.__set__isRandomized = function (val) {
this._isRandomized = val;
return this.__get__isRandomized();
};
v2.__get__files = function () {
return this._files;
};
v2.reset = function () {
this._page = 1;
this._resultsPerPage = 10;
this._isRandomized = false;
this._lookupKeys = [];
this._lookupRatings = [];
this._fileConditions = [];
this._keyConditions = [];
this._ratingConditions = [];
this._files = [];
this.includeAllFields();
};
v2.clone = function () {
var v2 = new com.newgrounds.SaveQuery(this._group);
v2._page = this._page;
v2._resultsPerPage = this._resultsPerPage;
v2._isRandomized = this._isRandomized;
v2._lookupKeys = this._lookupKeys.concat();
v2._lookupRatings = this._lookupRatings.concat();
v2._fileConditions = this._fileConditions.concat();
v2._keyConditions = this._keyConditions.concat();
v2._ratingConditions = this._ratingConditions.concat();
return v2;
};
v2.includeAllFields = function () {
for (var v5 in this._group.__get__keys()) {
var v2 = (this._group.__get__keys())[v5];
this._lookupKeys.push(v2.__get__id());
}
for (var v4 in this._group.__get__ratings()) {
var v3 = (this._group.__get__ratings())[v4];
this._lookupRatings.push(v3.__get__id());
}
};
v2.addCondition = function (field, operator, value) {
var v2;
v2 = 0;
while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) {
if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) {
break;
}
++v2;
}
if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) {
v2 = -1;
}
if (v2 >= 0) {
this._fileConditions.push({'field': v2, 'operator': operator, 'value': value});
} else {
var v3 = this._group.getKey(field);
if (v3) {
value = v3.validateValue(value);
this._keyConditions.push({'key_id': v3.__get__id(), 'operator': operator, 'value': value});
return undefined;
}
var v4 = field.split('.');
var v6 = this._group.getRating(v4[0]);
if (v6) {
value = v6.validateValue(value);
this._ratingConditions.push({'rating_id': v6.__get__id(), 'operator': operator, 'value': value, 'column': v4[1] ? v4[1] : 'score'});
return undefined;
}
com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".');
}
};
v2.sortOn = function (field, sortDescending) {
if (sortDescending == undefined) {
sortDescending = false;
}
var v2;
v2 = 0;
while (v2 < com.newgrounds.SaveQuery.FILE_FIELDS.length) {
if (com.newgrounds.SaveQuery.FILE_FIELDS[v2] == field) {
break;
}
++v2;
}
if (v2 == com.newgrounds.SaveQuery.FILE_FIELDS.length) {
v2 = -1;
}
if (v2 >= 0) {
this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_FILES, 'field': v2, 'desc': sortDescending});
} else {
var v5 = this._group.getKey(field);
if (v5) {
this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_KEYS, 'field': v5.__get__id(), 'desc': sortDescending});
return undefined;
}
var v3 = field.split('.');
var v6 = this._group.getRating(v3[0]);
if (v6) {
this._sortFields.push({'table': com.newgrounds.SaveQuery.TABLE_RATINGS, 'field': v6.__get__id(), 'desc': sortDescending, 'extra': v3[1] ? v3[1] : 'score'});
return undefined;
}
com.newgrounds.Logger.logError('The save group "' + this._group.__get__name() + '" does not have a field named "' + field + '".');
}
};
v2.execute = function () {
var v5 = {};
v5.page = this._page;
v5.num_results = this._resultsPerPage;
if (this._isRandomized) {
v5.randomize = 1;
}
if (this._lookupKeys && this._lookupKeys.length) {
v5.lookup_keys = this._lookupKeys;
}
if (this._lookupRatings && this._lookupRatings.length) {
v5.lookup_ratings = this._lookupRatings;
}
if (this._fileConditions && this._fileConditions.length) {
v5.file_conditions = this._fileConditions;
}
if (this._keyConditions && this._keyConditions.length) {
v5.key_conditions = this._keyConditions;
}
if (this._ratingConditions && this._ratingConditions.length) {
v5.rating_conditions = this._ratingConditions;
}
if (this._sortFields && this._sortFields.length) {
v5.sort_conditions = this._sortFields;
}
this._connection.sendSimpleCommand('lookupSaveFiles', {'target': this, 'func': this.onQueryComplete}, {'publisher_id': this._connection.publisherId, 'group_id': this._group.__get__id(), 'query': v5});
};
v2.onQueryComplete = function (event) {
if (event.__get__success()) {
var v4 = event.__get__data();
this._files = [];
if (v4.files) {
var v2 = 0;
while (v2 < v4.files.length) {
var v3 = com.newgrounds.SaveFile.fromObject(this._group, v4.files[v2]);
if (v3) {
this._files.push(v3);
}
++v2;
}
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this));
} else {
com.newgrounds.Logger.logError('Query failed: ' + event.__get__error());
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error()));
}
};
v1.FILE_ID = 'fileId';
v1.AUTHOR_ID = 'authorId';
v1.AUTHOR_NAME = 'authorName';
v1.FILE_NAME = 'fileName';
v1.CREATED_ON = 'createdOn';
v1.UPDATED_ON = 'updatedOn';
v1.FILE_VIEWS = 'fileViews';
v1.FILE_STATUS = 'fileStatus';
v1.FILE_FIELDS = [com.newgrounds.SaveQuery.FILE_ID, com.newgrounds.SaveQuery.AUTHOR_ID, com.newgrounds.SaveQuery.AUTHOR_NAME, com.newgrounds.SaveQuery.FILE_NAME, com.newgrounds.SaveQuery.CREATED_ON, com.newgrounds.SaveQuery.UPDATED_ON, com.newgrounds.SaveQuery.FILE_VIEWS, com.newgrounds.SaveQuery.FILE_STATUS];
v1.OPERATOR_EQUAL = '=';
v1.OPERATOR_LESS_THAN = '<';
v1.OPERATOR_GREATER_THAN = '>';
v1.OPERATOR_NOT_EQUAL = '!=';
v1.OPERATOR_LESS_OR_EQUAL = '<=';
v1.OPERATOR_GREATER_OR_EQUAL = '>=';
v1.OPERATOR_CONTAINS = '*';
v1.OPERATOR_NOT_CONTAINS = '!*';
v1.OPERATOR_NOT_BEGINS_WITH = '!*=';
v1.OPERATOR_NOT_ENDS_WITH = '!=*';
v1.OPERATOR_BEGINS_WITH = '*=';
v1.OPERATOR_ENDS_WITH = '=*';
v1.TABLE_FILES = 1;
v1.TABLE_KEYS = 2;
v1.TABLE_RATINGS = 3;
v2._page = 1;
v2._resultsPerPage = 10;
v2._isRandomized = false;
v2._files = [];
v2._lookupKeys = [];
v2._lookupRatings = [];
v2._fileConditions = [];
v2._keyConditions = [];
v2._ratingConditions = [];
v2._sortFields = [];
v2.addProperty('files', v2.__get__files, function () {});
v2.addProperty('group', v2.__get__group, function () {});
v2.addProperty('isRandomized', v2.__get__isRandomized, v2.__set__isRandomized);
v2.addProperty('page', v2.__get__page, v2.__set__page);
v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage);
ASSetPropFlags(com.newgrounds.SaveQuery.prototype, null, 1);
}
#endinitclip
}
movieClip 1365 __Packages.com.newgrounds.Medal {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Medal) {
var v1 = function (connection, id, name, description, secret, unlocked, value, difficultyId, iconURL) {
super();
this._connection = connection;
this._id = id;
this._name = name;
this._description = description;
this._secret = secret;
this._unlocked = unlocked;
this._value = value;
this._difficulty = com.newgrounds.Medal.DIFFICULTIES[difficultyId];
this._iconLoader = new com.newgrounds.BitmapLoader(com.newgrounds.Medal.DEFAULT_ICON, iconURL);
this._iconLoader.load();
};
com.newgrounds.Medal = v1;
com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v2.__get__difficulty = function () {
return this._difficulty;
};
v2.__get__icon = function () {
return this._iconLoader.__get__bitmapData();
};
v2.__get__id = function () {
return this._id;
};
v2.__get__name = function () {
return this._name;
};
v2.__get__description = function () {
return this._description;
};
v2.__get__secret = function () {
return this._secret;
};
v2.__get__unlocked = function () {
return this._unlocked;
};
v2.__get__value = function () {
return this._value;
};
v2.toString = function () {
if (!this._unlocked) {
return 'Medal: ' + this._name + '\t\t(' + 'locked, ' + this._value + 'pts, ' + this._difficulty + ')';
}
return 'Medal: ' + this._name + '\t\t(' + 'unlocked, ' + this._value + 'pts, ' + this._difficulty + ')';
};
v2.attachIcon = function (parent) {
return this._iconLoader.attachBitmap(parent);
};
v2.unlock = function () {
if (this._unlocked) {
com.newgrounds.Logger.logWarning('Medal "' + this._name + '" is already unlocked.');
return undefined;
}
com.newgrounds.Logger.logMessage('Unlocking medal "' + this.__get__name() + '"...');
this._unlocked = true;
if (this._connection.__get__hasUserSession()) {
this._connection.sendSimpleCommand('unlockMedal', {'target': this, 'func': this.onUnlockConfirmed}, null, {'medal_id': this.__get__id()});
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this));
};
v2.setUnlocked = function (unlocked) {
this._unlocked = unlocked;
};
v2.onUnlockConfirmed = function (event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage('Medal "' + this.__get__name() + '" unlocked.');
} else {
com.newgrounds.Logger.logError('Failed to unlock "' + this.__get__name() + '"!');
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error()));
};
v1.ICON_WIDTH = 50;
v1.ICON_HEIGHT = 50;
v1.DEFAULT_ICON = flash.display.BitmapData.loadBitmap('DefaultMedalIcon');
v1.DIFFICULTY_EASY = 'Easy';
v1.DIFFICULTY_MODERATE = 'Moderate';
v1.DIFFICULTY_CHALLENGING = 'Challenging';
v1.DIFFICULTY_DIFFICULT = 'Difficult';
v1.DIFFICULTY_BRUTAL = 'Brutal';
v1.DIFFICULTIES = ['Unknown', com.newgrounds.Medal.DIFFICULTY_EASY, com.newgrounds.Medal.DIFFICULTY_MODERATE, com.newgrounds.Medal.DIFFICULTY_CHALLENGING, com.newgrounds.Medal.DIFFICULTY_DIFFICULT, com.newgrounds.Medal.DIFFICULTY_BRUTAL];
v2.addProperty('description', v2.__get__description, function () {});
v2.addProperty('difficulty', v2.__get__difficulty, function () {});
v2.addProperty('icon', v2.__get__icon, function () {});
v2.addProperty('id', v2.__get__id, function () {});
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('secret', v2.__get__secret, function () {});
v2.addProperty('unlocked', v2.__get__unlocked, function () {});
v2.addProperty('value', v2.__get__value, function () {});
ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1);
}
#endinitclip
}
movieClip 1367 __Packages.com.newgrounds.ScoreBoard {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.ScoreBoard) {
var v1 = function (connection, name, id) {
super();
this._connection = connection;
this._name = name;
this._id = id;
};
com.newgrounds.ScoreBoard = v1;
com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher;
var v2 = v1.prototype;
v2.__get__name = function () {
return this._name;
};
v2.__get__scores = function () {
return this._scores;
};
v2.__get__period = function () {
return this._period;
};
v2.__set__period = function (val) {
this._period = val;
return this.__get__period();
};
v2.__get__firstResult = function () {
return this._firstResult;
};
v2.__set__firstResult = function (val) {
this._firstResult = Math.max(1, val);
return this.__get__firstResult();
};
v2.__get__numResults = function () {
return this._numResults;
};
v2.__set__numResults = function (val) {
this._numResults = val;
return this.__get__numResults();
};
v2.__get__tag = function () {
return this._tag;
};
v2.__set__tag = function (val) {
this._tag = val;
return this.__get__tag();
};
v2.__get__page = function () {
return Math.ceil((this._firstResult - 1) / this._numResults) + 1;
};
v2.prevPage = function () {
if (this.__get__firstResult() > this._numResults) {
this.firstResult -= this._numResults;
}
};
v2.nextPage = function () {
this.firstResult += this._numResults;
};
v2.loadScores = function () {
this._connection.sendSimpleCommand('loadScores', {'target': this, 'func': this.onScoresLoaded}, {'publisher_id': this._connection.publisherId, 'board': this._id, 'page': (this._firstResult - 1) / this._numResults + 1, 'num_results': this._numResults, 'period': this._period, 'tag': this._tag});
};
v2.postScore = function (numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (isNaN(numericScore)) {
com.newgrounds.Logger.logError('Cannot post invalid score: ' + numericScore);
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return undefined;
}
com.newgrounds.Logger.logMessage('Posting a score of ' + numericScore + ' by ' + this._connection.username + ' to scoreboard "' + this._name + '"...');
this._connection.sendSimpleCommand('postScore', {'target': this, 'func': this.onScorePosted}, null, {'user_name': this._connection.username, 'board': this._id, 'value': numericScore, 'tag': tag});
};
v2.onScoresLoaded = function (event) {
var v4 = event.__get__data();
this._scores = [];
var v5;
if (v4.first_result) {
v5 = v4.first_result;
} else {
v5 = this._firstResult;
}
if (v4.scores) {
var v3 = 0;
while (v3 < v4.scores.length) {
var v2 = v4.scores[v3];
if (v2) {
this._scores[v3] = new com.newgrounds.Score(v5, v2.username, v2.value, v2.numeric_value, v2.tag);
}
v3++;
v5++;
}
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this));
};
v2.onScorePosted = function (event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage('Score posted!');
var v4 = event.__get__data();
var v2 = {};
v2.score = v4.value;
v2.scoreBoard = this;
} else {
com.newgrounds.Logger.logError('Error posting score: ' + event.__get__error());
}
this.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, storedv2, event.__get__error()));
};
v2.toString = function () {
return 'Scoreboard: ' + this._name;
};
v1.TODAY = 'Today';
v1.THIS_WEEK = 'This Week';
v1.THIS_MONTH = 'This Month';
v1.THIS_YEAR = 'This Year';
v1.ALL_TIME = 'All-Time';
v2._period = com.newgrounds.ScoreBoard.ALL_TIME;
v2._firstResult = 1;
v2._numResults = 10;
v2.addProperty('firstResult', v2.__get__firstResult, v2.__set__firstResult);
v2.addProperty('name', v2.__get__name, function () {});
v2.addProperty('numResults', v2.__get__numResults, v2.__set__numResults);
v2.addProperty('page', v2.__get__page, function () {});
v2.addProperty('period', v2.__get__period, v2.__set__period);
v2.addProperty('scores', v2.__get__scores, function () {});
v2.addProperty('tag', v2.__get__tag, v2.__set__tag);
ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1);
}
#endinitclip
}
movieClip 1356 __Packages.com.newgrounds.Logger {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Logger) {
var v1 = function () {};
com.newgrounds.Logger = v1;
var v2 = v1.prototype;
v1.logInternal = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_INTERNAL, v2);
};
v1.logMessage = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_MESSAGE, v2);
};
v1.logWarning = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_WARNING, v2);
};
v1.logError = function () {
var v2 = arguments;
com.newgrounds.Logger.log(com.newgrounds.Logger.PRIORITY_ERROR, v2);
};
v1.log = function (priority, messages) {
if (priority == undefined) {
priority = com.newgrounds.Logger.PRIORITY_MESSAGE;
}
if (messages == undefined) {
messages = null;
}
if (priority >= com.newgrounds.Logger._messageLevel) {
var v1 = 0;
while (v1 < messages.length) {
trace(com.newgrounds.Logger.HEADER + messages[v1]);
com.newgrounds.Logger._eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[v1]));
++v1;
}
}
if (priority >= com.newgrounds.Logger._throwLevel) {
throw new Error(messages.join('\n'));
}
};
v1.addEventListener = function (event, listener) {
com.newgrounds.Logger._eventDispatcher.addEventListener(event, listener, false, 0, false);
};
v1.PRIORITY_INTERNAL = 0;
v1.PRIORITY_MESSAGE = 1;
v1.PRIORITY_WARNING = 2;
v1.PRIORITY_ERROR = 3;
v1.PRIORITY_MAX = 4;
v1.HEADER = '[Newgrounds API] :: ';
v1._eventDispatcher = new com.newgrounds.EventDispatcher();
v1._messageLevel = com.newgrounds.Logger.PRIORITY_MESSAGE;
v1._throwLevel = com.newgrounds.Logger.PRIORITY_MAX;
ASSetPropFlags(com.newgrounds.Logger.prototype, null, 1);
}
#endinitclip
}
movieClip 1375 __Packages.com.newgrounds.components.FlashAdBase {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.components) {
_global.com.newgrounds.components = new Object();
}
if (!_global.com.newgrounds.components.FlashAdBase) {
var v1 = function () {
super();
try {
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
}
this._x = int(this._x);
this._y = int(this._y);
this.stop();
if (this.__get___newgroundsButton()) {
(this.__get___newgroundsButton()).onRelease = this.onNGClick;
}
this.onUnload = this.removeAd;
var v4 = this;
this._adListener = {'onLoadError': function (target, error, httpStatus) {
target._parent.onAdError(target, error, httpStatus);
}};
if (this.__get__fullScreen()) {
this.drawFullScreenRect();
}
if (com.newgrounds.API.__get__adFeedURL()) {
this.loadAdFeed();
} else {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {'target': this, 'func': this.loadAdFeed});
}
};
com.newgrounds.components.FlashAdBase = v1;
com.newgrounds.components.FlashAdBase extends MovieClip;
var v2 = v1.prototype;
v2.__get___adContainer = function () {
return this.adContainer;
};
v2.__get___newgroundsButton = function () {
return this.newgroundsButton;
};
v2.__get__fullScreen = function () {
return this._fullScreen;
};
v2.__set__fullScreen = function (v) {
this._fullScreen = v;
if (v) {
this.drawFullScreenRect();
} else {
this.clear();
}
return this.__get__fullScreen();
};
v2.__get__showBorder = function () {
return this._showBorder;
};
v2.__set__showBorder = function (value) {
this._showBorder = value;
if (this._showBorder) {
if (this._ad) {
var v2 = this._ad.getProgress(this.__get___adContainer());
if (v2.bytesLoaded >= v2.bytesTotal) {
if (this.showPlayButton) {
this.gotoAndStop('loadedPlay');
} else {
this.gotoAndStop('loaded');
}
} else {
this.gotoAndStop('loading');
}
} else {
this.gotoAndStop('idle');
}
} else {
this.gotoAndStop('noBorder');
}
return this.__get__showBorder();
};
v2.loadAdFeed = function (event) {
if (event == undefined) {
event = null;
}
this._adFeedLoader = new LoadVars();
var target = this;
this._adFeedLoader.onData = function (data) {
target.onAdFeedLoaded(data);
};
this._adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), this._adFeedLoader);
};
v2.onAdFeedLoaded = function (data) {
if (data && data != '') {
this.loadAd(data);
} else {
this.onAdError();
}
};
v2.loadAd = function (adURL) {
if (this.showPlayButton) {
this.gotoAndStop('loadedPlay');
}
if (this.adType != this.VIDEO_ADS) {
if (adURL.indexOf('?') >= 0) {
adURL += '&';
} else {
adURL += '?';
}
adURL += 'blockoverlays=1';
}
this._ad = new MovieClipLoader();
this._ad.addListener(this._adListener);
(this.__get___adContainer())._lockroot = true;
this._ad.loadClip(adURL, this.__get___adContainer());
};
v2.removeAd = function () {
this._adFeedLoader.onData = null;
this._adFeedLoader = null;
this._ad.removeListener(this._adListener);
if (this.__get___adContainer()) {
this._ad.unloadClip(this.__get___adContainer());
}
this._ad = null;
};
v2.onAdError = function (target, error, httpStatus) {
com.newgrounds.Logger.logError('Unable to load ad.');
this.removeAd();
};
v2.onNGClick = function () {
com.newgrounds.API.loadNewgrounds();
};
v2.drawFullScreenRect = function () {
this._x = (Stage.width - this._width) / 2;
this._y = (Stage.height - this._height) / 2;
this.beginFill(0);
this.moveTo(-Stage.width, -Stage.height);
this.lineTo(Stage.width, -Stage.height);
this.lineTo(Stage.width, Stage.height);
this.lineTo(-Stage.width, Stage.height);
this.lineTo(-Stage.width, -Stage.height);
this.endFill();
};
v2._showBorder = true;
v2.adType = com.newgrounds.components.FlashAdBase.prototype.VIDEO_ADS;
v2.VIDEO_ADS = 'Video';
v2.SIMPLE_ADS = 'Simple';
v2.addProperty('_adContainer', v2.__get___adContainer, function () {});
v2.addProperty('_newgroundsButton', v2.__get___newgroundsButton, function () {});
v2.addProperty('fullScreen', v2.__get__fullScreen, v2.__set__fullScreen);
v2.addProperty('showBorder', v2.__get__showBorder, v2.__set__showBorder);
ASSetPropFlags(com.newgrounds.components.FlashAdBase.prototype, null, 1);
}
#endinitclip
}
movieClip 1350 __Packages.com.newgrounds.shims.APIShim {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.shims) {
_global.com.newgrounds.shims = new Object();
}
if (!_global.com.newgrounds.shims.APIShim) {
var v1 = function () {
super();
};
com.newgrounds.shims.APIShim = v1;
com.newgrounds.shims.APIShim extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(com.newgrounds.shims.APIShim.prototype, null, 1);
}
#endinitclip
}
movieClip 1360 __Packages.com.newgrounds.crypto.MD5 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.crypto) {
_global.com.newgrounds.crypto = new Object();
}
if (!_global.com.newgrounds.crypto.MD5) {
var v1 = function () {};
com.newgrounds.crypto.MD5 = v1;
var v2 = v1.prototype;
v1.hash = function (src) {
return com.newgrounds.crypto.MD5.hex_md5(src);
};
v1.hex_md5 = function (src) {
return com.newgrounds.crypto.MD5.binl2hex(com.newgrounds.crypto.MD5.core_md5(com.newgrounds.crypto.MD5.str2binl(src), src.length * 8));
};
v1.core_md5 = function (x, len) {
x[len >> 5] |= 128 << len % 32;
x[(len + 64 >>> 9 << 4) + 14] = len;
var v4 = 1732584193;
var v3 = -271733879;
var v2 = -1732584194;
var v1 = 271733878;
var v5 = 0;
while (v5 < x.length) {
var v10 = v4;
var v9 = v3;
var v8 = v2;
var v7 = v1;
v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936);
v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586);
v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819);
v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330);
v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897);
v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426);
v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341);
v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983);
v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416);
v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417);
v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063);
v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162);
v4 = com.newgrounds.crypto.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682);
v1 = com.newgrounds.crypto.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101);
v2 = com.newgrounds.crypto.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290);
v3 = com.newgrounds.crypto.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329);
v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510);
v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632);
v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713);
v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302);
v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691);
v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083);
v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335);
v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848);
v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438);
v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690);
v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961);
v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501);
v4 = com.newgrounds.crypto.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467);
v1 = com.newgrounds.crypto.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784);
v2 = com.newgrounds.crypto.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473);
v3 = com.newgrounds.crypto.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734);
v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558);
v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463);
v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562);
v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556);
v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060);
v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353);
v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632);
v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640);
v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174);
v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222);
v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979);
v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189);
v4 = com.newgrounds.crypto.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487);
v1 = com.newgrounds.crypto.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835);
v2 = com.newgrounds.crypto.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520);
v3 = com.newgrounds.crypto.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651);
v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844);
v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415);
v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905);
v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055);
v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571);
v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606);
v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523);
v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799);
v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359);
v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744);
v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380);
v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649);
v4 = com.newgrounds.crypto.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070);
v1 = com.newgrounds.crypto.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379);
v2 = com.newgrounds.crypto.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259);
v3 = com.newgrounds.crypto.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551);
v4 = com.newgrounds.crypto.MD5.safe_add(v4, v10);
v3 = com.newgrounds.crypto.MD5.safe_add(v3, v9);
v2 = com.newgrounds.crypto.MD5.safe_add(v2, v8);
v1 = com.newgrounds.crypto.MD5.safe_add(v1, v7);
v5 += 16;
}
return new Array(v4, v3, v2, v1);
};
v1.md5_cmn = function (q, a, b, x, s, t) {
return com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.bit_rol(com.newgrounds.crypto.MD5.safe_add(com.newgrounds.crypto.MD5.safe_add(a, q), com.newgrounds.crypto.MD5.safe_add(x, t)), s), b);
};
v1.md5_ff = function (a, b, c, d, x, s, t) {
return com.newgrounds.crypto.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t);
};
v1.md5_gg = function (a, b, c, d, x, s, t) {
return com.newgrounds.crypto.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t);
};
v1.md5_hh = function (a, b, c, d, x, s, t) {
return com.newgrounds.crypto.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t);
};
v1.md5_ii = function (a, b, c, d, x, s, t) {
return com.newgrounds.crypto.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t);
};
v1.bit_rol = function (num, cnt) {
return num << cnt | num >>> 32 - cnt;
};
v1.safe_add = function (x, y) {
var v1 = (x & 65535) + (y & 65535);
var v2 = (x >> 16) + (y >> 16) + (v1 >> 16);
return v2 << 16 | v1 & 65535;
};
v1.str2binl = function (str) {
var v3 = new Array();
var v4 = 255;
var v1 = 0;
while (v1 < str.length * 8) {
v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32;
v1 += 8;
}
return v3;
};
v1.binl2hex = function (binarray) {
var v4 = new String('');
var v3 = new String('0123456789abcdef');
var v1 = 0;
while (v1 < binarray.length * 4) {
v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15);
++v1;
}
return v4;
};
ASSetPropFlags(com.newgrounds.crypto.MD5.prototype, null, 1);
}
#endinitclip
}
movieClip 1361 __Packages.com.newgrounds.crypto.RC4 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.crypto) {
_global.com.newgrounds.crypto = new Object();
}
if (!_global.com.newgrounds.crypto.RC4) {
var v1 = function () {};
com.newgrounds.crypto.RC4 = v1;
var v2 = v1.prototype;
v1.encrypt = function (src, key) {
var v3 = com.newgrounds.crypto.RC4.strToChars(src);
var v1 = com.newgrounds.crypto.RC4.strToChars(key);
var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
return com.newgrounds.crypto.RC4.charsToHex(v2);
};
v1.encryptbin = function (src, key) {
var v3 = com.newgrounds.crypto.RC4.strToChars(src);
var v1 = com.newgrounds.crypto.RC4.strToChars(key);
var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
return v2;
};
v1.decrypt = function (src, key) {
var v3 = com.newgrounds.crypto.RC4.hexToChars(src);
var v1 = com.newgrounds.crypto.RC4.strToChars(key);
var v2 = com.newgrounds.crypto.RC4.calculate(v3, v1);
return com.newgrounds.crypto.RC4.charsToStr(v2);
};
v1.initialize = function (pwd) {
var v2 = 0;
var v3;
var v4 = pwd.length;
var v1 = 0;
while (v1 <= 255) {
com.newgrounds.crypto.RC4.mykey[v1] = pwd[v1 % v4];
com.newgrounds.crypto.RC4.sbox[v1] = v1;
++v1;
}
v1 = 0;
while (v1 <= 255) {
v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.mykey[v1]) % 256;
v3 = com.newgrounds.crypto.RC4.sbox[v1];
com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2];
com.newgrounds.crypto.RC4.sbox[v2] = v3;
++v1;
}
};
v1.calculate = function (plaintxt, psw) {
com.newgrounds.crypto.RC4.initialize(psw);
var v1 = 0;
var v2 = 0;
var v9 = new Array();
var v7;
var v5;
var v6;
var v3 = 0;
while (v3 < plaintxt.length) {
v1 = (v1 + 1) % 256;
v2 = (v2 + com.newgrounds.crypto.RC4.sbox[v1]) % 256;
v5 = com.newgrounds.crypto.RC4.sbox[v1];
com.newgrounds.crypto.RC4.sbox[v1] = com.newgrounds.crypto.RC4.sbox[v2];
com.newgrounds.crypto.RC4.sbox[v2] = v5;
var v4 = (com.newgrounds.crypto.RC4.sbox[v1] + com.newgrounds.crypto.RC4.sbox[v2]) % 256;
v7 = com.newgrounds.crypto.RC4.sbox[v4];
v6 = plaintxt[v3] ^ v7;
v9.push(v6);
++v3;
}
return v9;
};
v1.charsToHex = function (chars) {
var v4 = new String('');
var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
var v1 = 0;
while (v1 < chars.length) {
v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15];
++v1;
}
return v4;
};
v1.hexToChars = function (hex) {
var v3 = new Array();
var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0;
while (v1 < hex.length) {
v3.push(parseInt(hex.substr(v1, 2), 16));
v1 += 2;
}
return v3;
};
v1.charsToStr = function (chars) {
var v3 = new String('');
var v1 = 0;
while (v1 < chars.length) {
v3 += String.fromCharCode(chars[v1]);
++v1;
}
return v3;
};
v1.strToChars = function (str) {
var v3 = new Array();
var v1 = 0;
while (v1 < str.length) {
v3.push(str.charCodeAt(v1));
++v1;
}
return v3;
};
v1.sbox = new Array(255);
v1.mykey = new Array(255);
ASSetPropFlags(com.newgrounds.crypto.RC4.prototype, null, 1);
}
#endinitclip
}
movieClip 1362 __Packages.com.newgrounds.encoders.json.JSON {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.encoders) {
_global.com.newgrounds.encoders = new Object();
}
if (!_global.com.newgrounds.encoders.json) {
_global.com.newgrounds.encoders.json = new Object();
}
if (!_global.com.newgrounds.encoders.json.JSON) {
var v1 = function () {};
com.newgrounds.encoders.json.JSON = v1;
var v2 = v1.prototype;
v1.encode = function (arg, noquotes) {
var v3;
var v2;
var v6;
var v1 = '';
var v4;
if (arg.isSServerVar()) {
var v8 = 'sservervariable';
} else {
var v8 = typeof arg;
}
switch (v8) {
return 'null';
case 'sservervariable':
return '?' + arg.getEncodedValue();
break;
case 'object':
if (arg) {
if (arg instanceof Array) {
v2 = 0;
while (v2 < arg.length) {
v4 = com.newgrounds.encoders.json.JSON.encode(arg[v2]);
if (v1) {
v1 += ',';
}
v1 += v4;
++v2;
}
return '[' + v1 + ']';
} else {
if (typeof arg.toString != 'undefined') {
for (v2 in arg) {
v4 = arg[v2];
if (typeof v4 != 'undefined' && typeof v4 != 'function') {
v4 = com.newgrounds.encoders.json.JSON.encode(v4);
if (v1) {
v1 += ',';
}
v1 += com.newgrounds.encoders.json.JSON.encode(v2) + ':' + v4;
}
}
return '{' + v1 + '}';
}
}
}
return 'null';
case 'number':
return isFinite(arg) ? String(arg) : 'null';
case 'string':
v6 = arg.length;
if (noquotes) {
var v7 = '';
} else {
var v7 = '"';
}
v1 = v7;
v2 = 0;
while (v2 < v6) {
v3 = arg.charAt(v2);
if (v3 >= ' ') {
if (v3 == '\\' || v3 == '"') {
v1 += '\\';
}
v1 += v3;
} else {
switch (v3) {
case '\b':
v1 += '\\b';
break;
case '\f':
v1 += '\\f';
break;
case '\n':
v1 += '\\n';
break;
case '\r':
v1 += '\\r';
break;
case '\t':
v1 += '\\t';
break;
default:
v3 = v3.charCodeAt();
v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16);
}
}
v2 += 1;
}
return v1 + v7;
case 'boolean':
return String(arg);
default:
return 'null';
}
};
v1.background_encode = function (arg, callback) {
if (com.newgrounds.encoders.json.JSON.busy) {
trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed');
return false;
} else {
if (!callback) {
trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode');
return false;
}
}
com.newgrounds.encoders.json.JSON.busy = true;
var v2 = new Date();
com.newgrounds.encoders.json.JSON.start = v2.getTime();
com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () {
com.newgrounds.encoders.json.JSON.encode_chunk();
}};
if (com.newgrounds.encoders.json.JSON.getType(arg) == 'object') {
com.newgrounds.encoders.json.JSON.cache.encoded = '{';
com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25);
return true;
}
if (com.newgrounds.encoders.json.JSON.getType(arg) == 'array') {
com.newgrounds.encoders.json.JSON.cache.encoded = '[';
}
com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'encode_chunk', 25);
return true;
};
v1.background_decode = function (arg, callback) {
if (com.newgrounds.encoders.json.JSON.busy) {
trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed');
return false;
} else {
if (!callback) {
trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode');
return false;
}
}
com.newgrounds.encoders.json.JSON.busy = true;
var v1 = new Date();
com.newgrounds.encoders.json.JSON.start = v1.getTime();
com.newgrounds.encoders.json.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () {
com.newgrounds.encoders.json.JSON.decode_chunk();
}};
com.newgrounds.encoders.json.JSON.interval = setInterval(com.newgrounds.encoders.json.JSON.cache, 'decode_chunk', 25);
return true;
};
v1.decode = function (text) {
var at = 0;
var ch = ' ';
var _value;
var _error = function (m) {
throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text};
};
var _next = function () {
ch = text.charAt(at);
at += 1;
return ch;
};
var _white = function () {
while (ch) {
if (ch <= ' ') {
_next();
} else {
if (ch == '/') {
switch (_next()) {
case '/':
for (;;) {
if (!(_next() && ch != '\n' && ch != '\r')) break;
}
break;
case '*':
_next();
for (;;) {
if (ch) {
if (ch == '*') {
if (_next() == '/') {
_next();
break;
}
} else {
_next();
}
continue;
}
_error('Unterminated comment');
}
break;
default:
_error('Syntax error');
}
} else {
break;
}
}
}
};
var _string = function () {
var v4;
var v1 = '';
var v3;
var v2;
var v5 = false;
if (ch == '"') {
while (_next()) {
if (ch == '"') {
_next();
return v1;
} else {
if (ch == '\\') {
switch (_next()) {
case 'b':
v1 += '\b';
break;
case 'f':
v1 += '\f';
break;
case 'n':
v1 += '\n';
break;
case 'r':
v1 += '\r';
break;
case 't':
v1 += '\t';
break;
case 'u':
v2 = 0;
v4 = 0;
while (v4 < 4) {
v3 = parseInt(_next(), 16);
if (!isFinite(v3)) {
v5 = true;
break;
}
v2 = v2 * 16 + v3;
v4 += 1;
}
if (v5) {
v5 = false;
} else {
v1 += String.fromCharCode(v2);
break;
default:
v1 += ch;
}
}
} else {
v1 += ch;
}
}
}
}
_error('Bad string');
};
var _array = function () {
var v1 = [];
if (ch == '[') {
_next();
_white();
if (ch == ']') {
_next();
return v1;
}
while (ch) {
v1.push(_value());
_white();
if (ch == ']') {
_next();
return v1;
} else {
if (ch != ',') {
break;
}
}
_next();
_white();
}
}
_error('Bad array');
};
var _object = function () {
var v2;
var v1 = {};
if (ch == '{') {
_next();
_white();
if (ch == '}') {
_next();
return v1;
}
while (ch) {
v2 = _string();
_white();
if (ch != ':') {
break;
}
_next();
v1[v2] = _value();
_white();
if (ch == '}') {
_next();
return v1;
} else {
if (ch != ',') {
break;
}
}
_next();
_white();
}
}
_error('Bad object');
};
var _number = function () {
var v1 = '';
var v2;
if (ch == '-') {
v1 = '-';
_next();
}
for (;;) {
if (!(ch >= '0' && ch <= '9')) break;
v1 += ch;
_next();
}
if (ch == '.') {
v1 += '.';
for (;;) {
if (!(_next() && ch >= '0' && ch <= '9')) break;
v1 += ch;
}
}
v2 = 1 * v1;
if (!isFinite(v2)) {
_error('Bad number');
} else {
return v2;
}
};
var _word = function () {
switch (ch) {
case 't':
if (_next() == 'r' && _next() == 'u' && _next() == 'e') {
_next();
return true;
}
break;
case 'f':
if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') {
_next();
return false;
}
break;
case 'n':
if (_next() == 'u' && _next() == 'l' && _next() == 'l') {
_next();
return null;
}
}
_error('Syntax error');
};
_value = function () {
_white();
switch (ch) {
case '{':
return _object();
case '[':
return _array();
case '"':
return _string();
case '-':
return _number();
}
return (ch >= '0' && ch <= '9') ? _number() : _word();
};
return _value();
};
v1.getType = function (v) {
if (v instanceof Array) {
return 'array';
} else {
return typeof v;
}
};
v1.decode_chunk = function () {
if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) {
com.newgrounds.encoders.json.JSON.cache.busy = true;
var v1 = 0;
while (v1 < com.newgrounds.encoders.json.JSON.decode_chunks) {
com.newgrounds.encoders.json.JSON.chunk_decoder();
if (com.newgrounds.encoders.json.JSON.cache.complete) {
break;
}
++v1;
}
trace(Math.round((com.newgrounds.encoders.json.JSON.cache.pos / com.newgrounds.encoders.json.JSON.cache.arg.length) * 100) + '% decoded');
com.newgrounds.encoders.json.JSON.cache.busy = false;
}
if (com.newgrounds.encoders.json.JSON.cache.complete) {
var v2 = new Date();
com.newgrounds.encoders.json.JSON.busy = false;
clearInterval(com.newgrounds.encoders.json.JSON.interval);
com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.json.JSON.start);
com.newgrounds.encoders.json.JSON.cache.arg = '';
}
};
v1.encode_chunk = function () {
if (!com.newgrounds.encoders.json.JSON.cache.busy && !com.newgrounds.encoders.json.JSON.cache.complete) {
com.newgrounds.encoders.json.JSON.cache.busy = true;
var v1 = 0;
while (v1 < com.newgrounds.encoders.json.JSON.encode_chunks) {
com.newgrounds.encoders.json.JSON.chunk_encoder();
if (com.newgrounds.encoders.json.JSON.cache.complete) {
break;
}
++v1;
}
com.newgrounds.encoders.json.JSON.cache.busy = false;
}
if (com.newgrounds.encoders.json.JSON.cache.complete) {
var v3 = new Date();
var v2 = v3.getTime();
com.newgrounds.encoders.json.JSON.busy = false;
clearInterval(com.newgrounds.encoders.json.JSON.interval);
com.newgrounds.encoders.json.JSON.cache.callback(com.newgrounds.encoders.json.JSON.cache.encoded, v2 - com.newgrounds.encoders.json.JSON.start);
com.newgrounds.encoders.json.JSON.cache.encoded = '';
}
};
v1.chunk_decoder = function () {
function _object() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = 'object';
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (v1 != '"') {
throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
}
com.newgrounds.encoders.json.JSON.cache.scratch = '';
_setTargetValue({});
} else {
if (v1 == ',') {
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (v1 != '"') {
throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")';
}
com.newgrounds.encoders.json.JSON.cache.scratch = '';
} else {
if (v1 == '}') {
_useParent();
} else {
if (v1 == '"') {
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (v1 != ':') {
throw 'Malformed object notation. Object keys and values must be separated by colons(:)';
}
_addParent(com.newgrounds.encoders.json.JSON.cache.scratch);
com.newgrounds.encoders.json.JSON.cache.mode = null;
} else {
if (v1 == '\\') {
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
}
com.newgrounds.encoders.json.JSON.cache.scratch += v1;
}
}
}
}
++com.newgrounds.encoders.json.JSON.cache.pos;
}
function _array() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = 'array';
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
_setTargetValue([]);
if (v1 != ']') {
_addArrayKey();
} else {
_useParent();
}
return undefined;
} else {
if (v1 == ',') {
_addArrayKey();
} else {
if (v1 == ']') {
_useParent();
}
}
}
++com.newgrounds.encoders.json.JSON.cache.pos;
}
function _boolean() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (v1 == 't') {
_setTargetValue(true);
com.newgrounds.encoders.json.JSON.cache.pos += 3;
} else {
if (v1 == 'f') {
_setTargetValue(false);
com.newgrounds.encoders.json.JSON.cache.pos += 4;
} else {
throw 'Bool values must be true or false';
}
}
_useParent();
}
function _null() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (v1 == 'n') {
_setTargetValue(null);
com.newgrounds.encoders.json.JSON.cache.pos += 2;
} else {
throw 'Null values must be null';
}
_useParent();
}
function _string() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
if (v1 != '"') {
throw 'Strings must be wrapped in quotes ("")';
}
com.newgrounds.encoders.json.JSON.cache.scratch = '';
com.newgrounds.encoders.json.JSON.cache.mode = 'string';
} else {
if (v1 == '"') {
_setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch);
_useParent();
} else {
if (v1 == '\\') {
++com.newgrounds.encoders.json.JSON.cache.pos;
v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
switch (v1) {
case 'n':
v1 = '\n';
break;
case 'r':
v1 = '\n';
break;
case 't':
v1 = '\t';
break;
case 'u':
v1 = '\\' + v1;
}
}
com.newgrounds.encoders.json.JSON.cache.scratch += v1;
}
}
++com.newgrounds.encoders.json.JSON.cache.pos;
}
function _number() {
var v1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
var v2 = '01234567890.-';
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = 'number';
com.newgrounds.encoders.json.JSON.cache.scratch = '';
}
if (v2.indexOf(v1) < 0) {
_setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch));
_useParent();
} else {
com.newgrounds.encoders.json.JSON.cache.scratch += v1;
++com.newgrounds.encoders.json.JSON.cache.pos;
}
}
function _setTargetValue(newval) {
var v2 = (_getParent()).obj;
var v1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1];
v2[v1] = newval;
}
function _useParent() {
com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType((_getParent()).obj);
com.newgrounds.encoders.json.JSON.cache.parents.pop();
}
function _getParent() {
var v2 = com.newgrounds.encoders.json.JSON.cache;
var v1 = 0;
while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length - 1) {
v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]];
++v1;
}
return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]};
}
function _getCurrent() {
var v2 = com.newgrounds.encoders.json.JSON.cache;
var v1 = 0;
while (v1 < com.newgrounds.encoders.json.JSON.cache.parents.length) {
v2 = v2[com.newgrounds.encoders.json.JSON.cache.parents[v1]];
++v1;
}
return {'obj': v2, 'name': com.newgrounds.encoders.json.JSON.cache.parents[v1]};
}
function _addParent(child) {
com.newgrounds.encoders.json.JSON.cache.parents.push(child);
}
function _addArrayKey() {
var v1 = (_getCurrent()).obj.length;
com.newgrounds.encoders.json.JSON.cache.parents.push(v1);
com.newgrounds.encoders.json.JSON.cache.mode = null;
}
if (com.newgrounds.encoders.json.JSON.cache.pos >= com.newgrounds.encoders.json.JSON.cache.arg.length) {
com.newgrounds.encoders.json.JSON.cache.complete = true;
return undefined;
} else {
if (com.newgrounds.encoders.json.JSON.cache.mode) {
('_' + com.newgrounds.encoders.json.JSON.cache.mode)();
} else {
var char = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
switch (char) {
case '{':
_object();
break;
case '[':
_array();
break;
case '"':
_string();
break;
case 'n':
_null();
break;
case 't':
_boolean();
break;
case 'f':
_boolean();
break;
default:
_number();
}
}
}
};
v1.chunk_encoder = function () {
if (com.newgrounds.encoders.json.JSON.cache.complete) {
return undefined;
}
var v2 = com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target);
switch (v2) {
case 'number':
com.newgrounds.encoders.json.JSON.cache.encoded += com.newgrounds.encoders.json.JSON.cache.target;
com.newgrounds.encoders.json.JSON.getParent();
break;
case 'string':
com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (com.newgrounds.encoders.json.JSON.cache.target.split('"')).join('\\"') + '"';
com.newgrounds.encoders.json.JSON.getParent();
break;
case 'boolean':
com.newgrounds.encoders.json.JSON.cache.encoded += (com.newgrounds.encoders.json.JSON.cache.target == true) ? 'true' : 'false';
com.newgrounds.encoders.json.JSON.getParent();
break;
case 'null':
com.newgrounds.encoders.json.JSON.cache.encoded += 'null';
com.newgrounds.encoders.json.JSON.getParent();
break;
case 'array':
if (com.newgrounds.encoders.json.JSON.cache.target.length < 1) {
com.newgrounds.encoders.json.JSON.cache.encoded += ']';
com.newgrounds.encoders.json.JSON.getParent();
} else {
com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target);
com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[0];
if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') {
com.newgrounds.encoders.json.JSON.cache.encoded += '[';
} else {
if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') {
com.newgrounds.encoders.json.JSON.cache.encoded += '{';
}
}
}
break;
case 'object':
for (var v1 in com.newgrounds.encoders.json.JSON.cache.target) {
break;
}
if (v1 === undefined) {
com.newgrounds.encoders.json.JSON.cache.encoded += '}';
com.newgrounds.encoders.json.JSON.getParent();
} else {
com.newgrounds.encoders.json.JSON.cache.parents.push(com.newgrounds.encoders.json.JSON.cache.target);
com.newgrounds.encoders.json.JSON.cache.target = com.newgrounds.encoders.json.JSON.cache.target[v1];
com.newgrounds.encoders.json.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":';
if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'array') {
com.newgrounds.encoders.json.JSON.cache.encoded += '[';
} else {
if (com.newgrounds.encoders.json.JSON.getType(com.newgrounds.encoders.json.JSON.cache.target) == 'object') {
com.newgrounds.encoders.json.JSON.cache.encoded += '{';
}
}
}
break;
default:
com.newgrounds.encoders.json.JSON.cache.encoded += 'null';
com.newgrounds.encoders.json.JSON.getParent();
}
};
v1.getParent = function () {
if (com.newgrounds.encoders.json.JSON.cache.parents.length > 0) {
var v1 = com.newgrounds.encoders.json.JSON.cache.parents.pop();
if (com.newgrounds.encoders.json.JSON.getType(v1) == 'array') {
v1.shift();
} else {
for (var v3 in v1) {
delete v1[v3];
break;
}
}
if (com.newgrounds.encoders.json.JSON.getType(v1) == 'object' or com.newgrounds.encoders.json.JSON.getType(v1) == 'array') {
for (var v2 in v1) {
break;
}
if (v2 !== undefined) {
com.newgrounds.encoders.json.JSON.cache.encoded += ',';
}
}
com.newgrounds.encoders.json.JSON.cache.target = v1;
} else {
com.newgrounds.encoders.json.JSON.cache.complete = true;
}
};
v1.encode_chunks = 20000;
v1.decode_chunks = 20000;
v1.busy = false;
ASSetPropFlags(com.newgrounds.encoders.json.JSON.prototype, null, 1);
}
#endinitclip
}
movieClip 1366 __Packages.com.newgrounds.Score {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.newgrounds) {
_global.com.newgrounds = new Object();
}
if (!_global.com.newgrounds.Score) {
var v1 = function (rank, username, score, numericValue, tag) {
this._rank = rank;
this._username = username;
this._score = score;
this._numericValue = numericValue;
this._tag = tag;
};
com.newgrounds.Score = v1;
var v2 = v1.prototype;
v2.__get__numericValue = function () {
return this._numericValue;
};
v2.__get__rank = function () {
return this._rank;
};
v2.__get__score = function () {
return this._score;
};
v2.__get__tag = function () {
return this._tag;
};
v2.__get__username = function () {
return this._username;
};
v2.toString = function () {
return this._rank + '.\t' + this._username + '\t' + this._score;
};
v2.addProperty('numericValue', v2.__get__numericValue, function () {});
v2.addProperty('rank', v2.__get__rank, function () {});
v2.addProperty('score', v2.__get__score, function () {});
v2.addProperty('tag', v2.__get__tag, function () {});
v2.addProperty('username', v2.__get__username, function () {});
ASSetPropFlags(com.newgrounds.Score.prototype, null, 1);
}
#endinitclip
}
movieClip 1517 {
}
movieClip 1524 {
}
movieClip 1531 {
}
movieClip 1532 {
frame 4 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2, 1);
}
frame 8 {
this._parent._parent.endAttack(this._parent);
}
}
movieClip 1537 {
frame 2 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 1, 0);
}
frame 6 {
this._parent._parent.endAttack();
}
}
movieClip 1540 {
frame 2 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 1, 0);
}
frame 5 {
this._parent._parent.endAttack();
}
}
movieClip 1545 {
frame 5 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2, 0, true);
}
frame 11 {
this._parent._parent.endAttack();
}
}
movieClip 1550 {
frame 5 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 5, 0);
}
frame 13 {
this._parent._parent.endAttack();
}
}
movieClip 1559 {
}
movieClip 1570 {
frame 10 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 1572 {
frame 140 {
stop();
}
}
movieClip 1575 {
frame 6 {
_root.getUp(this._parent._parent);
}
}
movieClip 1578 {
frame 1 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0);
}
frame 2 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0);
}
frame 3 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0);
}
frame 4 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0);
}
frame 5 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0);
}
}
movieClip 1583 {
}
movieClip 1590 {
frame 6 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 14, 0, false, false, true);
}
frame 7 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 14, 0, false, false, true);
}
frame 8 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 10, 0, false, false, true);
}
frame 9 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 10, 0, false, false, true);
}
frame 10 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 10, 0, false, false, true);
}
frame 11 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 10, 0, false, false, true);
}
frame 17 {
stop();
this._parent._parent._parent._parent.jumpkickland(this._parent._parent);
}
}
movieClip 1595 {
frame 5 {
this._parent._parent._parent._parent.aboboRecover(this._parent._parent);
}
}
movieClip 1600 {
frame 5 {
this._parent._parent._parent._parent.aboboRecover(this._parent._parent);
}
}
movieClip 1605 {
}
movieClip 1606 {
}
movieClip 1607 {
}
movieClip 1612 {
frame 1 {
stop();
if (_root.stopindex == 5) {
this.gotoAndStop(2);
}
}
}
movieClip 1613 {
}
movieClip 1614 {
frame 1 {
stop();
if (_root.barrel.firey) {
this.gotoAndStop('firey');
}
}
}
movieClip 1621 {
}
movieClip 1658 {
}
movieClip 1677 {
frame 9 {
stop();
}
}
movieClip 1692 {
frame 67 {
_root.makeAvalanche();
}
frame 129 {
_root.attachCrack();
}
frame 148 {
_root.rageRecover();
}
frame 171 {
stop();
}
}
movieClip 1699 {
}
movieClip 1701 {
}
movieClip 1702 {
frame 22 {
stop();
}
}
movieClip 1707 {
}
movieClip 1717 {
frame 14 {
stop();
}
}
movieClip 1732 {
frame 21 {
stop();
}
}
movieClip 1735 {
frame 21 {
_root.endRageBurst();
stop();
}
}
movieClip 1746 {
}
movieClip 1749 {
}
movieClip 1750 {
frame 1 {
_root.chkHeads(this);
}
}
movieClip 1763 {
frame 40 {
_root.foodBonus();
}
frame 100 {
_root.endEat(this._parent._parent);
}
}
movieClip 1780 {
frame 18 {
var tar = this._parent._parent._parent._parent;
var who = this._parent._parent;
tar.throwFireball(who);
}
frame 34 {
this._parent._parent.endAttack();
}
}
movieClip 1794 {
frame 2 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
frame 4 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
frame 6 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
frame 8 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
frame 10 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
frame 12 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 2.5, 0);
}
}
movieClip 1806 {
frame 2 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 4 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 6 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 8 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 10 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 12 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 14 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 16 {
this._parent._parent._parent._parent.chkAttack(this._parent._parent, this.hitarea, 7, 0, false, false, false, true);
}
frame 19 {
this._parent._parent.endAttack();
}
}
movieClip 1819 {
}
movieClip 1820 {
frame 15 {
stop();
}
}
movieClip 1823 {
frame 9 {
stop();
}
}
movieClip 1826 {
}
movieClip 1827 {
frame 2 {
stop();
}
}
movieClip 1832 {
}
// unknown tag 88 length 65
movieClip 1836 {
}
movieClip 1837 2pdude0 {
frame 1 {
function endAttack() {
this.attacking = false;
this.superslap = false;
}
stop();
}
frame 9 {
gotoAndPlay('raged');
}
frame 17 {
stop();
}
}
movieClip 1838 2pdude1 {
frame 1 {
function endAttack() {
this.attacking = false;
this.superslap = false;
}
stop();
}
frame 9 {
gotoAndPlay('raged');
}
frame 17 {
stop();
}
}
movieClip 1839 2pdude2 {
frame 1 {
function endAttack() {
this.attacking = false;
this.superslap = false;
}
stop();
}
frame 9 {
gotoAndPlay('raged');
}
frame 17 {
stop();
}
}
movieClip 1840 2pdude3 {
frame 1 {
function endAttack() {
this.attacking = false;
this.superslap = false;
}
stop();
}
frame 9 {
gotoAndPlay('raged');
}
frame 17 {
stop();
}
}
movieClip 1843 {
}
movieClip 1846 {
}
movieClip 1849 {
}
movieClip 1853 {
frame 6 {
stop();
}
}
movieClip 1856 2p_charsel0 {
}
movieClip 1859 {
}
movieClip 1860 2p_charsel1 {
}
movieClip 1863 {
}
movieClip 1864 2p_charsel2 {
}
movieClip 1867 {
}
movieClip 1868 2p_charsel3 {
}
movieClip 1875 {
}
movieClip 1876 {
}
movieClip 1885 {
frame 9 {
stop();
var tar = this._parent._parent._parent;
var who = this._parent;
tar.removeProj(who);
}
}
movieClip 1886 2p_fireball {
frame 1 {
stop();
}
}
movieClip 1901 {
frame 1 {
stop();
}
}
movieClip 1902 {
frame 1 {
stop();
}
}
movieClip 1905 {
}
movieClip 1906 {
}
movieClip 1907 {
}
movieClip 1910 {
}
movieClip 1911 {
}
movieClip 1912 2p_hud {
}
movieClip 1916 {
}
movieClip 1917 2pbg0 {
}
movieClip 1921 {
}
movieClip 1922 2pbg1 {
}
movieClip 1926 {
}
movieClip 1927 2pbg2 {
}
movieClip 1931 {
}
movieClip 1932 2pbg3 {
}
movieClip 1936 {
}
movieClip 1937 2pbg4 {
}
movieClip 1941 {
}
movieClip 1942 2pbg5 {
}
movieClip 1945 {
}
movieClip 1946 2pbg6 {
}
movieClip 1953 2pburst {
frame 11 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 1958 deadduck0 {
frame 1 {
stop();
}
}
movieClip 1963 deadduck1 {
frame 1 {
stop();
}
}
movieClip 1966 {
}
movieClip 1971 {
}
movieClip 1980 {
frame 5 {
_root.gam.bossBullet(this._parent._parent);
}
}
movieClip 1985 {
}
movieClip 1989 {
frame 6 {
_root.gam.chkBadHit(this._parent._parent, 5, 0, this.box, true);
}
frame 15 {
_root.gam.endBossAttack(this._parent._parent);
}
}
movieClip 1992 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 1995 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 1999 {
frame 535 {
stop();
}
}
movieClip 2010 {
}
movieClip 2019 {
}
movieClip 2022 {
}
movieClip 2027 {
}
movieClip 2036 {
}
movieClip 2057 {
frame 30 {
stop();
}
}
movieClip 2062 {
}
movieClip 2065 {
}
movieClip 2068 {
}
movieClip 2071 {
}
movieClip 2074 {
frame 2 {
_root.gam.muteIt();
}
frame 74 {
_root.gam.bossYSwitch();
_root.aboboMedal('Fooled You');
}
frame 134 {
_root.gam.showBossAgain();
stop();
}
}
movieClip 2075 {
frame 1 {
stop();
}
}
movieClip 2076 dd_boss {
frame 1 {
this.nam = 'Shooter Gavin';
this.picid = 13;
}
}
movieClip 2080 {
}
movieClip 2081 dd_bossbullet {
}
movieClip 2088 dd_burst {
frame 11 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2093 dd_burst1 {
frame 8 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2094 dd_burst2 {
frame 11 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2097 dd_dkjr {
}
movieClip 2098 dd_pixelblood {
}
movieClip 2099 {
frame 7 {
this.unloadMovie();
this.removeMovieClip();
stop();
}
}
movieClip 2100 dd_smoke {
}
movieClip 2103 {
}
movieClip 2132 dd_splode {
frame 40 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2151 dd_splode2 {
frame 18 {
this.unloadMovie();
this.removeMovieClip();
stop();
}
}
movieClip 2158 dd_dust {
frame 10 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2165 {
}
movieClip 2166 {
}
movieClip 2167 barrelball {
}
movieClip 2214 {
frame 33 {
this._parent._parent.revealed = true;
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 2215 {
}
movieClip 2220 {
}
movieClip 2229 {
frame 6 {
_root.gam.makeBarrelBall(this._parent._parent);
}
frame 15 {
_root.gam.barrelFinishAttack(this._parent._parent);
}
}
movieClip 2232 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2237 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 5, 0, this.box, true);
}
frame 25 {
_root.gam.barrelFinishAttack(this._parent._parent);
}
}
movieClip 2244 {
frame 664 {
stop();
}
}
movieClip 2245 {
}
movieClip 2246 {
frame 35 {
stop();
}
}
movieClip 2249 {
}
movieClip 2252 {
}
movieClip 2253 {
}
movieClip 2254 {
}
movieClip 2259 {
frame 1 {
stop();
if (_root.gam.stopindex == 5) {
this.gotoAndStop(2);
}
}
}
movieClip 2260 {
}
movieClip 2261 {
frame 1 {
stop();
if (_root.gam.barrel.firey) {
this.gotoAndStop('firey');
}
}
}
movieClip 2268 {
}
movieClip 2271 {
frame 1 {
stop();
}
}
movieClip 2272 ddbad14 {
frame 1 {
this.picid = 33;
this.nam = 'Beardy Barrel';
}
}
movieClip 2275 dd_bbit0 {
}
movieClip 2278 dd_bbit1 {
}
movieClip 2281 dd_bbit2 {
}
movieClip 2284 dd_bbit3 {
}
movieClip 2287 dd_bbit4 {
}
movieClip 2290 dd_bbit5 {
}
movieClip 2293 dd_bossfg {
}
movieClip 2300 {
frame 60 {
stop();
}
}
movieClip 2305 {
}
movieClip 2306 dd_dkbarrel {
}
movieClip 2311 {
}
movieClip 2312 {
}
movieClip 2335 dd_dksplode {
frame 31 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 2338 {
}
movieClip 2345 {
}
movieClip 2346 {
}
movieClip 2354 {
frame 21 {
stop();
_root.gam.dkBarrel();
}
}
movieClip 2357 {
frame 7 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2365 {
frame 620 {
stop();
}
}
movieClip 2366 {
frame 40 {
this._parent.gotime = true;
}
frame 61 {
stop();
}
}
movieClip 2367 ddbad13 {
frame 1 {
this.picid = 34;
this.nam = 'Donkey Kong';
}
}
movieClip 2369 ladderarea {
}
movieClip 2372 dd_crack {
}
movieClip 2386 {
frame 9 {
stop();
}
}
movieClip 2392 {
frame 12 {
stop();
}
}
movieClip 2393 {
frame 18 {
stop();
}
}
movieClip 2394 {
frame 29 {
stop();
}
}
movieClip 2395 {
frame 22 {
stop();
}
}
movieClip 2396 {
frame 22 {
_root.gam.killAll();
}
frame 85 {
stop();
}
}
movieClip 2397 dd_avalanche {
}
movieClip 2402 {
}
movieClip 2407 {
}
movieClip 2413 {
}
movieClip 2414 {
frame 48 {
stop();
_root.gam.endRageCutscene();
}
}
movieClip 2415 dd_ragecutscene {
}
movieClip 2422 {
}
movieClip 2429 {
}
movieClip 2434 {
}
movieClip 2439 {
}
movieClip 2446 {
}
movieClip 2447 {
}
movieClip 2452 {
}
movieClip 2455 {
}
movieClip 2462 {
}
movieClip 2471 {
}
movieClip 2475 {
}
movieClip 2478 {
}
movieClip 2480 {
frame 14 {
stop();
}
}
movieClip 2486 {
frame 40 {
stop();
}
}
movieClip 2488 sm {
frame 338 {
stop();
}
}
movieClip 2493 {
}
movieClip 2498 {
}
movieClip 2501 {
}
movieClip 2504 {
frame 1 {
stop();
}
}
movieClip 2505 ddbad0 {
frame 1 {
this.picid = 4;
this.nam = 'Kung Fu Huggy';
}
}
movieClip 2512 {
}
movieClip 2515 {
frame 4 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2518 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2523 {
frame 8 {
stop();
}
}
movieClip 2524 {
frame 20 {
stop();
}
}
movieClip 2527 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2530 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2533 {
frame 1 {
stop();
}
}
movieClip 2534 ddbad1 {
frame 1 {
this.picid = 12;
this.nam = 'Scut Farkus';
}
}
movieClip 2539 {
}
movieClip 2540 {
}
movieClip 2547 {
}
movieClip 2558 {
frame 605 {
stop();
}
}
movieClip 2559 {
frame 1 {
stop();
}
}
movieClip 2560 ddbad10 {
frame 1 {
this.picid = 11;
this.nam = 'T&C Skater';
}
}
movieClip 2565 {
}
movieClip 2568 {
frame 6 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2571 {
frame 6 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2576 {
frame 559 {
stop();
}
}
movieClip 2583 {
}
movieClip 2585 {
}
movieClip 2586 {
frame 19 {
stop();
}
}
movieClip 2593 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2598 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2599 {
}
movieClip 2600 ddbad11 {
frame 1 {
this.picid = 9;
this.nam = 'Black Spy';
}
}
movieClip 2607 {
}
movieClip 2608 {
}
movieClip 2609 {
frame 521 {
stop();
}
}
movieClip 2610 {
frame 1 {
stop();
}
}
movieClip 2611 ddbad12 {
frame 1 {
this.picid = 6;
this.nam = 'Ransomling';
}
}
movieClip 2618 {
}
movieClip 2619 {
frame 636 {
stop();
}
}
movieClip 2620 {
frame 1 {
stop();
}
}
movieClip 2621 ddbad15 {
frame 1 {
this.picid = 32;
this.nam = 'Ransom Gal';
}
}
movieClip 2630 {
}
movieClip 2633 {
frame 5 {
stop();
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2636 {
frame 5 {
stop();
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2641 {
frame 671 {
stop();
}
}
movieClip 2644 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 3, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2649 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 5, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2652 {
frame 1 {
stop();
}
}
movieClip 2653 ddbad16 {
frame 1 {
this.picid = 35;
this.nam = 'Navin Johnson';
}
}
movieClip 2657 {
}
movieClip 2658 {
}
movieClip 2664 {
}
movieClip 2665 {
frame 1 {
stop();
}
}
movieClip 2666 ddbad17 {
frame 1 {
this.picid = 36;
this.nam = 'Goomba';
}
}
movieClip 2673 {
}
movieClip 2682 {
frame 1 {
_root.gam.chkBadHit(this._parent._parent, 2, 0, this.box);
}
frame 6 {
_root.gam.endNikiAttack(this._parent._parent);
}
}
movieClip 2687 {
frame 195 {
stop();
}
}
movieClip 2688 {
frame 35 {
stop();
}
}
movieClip 2689 {
frame 1 {
stop();
}
}
movieClip 2690 ddbad2 {
frame 1 {
this.picid = 2;
this.nam = 'Kid Nikki';
}
}
movieClip 2697 {
}
movieClip 2702 {
frame 3 {
_root.gam.chkBadHit(this._parent._parent, 1, 1, this.box);
}
frame 8 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2707 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2710 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 2, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2713 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2716 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2723 {
frame 635 {
stop();
}
}
movieClip 2724 {
frame 1 {
stop();
}
}
movieClip 2725 ddbad3 {
frame 1 {
this.picid = 3;
this.nam = 'Chin Salabim';
}
}
movieClip 2732 {
}
movieClip 2735 {
frame 4 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2738 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2743 {
frame 540 {
stop();
}
}
movieClip 2748 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 8 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2749 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 8 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2760 {
}
movieClip 2765 {
frame 1 {
stop();
}
}
movieClip 2766 ddbad4 {
frame 1 {
this.picid = 1;
this.nam = 'Bubba Hanks';
}
}
movieClip 2773 {
}
movieClip 2776 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2779 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2784 {
frame 541 {
stop();
}
}
movieClip 2787 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2790 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2793 {
frame 1 {
stop();
}
}
movieClip 2794 ddbad5 {
frame 1 {
this.picid = 31;
this.nam = 'Grumpy McGee';
}
}
movieClip 2803 {
}
movieClip 2806 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2813 {
frame 671 {
stop();
}
}
movieClip 2820 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 7 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2827 {
frame 4 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2828 {
frame 1 {
stop();
}
}
movieClip 2829 ddbad6 {
frame 1 {
this.picid = 8;
this.nam = 'Alex';
}
}
movieClip 2834 {
}
movieClip 2837 {
frame 6 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2840 {
frame 7 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2845 {
frame 550 {
stop();
}
}
movieClip 2850 {
}
movieClip 2851 {
}
movieClip 2852 {
frame 16 {
stop();
}
}
movieClip 2857 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2862 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 9 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2863 {
frame 1 {
stop();
}
}
movieClip 2864 ddbad7 {
frame 1 {
this.picid = 10;
this.nam = 'White Spy';
}
}
movieClip 2871 {
}
movieClip 2874 {
frame 5 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2881 {
frame 545 {
stop();
}
}
movieClip 2888 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2891 {
frame 1 {
stop();
}
}
movieClip 2892 ddbad8 {
frame 1 {
this.picid = 7;
this.nam = 'Rikki Stix';
}
}
movieClip 2897 {
}
movieClip 2900 {
frame 8 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2903 {
frame 6 {
_root.gam.hitRecover(this._parent._parent);
}
}
movieClip 2908 {
frame 553 {
stop();
}
}
movieClip 2915 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2920 {
frame 5 {
_root.gam.chkBadHit(this._parent._parent, 1, 0, this.box);
}
frame 10 {
_root.gam.switchAtk(this._parent._parent);
}
}
movieClip 2923 {
frame 1 {
stop();
}
}
movieClip 2924 ddbad9 {
frame 1 {
this.picid = 5;
this.nam = 'Sticky Jones';
}
}
movieClip 2929 {
}
movieClip 2930 {
}
movieClip 2931 {
frame 6 {
_root.badRecover(this._parent._parent);
}
}
movieClip 2932 {
frame 1 {
stop();
}
}
movieClip 2933 lev1_bad0 {
frame 1 {
this._parent.registerMe(this);
this.ai = 0;
this.typ = 0;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'PUFFER';
picid = 25;
}
}
movieClip 2938 {
}
movieClip 2939 {
frame 7 {
_root.bg.badRecover(this._parent._parent);
}
}
movieClip 2940 {
frame 1 {
stop();
}
}
movieClip 2941 lev1_bad1 {
frame 1 {
this._parent.registerMe(this);
this.ai = 1;
this.typ = 1;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'CRABBY';
picid = 17;
}
}
movieClip 2946 {
}
movieClip 2947 {
frame 1 {
stop();
}
}
movieClip 2948 lev1_bad10 {
frame 1 {
this._parent.registerMe(this);
this.ai = 0;
this.typ = 10;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'SKELLY';
picid = 14;
}
}
movieClip 2953 {
}
movieClip 2954 {
frame 1 {
stop();
}
}
movieClip 2955 lev1_bad11 {
frame 1 {
this._parent.registerMe(this);
this.ai = 0;
this.typ = 11;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'REDSKULL';
picid = 14;
}
}
movieClip 2958 {
}
movieClip 2959 {
}
movieClip 2964 {
}
movieClip 2971 {
frame 7 {
_root.bg.bubbleManShoot(this._parent._parent);
}
frame 11 {
this._parent.gotoAndStop('rest');
}
}
movieClip 2972 {
frame 1 {
stop();
}
}
movieClip 2973 lev1_bad12 {
frame 1 {
this._parent.registerMe(this);
this.ai = 10;
this.typ = -1;
this.dmg = 5;
this.hp = 3;
this.hitcv = 0;
this.aicv = 0;
this.attacking = false;
this.hit = false;
this.showhit = true;
this.dir = 0;
this.bubbleman = true;
this.maxhp = this.hp;
this.nam = 'BUBBLEMAN';
this.picid = 38;
}
}
movieClip 2976 {
}
movieClip 2977 {
frame 1 {
stop();
}
}
movieClip 2978 lev1_bad13 {
frame 1 {
this._parent.registerMe(this);
this.ai = 11;
this.typ = 13;
this.dmg = 5;
this.hp = 99;
this.maxhp = this.hp;
this.nam = 'BUBBLE';
picid = 39;
}
}
movieClip 2983 {
}
movieClip 2984 {
frame 1 {
stop();
}
}
movieClip 2985 lev1_bad14 {
frame 1 {
this._parent.registerMe(this);
this.ai = 11;
this.typ = 14;
this.dmg = 5;
this.hp = 99;
this.maxhp = this.hp;
this.nam = 'SQUIGLY';
picid = 29;
hitcv = 0;
}
}
movieClip 2990 {
}
movieClip 2991 {
frame 8 {
_root.badRecover(this._parent._parent);
}
}
movieClip 2992 {
frame 1 {
stop();
}
}
movieClip 2993 lev1_bad2 {
frame 1 {
this._parent.registerMe(this);
this.ai = 2;
this.typ = 2;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'BROTHAFISH';
picid = 15;
}
}
movieClip 2998 {
}
movieClip 2999 {
frame 6 {
_root.badRecover(this._parent._parent);
}
}
movieClip 3000 {
frame 1 {
stop();
}
}
movieClip 3001 lev1_bad3 {
frame 1 {
this._parent.registerMe(this);
this.ai = 0;
this.typ = 3;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'WEAKLING';
picid = 24;
}
}
movieClip 3004 {
}
movieClip 3009 {
}
movieClip 3010 {
frame 6 {
_root.badRecover(this._parent._parent);
}
}
movieClip 3011 {
frame 1 {
stop();
}
}
movieClip 3012 lev1_bad4 {
frame 1 {
this.ai = 4;
this.typ = 4;
this.dmg = 10;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'ROBOSHRIMP';
picid = 26;
}
}
movieClip 3021 {
}
movieClip 3022 {
}
movieClip 3023 {
frame 6 {
_root.bg.badRecover(this._parent._parent);
}
}
movieClip 3028 {
}
movieClip 3029 {
frame 1 {
stop();
}
}
movieClip 3030 lev1_bad5 {
frame 1 {
this._parent.registerMe(this);
this.ai = 5;
this.typ = -1;
this.dmg = 10;
this.hp = 3;
this.maxhp = this.hp;
this.nam = 'MECHAFISH';
picid = 18;
}
}
movieClip 3033 {
}
movieClip 3036 {
}
movieClip 3037 {
frame 8 {
this._parent.gotoAndStop('open');
}
}
movieClip 3038 {
frame 1 {
stop();
}
}
movieClip 3039 lev1_bad6 {
frame 1 {
this._parent.registerMe(this);
this.ai = 6;
this.typ = 6;
this.dmg = 5;
this.hp = 1;
this.maxhp = this.hp;
this.nam = 'SQUIDLY';
picid = 28;
}
}
movieClip 3044 {
}
movieClip 3045 {
frame 10 {
this._parent.gotoAndStop('open');
}
}
movieClip 3046 {
frame 1 {
stop();
}
}
movieClip 3047 lev1_bad7 {
frame 1 {
this._parent.registerMe(this);
this.ai = 6;
this.typ = 7;
this.dmg = 5;
this.hp = 2;
this.maxhp = this.hp;
this.nam = 'MOMMA';
picid = 27;
}
}
movieClip 3050 {
}
movieClip 3053 {
}
movieClip 3054 {
frame 1 {
stop();
}
}
movieClip 3055 lev1_bad8 {
frame 1 {
this._parent.registerMe(this);
this.ai = 7;
this.typ = 8;
this.dmg = 0;
this.hp = 999;
this.maxhp = this.hp;
this.nam = 'SQUIDBABY';
}
}
movieClip 3060 {
}
movieClip 3061 {
frame 1 {
stop();
}
}
movieClip 3062 lev1_bad9 {
frame 1 {
this._parent.registerMe(this);
this.xvel = 0;
this._xscale = -100;
this.ai = 8;
this.aicv = 0;
this.typ = -1;
this.dmg = 5;
this.hp = 1;
this.spearfish = true;
this.aigoal = 10 + random(10);
this.maxhp = this.hp;
this.nam = 'SWORDFISH';
picid = 16;
}
}
movieClip 3067 {
}
movieClip 3068 {
}
movieClip 3069 {
}
movieClip 3070 lev1_blast {
frame 1 {
this._parent.registerMe(this);
this.ai = 13;
this.typ = -1;
this.dmg = 10;
this.hp = 99;
this.maxhp = this.hp;
this.nam = 'K-PELLET';
picid = 40;
}
}
movieClip 3073 lev1crumb0 {
}
movieClip 3076 lev1crumb1 {
}
movieClip 3079 lev1crumb2 {
}
movieClip 3082 lev1crumb3 {
}
movieClip 3085 lev1crumb4 {
}
movieClip 3088 {
}
movieClip 3089 {
}
movieClip 3090 {
}
movieClip 3091 lasershot {
frame 1 {
this.nam = 'LAZOR!';
this.picid = 41;
this.hp = 99;
this.maxhp = this.hp;
}
}
movieClip 3096 {
}
movieClip 3102 {
}
movieClip 3103 sharkchunk {
frame 1 {
picid = 42;
this.nam = 'ROOF CHUNK';
this.hp = 99;
this.maxhp = this.hp;
}
}
movieClip 3106 lev1_bubble0 {
}
movieClip 3109 lev1_bubble1 {
}
movieClip 3112 lev1_bubble2 {
}
movieClip 3131 {
}
movieClip 3132 {
frame 124 {
stop();
}
frame 176 {
stop();
}
}
movieClip 3133 lev1_spinner {
}
movieClip 3140 {
}
movieClip 3149 {
}
movieClip 3150 {
}
movieClip 3151 lev1_whirly {
}
movieClip 3152 {
}
movieClip 3159 {
}
movieClip 3162 {
}
movieClip 3167 {
}
movieClip 3168 cutsceneunderwater {
frame 48 {
stop();
this.unloadMovie();
this.removeMovieClip();
stopAllSounds();
}
}
movieClip 3170 lev1_tonguetip {
}
movieClip 3173 lev1_wallpiece0 {
}
movieClip 3176 lev1_wallpiece1 {
}
movieClip 3179 lev1_wallpiece2 {
}
movieClip 3185 {
}
movieClip 3186 {
}
movieClip 3187 {
}
movieClip 3188 {
}
movieClip 3191 {
}
movieClip 3194 {
}
movieClip 3195 {
}
movieClip 3196 {
frame 1 {
stop();
}
frame 8 {
}
frame 42 {
stop();
}
}
movieClip 3203 {
}
movieClip 3208 {
}
movieClip 3213 {
}
movieClip 3218 {
frame 1 {
stop();
}
frame 13 {
stop();
}
frame 28 {
stop();
}
frame 42 {
stop();
}
}
movieClip 3225 {
}
movieClip 3228 {
}
movieClip 3231 {
}
movieClip 3232 {
}
movieClip 3243 {
}
movieClip 3244 {
}
movieClip 3251 {
}
movieClip 3252 {
}
movieClip 3264 {
}
movieClip 3265 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3272 {
frame 184 {
stop();
}
}
movieClip 3283 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 20 {
stop();
}
frame 31 {
stop();
}
frame 40 {
stop();
}
frame 48 {
stop();
}
}
movieClip 3292 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 20 {
stop();
}
frame 28 {
stop();
}
}
movieClip 3319 {
frame 27 {
stop();
}
}
movieClip 3323 {
}
movieClip 3324 {
frame 40 {
stop();
}
}
movieClip 3333 {
}
movieClip 3334 {
}
movieClip 3337 {
}
movieClip 3338 {
frame 41 {
stop();
}
}
movieClip 3339 {
frame 2 {
_parent._parent._parent.mermaidscene._x += 2;
}
frame 4 {
_parent._parent._parent.mermaidscene._x -= 2;
}
frame 6 {
_parent._parent._parent.mermaidscene._x += 2;
}
frame 8 {
_parent._parent._parent.mermaidscene._x -= 2;
}
frame 43 {
stop();
}
}
movieClip 3348 {
frame 6 {
stop();
}
}
movieClip 3349 {
frame 1 {
stop();
}
frame 11 {
}
frame 12 {
this._parent._x += 2;
}
frame 14 {
this._parent._x -= 2;
}
frame 16 {
this._parent._x += 2;
}
frame 18 {
this._parent._x -= 2;
}
frame 19 {
stop();
}
frame 30 {
play();
_parent.aboclip.gotoAndStop('hit');
}
frame 32 {
this._parent._x += 2;
}
frame 34 {
this._parent._x -= 2;
}
frame 36 {
this._parent._x += 2;
}
frame 38 {
this._parent._x -= 2;
}
frame 68 {
stop();
}
}
movieClip 3365 {
}
movieClip 3370 {
}
movieClip 3375 {
frame 3 {
stop();
}
}
movieClip 3384 {
}
movieClip 3385 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 20 {
stop();
}
frame 30 {
stop();
}
frame 40 {
stop();
}
frame 44 {
stop();
}
frame 57 {
stop();
}
}
movieClip 3388 {
}
movieClip 3391 {
frame 1 {
stop();
}
frame 6 {
stop();
this.onEnterFrame = function () {
if (Key.isDown(65)) {
this._parent.fades.gotoAndPlay('fadeout2');
delete this.onEnterFrame;
}
};
}
instance of movieClip 3388 {
}
}
movieClip 3395 {
}
movieClip 3396 {
frame 1 {
play();
}
frame 16 {
stop();
}
frame 17 {
play();
}
frame 153 {
stop();
this._parent.endMermaid();
}
frame 155 {
}
frame 286 {
this._parent.goodEnd();
gotoAndPlay('start');
}
}
movieClip 3397 mermaidgame {
frame 1 {
function updateSel(num) {
selectors.gotoAndStop('sel' + num);
}
function endMermaid() {
bedroomboogie.stop();
bgmuse.stop();
_root.bg.updateShield();
_root.bg.endMermaid();
this.unloadMovie();
this.removeMovieClip();
}
function goodEnd() {
aboclip.gotoAndStop('normal');
heartpanel.gotoAndPlay('panel');
messages.gotoAndStop('message5');
merbobos.gotoAndStop('go');
}
function runSel() {
bgmuse.stop();
aboclip.gotoAndPlay(aanims[sel]);
mermaidface.gotoAndStop(manims[sel]);
messages.gotoAndStop('message' + sel);
if (sel == 0) {
_root.aboboMedal('Bad Call');
ladderdrop.start();
chomped.gotoAndPlay('chomped');
}
if (sel == 1) {
_root.aboboMedal('Bad Call');
ladderdrop.start();
chomped.gotoAndPlay('hit');
}
if (sel == 3) {
_root.aboboMedal('Bad Call');
water.gotoAndPlay('vomit');
conveyerfall.start();
}
if (sel != 2) {
fades.gotoAndPlay('fadeout');
} else {
_root.aboboMedal('Merbobos');
_root.bg.dude.shielded = true;
fades.gotoAndPlay('sextime');
bedroomboogie.start(0, 2);
}
sold = true;
var v3 = 0;
while (v3 < 4) {
var v4 = this['but' + v3];
delete v4.onRollOver;
delete v4.onPress;
++v3;
}
}
this.createEmptyMovieClip('mersound', 99111);
this.bgmuse = new Sound(mersound);
bgmuse.attachSound('mermaidbgmusic');
bgmuse.start(0, 999);
this.cramp = new Sound(mersound);
cramp.attachSound('cramp');
this.ladderdrop = new Sound(mersound);
ladderdrop.attachSound('ladderdrop');
this.conveyerfall = new Sound(mersound);
conveyerfall.attachSound('conveyerfall');
this.bedroomboogie = new Sound(mersound);
bedroomboogie.attachSound('bedroomboogie');
this.A = 65;
this.D = 40;
this.U = 38;
dup = false;
uup = false;
aup = false;
this.sel = 0;
sold = false;
var aanims = new Array('eat', 'hit', 'hug', 'barf');
var manims = new Array('normalface', 'beaten', 'love', 'angryface');
fades.gotoAndPlay('start');
var i = 0;
while (i < 4) {
var tar = this['but' + i];
tar.id = i;
tar.onRollOver = function () {
if (!this._parent.sold) {
this._parent.sel = this.id;
this._parent.updateSel(this.id);
}
};
tar.onPress = function () {
if (!this._parent.sold) {
this._parent.runSel();
}
};
++i;
}
this.onEnterFrame = function () {
if (!sold) {
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(U)) {
uup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (Key.isDown(A) && aup) {
aup = false;
runSel();
}
if (Key.isDown(U) && uup) {
uup = false;
--sel;
if (sel < 0) {
sel = 3;
}
updateSel(sel);
}
if (Key.isDown(D) && dup) {
dup = false;
++sel;
if (sel > 3) {
sel = 0;
}
updateSel(sel);
}
}
};
}
}
movieClip 3399 mm_contracutscene {
frame 71 {
stop();
_root.goContra();
}
}
movieClip 3400 {
frame 1 {
this.onPress = function () {};
}
}
movieClip 3418 {
}
movieClip 3423 {
}
movieClip 3426 {
}
// unknown tag 88 length 37
movieClip 3432 {
}
movieClip 3433 achlist {
frame 1 {
function goBack() {
_root.optList();
this.unloadMovie();
this.removeMovieClip();
}
function goDown() {
danum -= 4;
if (danum < 0) {
danum = 96;
}
changePage(danum);
}
function goUp() {
danum += 4;
if (danum >= (com.newgrounds.API.__get__medals()).length) {
danum = 0;
}
changePage(danum);
}
function changePage(star) {
var v9 = this.createEmptyMovieClip('holder', 0);
v9._x = dax;
v9._y = day;
var v5 = 0;
var v8 = 0;
var v3 = star;
var v4 = 0;
while (v4 < 4) {
var v2 = v9.attachMovie('achblock', 'block' + v4, v4);
v2._x = v5 * v2._width + 2 * v5;
v2._y = v8 * 36;
++v5;
if (v5 == 1) {
v5 = 0;
++v8;
}
if (meds[v3].unlocked) {
v2.holder.locker._visible = false;
} else {
v2.holder.guts.filters = [filter];
}
var v6 = meds[v3].nam.toUpperCase();
var v7 = meds[v3].val;
(com.newgrounds.API.getMedal(meds[v3].nam)).attachIcon(v2.holder.guts);
v2.tit.text = v6;
if (meds[v3].sec == 0 || meds[v3].unlocked) {
v2.desc.text = meds[v3].desc;
} else {
v2.desc.text = 'IT\'S A SECRET TO EVERBODY!';
}
v2.pts.text = v7;
++v3;
if (meds[v3] == undefined) {
v2._visible = false;
}
++v4;
}
}
if (_root.showmedals) {
but_on._visible = true;
but_off._visible = false;
} else {
but_on._visible = false;
but_off._visible = true;
}
but_on.onPress = function () {
this._visible = false;
but_off._visible = true;
_root.showmedals = false;
};
but_off.onPress = function () {
this._visible = false;
but_on._visible = true;
_root.showmedals = true;
};
var dax = 36;
var day = 62;
var S = 83;
var L = 37;
var R = 39;
var sup = false;
var rup = false;
var lup = false;
var meds = new Array();
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
var total = 0;
var max = 0;
but_back.onPress = function () {
goBack();
};
rbut.onPress = function () {
goUp();
};
lbut.onPress = function () {
goDown();
};
var secs = new Array('Bloodsport', 'Jason Lives', 'No Filming', 'Surf\'s Up', 'Duck Hunted', 'Friendly Foes', 'Headbanger', 'Luckdragon', 'Sneaky', 'Thanks Doc', 'Another Castle', 'Double Trouble', 'Fire Bad!', 'Kill the Messenger', 'Private Party', 'Thriller');
var f = 0;
while (f <= (com.newgrounds.API.__get__medals()).length) {
secr = 0;
if ((com.newgrounds.API.__get__medals())[f].secret) {
secr = 1;
}
if ((com.newgrounds.API.__get__medals())[f].unlocked) {
total += (com.newgrounds.API.__get__medals())[f].value;
}
if ((com.newgrounds.API.__get__medals())[f].value != undefined) {
max += (com.newgrounds.API.__get__medals())[f].value;
}
meds.push({'nam': (com.newgrounds.API.__get__medals())[f].name, 'val': (com.newgrounds.API.__get__medals())[f].value, 'unlocked': (com.newgrounds.API.__get__medals())[f].unlocked, 'desc': (com.newgrounds.API.__get__medals())[f].description, 'sec': secr});
++f;
}
meds.sortOn('desc');
tots.text = total + '/' + max;
danum = 0;
changePage(danum);
this.onEnterFrame = function () {
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (Key.isDown(R) && rup) {
rup = false;
goUp();
}
if (Key.isDown(L) && lup) {
lup = false;
goDown();
}
if (!Key.isDown(S)) {
sup = true;
}
if (Key.isDown(S) && sup) {
sup = false;
goBack();
}
};
}
}
// unknown tag 88 length 84
movieClip 3443 unlockblock3 {
frame 1 {
stop();
}
}
movieClip 3448 unlockblock2 {
frame 1 {
stop();
}
}
movieClip 3453 unlockblock0 {
frame 1 {
stop();
}
}
movieClip 3454 {
}
movieClip 3457 {
frame 13 {
stop();
}
}
movieClip 3458 unlocklist {
frame 1 {
function goBack() {
_root.optList();
this.unloadMovie();
this.removeMovieClip();
}
function goUp() {
++cur;
if (cur >= len) {
cur = 0;
}
updateSel(cur);
}
function goDown() {
--cur;
if (cur < 0) {
cur = len - 1;
}
updateSel(cur);
}
function updateSel(num) {
var v3 = 0;
while (v3 < len) {
var v4 = this['u' + v3];
v4._visible = false;
++v3;
}
var v6 = this['u' + num];
v6._visible = true;
if (!_root.lockies[num]) {
locky._visible = false;
bod.text = stuffs[num].bb;
v6.gotoAndStop(2);
} else {
bod.text = stuffs[num].alt;
locky._visible = true;
locky.gotoAndPlay(1);
v6.gotoAndStop(1);
}
tit.text = stuffs[num].t.toUpperCase();
}
function runSel(num) {
bad = false;
if (num == 0) {
if (!_root.lockies[0]) {
stopAllSounds();
_root.gotoAndStop('2pgame');
this.unloadMovie();
this.removeMovieClip();
} else {
bad = true;
}
}
if (num == 1) {
if (!_root.lockies[1]) {
stopAllSounds();
_root.gotoending = true;
_root.gotoAndStop('lev8');
this.unloadMovie();
this.removeMovieClip();
} else {
bad = true;
}
}
if (num == 2) {
if (!_root.lockies[2]) {
stopAllSounds();
_root.gotoAndStop('falkor');
this.unloadMovie();
this.removeMovieClip();
} else {
bad = true;
}
}
if (num == 3) {
if (!_root.lockies[3]) {
com.newgrounds.API.loadCustomLink('aboboster');
} else {
bad = true;
}
}
if (bad) {
}
}
clicker.onPress = function () {
runSel(cur);
};
but_back.onPress = function () {
goBack();
};
rbut.onPress = function () {
goUp();
};
lbut.onPress = function () {
goDown();
};
var stuffs = new Array();
var j = new Array();
j.t = 'Battle Mode';
j.bb = 'Face-off against a friend in this 2-player battle to the death! (Note: This is a semi-buggy build of a bonus game that never made the cut for the full game.)';
j.alt = 'Beat the game to unlock!';
stuffs.push(j);
var j = new Array();
j.t = 'The Ending';
j.bb = 'Yeah, we weren\'t satisfied with watching the ending just once either. Now you can watch the most incredible ending ever as many times as you like!';
j.alt = 'Beat the game to unlock!';
stuffs.push(j);
var j = new Array();
j.t = 'Luck Dragon Lunacy';
j.bb = 'Ride your faithful steed through the eternal clouds in this bonus game. Get a high enough score to unlock something special!';
j.alt = 'Beat the game to unlock!';
stuffs.push(j);
var j = new Array();
j.t = 'Aboboster';
j.bb = 'Download this amazing high-resolution poster crammed with the characters from Abobo\'s Big Adventure! (Press \'A\' to open the link in a new window)';
j.alt = 'Get enough points in Luck Dragon Lunacy to unlock!';
stuffs.push(j);
var A = 65;
var S = 83;
var L = 37;
var R = 39;
var cur = 0;
len = 4;
updateSel(0);
this.onEnterFrame = function () {
if (!Key.isDown(A)) {
aup = true;
}
if (Key.isDown(A) && aup) {
aup = false;
runSel(cur);
}
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (Key.isDown(R) && rup) {
rup = false;
goUp();
}
if (Key.isDown(L) && lup) {
lup = false;
goDown();
}
if (!Key.isDown(S)) {
sup = true;
}
if (Key.isDown(S) && sup) {
sup = false;
goBack();
}
};
}
}
movieClip 3459 {
}
movieClip 3462 {
}
movieClip 3463 {
}
movieClip 3468 achblock {
}
movieClip 3474 {
}
movieClip 3475 {
}
movieClip 3479 {
}
movieClip 3480 {
}
movieClip 3484 {
}
movieClip 3485 {
}
movieClip 3502 {
}
movieClip 3503 {
}
movieClip 3504 {
}
movieClip 3505 options {
frame 1 {
function changeSel(num) {
var v4 = g.pointer0;
var v5 = g.pointer1;
var v1 = 0;
while (v1 < 3) {
var v2 = g['p' + v1];
v2.gotoAndStop(1);
++v1;
}
var v3 = g['p' + num];
v3.gotoAndStop(2);
v4._y = v3._y + 2.5;
v5._y = v4._y;
v4._x = v3._x - 2;
v5._x = v3._x + v3._width + 16;
cur = num;
}
function goUp() {
--cur;
if (cur < 0) {
cur = 2;
}
changeSel(cur);
}
function goDown() {
++cur;
if (cur >= 3) {
cur = 0;
}
changeSel(cur);
}
function goBack() {
_root.arcadecv = 0;
_root.nocount = false;
_root.mainmenu.guts.initMe();
this.unloadMovie();
this.removeMovieClip();
}
function runSel(num) {
if (num == 0) {
_root.achList();
}
if (num == 1) {
_root.unlockList();
}
if (num == 2) {
_root.confirmClear();
}
}
var S = 83;
var D = 40;
var U = 38;
var A = 65;
var cur = 0;
var g = this.guts;
changeSel(cur);
but_back.onPress = function () {
goBack();
};
var j = 0;
while (j < 3) {
var gar = g['p' + j];
gar.id = j;
gar.onRollOver = function () {
changeSel(this.id);
};
gar.onPress = function () {
runSel(this.id);
};
++j;
}
this.onEnterFrame = function () {
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(U)) {
uup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (Key.isDown(D) && dup) {
dup = false;
goDown();
}
if (Key.isDown(U) && uup) {
uup = false;
goUp();
}
if (!Key.isDown(S)) {
sup = true;
}
if (Key.isDown(S) && sup) {
sup = false;
goBack();
}
if (Key.isDown(A) && aup) {
aup = false;
runSel(cur);
}
};
}
}
movieClip 3516 confirmclear {
frame 1 {
function goBack() {
_root.optList();
this.unloadMovie();
this.removeMovieClip();
}
var S = 83;
but_back.onPress = function () {
goBack();
};
but_clear.onPress = function () {
_root.attachMovie('dataclearedpop', 'popper', 83912);
com.newgrounds.API.clearLocalMedals();
_root.clearSavedData();
goBack();
};
this.onEnterFrame = function () {
if (!Key.isDown(S)) {
sup = true;
}
if (Key.isDown(S) && sup) {
sup = false;
goBack();
}
};
}
}
movieClip 3517 {
}
movieClip 3525 {
}
movieClip 3526 dataclearedpop {
frame 31 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 3533 {
}
movieClip 3535 {
}
movieClip 3536 {
}
movieClip 3537 {
}
movieClip 3538 {
}
movieClip 3539 {
}
movieClip 3540 {
}
movieClip 3542 {
}
movieClip 3543 {
}
movieClip 3544 {
}
movieClip 3564 {
}
movieClip 3577 {
frame 159 {
_parent.gotoAndStop(2);
}
frame 210 {
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 3584 mm_smokewrap2 {
frame 6 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 3585 mm_smokewrap {
frame 6 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 3590 {
}
movieClip 3594 {
}
movieClip 3596 {
}
movieClip 3597 {
frame 1 {
hitter._visible = false;
soundPlayed = false;
this.onEnterFrame = function () {
if (!_parent._parent.MMPause && !_parent._parent.MMtransition) {
this._x += this.dir * 15;
if (this.dir == 1) {
if (this._x > this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x > this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
} else {
if (this._x < this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x < this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
}
}
};
}
}
movieClip 3600 {
frame 1 {
hitter._visible = false;
soundPlayed = false;
this.onEnterFrame = function () {
if (!_parent._parent.MMPause && !_parent._parent.MMtransition) {
this._x += this.dir * 15;
if (this.dir == 1) {
if (this._x > this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x > this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
} else {
if (this._x < this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x < this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
}
}
};
}
}
movieClip 3601 {
frame 1 {
hitter._visible = false;
soundPlayed = false;
this.onEnterFrame = function () {
if (!_parent._parent.MMPause && !_parent._parent.MMtransition) {
this._x += this.dir * 15;
if (this.dir == 1) {
if (this._x > this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x > this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
} else {
if (this._x < this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x < this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
}
}
};
}
}
movieClip 3602 {
frame 1 {
hitter._visible = false;
soundPlayed = false;
this.onEnterFrame = function () {
if (!_parent._parent.MMPause && !_parent._parent.MMtransition) {
this._x += this.dir * 15;
if (this.dir == 1) {
if (this._x > this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x > this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
} else {
if (this._x < this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x < this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
}
}
};
}
}
movieClip 3605 {
}
movieClip 3610 {
}
movieClip 3612 {
}
movieClip 3614 {
}
movieClip 3615 {
frame 134 {
stop();
}
}
movieClip 3618 {
}
movieClip 3619 {
frame 69 {
stop();
}
}
movieClip 3620 {
frame 92 {
stop();
}
}
movieClip 3621 {
frame 33 {
stop();
}
}
movieClip 3622 lvl6_bg9 {
instance beam2 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -14;
soundpoint = 190;
}
}
instance beam3 of movieClip 3600 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -14;
soundpoint = -290;
}
}
instance beam5 of movieClip 3601 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -14;
soundpoint = -290;
}
}
instance beam8 of movieClip 3602 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -14;
soundpoint = 190;
}
}
}
movieClip 3626 {
}
movieClip 3629 {
}
movieClip 3630 {
frame 74 {
stop();
}
}
movieClip 3632 {
frame 66 {
stop();
}
}
movieClip 3633 {
frame 117 {
stop();
}
}
movieClip 3634 {
frame 90 {
stop();
}
}
movieClip 3635 {
frame 49 {
stop();
}
}
movieClip 3639 {
frame 1 {
hitter._visible = false;
soundPlayed = false;
this.onEnterFrame = function () {
if (!_parent._parent.MMPause && !_parent._parent.MMtransition) {
this._x += this.dir * 15;
if (this.dir == 1) {
if (this._x > this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x > this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
} else {
if (this._x < this.stoppoint) {
this._x = this.stoppoint;
}
if (this._x < this.soundpoint && !soundPlayed) {
soundPlayed = true;
_global.megamanWrapper.MMsfx.laserBeamSound.start(0, 0);
}
}
}
};
}
}
movieClip 3640 lvl6_bg8 {
instance beam2 of movieClip 3639 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -3;
soundpoint = 180;
}
}
instance beam4 of movieClip 3601 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -3;
soundpoint = 180;
}
}
instance beam5 of movieClip 3600 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -14;
soundpoint = -280;
}
}
instance beam10 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -16;
soundpoint = 190;
}
}
instance beam7 of movieClip 3602 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -14;
soundpoint = -280;
}
}
}
movieClip 3643 {
}
movieClip 3646 {
}
movieClip 3648 {
}
movieClip 3651 {
}
movieClip 3656 {
frame 4 {
stop();
}
}
movieClip 3657 {
frame 5 {
_parent.gotoAndStop('rest');
}
}
movieClip 3658 {
}
movieClip 3659 {
frame 7 {
_parent.gotoAndStop('rest');
}
}
movieClip 3668 {
frame 9 {
_parent.gotoAndStop('restbub');
}
}
movieClip 3673 {
frame 1 {
stop();
}
}
movieClip 3674 lvl6_baddie2 {
}
movieClip 3683 {
frame 5 {
stop();
}
}
movieClip 3684 {
}
movieClip 3685 {
frame 18 {
stop();
_parent.gotoAndStop('restbub');
}
}
movieClip 3686 {
frame 3 {
stop();
}
}
movieClip 3687 {
frame 1 {
stop();
}
}
movieClip 3688 {
}
movieClip 3693 {
}
movieClip 3697 {
frame 7 {
stop();
_parent.gotoAndStop('walk');
}
}
movieClip 3698 {
}
movieClip 3699 {
frame 7 {
_parent.gotoAndStop('walk');
}
}
movieClip 3700 {
frame 7 {
stop();
}
}
movieClip 3701 {
frame 1 {
stop();
}
}
movieClip 3702 {
}
movieClip 3707 {
frame 5 {
stop();
}
}
movieClip 3710 {
}
movieClip 3711 {
}
movieClip 3730 {
}
movieClip 3734 {
}
movieClip 3738 {
}
movieClip 3739 {
}
movieClip 3744 {
}
movieClip 3745 {
frame 1 {
stop();
}
}
movieClip 3750 {
}
movieClip 3751 {
frame 1 {
stop();
}
}
movieClip 3756 {
}
movieClip 3757 {
frame 1 {
stop();
}
}
movieClip 3758 {
}
movieClip 3759 {
frame 5 {
stop();
}
}
movieClip 3760 {
frame 1 {
stop();
}
frame 1 {
_parent.attacking = false;
}
frame 2 {
_parent.attacking = true;
_parent.shotFired = true;
_global.megamanWrapper.MMsfx.penguinCrankSound.start(0, 0);
}
frame 17 {
myRand = random(3) + 1;
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
_global.megamanWrapper.MMsfx.virusDropSound.start(0, 0);
}
frame 25 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 29 {
hitSomething = false;
_global.megamanWrapper.MMsfx.virusFiresSound.start(0, 0);
}
frame 29 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 67 {
_parent.attacking = false;
_parent.shotFired = false;
if (_parent._parent._parent.MME_7_14.active) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
}
frame 80 {
_parent.attacking = false;
_parent.shotFired = false;
gotoAndPlay(2);
}
frame 82 {
_global.megamanWrapper.MMsfx.bossExplodeSound2.start(0, 0);
}
frame 102 {
stop();
}
frame 103 {
stop();
}
frame 104 {
stop();
}
}
movieClip 3761 {
}
movieClip 3771 {
}
movieClip 3782 {
frame 7 {
stop();
}
}
movieClip 3783 {
}
movieClip 3784 {
frame 7 {
stop();
}
}
movieClip 3785 {
frame 1 {
stop();
}
frame 6 {
_global.megamanWrapper.MMsfx.dinoFireSound.start(0, 0);
}
frame 16 {
gotoAndPlay('attack');
}
frame 17 {
_global.megamanWrapper.MMsfx.dinoDeadSound.start(0, 0);
}
}
movieClip 3786 {
}
movieClip 3787 {
frame 1 {
stop();
}
frame 1 {
_parent.attacking = false;
}
frame 2 {
_parent.attacking = true;
_parent.shotFired = true;
_global.megamanWrapper.MMsfx.penguinCrankSound.start(0, 0);
}
frame 17 {
myRand = random(3) + 1;
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
_global.megamanWrapper.MMsfx.virusDropSound.start(0, 0);
}
frame 25 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 29 {
hitSomething = false;
_global.megamanWrapper.MMsfx.virusFiresSound.start(0, 0);
}
frame 29 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 81 {
_parent.attacking = false;
_parent.shotFired = false;
if (_parent._parent._parent.MME_7_7.active) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
}
frame 82 {
_global.megamanWrapper.MMsfx.bossExplodeSound2.start(0, 0);
}
frame 102 {
stop();
}
frame 103 {
stop();
}
frame 104 {
stop();
}
}
movieClip 3788 {
}
movieClip 3793 {
}
movieClip 3794 {
frame 1 {
stop();
}
frame 31 {
stop();
}
}
movieClip 3795 {
}
movieClip 3800 {
}
movieClip 3801 {
frame 131 {
_parent._parent._parent.MME_7_9.active = false;
}
frame 133 {
stop();
}
frame 136 {
stop();
}
frame 138 {
stop();
}
}
movieClip 3802 {
}
movieClip 3803 {
frame 131 {
_parent._parent._parent.MME_7_10.active = false;
}
frame 133 {
stop();
}
frame 136 {
stop();
}
frame 138 {
stop();
}
}
movieClip 3804 {
}
movieClip 3805 {
frame 131 {
_parent._parent._parent.MME_7_11.active = false;
}
frame 133 {
stop();
}
frame 136 {
stop();
}
frame 138 {
stop();
}
}
movieClip 3806 {
}
movieClip 3807 {
frame 131 {
_parent._parent._parent.MME_7_13.active = false;
}
frame 133 {
stop();
}
frame 136 {
stop();
}
frame 138 {
stop();
}
}
movieClip 3808 {
}
movieClip 3813 {
}
movieClip 3818 {
}
movieClip 3819 {
}
movieClip 3820 {
frame 9 {
_parent.gotoAndStop(1);
}
}
movieClip 3821 {
frame 7 {
stop();
}
}
movieClip 3822 {
frame 1 {
stop();
}
}
movieClip 3823 {
}
movieClip 3824 lvl6_bg7 {
}
movieClip 3828 {
}
movieClip 3829 lvl6_bg6 {
}
movieClip 3833 {
}
movieClip 3838 {
frame 76 {
stop();
}
}
movieClip 3839 {
frame 66 {
stop();
}
}
movieClip 3845 {
}
movieClip 3846 {
frame 5 {
stop();
}
}
movieClip 3847 {
frame 1 {
stop();
}
}
movieClip 3848 {
}
movieClip 3849 lvl6_bg5 {
instance beam1 of movieClip 3597 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
instance beam2 of movieClip 3601 {
onClipEvent (load) {
dir = -1;
this.stoppoint = 156;
soundpoint = 190;
}
}
instance beam4 of movieClip 3600 {
onClipEvent (load) {
dir = -1;
this.stoppoint = 92;
}
}
instance beam3 of movieClip 3639 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -198;
soundpoint = -290;
}
}
}
movieClip 3853 {
}
movieClip 3854 {
frame 2 {
stop();
}
}
movieClip 3855 {
frame 61 {
stop();
}
}
movieClip 3856 {
frame 66 {
stop();
}
}
movieClip 3858 lvl6_bg4 {
instance beam1 of movieClip 3600 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
instance beam2 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam3 of movieClip 3602 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
}
movieClip 3875 {
frame 3 {
_global.megamanWrapper.MMsfx.springySound.start(0, 0);
}
frame 15 {
_global.megamanWrapper.MMsfx.springySound.start(0, 0);
}
}
movieClip 3876 {
}
movieClip 3877 {
frame 1 {
stop();
}
}
movieClip 3878 {
}
movieClip 3879 {
frame 30 {
stop();
}
}
movieClip 3880 {
frame 54 {
stop();
}
}
movieClip 3882 {
}
movieClip 3884 lvl6_bg3 {
instance beam1 of movieClip 3601 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
instance beam2 of movieClip 3600 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
}
movieClip 3888 {
}
movieClip 3889 lvl6_bg2 {
}
movieClip 3897 {
frame 1 {
function MMSlideBossDoor() {
_parent._parent.MMheroVar.yspeed = 0;
if (_parent._parent._parent._x > -(739 * screenScale)) {
_parent._parent._parent._x -= 12 * screenScale;
if (_parent._parent.MMheroVar.falling) {
_parent._parent.setHeroAnim('jump');
} else {
_parent._parent.setHeroAnim('walk');
}
_parent._parent.MMheroVar.xpos += 3;
_parent._parent.MMheroVar.clip._x = _parent._parent.MMheroVar.xpos;
_parent._parent._parent.healthBar._x = _parent._parent._parent._x * -1 + 16 * screenScale;
_parent._parent._parent.coverer._x = -_parent._parent._parent._x - 347;
} else {
_parent._parent._parent._x = -(768 * screenScale);
_parent._parent.setHeroAnim('rest');
_parent._parent.MMPause = false;
_parent._parent._parent.healthBar._x = _parent._parent._parent._x * -1 + 16 * screenScale;
_parent._parent._parent.coverer._x = -_parent._parent._parent._x - 347;
_parent.aw.gotoAndStop(2);
}
}
stop();
screenScale = _parent._parent.screenScale2;
i = 0;
while (i < _parent._parent.MMEnemiesInRoom[15].length) {
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].unloadMovie();
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].removeMovieClip();
++i;
}
}
frame 2 {
_global.megamanWrapper.MMsfx.doorSound2.start(0, 0);
_parent._parent.MMbossTransition = true;
_parent._parent._parent.MMbossPauseBlock = true;
if (_parent._parent.MME_15_4.currentAction == 'attack') {
_parent._parent.MME_15_4.clip.guts.gotoAndStop('rest');
_parent._parent.MME_15_4.currentAction = 'rest';
}
}
frame 3 {
_parent._parent._parent.healthBarBoss._x = -19;
_parent._parent.MMRemovePellet();
}
frame 19 {
var d = this._parent._parent.MMheroVar.clip;
ceil = 57;
if (d._y < ceil) {
d._y = ceil;
}
}
frame 19 {
MMSlideBossDoor();
_parent._parent.MMRemovePellet();
}
frame 20 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 20 {
MMSlideBossDoor();
}
frame 21 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 21 {
MMSlideBossDoor();
}
frame 22 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 22 {
MMSlideBossDoor();
}
frame 23 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 23 {
MMSlideBossDoor();
}
frame 24 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 24 {
MMSlideBossDoor();
}
frame 25 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 25 {
MMSlideBossDoor();
}
frame 26 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 26 {
MMSlideBossDoor();
}
frame 27 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 27 {
MMSlideBossDoor();
}
frame 28 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 28 {
MMSlideBossDoor();
}
frame 29 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 29 {
MMSlideBossDoor();
}
frame 30 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 30 {
MMSlideBossDoor();
}
frame 31 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 31 {
MMSlideBossDoor();
}
frame 32 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 32 {
MMSlideBossDoor();
}
frame 33 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 33 {
MMSlideBossDoor();
}
frame 34 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 34 {
MMSlideBossDoor();
}
frame 35 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 35 {
MMSlideBossDoor();
}
frame 36 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 36 {
MMSlideBossDoor();
}
frame 37 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 37 {
MMSlideBossDoor();
_global.megamanWrapper.MMsfx.doorSound2.start(0, 0);
}
frame 38 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 38 {
MMSlideBossDoor();
}
frame 39 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 39 {
MMSlideBossDoor();
}
frame 40 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 40 {
MMSlideBossDoor();
}
frame 41 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 41 {
MMSlideBossDoor();
}
frame 42 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 42 {
MMSlideBossDoor();
}
frame 43 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 43 {
MMSlideBossDoor();
}
frame 44 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 44 {
MMSlideBossDoor();
}
frame 45 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 45 {
MMSlideBossDoor();
}
frame 46 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 46 {
MMSlideBossDoor();
}
frame 47 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 47 {
MMSlideBossDoor();
}
frame 48 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 48 {
MMSlideBossDoor();
}
frame 49 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 49 {
MMSlideBossDoor();
}
frame 50 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 50 {
MMSlideBossDoor();
}
frame 51 {
d._x += 2;
}
frame 51 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 51 {
MMSlideBossDoor();
}
frame 52 {
d._x += 2;
}
frame 52 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 52 {
MMSlideBossDoor();
}
frame 53 {
d._x += 2;
}
frame 53 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 53 {
MMSlideBossDoor();
}
frame 54 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 54 {
MMSlideBossDoor();
}
frame 55 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 55 {
MMSlideBossDoor();
}
frame 56 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 56 {
MMSlideBossDoor();
}
frame 57 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 58 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 58 {
i = 0;
while (i < _parent._parent.MMEnemiesInRoom[15].length) {
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].unloadMovie();
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].removeMovieClip();
++i;
}
}
frame 59 {
if (d._y < ceil) {
d._y = ceil;
}
}
frame 59 {
_parent._parent.MMBossDoor2 = true;
_parent._parent.MMbossTransition = false;
_parent._parent.MMPause = false;
_parent._parent._parent.MMbossPauseBlock = false;
var tar = this._parent._parent;
tar.MME_15_4.clip.unloadMovie();
tar.MME_15_4.clip.removeMovieClip();
i = 0;
while (i < _parent._parent.MMEnemiesInRoom[15].length) {
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].unloadMovie();
_parent._parent.MMcurrBG[_parent._parent[_parent._parent.MMEnemiesInRoom[15][i]].clipName].removeMovieClip();
++i;
}
}
}
movieClip 3898 {
frame 1 {
function MMSlideBossDoor() {
if (_parent._parent._parent._x > -(998 * screenScale)) {
_parent._parent.MMBossDoor2 = true;
_parent._parent.MMbossTransition = true;
_parent._parent._parent._x -= 12 * screenScale;
if (_parent._parent.MMheroVar.falling) {
_parent._parent.setHeroAnim('jump');
} else {
_parent._parent.setHeroAnim('walk');
}
_parent._parent.MMheroVar.xpos += 2.7;
_parent._parent.MMheroVar.clip._x = _parent._parent.MMheroVar.xpos;
_parent._parent._parent.healthBar._x = _parent._parent._parent._x * -1 + 16 * screenScale;
_parent._parent._parent.coverer._x = -_parent._parent._parent._x - 347;
} else {
_parent._parent._parent._x = -(1023 * screenScale);
_parent._parent._parent.setHeroAnim('rest');
_parent._parent.MMPause = false;
_parent._parent._parent.healthBar._x = _parent._parent._parent._x * -1 + 16 * screenScale;
_parent._parent._parent.coverer._x = -_parent._parent._parent._x - 347;
_parent.aw.gotoAndStop(3);
}
}
stop();
screenScale = _parent._parent.screenScale2;
}
frame 2 {
_parent._parent._parent.healthBarBoss._x = -19;
_global.megamanWrapper.MMsfx.doorSound2.start(0, 0);
_parent._parent.MMRemovePellet();
_parent._parent.MMbossTransition = true;
_parent._parent._parent.MMbossPauseBlock = true;
}
frame 19 {
MMSlideBossDoor();
_parent._parent.MMBossInst = true;
}
frame 20 {
MMSlideBossDoor();
}
frame 21 {
MMSlideBossDoor();
}
frame 22 {
MMSlideBossDoor();
}
frame 23 {
MMSlideBossDoor();
}
frame 24 {
MMSlideBossDoor();
}
frame 25 {
MMSlideBossDoor();
}
frame 26 {
MMSlideBossDoor();
}
frame 27 {
MMSlideBossDoor();
}
frame 28 {
MMSlideBossDoor();
}
frame 29 {
MMSlideBossDoor();
}
frame 30 {
MMSlideBossDoor();
}
frame 31 {
MMSlideBossDoor();
}
frame 32 {
MMSlideBossDoor();
}
frame 33 {
MMSlideBossDoor();
}
frame 34 {
MMSlideBossDoor();
}
frame 35 {
MMSlideBossDoor();
}
frame 36 {
MMSlideBossDoor();
}
frame 37 {
MMSlideBossDoor();
_global.megamanWrapper.MMsfx.doorSound2.start(0, 0);
}
frame 38 {
MMSlideBossDoor();
}
frame 39 {
MMSlideBossDoor();
}
frame 40 {
MMSlideBossDoor();
}
frame 41 {
MMSlideBossDoor();
}
frame 42 {
MMSlideBossDoor();
}
frame 43 {
MMSlideBossDoor();
}
frame 44 {
MMSlideBossDoor();
}
frame 63 {
_parent._parent.MMbossTransition = false;
_parent._parent.MMPause = false;
_parent._parent._parent.MMbossPauseBlock = false;
_parent._parent.MMStartBoss();
}
}
movieClip 3902 {
frame 1 {
stop();
}
}
movieClip 3903 {
frame 1 {
stop();
}
frame 1 {
_parent.attacking = false;
}
frame 2 {
_parent.attacking = true;
_parent.shotFired = true;
_global.megamanWrapper.MMsfx.penguinCrankSound.start(0, 0);
}
frame 17 {
myRand = random(3) + 1;
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
_global.megamanWrapper.MMsfx.virusDropSound.start(0, 0);
}
frame 25 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 29 {
hitSomething = false;
_global.megamanWrapper.MMsfx.virusFiresSound.start(0, 0);
}
frame 29 {
if (myRand == 1) {
virus.gotoAndStop('blue');
} else {
if (myRand == 2) {
virus.gotoAndStop('red');
} else {
if (myRand == 3) {
virus.gotoAndStop('yellow');
}
}
}
}
frame 71 {
_parent.attacking = false;
_parent.shotFired = false;
if (_parent._parent._parent.MME_15_8.active) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
}
frame 88 {
_parent.attacking = false;
_parent.shotFired = false;
gotoAndPlay(2);
}
frame 89 {
_global.megamanWrapper.MMsfx.bossExplodeSound2.start(0, 0);
}
frame 109 {
stop();
}
frame 110 {
stop();
}
frame 111 {
stop();
}
}
movieClip 3904 {
}
movieClip 3907 {
}
movieClip 3912 {
}
movieClip 3914 {
frame 4 {
_global.megamanWrapper.MMsfx.MBShotSound.start(0, 0);
}
frame 7 {
_parent._parent._parent._parent.createBullet2(_parent._parent._parent._parent.MME_15_9);
}
frame 10 {
_parent.gotoAndStop('drive');
}
}
movieClip 3919 {
frame 5 {
_global.megamanWrapper.MMsfx.MBChopperSound.start(0, 0);
}
frame 20 {
gotoAndPlay('loop');
}
}
movieClip 3920 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 3921 {
}
movieClip 3932 {
}
movieClip 3933 {
frame 1 {
stop();
}
}
movieClip 3934 {
frame 1 {
stop();
}
}
movieClip 3937 {
}
movieClip 3939 {
}
movieClip 3940 lvl6_bg15 {
frame 1 {
this.scrollable = true;
this.wid = 1023;
}
}
movieClip 3944 {
}
movieClip 3946 {
frame 38 {
stop();
}
}
movieClip 3947 {
frame 112 {
stop();
}
}
movieClip 3948 {
frame 123 {
stop();
}
}
movieClip 3949 lvl6_bg14 {
instance beam2 of movieClip 3602 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam1 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam3 of movieClip 3601 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
instance beam4 of movieClip 3600 {
onClipEvent (load) {
dir = -1;
this.stoppoint = 28;
soundpoint = 190;
}
}
}
movieClip 3953 {
}
movieClip 3955 {
frame 80 {
stop();
}
}
movieClip 3956 {
frame 78 {
stop();
}
}
movieClip 3957 {
frame 93 {
stop();
}
}
movieClip 3958 lvl6_bg13 {
instance beam2 of movieClip 3602 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam4 of movieClip 3600 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam1 of movieClip 3601 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam3 of movieClip 3639 {
onClipEvent (load) {
dir = -1;
this.stoppoint = 127;
soundpoint = 190;
}
}
}
movieClip 3962 {
}
movieClip 3963 {
frame 1 {
stop();
}
}
movieClip 3965 {
}
movieClip 3966 {
frame 69 {
stop();
}
}
movieClip 3968 lvl6_bg12 {
instance beam1 of movieClip 3602 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam2 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
}
movieClip 3972 {
}
movieClip 3974 {
frame 132 {
stop();
}
}
movieClip 3975 {
frame 101 {
stop();
}
}
movieClip 3976 {
frame 73 {
stop();
}
}
movieClip 3977 {
frame 80 {
stop();
}
}
movieClip 3978 lvl6_bg11 {
instance beam1 of movieClip 3600 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam2 of movieClip 3639 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam3 of movieClip 3601 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
instance beam5 of movieClip 3597 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
instance beam4 of movieClip 3602 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -5;
soundpoint = -290;
}
}
}
movieClip 3982 {
}
movieClip 3984 {
frame 107 {
stop();
}
}
movieClip 3985 {
frame 47 {
stop();
}
}
movieClip 3986 lvl6_bg10 {
instance beam2 of movieClip 3601 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -14;
soundpoint = 190;
}
}
instance beam3 of movieClip 3600 {
onClipEvent (load) {
dir = 1;
this.stoppoint = -14;
soundpoint = -290;
}
}
instance beam5 of movieClip 3602 {
onClipEvent (load) {
dir = -1;
this.stoppoint = -5;
soundpoint = 190;
}
}
}
movieClip 3990 {
}
movieClip 3991 lvl6_bg1 {
frame 1 {
this.aw._visible = false;
}
}
movieClip 3997 {
}
movieClip 3999 {
}
movieClip 4000 lvl6_bg0 {
frame 1 {
this.aw._alpha = 0;
}
}
movieClip 4009 mmsbullet {
}
movieClip 4014 MMhealth {
}
movieClip 4016 {
}
movieClip 4019 con_pholder {
}
movieClip 4022 {
}
movieClip 4023 lvl6_pellet {
}
movieClip 4034 lvl6_bubble {
frame 9 {
stop();
}
}
movieClip 4042 {
frame 1 {
stop();
}
}
movieClip 4103 {
frame 1 {
stop();
}
}
movieClip 4104 {
frame 1 {
stop();
}
}
movieClip 4105 {
frame 1 {
stop();
}
frame 2 {
_parent.MMheroVar.takeDamage = false;
}
frame 3 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 7 {
_parent.MMheroVar.clip._alpha = 0;
}
frame 8 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 12 {
_parent.MMheroVar.clip._alpha = 0;
}
frame 13 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 17 {
_parent.MMheroVar.clip._alpha = 0;
}
frame 18 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 23 {
_parent.MMheroVar.clip._alpha = 0;
}
frame 24 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 29 {
_parent.MMheroVar.clip._alpha = 0;
}
frame 30 {
_parent.MMheroVar.clip._alpha = 100;
}
frame 39 {
_parent._parent.MMheroVar.damaged = false;
_parent.MMheroVar.takeDamage = true;
}
}
movieClip 4108 {
}
movieClip 4109 {
}
movieClip 4116 {
}
movieClip 4131 {
}
movieClip 4132 {
frame 31 {
stop();
}
}
movieClip 4133 {
frame 52 {
stop();
}
}
movieClip 4134 {
frame 1 {
_global.megamanWrapper.MMmusic.music.stop();
_global.megamanWrapper.MMsfx.deathSound.start(0, 0);
}
frame 85 {
stop();
_parent._parent._parent.MMDeathRestart();
}
}
movieClip 4141 {
}
movieClip 4146 {
}
movieClip 4151 {
frame 1 {
_parent._parent._parent.readyPlay.play();
}
frame 3 {
if (_parent._parent._parent.debugMode) {
_parent._parent._parent.MMPause = false;
_parent._parent._parent.MMheroVar.alive = true;
_parent._parent._parent.MMUpdateHealthBar();
}
}
frame 77 {
_global.megamanWrapper.MMsfx.landfirstSound.start(0, 0);
}
frame 86 {
_parent._parent._parent.MMPause = false;
_parent._parent._parent.MMheroVar.alive = true;
_parent._parent._parent.readyAnimationDone = true;
_parent._parent._parent.MMUpdateHealthBar();
}
}
movieClip 4154 {
}
movieClip 4155 {
frame 8 {
_parent._parent._parent.MMheroVar.damaged = false;
}
}
movieClip 4178 {
}
movieClip 4179 {
}
movieClip 4192 {
}
movieClip 4195 {
}
movieClip 4198 {
}
movieClip 4201 {
}
movieClip 4204 {
}
movieClip 4225 {
frame 1 {
_parent._parent._parent.bossRageReset = true;
_parent._parent._parent.rageFace.visible = true;
_parent._parent._parent.rageFace.swapDepths(_parent._parent._parent.getNextHighestDepth());
_parent._parent._parent.rageFace.gotoAndPlay(2);
}
frame 46 {
_global.megamanWrapper.MMsfx.rageSound.start(0, 0);
}
frame 146 {
_parent._parent._parent.MMRageFlash();
}
frame 186 {
_parent._parent._parent.MMRage = 0;
_parent._parent._parent.MMUpdateRageBar();
}
frame 198 {
_parent._parent._parent.endRageMusic();
}
frame 215 {
_parent._parent._parent.MMRagePause = false;
_parent._parent._parent.bossRageReset = true;
_parent._parent._parent.pausedRageClipsFuncPlay();
stop();
}
}
movieClip 4226 {
frame 1 {
stop();
}
}
movieClip 4227 {
frame 1 {
stop();
}
}
movieClip 4228 {
frame 69 {
stop();
}
}
movieClip 4230 {
}
movieClip 4234 {
}
movieClip 4247 {
}
movieClip 4248 {
}
movieClip 4251 {
}
movieClip 4252 {
}
movieClip 4255 {
}
movieClip 4256 {
frame 1 {
stop();
}
}
movieClip 4270 {
}
movieClip 4271 {
}
movieClip 4274 {
frame 15 {
_global.megamanWrapper.MMsfx.gatlinChargeSound.start(0, 0);
}
frame 19 {
_global.megamanWrapper.MMsfx.bossGatlinSound.start(0, 0);
}
frame 63 {
_global.megamanWrapper.MMsfx.gatlinChargeSound.start(0, 0);
}
frame 68 {
_global.megamanWrapper.MMsfx.bossGatlinSound.start(0, 0);
}
}
movieClip 4279 {
}
movieClip 4290 {
}
movieClip 4305 {
}
movieClip 4306 {
}
movieClip 4315 {
}
movieClip 4354 {
frame 1 {
_parent._parent._parent.MMbossPauseBlock = true;
_global.megamanWrapper.MMmusic.music.stop();
_global.megamanWrapper.MMmusic.endBossIntroMusic.start(0, 0);
}
frame 42 {
_global.megamanWrapper.MMsfx.jumpLandSound.start(0, 0);
}
frame 99 {
_global.megamanWrapper.MMBossObject.filling = true;
_global.megamanWrapper.MMsfx.healthPickupSound.start(0, 6);
}
frame 153 {
_parent._parent._parent.MMbossPauseBlock = false;
_global.megamanWrapper.MMmusic.endBossMusic.start(0, 999999);
_parent._parent._parent.MMBossObject.alive = true;
_parent._parent._parent.MMBossObject.currentStatus = 'idle';
_parent.gotoAndStop('idle');
_parent._parent._parent.MMBossStartMove();
stop();
}
}
movieClip 4363 {
}
movieClip 4370 {
}
movieClip 4375 {
}
movieClip 4378 {
}
movieClip 4379 {
}
movieClip 4382 {
}
movieClip 4383 {
}
movieClip 4384 {
}
movieClip 4388 {
}
movieClip 4389 {
}
movieClip 4390 {
}
movieClip 4392 {
}
movieClip 4393 {
}
movieClip 4397 {
}
movieClip 4398 {
}
movieClip 4399 {
}
movieClip 4406 {
frame 19 {
stop();
}
}
movieClip 4407 {
}
movieClip 4408 {
}
movieClip 4409 {
}
movieClip 4416 {
frame 9 {
stop();
}
}
movieClip 4433 {
frame 1 {
_global.megamanWrapper.MMsfx.bossExplodeSound2.start(0, 0);
}
frame 19 {
_global.megamanWrapper.MMsfx.bossExplodeSound3.start(0, 0);
}
frame 41 {
_global.megamanWrapper.MMsfx.bossExplodeSound1.start(0, 0);
}
frame 60 {
_global.megamanWrapper.MMsfx.bossExplodeSound4.start(0, 0);
}
frame 136 {
stop();
_parent._parent._parent.MMBossFinished();
_global.megamanWrapper.endBossMusic.stop();
}
}
movieClip 4434 {
}
movieClip 4436 {
}
movieClip 4437 {
frame 27 {
stop();
}
}
movieClip 4440 {
}
movieClip 4447 {
}
movieClip 4450 {
}
movieClip 4451 {
}
movieClip 4452 {
frame 6 {
_global.megamanWrapper.MMsfx.bossDropSound.start(0, 0);
}
frame 36 {
_global.megamanWrapper.MMsfx.bossThrowSound.start(0, 0);
}
frame 77 {
_parent._parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent._parent.bossActionDone = true;
_parent._parent._parent.MMBossGoto('smallIdle');
_parent._parent._parent.smallBossCount = 0;
}
}
movieClip 4467 {
}
movieClip 4478 {
}
movieClip 4479 {
frame 1 {
_global.megamanWrapper.MMsfx.bossSmallGlitchSound.start(0, 0);
}
frame 38 {
_global.megamanWrapper.MMsfx.bossSmallHurtSound.start(0, 0);
}
frame 114 {
_parent._parent._parent.MMBossObject.currentStatus = 'idle';
_global.megamanWrapper.MMsfx.jumpLandSound.start(0, 0);
_parent._parent._parent.bossSmallDeadDone = true;
_parent._parent._parent.bossActionDone = true;
stop();
}
}
movieClip 4480 {
frame 8 {
_global.megamanWrapper.MMsfx.bossChangeSound.start(0, 0);
}
frame 20 {
_parent._parent._parent.MMBossObject.filling = true;
_global.megamanWrapper.MMsfx.healthPickupSound.start(0, 6);
}
frame 34 {
_parent._parent._parent.MMBossInst2 = false;
}
frame 46 {
_global.megamanWrapper.MMsfx.bossYellSound.start(0, 0);
}
frame 71 {
MMBossObject.small = false;
_parent._parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent._parent.MMBossStartMove();
_parent._parent._parent.MMBossTransition = false;
_parent.gotoAndStop('idle');
stop();
}
}
movieClip 4481 {
frame 1 {
stop();
}
frame 2 {
_parent._parent.MMBossAttackNow = 'launchhead';
}
frame 5 {
_global.megamanWrapper.MMsfx.bossHeadLaunchSound.start(0, 0);
}
frame 28 {
stop();
_parent._parent.MMBossObject.currentStatus = 'headwait';
if (_parent._parent.MMBossObject.clip._xscale == 100) {
_parent._parent.MMBossHeadClip._x = _parent._parent.MMBossObject.xPos;
_parent._parent.MMBossHeadClip._y = _parent._parent.MMBossObject.yPos - 84;
trace('face LEFT');
} else {
_parent._parent.MMBossHeadClip._x = _parent._parent.MMBossObject.xPos;
_parent._parent.MMBossHeadClip._y = _parent._parent.MMBossObject.yPos - 84;
}
_parent._parent.MMBossHeadClip._xscale = _parent._parent.MMBossObject.clip._xscale;
_parent._parent.MMBossHeadClip.gotoAndPlay(2);
}
frame 41 {
_parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent.MMBossObject.attackComplete = true;
_parent._parent.MMBossAttackNow = '';
_parent._parent.MMBossStartMove();
}
frame 43 {
_parent._parent.MMBossObject.currentStatus = 'idle';
stop();
}
frame 59 {
_parent._parent.MMBossObject.currentStatus = 'idle';
gotoAndStop('idle');
}
frame 60 {
_parent._parent.MMBossAttackNow = 'shoot';
}
frame 154 {
_parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent.MMBossObject.attackComplete = true;
_parent._parent.MMBossAttackNow = '';
gotoAndStop('idle');
_parent._parent.MMBossStartMove();
}
frame 155 {
_global.megamanWrapper.MMsfx.bossMeltSound.start(0, 0);
}
frame 165 {
_parent._parent.MMBossObject.currentStatus = 'puddle';
}
frame 176 {
stop();
}
frame 178 {
_global.megamanWrapper.MMsfx.bossUnMeltSound.start(0, 0);
}
frame 187 {
_parent._parent.MMBossObject.currentStatus = 'idle';
gotoAndStop('idle');
}
frame 188 {
shootSpikes = true;
}
frame 194 {
_global.megamanWrapper.MMsfx.drillFireSound.start(0, 0);
}
frame 203 {
_parent._parent.drillAttack.play();
_parent._parent.MMBossAttackNow = 'shootspikes';
if (_parent._parent.MMBossObject.clip._xscale > 0) {
_parent._parent.drillAttack._x = _parent._parent.MMDrillLeft;
} else {
_parent._parent.drillAttack._x = _parent._parent.MMDrillRight;
}
_parent._parent.drillAttack._xscale = _parent._parent.MMBossObject.clip._xscale;
_parent._parent.drillAttack._y = _parent._parent.MMBossObject.clip._y - 8;
}
frame 214 {
_global.megamanWrapper.MMsfx.bossMeltSound.start(0, 0);
}
frame 227 {
shootSpikes = false;
stop();
}
frame 229 {
stop();
}
frame 236 {
stop();
}
frame 246 {
stop();
}
frame 247 {
stop();
}
frame 248 {
stop();
}
frame 249 {
stop();
}
frame 250 {
stop();
}
frame 258 {
stop();
}
frame 285 {
_global.megamanWrapper.MMsfx.jumpLandSound.start(0, 0);
}
frame 286 {
trace('test test test ******************************');
_parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent.MMBossObject.jumping = false;
_parent._parent.smallBossCount = 25;
stop();
}
frame 337 {
_global.megamanWrapper.MMsfx.jumpLandSound.start(0, 0);
}
frame 345 {
_parent._parent.MMBossObject.currentStatus = 'idle';
_parent._parent.bossActionDone = true;
_parent._parent.smallBossCount = 0;
gotoAndStop('smallIdle');
}
frame 373 {
stop();
}
frame 374 {
stop();
}
frame 375 {
_parent._parent.MMBossObject.jumping = false;
_parent._parent.smallBossCount = 25;
}
frame 377 {
stop();
}
frame 385 {
stop();
}
}
movieClip 4482 {
}
movieClip 4489 {
}
// unknown tag 88 length 63
movieClip 4510 {
}
movieClip 4511 {
frame 1 {
lastAnimation = 'float';
}
frame 9 {
gotoAndPlay(1);
}
frame 10 {
gotoAndPlay(1);
}
frame 11 {
gotoAndPlay(1);
}
frame 12 {
lastAnimation = 'turn';
}
frame 18 {
gotoAndPlay(1);
}
frame 19 {
gotoAndPlay(1);
}
frame 20 {
lastAnimation = 'gunDown';
}
frame 22 {
lastAnimation = 'gunDown';
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 37 {
gotoAndStop('gunPause');
}
frame 43 {
gotoAndPlay(lastAnimation);
}
}
movieClip 4512 {
}
movieClip 4513 {
}
movieClip 4514 {
frame 1 {
stop();
}
frame 2 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 23 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 27 {
bossHead.guts.gotoAndPlay('turn');
}
frame 34 {
bossHead.guts.gotoAndPlay('float');
}
frame 41 {
bossHead.guts.gotoAndPlay('gun');
}
frame 43 {
bossHead.guts.gotoAndPlay('gunFlash');
}
frame 44 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 48 {
_global.megamanWrapper.MMsfx.bossHeadShotSound.start(0, 0);
}
frame 65 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 77 {
bossHead.guts.gotoAndPlay('gunFlash');
}
frame 82 {
_global.megamanWrapper.MMsfx.bossHeadShotSound.start(0, 0);
}
frame 86 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 107 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 109 {
bossHead.guts.gotoAndPlay('gunFlash');
}
frame 115 {
_global.megamanWrapper.MMsfx.bossHeadShotSound.start(0, 0);
}
frame 128 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 149 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 149 {
bossHead.guts.gotoAndPlay('float');
}
frame 170 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 191 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 212 {
_global.megamanWrapper.MMsfx.bossHeadFlySound.start(0, 0);
}
frame 214 {
_parent.MMBossHeadClip._x = _parent.MMBossObject.xPos - 320;
_parent.MMBossHeadClip._y = _parent.MMBossObject.yPos - 840;
_parent.MMBossObject.currentStatus = 'headland';
_parent.MMBossGoto('headland');
_parent.MMBossObject.attackComplete = true;
}
}
movieClip 4516 {
frame 1 {
}
frame 1 {
stop();
}
frame 2 {
_global.megamanWrapper.MMsfx.bossDrillSound.start(0, 0);
}
frame 8 {
}
frame 15 {
_global.megamanWrapper.MMsfx.bossDrillSound.start(0, 0);
}
frame 22 {
}
frame 23 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 28 {
_global.megamanWrapper.MMsfx.bossDrillSound.start(0, 0);
}
frame 29 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 34 {
}
frame 35 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 40 {
_global.megamanWrapper.MMsfx.bossDrillSound.start(0, 0);
}
frame 42 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 46 {
}
frame 48 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 52 {
_global.megamanWrapper.MMsfx.bossDrillSound.start(0, 0);
}
frame 54 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 58 {
}
frame 60 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 66 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 72 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 72 {
_parent.MMBossObject.currentStatus = 'puddle';
_parent.MMBossStartMove();
}
frame 79 {
_global.megamanWrapper.MMsfx.drillThumpSound.start(0, 0);
}
frame 114 {
_parent.MMBossAttackNow = '';
_parent.MMBossObject.attackComplete = true;
}
}
movieClip 4517 {
}
movieClip 4518 MMBaddieBubble {
frame 147 {
i = 0;
while (i < _parent.MMEnemyProjectiles.length) {
if (_parent.MMEnemyProjectiles[i] == this) {
_parent.MMEnemyProjectiles.splice(i, 1);
removeMovieClip(this);
}
++i;
}
}
}
movieClip 4519 {
frame 5 {
stop();
}
}
movieClip 4524 {
}
movieClip 4529 {
}
movieClip 4530 {
frame 1 {
stop();
}
}
movieClip 4531 {
frame 1 {
stop();
}
}
movieClip 4532 {
}
movieClip 4533 {
}
// unknown tag 88 length 146
movieClip 4536 {
frame 1 {
stop();
}
frame 20 {
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
frame 24 {
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
frame 40 {
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
frame 44 {
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
}
movieClip 4543 MMbombGraphic {
frame 1 {
bombDone = false;
}
frame 11 {
stop();
}
frame 12 {
_global.megamanWrapper.MMsfx.MBBombSplodeSound.start(0, 0);
}
frame 18 {
bombDone = true;
stop();
}
}
// unknown tag 88 length 63
movieClip 4545 {
}
// unknown tag 88 length 146
movieClip 4547 {
}
movieClip 4548 {
frame 1 {
stop();
}
}
movieClip 4549 MM_pholder {
frame 1 {
stop();
}
}
movieClip 4554 {
}
movieClip 4558 {
}
movieClip 4561 {
}
movieClip 4562 {
frame 1 {
stop();
}
frame 2 {
_parent.startRageMusic();
}
frame 49 {
stop();
}
}
movieClip 4565 MM1up {
}
movieClip 4566 {
frame 1 {
var debugMode = true;
_global.megamanWrapper = this;
debugMode = false;
if (!debugMode) {
stop();
}
}
frame 1 {
function muteSounds() {
if (!pauseMute) {
if (soundMuted) {
soundMuted = false;
i = 0;
while (i < audioClips.length) {
audioClips[i].setVolume(soundVolume);
++i;
}
} else {
soundMuted = true;
i = 0;
while (i < audioClips.length) {
audioClips[i].setVolume(0);
++i;
}
}
}
trace('soundMuted ' + soundMuted);
}
function muteSoundsPause() {
if (!soundMuted) {
if (pauseMute) {
pauseMute = false;
i = 0;
while (i < audioClips.length) {
audioClips[i].setVolume(soundVolume);
++i;
}
} else {
pauseMute = true;
i = 0;
while (i < audioClips.length) {
audioClips[i].setVolume(0);
++i;
}
_global.megamanWrapper.pauseBox.MMPauseSound.start(0, 0);
}
}
trace('pauseMute ' + pauseMute);
}
function resetMusic() {
MMmusic.music.stop();
MMmusic.endBossMusic.stop();
MMmusic.music.start(0, 999999);
if (!soundMuted) {
} else {}
}
function startRageMusic() {
MMmusic.music.stop();
MMmusic.musicRage = new Sound(this.MMmusic);
MMmusic.musicRage.attachSound('mm_aboboRageFaceMusic');
if (soundVolume > 0) {
MMmusic.musicRage.setVolume(70);
}
MMmusic.musicRage.start(0, 0);
}
function endRageMusic() {
MMmusic.music.stop();
MMmusic.musicRage.stop();
MMmusic.music.setVolume(soundVolume);
if (MMBossObject.alive) {
MMmusic.endBossMusic.start(0, 999999);
} else {
MMmusic.music.start(0, 999999);
}
}
soundVolume = 70;
audioClips = new Array();
soundMuted = false;
muteTimer = 20;
pauseMute = false;
MMmusic.music = new Sound(this.MMmusic);
MMmusic.music.attachSound('mm_level-bg-music');
MMmusic.music.setVolume(soundVolume);
audioClips.push(MMmusic.music);
MMsfx.jumpLandSound = new Sound(this.MMsfx);
MMsfx.jumpLandSound.attachSound('mm_jump-landing');
MMsfx.jumpLandSound.setVolume(soundVolume);
MMsfx.deathSound = new Sound(this.MMsfx);
MMsfx.deathSound.attachSound('mm_death-sound');
MMsfx.deathSound.setVolume(soundVolume);
audioClips.push(MMsfx.deathSound);
MMsfx.landfirstSound = new Sound(this.MMsfx);
MMsfx.landfirstSound.attachSound('mm_initial-level-landing');
MMsfx.landfirstSound.setVolume(soundVolume);
audioClips.push(MMsfx.landfirstSound);
MMsfx.hurtSound = new Sound(this.MMsfx);
MMsfx.hurtSound.attachSound('mm_hurt');
MMsfx.hurtSound.setVolume(soundVolume);
audioClips.push(MMsfx.hurtSound);
MMsfx.eHurtSound = new Sound(this.MMsfx);
MMsfx.eHurtSound.attachSound('mm_enemy-hurt');
MMsfx.eHurtSound.setVolume(soundVolume);
audioClips.push(MMsfx.eHurtSound);
MMsfx.mechLandSound = new Sound(this.MMsfx);
MMsfx.mechLandSound.attachSound('mm_big-mech-jump-landing');
MMsfx.mechLandSound.setVolume(soundVolume);
audioClips.push(MMsfx.mechLandSound);
MMsfx.bulletSound = new Sound(this.MMsfx);
MMsfx.bulletSound.attachSound('mm_bullet-shot');
MMsfx.bulletSound.setVolume(soundVolume);
audioClips.push(MMsfx.bulletSound);
MMsfx.bulletEnemySound = new Sound(this.MMsfx);
MMsfx.bulletEnemySound.attachSound('mm_enemy-bullet-shot');
MMsfx.bulletEnemySound.setVolume(soundVolume);
audioClips.push(MMsfx.bulletEnemySound);
MMmusic.endBossIntroMusic = new Sound(this.MMmusic);
MMmusic.endBossIntroMusic.attachSound('mm_boss-fight-music-intro');
MMmusic.endBossIntroMusic.setVolume(soundVolume);
audioClips.push(MMmusic.endBossIntroMusic);
MMmusic.endBossMusic = new Sound(this.MMmusic);
MMmusic.endBossMusic.attachSound('mm_boss-fight-music');
MMmusic.endBossMusic.setVolume(soundVolume);
audioClips.push(MMmusic.endBossMusic);
MMsfx.bossSmallHurtSound = new Sound(this.MMsfx);
MMsfx.bossSmallHurtSound.attachSound('mm_robobobo-hurt');
MMsfx.bossSmallHurtSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossSmallHurtSound);
MMsfx.bossSmallGlitchSound = new Sound(this.MMsfx);
MMsfx.bossSmallGlitchSound.attachSound('mm_megabobo-glitches-out');
MMsfx.bossSmallGlitchSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossSmallGlitchSound);
MMmusic.bossBigMusic = new Sound(this.MMmusic);
MMmusic.bossBigMusic.attachSound('mm_dead-megabobo-ready-for-war-music');
MMmusic.bossBigMusic.setVolume(soundVolume);
audioClips.push(MMmusic.bossBigMusic);
MMsfx.bossChangeSound = new Sound(this.MMsfx);
MMsfx.bossChangeSound.attachSound('mm_robobobo-grows');
MMsfx.bossChangeSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossChangeSound);
MMsfx.bossThrowSound = new Sound(this.MMsfx);
MMsfx.bossThrowSound.attachSound('mm_robobobo-throws');
MMsfx.bossThrowSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossThrowSound);
MMsfx.bossDropSound = new Sound(this.MMsfx);
MMsfx.bossDropSound.attachSound('mm_object-falling-from-ceiling');
MMsfx.bossDropSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossDropSound);
MMsfx.bossHurtSound = new Sound(this.MMsfx);
MMsfx.bossHurtSound.attachSound('mm_megabobo-hurt');
MMsfx.bossHurtSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossHurtSound);
MMsfx.bossMeltSound = new Sound(this.MMsfx);
MMsfx.bossMeltSound.attachSound('mm_megabobo-melt');
MMsfx.bossMeltSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossMeltSound);
MMsfx.bossGatlinSound = new Sound(this.MMsfx);
MMsfx.bossGatlinSound.attachSound('mm_megabobo-gatlin-gun');
MMsfx.bossGatlinSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossGatlinSound);
MMsfx.bossUnMeltSound = new Sound(this.MMsfx);
MMsfx.bossUnMeltSound.attachSound('mm_megabobo-unmelt');
MMsfx.bossUnMeltSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossUnMeltSound);
MMsfx.bossHeadLaunchSound = new Sound(this.MMsfx);
MMsfx.bossHeadLaunchSound.attachSound('mm_megabobo-head-taking-off');
MMsfx.bossHeadLaunchSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossHeadLaunchSound);
MMsfx.bossHeadFlySound = new Sound(this.MMsfx);
MMsfx.bossHeadFlySound.attachSound('mm_megabobo-head-flying');
MMsfx.bossHeadFlySound.setVolume(soundVolume);
audioClips.push(MMsfx.bossHeadFlySound);
MMsfx.bossDrillSound = new Sound(this.MMsfx);
MMsfx.bossDrillSound.attachSound('mm_megabobo-drill-bits-falling');
MMsfx.bossDrillSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossDrillSound);
MMsfx.bossWileSound = new Sound(this.MMsfx);
MMsfx.bossWileSound.attachSound('mm_dr-wile-splattered-on-wall');
MMsfx.bossWileSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossWileSound);
MMsfx.bossExplodeSound1 = new Sound(this.MMsfx);
MMsfx.bossExplodeSound1.attachSound('mm_megabobo-explosion1');
MMsfx.bossExplodeSound1.setVolume(soundVolume);
audioClips.push(MMsfx.bossExplodeSound1);
MMsfx.bossExplodeSound2 = new Sound(this.MMsfx);
MMsfx.bossExplodeSound2.attachSound('mm_megabobo-explosion2');
MMsfx.bossExplodeSound2.setVolume(soundVolume);
audioClips.push(MMsfx.bossExplodeSound2);
MMsfx.bossExplodeSound3 = new Sound(this.MMsfx);
MMsfx.bossExplodeSound3.attachSound('mm_megabobo-explosion3');
MMsfx.bossExplodeSound3.setVolume(soundVolume);
audioClips.push(MMsfx.bossExplodeSound3);
MMsfx.bossExplodeSound4 = new Sound(this.MMsfx);
MMsfx.bossExplodeSound4.attachSound('mm_megabobo-explosion4');
MMsfx.bossExplodeSound4.setVolume(soundVolume);
audioClips.push(MMsfx.bossExplodeSound4);
MMsfx.bossYellSound = new Sound(this.MMsfx);
MMsfx.bossYellSound.attachSound('mm_megabobo-yell');
MMsfx.bossYellSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossYellSound);
MMsfx.healthPickupSound = new Sound(this.MMsfx);
MMsfx.healthPickupSound.attachSound('mm_health-pickup');
MMsfx.healthPickupSound.setVolume(soundVolume);
audioClips.push(MMsfx.healthPickupSound);
MMsfx.laserBeamSound = new Sound(this.MMsfx);
MMsfx.laserBeamSound.attachSound('mm-fiery-side-blasts');
MMsfx.laserBeamSound.setVolume(soundVolume);
audioClips.push(MMsfx.laserBeamSound);
MMsfx.laserBeamSound = new Sound(this.MMsfx);
MMsfx.laserBeamSound.attachSound('mm-fiery-side-blasts');
MMsfx.laserBeamSound.setVolume(soundVolume);
audioClips.push(MMsfx.laserBeamSound);
MMsfx.gearHitSound = new Sound(this.MMsfx);
MMsfx.gearHitSound.attachSound('mm_gear-hitting-wall');
MMsfx.gearHitSound.setVolume(soundVolume);
audioClips.push(MMsfx.gearHitSound);
MMsfx.rageSound = new Sound(this.MMsfx);
MMsfx.rageSound.attachSound('mm_rage-mega-blast-final');
MMsfx.rageSound.setVolume(soundVolume);
audioClips.push(MMsfx.rageSound);
MMsfx.pumpkinSound = new Sound(this.MMsfx);
MMsfx.pumpkinSound.attachSound('mm_pumpkin-fire-spit');
MMsfx.pumpkinSound.setVolume(soundVolume);
audioClips.push(MMsfx.pumpkinSound);
MMsfx.doorSound1 = new Sound(this.MMsfx);
MMsfx.doorSound1.attachSound('mm_doors-open-close1');
MMsfx.doorSound1.setVolume(soundVolume);
audioClips.push(MMsfx.doorSound1);
MMsfx.doorSound2 = new Sound(this.MMsfx);
MMsfx.doorSound2.attachSound('mm_doors-open-close2');
MMsfx.doorSound2.setVolume(soundVolume);
audioClips.push(MMsfx.doorSound2);
MMsfx.popBubbleSound = new Sound(this.MMsfx);
MMsfx.popBubbleSound.attachSound('mm_bubble-bobble-pop-bubble');
MMsfx.popBubbleSound.setVolume(soundVolume);
audioClips.push(MMsfx.popBubbleSound);
MMsfx.spitBubbleSound = new Sound(this.MMsfx);
MMsfx.spitBubbleSound.attachSound('mm_bubble-bobble-spit-bubble');
MMsfx.spitBubbleSound.setVolume(soundVolume);
audioClips.push(MMsfx.spitBubbleSound);
MMsfx.dinoDeadSound = new Sound(this.MMsfx);
MMsfx.dinoDeadSound.attachSound('mm_digdug-dead');
MMsfx.dinoDeadSound.setVolume(soundVolume);
audioClips.push(MMsfx.dinoDeadSound);
MMsfx.dinoFireSound = new Sound(this.MMsfx);
MMsfx.dinoFireSound.attachSound('mm_digdug-fire-breathing');
MMsfx.dinoFireSound.setVolume(soundVolume);
audioClips.push(MMsfx.dinoFireSound);
MMsfx.springySound = new Sound(this.MMsfx);
MMsfx.springySound.attachSound('MM-buster');
MMsfx.springySound.setVolume(soundVolume);
audioClips.push(MMsfx.springySound);
MMsfx.penguinCrankSound = new Sound(this.MMsfx);
MMsfx.penguinCrankSound.attachSound('mm_penguinCrank');
MMsfx.penguinCrankSound.setVolume(soundVolume);
audioClips.push(MMsfx.penguinCrankSound);
MMsfx.roboShotSound = new Sound(this.MMsfx);
MMsfx.roboShotSound.attachSound('mm_robobobo-shot');
MMsfx.roboShotSound.setVolume(soundVolume);
audioClips.push(MMsfx.roboShotSound);
MMsfx.virusDropSound = new Sound(this.MMsfx);
MMsfx.virusDropSound.attachSound('mm_penguin-virus-drops-down');
MMsfx.virusDropSound.setVolume(soundVolume);
audioClips.push(MMsfx.virusDropSound);
MMsfx.virusFiresSound = new Sound(this.MMsfx);
MMsfx.virusFiresSound.attachSound('mm_penguin-virus-fires-off');
MMsfx.virusFiresSound.setVolume(soundVolume);
audioClips.push(MMsfx.virusFiresSound);
MMsfx.gatlinChargeSound = new Sound(this.MMsfx);
MMsfx.gatlinChargeSound.attachSound('mm_megabobo-gatlin-gun-charging-up');
MMsfx.gatlinChargeSound.setVolume(soundVolume);
audioClips.push(MMsfx.gatlinChargeSound);
MMsfx.drillThumpSound = new Sound(this.MMsfx);
MMsfx.drillThumpSound.attachSound('mm_megabobo-thump');
MMsfx.drillThumpSound.setVolume(soundVolume);
audioClips.push(MMsfx.drillThumpSound);
MMsfx.MBBommbSound = new Sound(this.MMsfx);
MMsfx.MBBommbSound.attachSound('mm_blaster-master-bomb-drop');
MMsfx.MBBommbSound.setVolume(soundVolume);
audioClips.push(MMsfx.MBBommbSound);
MMsfx.MBBombSplodeSound = new Sound(this.MMsfx);
MMsfx.MBBombSplodeSound.attachSound('mm_blaster-master-bomb-explode');
MMsfx.MBBombSplodeSound.setVolume(soundVolume);
audioClips.push(MMsfx.MBBombSplodeSound);
MMsfx.MBDitchSound = new Sound(this.MMsfx);
MMsfx.MBDitchSound.attachSound('mm_blaster-master-guy-falls-down');
MMsfx.MBDitchSound.setVolume(soundVolume);
audioClips.push(MMsfx.MBDitchSound);
MMsfx.MBChopperSound = new Sound(this.MMsfx);
MMsfx.MBChopperSound.attachSound('mm_blaster-master-helicopter');
MMsfx.MBChopperSound.setVolume(soundVolume);
audioClips.push(MMsfx.MBChopperSound);
MMsfx.MBShotSound = new Sound(this.MMsfx);
MMsfx.MBShotSound.attachSound('mm_blaster-master-shot');
MMsfx.MBShotSound.setVolume(soundVolume);
audioClips.push(MMsfx.MBShotSound);
MMsfx.bossHeadShotSound = new Sound(this.MMsfx);
MMsfx.bossHeadShotSound.attachSound('mm_megabobo-flying-head-shoots');
MMsfx.bossHeadShotSound.setVolume(soundVolume);
audioClips.push(MMsfx.bossHeadShotSound);
MMsfx.littleShotSound = new Sound(this.MMsfx);
MMsfx.littleShotSound.attachSound('mm_blaster-master-little-guy-shot');
MMsfx.littleShotSound.setVolume(soundVolume);
audioClips.push(MMsfx.littleShotSound);
MMsfx.lifeSound = new Sound(this.MMsfx);
MMsfx.lifeSound.attachSound('mm_1up');
MMsfx.lifeSound.setVolume(soundVolume);
audioClips.push(MMsfx.lifeSound);
MMsfx.drillFireSound = new Sound(this.MMsfx);
MMsfx.drillFireSound.attachSound('mm_megabobo-drill-bits-shooting-upwards');
MMsfx.drillFireSound.setVolume(soundVolume);
audioClips.push(MMsfx.drillFireSound);
pauseBox.MMPauseSound = new Sound(this.pauseBox);
pauseBox.MMPauseSound.attachSound('MM_pauseSound');
pauseBox.MMPauseSound.setVolume(soundVolume);
MMmusic.introMusic = new Sound(this.MMmusic);
MMmusic.introMusic.attachSound('mm_title-level-intro-music');
MMmusic.introMusic.setVolume(soundVolume);
audioClips.push(MMmusic.introMusic);
if (!soundMuted) {
_global.megamanWrapper.MMmusic.introMusic.start(0, 0);
}
}
frame 2 {
stop();
totaldeaths = 0;
jasondead = false;
var lastEnemyHit = null;
var screenScale = 1;
var screenScale2 = 1;
var MMPause = false;
var MMUnpause = false;
var pauseTimer = 20;
var MMcurrBG;
var MMScaleRatio = 2.5;
var ragePressTimer = 0;
var MMRageSoundCount = 0;
var MMworldVar = {'currentMap': 0, 'gravity': 1.3, 'termVelocity': 20};
var MMheroVar = {'clip': hero, 'alive': true, 'speedMax': 3.5, 'jumpSpeed': 0, 'jumpSpeedInc': 4.4, 'xpos': 128, 'ypos': 126, 'xSpeed': 0, 'ySpeed': 0, 'clipW': 22, 'clipH': 34, 'TR': false, 'BR': false, 'TL': false, 'BL': false, 'underBR': false, 'underBR': false, 'overTL': false, 'overTR': false, 'sideR': false, 'sideR': false, 'groundDetect': false, 'jumping': false, 'walking': false, 'falling': false, 'shooting': false, 'damaged': false, 'takeDamage': true, 'shootCount': 0};
var readyAnimationDone = false;
var MMBossDoor2 = false;
xSpeedHalf = false;
var MMscreenMobs = [];
var MMscreen1 = [];
var MMLeftKey = false;
var MMRightKey = false;
var MMUpKey = false;
var MMDownKey = false;
var MMJumpKey = false;
var MMJumpKeyUP = true;
var MMShootKey = false;
var MMShootKeyUP = true;
var shotsOut = 0;
var shotsOutCount = 0;
var MMPellets = new Array();
var megaManHealth = 28;
var megaManHealthMAX = 28;
if (_root.lives == undefined) {
_root.lives = 5;
}
var megaManLives = _root.lives;
var megaManStartLvl = 0;
var beamMap = false;
var beamMaps = [3, 4, 5, 8, 9, 10, 11, 12, 13, 14];
var beamCounts = [0, 0, 0, 2, 3, 4, 0, 0, 10, 8, 5, 5, 2, 4, 4];
var beamHit = false;
var MMbossTransition = false;
var MMbossCount = 0;
var MMRage = 0;
var MMRageMax = 28;
var MMRageOn = false;
var MMRagePause = false;
var roomColor = true;
var roomColor2 = false;
var roomBlack = false;
var roomRed = false;
var dropList = new Array();
var healthCount = 0;
_parent.MMbossPauseBlock = false;
}
frame 2 {
function shitTest(b, x, y) {
var v3 = {'x': x, 'y': y};
if (this != _level0.instance1.megamanWrapper) {
this.localToGlobal(v3);
if (b.hitTest(v3.x, v3.y, true)) {
return true;
} else {
return false;
}
} else {
_parent._parent._parent.localToGlobal(v3);
if (b.hitTest(v3.x + _parent._x, v3.y, true)) {
return true;
} else {
return false;
}
}
_parent.dot._x = v3.x;
_parent.dot._y = v3.y;
}
function MMLifePickup(NUMBER) {
_root.megamanExtraLife();
lifeTaken = true;
_global.megamanWrapper.MMsfx.lifeSound.start(0, 0);
}
function MMLifePickup2(NUMBER) {
lifeTaken2 = true;
_root.megamanExtraLife();
_global.megamanWrapper.MMsfx.lifeSound.start(0, 0);
}
function getCorners(OBJ) {
if (!MMPause) {
var v3 = OBJ.xpos;
var v2 = OBJ.ypos;
if (debugMode) {
if (OBJ == MMheroVar) {
} else {
var v4 = OBJ.clip.createEmptyMovieClip('rectangles', 2);
v4.beginFill(16711680, 70);
v4.moveTo(1, 1);
v4.lineTo(OBJ.clipW - 2, 1);
v4.lineTo(OBJ.clipW - 2, OBJ.clipH - 2);
v4.lineTo(1, OBJ.clipH - 2);
}
}
OBJ.TL = shitTest(MMcurrBG.aw, v3 + 1, v2);
OBJ.TR = shitTest(MMcurrBG.aw, v3 + OBJ.clipW - 2, v2);
OBJ.BL = shitTest(MMcurrBG.aw, v3 + 1, v2 + OBJ.clipH - 2);
OBJ.BR = shitTest(MMcurrBG.aw, v3 + OBJ.clipW - 2, v2 + OBJ.clipH - 2);
OBJ.underBL = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.1, v2 + OBJ.clipH - 1);
OBJ.underBR = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.9, v2 + OBJ.clipH - 1);
OBJ.overTL = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.1, v2);
OBJ.overTR = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.9, v2);
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.5, v2 + OBJ.clipH - 3);
if (!OBJ.groundDetect) {
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.25, v2 + OBJ.clipH - 3);
}
if (!OBJ.groundDetect) {
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.clipW * 0.75, v2 + OBJ.clipH - 3);
}
OBJ.sideL = shitTest(MMcurrBG.aw, v3 - 3, v2 + OBJ.clipH * 0.75);
OBJ.sideR = shitTest(MMcurrBG.aw, v3 + OBJ.clipW + 2, v2 + OBJ.clipH * 0.75);
OBJ.sideLT = shitTest(MMcurrBG.aw, v3 - 3, v2 + OBJ.clipH * 0.2);
OBJ.sideRT = shitTest(MMcurrBG.aw, v3 + OBJ.clipW + 2, v2 + OBJ.clipH * 0.2);
}
}
function moveHero() {
if (!MMPause) {
MMheroVar.walking = false;
xspeed = 0;
yspeed = MMheroVar.ySpeed;
if (MMRagePause) {
yspeed = 0;
}
getCorners(MMheroVar);
if (!MMRagePause && !MMbossTransition) {
if (MMLeftKey) {
xspeed -= MMheroVar.speedMax;
MMheroVar.clip._xscale = 100;
MMheroVar.walking = true;
}
if (MMRightKey) {
xspeed += MMheroVar.speedMax;
MMheroVar.clip._xscale = -100;
MMheroVar.walking = true;
}
if (MMJumpKey && !MMheroVar.falling) {
if (MMJumpKeyUP) {
yspeed = -8;
MMheroVar.jumping = true;
MMJumpKeyUP = false;
}
}
if (MMShootKey) {
if (MMShootKeyUP) {
MMheroVar.shootCount = 0;
MMheroVar.shooting = true;
MMShootPellet();
MMShootKeyUP = false;
}
}
}
if (!MMShootKey) {
MMShootKeyUP = true;
}
++MMheroVar.shootCount;
if (MMheroVar.shootCount > 10) {
MMheroVar.shooting = false;
}
if (!MMJumpKey && !MMUpKey) {
MMheroVar.jumping = false;
}
if (MMShootKey && MMJumpKey) {
if (MMRageOn && ragePressTimer < 3 && ragePressTimer2 < 3) {
MMRagePause = true;
MMActivateRage();
}
}
if (MMheroVar.overTL || MMheroVar.overTR) {
MMheroVar.jumping = false;
yspeed = 3;
}
if (MMheroVar.jumping) {
++MMheroVar.jumpCount;
yspeed -= MMheroVar.jumpSpeedInc;
}
if (yspeed <= -8) {
MMheroVar.jumping = false;
}
if (!flyDebug) {
yspeed += MMworldVar.gravity;
}
if (Math.abs(yspeed) > MMworldVar.termVelocity) {
yspeed = MMworldVar.termVelocity;
}
if (!MMheroVar.underBL && !MMheroVar.underBR) {
MMheroVar.falling = true;
}
if (xspeed > 0 && (MMheroVar.sideR || MMheroVar.sideRT)) {
xspeed = 0;
} else {
if (xspeed < 0 && (MMheroVar.sideL || MMheroVar.sideLT)) {
xspeed = 0;
}
}
if ((MMheroVar.underBL || MMheroVar.underBR) && yspeed > 0) {
yspeed = 0;
MMheroVar.jumpCount = 0;
if (MMheroVar.falling != false) {
_global.megamanWrapper.MMsfx.jumpLandSound.start(0, 0);
}
MMheroVar.falling = false;
}
if (!MMRagePause) {
if (!MMheroVar.damaged) {
if (MMheroVar.falling) {
if (MMheroVar.shooting) {
setHeroAnim('jumpshoot');
} else {
setHeroAnim('jump');
}
} else {
if (MMheroVar.walking) {
if (MMheroVar.shooting) {
setHeroAnim('runshoot');
} else {
setHeroAnim('walk');
}
} else {
if (MMheroVar.shooting) {
setHeroAnim('shoot');
} else {
setHeroAnim('rest');
}
}
}
}
}
if (!MMRagePause) {
MMheroVar.xpos += xspeed;
MMheroVar.ypos += yspeed;
}
checkFloorHit(MMheroVar);
MMheroVar.clip._x = MMheroVar.xpos + MMheroVar.clipW / 2;
MMheroVar.clip._y = MMheroVar.ypos;
MMheroVar.xSpeed = xspeed;
MMheroVar.ySpeed = yspeed;
}
}
function setHeroAnim(TYPE) {
if (MMheroVar.currentAnim != TYPE) {
MMheroVar.clip.guts.gotoAndStop(TYPE);
}
MMheroVar.currentAnim = TYPE;
}
function checkFloorHit(OBJ) {
getCorners(OBJ);
for (;;) {
if (!(OBJ.underBR && OBJ.BR || OBJ.underBL && OBJ.BL || OBJ.groundDetect)) break;
OBJ.ypos = Math.floor(OBJ.ypos);
--OBJ.ypos;
OBJ.ySpeed = 0;
getCorners(OBJ);
}
for (;;) {
if (!(OBJ.sideR || OBJ.sideTR)) break;
OBJ.xpos = Math.floor(OBJ.xpos);
--OBJ.xpos;
OBJ.xSpeed = 0;
getCorners(OBJ);
}
for (;;) {
if (!(OBJ.sideL || OBJ.sideTL)) break;
OBJ.xpos = Math.floor(OBJ.xpos);
++OBJ.xpos;
OBJ.xSpeed = 0;
getCorners(OBJ);
}
}
function MMShootPellet() {
if (MMPellets.length < 5 && shotsOutCount > 3) {
_global.megamanWrapper.MMsfx.bulletSound.start(0, 0);
++pelletNum;
++shotsOut;
shotsOutCount = 0;
this.attachMovie('lvl6_pellet', 'MMpel' + pelletNum, this.getNextHighestDepth());
thisPellet = this['MMpel' + pelletNum];
thisPellet.myNum = pelletNum;
thisPellet.deflected = false;
thisPellet.alive = true;
thisPellet.frameCount = 0;
if (MMheroVar.clip._xscale > 0) {
thisPellet.speedX = -12;
thisPellet._x = MMheroVar.xpos - 3 + thisPellet.speedX / 2;
} else {
thisPellet.speedX = 12;
thisPellet._x = MMheroVar.xpos + MMheroVar.clipW + 3 + thisPellet.speedX / 2;
}
if (MMheroVar.jumping || MMheroVar.falling) {
thisPellet._y = MMheroVar.ypos + 13;
} else {
thisPellet._y = MMheroVar.ypos + 19;
}
MMPellets.push(thisPellet);
}
}
function MMMovePellet() {
i = 0;
while (i < MMPellets.length) {
++MMPellets[i].frameCount;
if (MMPellets[i].deflected) {
MMPellets[i]._x -= MMPellets[i].speedX;
MMPellets[i]._y -= MMPellets[i].speedX;
} else {
MMPellets[i]._x += MMPellets[i].speedX;
MMCheckPelletHit();
}
if (MMPellets[i].frameCount > 25 || !MMPellets[i].alive) {
removeMovieClip(MMPellets[i]);
MMPellets.splice(i, 1);
}
++i;
}
}
function MMCheckPelletHit() {
j = 0;
while (j < MMEnemies.length) {
p = 0;
while (p < MMPellets.length) {
if (!MMPellets[p].deflected && MMEnemies[j].active) {
if (MMPellets[p].hitarea.hitTest(MMEnemies[j].clip.guts.hitarea)) {
MMPellets[p].alive = false;
removeMovieClip(MMPellets[p]);
MMPellets.splice(p, 1);
damageEnemy(MMEnemies[j]);
if (MMEnemies[j].type == 'masterDude') {
_global.megamanWrapper.MMsfx.littleShotSound.start(0, 0);
} else {
_global.megamanWrapper.MMsfx.eHurtSound.start(0, 0);
}
addRage();
}
}
++p;
}
++j;
}
j = 0;
while (j < MMEnemyProjectiles.length) {
if (MMEnemyProjectiles[j].proType == 'bubble') {
p = 0;
while (p < MMPellets.length) {
if (MMPellets[p].hitarea.hitTest(MMEnemyProjectiles[j].hitarea)) {
_global.megamanWrapper.MMsfx.popBubbleSound.start(0, 0);
MMEnemyProjectiles[j].gotoAndStop('end');
MMPellets[p].alive = false;
removeMovieClip(MMPellets[p]);
MMPellets.splice(p, 1);
}
++p;
}
}
++j;
}
p = 0;
while (p < MMPellets.length) {
if (MMPellets[p].hitarea.hitTest(MME_7_7.clip.guts.hitBox)) {
thisEnemy = MME_7_7;
thisEnemy.clip.guts.virus.guts.play();
_global.megamanWrapper.MMsfx.eHurtSound.start(0, 0);
MMPellets[p].alive = false;
removeMovieClip(MMPellets[p]);
MMPellets.splice(p, 1);
}
if (MMPellets[p].hitarea.hitTest(MME_7_14.clip.guts.hitBox)) {
thisEnemy = MME_7_14;
thisEnemy.clip.guts.virus.guts.play();
_global.megamanWrapper.MMsfx.eHurtSound.start(0, 0);
MMPellets[p].alive = false;
removeMovieClip(MMPellets[p]);
MMPellets.splice(p, 1);
}
if (MMPellets[p].hitarea.hitTest(MME_15_8.clip.guts.hitBox)) {
thisEnemy = MME_15_8;
thisEnemy.clip.guts.virus.guts.play();
_global.megamanWrapper.MMsfx.eHurtSound.start(0, 0);
MMPellets[p].alive = false;
removeMovieClip(MMPellets[p]);
MMPellets.splice(p, 1);
}
++p;
}
}
function addRage() {
MMRage += 1.2;
if (MMRage < MMRageMax) {
MMRageOn = false;
}
if (MMRage > MMRageMax) {
MMRage = MMRageMax;
}
if (MMRage >= MMRageMax) {
MMRageOn = true;
}
MMUpdateRageBar();
}
function MMActivateRage() {
_root.aboboMedal('Mega Blast');
setHeroAnim('rage');
pausedRageClipsFunc();
MMRageOn = false;
}
function MMRemovePellet() {
i = 0;
while (i < MMPellets.length) {
removeMovieClip(MMPellets[i]);
MMPellets[i].unloadMovie();
++i;
}
MMPellets = new Array();
}
function MMPlayerTakeDamage(NUMBER) {
if (MMheroVar.takeDamage == true) {
MMRage -= MMRageMax / 2;
MMRageOn = false;
if (MMRage <= 0) {
MMRage = 0;
}
MMUpdateRageBar();
if (NUMBER >= megaManHealth) {
if (MMRage > 0) {
MMRage = 0;
MMRageOn = false;
MMUpdateRageBar();
}
MMKillPlayer();
} else {
_global.megamanWrapper.MMsfx.hurtSound.start(0, 0);
MMheroVar.damaged = true;
heroBlinker.gotoAndPlay(2);
setHeroAnim('damage');
megaManHealth -= NUMBER;
MMUpdateHealthBar();
}
}
}
function MMUpdateHealthBar() {
_parent.healthBar.gotoAndStop(megaManHealth + 1);
_root.mmHudUpdate(megaManHealth, megaManHealthMAX);
}
function MMUpdateRageBar() {
_parent.rageBar.gotoAndStop(Math.floor(MMRage) + 1);
_root.mmRageUpdate(MMRage, MMRageMax);
}
function MMHealthPickup(NUMBER) {
healthPauseCount = 0;
MMPause = true;
if (MMheroVar.currentAnim == 'walk') {
MMheroVar.clip.guts.clip.stop();
}
_global.megamanWrapper.MMsfx.healthPickupSound.start(0, 0);
var v3 = megaManHealth;
var v2 = NUMBER;
if (v3 + v2 > megaManHealthMAX) {
v2 = megaManHealthMAX - v3;
}
if (megaManHealth <= megaManHealthMAX) {
while (megaManHealth < v3 + v2) {
++megaManHealth;
}
}
MMUpdateHealthBar();
_global.megamanWrapper.MMsfx.healthPickupSound.start(0, 0);
}
function dropHealth(DROPX, DROPY) {
++healthCount;
attachMovie('MMhealth', 'health' + healthCount, this.getNextHighestDepth());
this['health' + healthCount]._x = DROPX;
this['health' + healthCount]._y = DROPY;
this['health' + healthCount].yspeed = -2;
this['health' + healthCount].myType = 'health';
dropList.push(this['health' + healthCount]);
}
function dropLife(DROPX, DROPY) {
++healthCount;
attachMovie('MM1up', 'health' + healthCount, this.getNextHighestDepth());
this['health' + healthCount]._x = DROPX;
this['health' + healthCount]._y = DROPY;
this['health' + healthCount].myType = 'life';
dropList.push(this['health' + healthCount]);
}
function dropLife2(DROPX, DROPY) {
++healthCount;
attachMovie('MM1up', 'health' + healthCount, this.getNextHighestDepth());
this['health' + healthCount]._x = DROPX;
this['health' + healthCount]._y = DROPY;
this['health' + healthCount].myType = 'life2';
dropList.push(this['health' + healthCount]);
}
function moveDrops() {
var v1 = 0;
while (v1 < dropList.length) {
if (!shitTest(MMcurrBG.aw, dropList[v1]._x, dropList[v1]._y)) {
dropList[v1].yspeed += MMworldVar.gravity;
dropList[v1]._y += dropList[v1].yspeed;
while (shitTest(MMcurrBG.aw, dropList[v1]._x, dropList[v1]._y - 3)) {
--dropList[v1]._y;
}
} else {
dropList[v1].yspeed = 0;
}
if (dropList[v1].hitarea.hitTest(MMheroVar.clip.guts.hitarea)) {
if (dropList[v1].myType == 'health') {
MMHealthPickup(5);
removeMovieClip(dropList[v1]);
dropList.splice(v1, 1);
--v1;
} else {
if (dropList[v1].myType == 'life') {
MMLifePickup(1);
removeMovieClip(dropList[v1]);
dropList.splice(v1, 1);
--v1;
} else {
if (dropList[v1].myType == 'life2') {
MMLifePickup2(1);
removeMovieClip(dropList[v1]);
dropList.splice(v1, 1);
--v1;
}
}
}
}
++v1;
}
}
function removeDrops() {
var v1 = 0;
while (v1 < dropList.length) {
removeMovieClip(dropList[v1]);
++v1;
}
dropList = new Array();
}
function MMKillPlayer() {
if (MMheroVar.alive) {
megaManHealth = 0;
setHeroAnim('death');
MMPause = true;
MMheroVar.alive = false;
--megaManLives;
MMRemovePellet();
--_root.lives;
MMUpdateHealthBar();
}
}
function checkIfBeams() {
beamMap = false;
i = 0;
while (i < beamMaps.length) {
if (beamMaps[i] == MMworldVar.currentMap) {
if (!debugMode) {
beamMap = true;
}
}
++i;
}
}
function checkBeamHits() {
if (!beamHit) {
var v3 = MMheroVar.xpos;
var v2 = MMheroVar.ypos;
i = 1;
while (i <= beamCounts[MMworldVar.currentMap]) {
MMheroVar.TL_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + 1, v2 + 4);
MMheroVar.TR_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + MMheroVar.clipW - 2, v2 + 4);
MMheroVar.BL_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + 1, v2 + MMheroVar.clipH - 4);
MMheroVar.BR_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + MMheroVar.clipW - 4, v2 + MMheroVar.clipH - 4);
MMheroVar.L_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + 4, v2 + MMheroVar.clipH / 2);
MMheroVar.R_BEAM = shitTest(MMcurrBG['beam' + i].hitter, v3 + MMheroVar.clipW - 4, v2 + MMheroVar.clipH / 2);
if (MMheroVar.TL_BEAM || MMheroVar.TR_BEAM || MMheroVar.L_BEAM || MMheroVar.R_BEAM || MMheroVar.BL_BEAM || MMheroVar.BR_BEAM) {
beamHit = true;
}
++i;
}
if (beamHit) {
_root.aboboMedal('Lazertagged');
MMKillPlayer();
MMRage = 0;
MMRageOn = false;
MMUpdateRageBar();
}
}
}
function hitFlash(target) {
target.filters = [myColorMatrix_filter_Clear];
target.count = 0;
target.onOff = false;
target.onEnterFrame = function () {
++this.count;
if (this.count == 1 || this.count == 3 || this.count == 5) {
onOff = true;
} else {
onOff = false;
}
if (this.count > 10) {
this.onEnterFrame = undefined;
this.count = 0;
}
if (onOff) {
this.filters = [myColorMatrix_filter];
} else {
this.filters = [myColorMatrix_filter_Clear];
}
};
}
function MMRageFlash() {
MMRageOn = false;
MMRageAttack = true;
MMRageSoundCount = 0;
MMheroVar.damaged = false;
rageFlashClip._x = MMheroVar.clip._x;
rageFlashClip._y = MMheroVar.clip._y;
rageFlashClip.swapDepths(this.getNextHighestDepth());
rageFlashClip.play();
i = 0;
while (i < MMEnemies.length) {
var v2 = MMEnemies[i];
if (v2.active && v2.alive) {
v2.currHP = 1;
damageEnemy(v2);
}
++i;
}
i = 0;
while (i < MMEnemyProjectiles.length) {
removeMovieClip(MMEnemyProjectiles[i]);
MMEnemyProjectiles.splice(i, 1);
++i;
}
if (MMBossObject.alive) {
bossActionDone2 = false;
if (MMheroVar.clip.guts.damageArea.hitTest(MMBossHeadClip.damageBox1) || MMheroVar.clip.guts.damageArea.hitTest(bossClip.guts.hitBox)) {
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
MMBossTakeDamage();
hitFlash(bossClip);
MMBossHeadClip.bossHead.guts.gotoAndPlay('damaged');
}
}
MMRageAttack = false;
MMRageSoundCount = 0;
}
function pauseFunction() {
if (!MMPause) {
MMPause = true;
} else {
MMUnpause = true;
}
}
function checkRagePulse() {
if (MMRageOn) {
++ragePulseCount;
++ragePulseCount2;
++ragePulseCount3;
if (ragePulseCount == 3 || ragePulseCount == 7) {
hero.attachMovie('mm_smokewrap', 'smokeWrap' + ragePulseCount2, hero.getNextHighestDepth());
puffDir = random(2);
if (puffDir == 0) {
puffDir = -1;
}
hero['smokeWrap' + ragePulseCount2]._xscale = puffDir * 100;
hero['smokeWrap' + ragePulseCount2]._x = random(20) - 10;
hero['smokeWrap' + ragePulseCount2]._y = random(30);
} else {
if (ragePulseCount == 1 || ragePulseCount == 5 || ragePulseCount == 2 || ragePulseCount == 6) {
hero.attachMovie('mm_smokewrap2', 'smokeWrap_' + ragePulseCount3, hero.getNextHighestDepth());
puffDir = random(2);
if (puffDir == 0) {
puffDir = -1;
}
hero['smokeWrap_' + ragePulseCount3]._xscale = puffDir * 100;
hero['smokeWrap_' + ragePulseCount3]._x = random(20) - 10;
hero['smokeWrap_' + ragePulseCount3]._y = random(30);
}
}
if (ragePulseCount == 9) {
rageColorFlash(this.hero.guts);
if (ragePulseCount == 9) {
ragePulseCount = 0;
}
}
} else {
myColor = new Color(hero.guts);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
myColor.setTransform(myColorTransform);
}
}
function rageColorFlash(target) {
myColor = new Color(target);
myColorTransform = new Object();
myColorTransform = {'rb': 0, 'gb': 0, 'bb': 0};
myColor.setTransform(myColorTransform);
target.count = 0;
target.lastColor = 3;
target.onOff = false;
target.onEnterFrame = function () {
++this.count;
if (this.count == 1 || this.count == 2 || this.count == 3) {
onOff = true;
} else {
onOff = false;
}
if (this.count > 5) {
delete this.onEnterFrame;
this.onEnterFrame = undefined;
this.count = 0;
}
if (!_global.megamanWrapper.MMRageOn) {
onOff = false;
}
if (onOff) {
if (this.lastColor == 3) {
this.lastColor = 2;
myColorTransform = {'rb': 255, 'gb': 0, 'bb': 0};
myColor.setTransform(myColorTransform);
} else {
if (this.lastColor == 1) {
this.lastColor = 2;
myColorTransform = {'rb': 255, 'gb': 255, 'bb': 0};
myColor.setTransform(myColorTransform);
} else {
if (this.lastColor == 2) {
this.lastColor = 3;
myColorTransform = {'rb': 255, 'gb': 255, 'bb': 0};
myColor.setTransform(myColorTransform);
}
}
}
} else {}
};
}
flyDebug = true;
flyDebug = false;
if (flyDebug) {
onMouseMove = function () {};
}
var xspeed = 0;
var yspeed = MMheroVar.ySpeed;
var pelletNum = 0;
healthPauseCount = 100;
var myElements_array = [1, 0.1, 0.1, 0, 100, 0.1, 1, 0.1, 0, 100, 0.1, 0.1, 0.1, 0, 100, 0, 0, 0, 1, 0];
var myColorMatrix_filter = new flash.filters.ColorMatrixFilter(myElements_array);
var myColorMatrix_filter_Clear = new flash.filters.ColorMatrixFilter();
ragePulseCount = 0;
ragePulseCount2 = 0;
ragePulseCount3 = 0;
}
frame 2 {
function detectKeys() {
MMLeftKey = false;
MMRightKey = false;
MMUpKey = false;
MMDownKey = false;
MMJumpKey = false;
MMShootKey = false;
if (MMBossInst && MMBossObject.alive) {
MMBossInst = false;
}
if (!MMPause && !MMBossInst && !MMBossInst2 && !MMRagePause && !MMheroVar.damaged) {
if (Key.isDown(39)) {
MMRightKey = true;
}
if (Key.isDown(37)) {
MMLeftKey = true;
}
if (Key.isDown(38)) {
MMUpKey = true;
}
if (Key.isDown(40)) {
MMDownKey = true;
}
if (Key.isDown(65)) {
MMJumpKey = true;
++ragePressTimer2;
}
if (!Key.isDown(65)) {
MMJumpKeyUP = true;
ragePressTimer2 = 0;
}
if (Key.isDown(83)) {
MMShootKey = true;
++ragePressTimer;
}
if (!Key.isDown(83)) {
MMShootKeyUP = true;
ragePressTimer = 0;
}
if (Key.isDown(68)) {
if (debugMode) {
MMKillPlayer();
}
}
if (Key.isDown(69)) {
if (!MMRagePause && debugMode) {
addRage();
addRage();
addRage();
addRage();
addRage();
addRage();
}
}
}
if (Key.isDown(77)) {
if (muteTimer >= 10) {
muteSounds();
muteTimer = 0;
}
}
if (Key.isDown(80)) {
if (debugMode) {
readyAnimationDone = true;
}
if (pauseTimer >= 10) {
pauseClipsFunc();
pauseTimer = 0;
}
}
if (Key.isDown(81)) {
}
}
this.onEnterFrame = function () {
++muteTimer;
++pauseTimer;
++shotsOutCount;
statusText.text = MMBossObject.currentStatus + ' IdleCount:' + idlePauseCount;
statusText.swapDepths(this.getNextHighestDepth());
detectKeys();
fillBossHP();
if (MMPause) {
if (healthPauseCount < 8) {
++healthPauseCount;
if (healthPauseCount == 8) {
MMPause = false;
if (MMheroVar.currentAnim == 'walk') {
MMheroVar.clip.guts.clip.play();
}
}
}
}
if (MMbossTransition) {
++MMbossCount;
}
_parent.healthBar._x = (_parent._x / screenScale) * -1 + 16 * screenScale;
_parent.rageBar._x = (_parent._x / screenScale) * -1 + 6 * screenScale;
rageFace._x = (_parent._x / screenScale) * -1 + 128;
if (beamMap) {
checkBeamHits();
}
if (!MMPause && pholder != undefined) {
pholder.unloadMovie();
}
if (!MMPause && MMheroVar.alive) {
++MMBossMoveCount;
MMBossMove();
checkRagePulse();
runEnemyCode();
moveDrops();
MMBossCheckPlayerHits();
}
if (!MMPause && !MMtransition) {
if (MMworldVar.currentMap == 6) {
if (!lifeDropped) {
if (!lifeTaken) {
dropLife(138, 95);
lifeDropped = true;
}
}
}
if (MMworldVar.currentMap == 12) {
if (!lifeDropped2) {
dropHealth(114, 109);
if (!lifeTaken2) {
dropLife2(114, 193);
}
lifeDropped2 = true;
}
}
MMMovePellet();
MMUpdateHealthBar();
if (MMheroVar.clip._y >= 220) {
++MMworldVar.currentMap;
nextMap();
if (MMworldVar.currentMap == 8) {
}
MMtransition = true;
} else {
moveHero();
if (MMworldVar.currentMap == 7 || MMworldVar.currentMap == 15) {
moveMap();
}
}
} else {
if (MMtransition) {
var v4 = 10;
if (this['bgClip' + MMworldVar.currentMap]._y - v4 <= bgYPos) {
this['bgClip' + MMworldVar.currentMap]._y = bgYPos;
this['bgClip' + MMworldVar.currentMap]._x = 0;
removeMovieClip(this['bgClip' + (MMworldVar.currentMap - 1)]);
MMheroVar.ypos = MMheroVar.clip._y;
MMheroVar.xpos -= MMbgTransX;
MMheroVar.clip._x = MMheroVar.xpos + MMheroVar.clipW / 2;
MMbgTransX = 0;
_parent._x = 0;
_parent.coverer._x = -_parent._x - 347;
MMcurrBG = this['bgClip' + MMworldVar.currentMap];
MMAddEnemies();
MMtransition = false;
MMRagePause = false;
} else {
var v3 = MMEnemies.length;
i = v3 - 1;
while (i >= 0) {
removeMovieClip(MMEnemies[i]);
MMEnemies.splice(i, 1);
--i;
}
this['bgClip' + (MMworldVar.currentMap - 1)]._y -= v4;
this['bgClip' + MMworldVar.currentMap]._y -= v4;
MMheroVar.clip._y -= v4;
MMheroVar.yPos = MMheroVar.clip._y;
}
}
}
};
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getCode();
};
Key.addListener(keyListener);
}
frame 2 {
function nextMap() {
removeDrops();
blackBars._x = -40;
darkCount = 2;
MMRemovePellet();
checkIfBeams();
if (MMworldVar.currentMap == 8) {
MMbgTransX = 1021;
}
MMfirstMap = true;
var v2 = 'lvl6_bg' + MMworldVar.currentMap;
this.attachMovie(v2, 'bgClip' + MMworldVar.currentMap, this.getNextHighestDepth());
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
this['bgClip' + MMworldVar.currentMap]._x = MMbgTransX;
this['bgClip' + MMworldVar.currentMap]._y = MMbgTransY;
MMheroVar.clip.swapDepths(this.getNextHighestDepth());
blackBars.swapDepths(this.getNextHighestDepth());
blackBars._x = MMheroVar.xpos - 128;
}
function loadFirstMap() {
var v2 = 'lvl6_bg' + MMworldVar.currentMap;
resetMusic();
attachMovie(v2, 'bgClip' + MMworldVar.currentMap, this.getNextHighestDepth());
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
MMheroVar.clip.swapDepths(this.getNextHighestDepth());
MMheroVar.clip._xscale = -100;
blackBars.swapDepths(this.getNextHighestDepth());
readyPlay.swapDepths(this.getNextHighestDepth());
readyPlay.gotoAndPlay(1);
MMcurrBG = this['bgClip' + MMworldVar.currentMap];
MMcurrBG._y = bgYPos;
startMap();
}
function moveMap() {
statusText._x = _parent._x * -1;
xSpeedHalf = false;
if (MMworldVar.currentMap == 7) {
if (MMheroVar.xpos >= 128 && this['bgClip' + MMworldVar.currentMap]._width > 300) {
if (MMheroVar.xpos <= 1152) {
_parent._x = -MMheroVar.xpos + 128;
_parent.healthBar._x = (_parent._x / screenScale) * -1 + 16 * screenScale;
_parent.rageBar._x = (_parent._x / screenScale) * -1 + 6 * screenScale;
rageFace._x = (_parent._x / screenScale) * -1 + 129;
}
}
} else {
if (MMworldVar.currentMap == 15) {
if (MMheroVar.xpos >= 128 && this['bgClip' + MMworldVar.currentMap]._width > 300) {
if (MMheroVar.xpos <= 640) {
_parent._x = (-MMheroVar.xpos + 128) * screenScale;
_parent.healthBar._x = (_parent._x / screenScale) * -1 + 16 * screenScale;
_parent.rageBar._x = (_parent._x / screenScale) * -1 + 6 * screenScale;
}
}
if (MMheroVar.xpos >= 732 && MMheroVar.xpos <= 739) {
MMRemovePellet();
MMbossTrans1();
} else {
if (MMheroVar.xpos >= 988 && MMheroVar.xpos <= 998) {
MMRemovePellet();
MMbossTrans1();
}
}
}
}
_parent.coverer._x = -(_parent._x / screenScale) - 347;
}
function MMbossTrans1() {
if (!MMbossTransition) {
MMheroVar.jumping = false;
yspeed = 1;
if (MME_15_4.currentAction == 'attack') {
MME_15_4.clip.guts.gotoAndStop('rest');
MME_15_4.currentAction = 'rest';
}
MMPause = true;
if (MMheroVar.falling) {
setHeroAnim('jump');
} else {
setHeroAnim('rest');
}
MMbossTransition = true;
if (!MMBossDoor2) {
MMRemovePellet();
this['bgClip' + MMworldVar.currentMap].doorCover1.play();
MMBossDoor2 = true;
if (!jasondead) {
_root.aboboMedal('Jason Lives');
}
} else {
MMRemovePellet();
this['bgClip' + MMworldVar.currentMap].doorCover2.play();
}
}
}
function startMap() {
MMPause = true;
setHeroAnim('beamIn');
}
function MMDeathRestart() {
i = 0;
while (i < MMEnemyProjectiles.length) {
removeMovieClip(MMEnemyProjectiles[i]);
MMEnemyProjectiles.splice(i, 1);
++i;
}
removeDrops();
readyAnimationDone = false;
lifeDropped = false;
lifeDropped2 = false;
MMRage = 0;
MMRageOn = false;
MMUpdateRageBar();
MMheroVar = {'clip': hero, 'alive': true, 'speedMax': 3.5, 'jumpSpeed': 0, 'jumpSpeedInc': 4.4, 'xpos': 128, 'ypos': 126, 'xSpeed': 0, 'ySpeed': 0, 'clipW': 22, 'clipH': 34, 'TR': false, 'BR': false, 'TL': false, 'BL': false, 'underBR': false, 'underBR': false, 'overTL': false, 'overTR': false, 'sideR': false, 'sideR': false, 'groundDetect': false, 'jumping': false, 'walking': false, 'falling': false, 'shooting': false, 'damaged': false, 'takeDamage': true, 'shootCount': 0};
blackBars._x = -40;
resetMusic();
roomColor = true;
roomColor2 = false;
roomBlack = false;
roomRed = false;
_parent.healthBarBoss._x = -190;
MMBossHP = 0;
MMBossHPFillCount = 0;
MMBossObject.xPos = -200;
MMBossObject.yPos = -200;
MMBossObject.alive = false;
MMBossObject.clip._xscale = 100;
bossClip._x = MMBossObject.xPos;
bossClip._y = MMBossObject.yPos;
healthBarBoss.x = -1000;
MMBossInst = false;
MMbossTransition = false;
removeMovieClip(this['bgClip' + MMworldVar.currentMap]);
MME_15_9.driving = true;
MME_15_9.flying = false;
MME_15_9.lift = false;
if (MMworldVar.currentMap >= 15) {
MMworldVar.currentMap = 15;
megaManStartLvl = 15;
MMheroVar.xpos = 42;
MMheroVar.clip._x = 42;
MMheroVar.ypos = 158;
MMheroVar.clip._y = 158;
_parent._x = 0;
if (MMBossDoor2) {
MMheroVar.xpos = 889;
MMheroVar.clip._x = 889;
MMheroVar.ypos = 93;
MMheroVar.clip._y = 93;
_parent._x = -(MMheroVar.xpos * screenScale) + 121;
readyPlay._x = 875;
}
bgTrans = 'lvl6_bg' + MMworldVar.currentMap;
this.attachMovie(bgTrans, 'bgClip' + MMworldVar.currentMap, this.getNextHighestDepth());
if (MMBossDoor2) {
this['bgClip' + MMworldVar.currentMap].aw.gotoAndStop(2);
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
}
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
} else {
if (MMworldVar.currentMap >= 7) {
MMworldVar.currentMap = 7;
MMheroVar.xpos = 55;
MMheroVar.clip._x = 55;
MMheroVar.ypos = 158;
MMheroVar.clip._y = 158;
bgTrans = 'lvl6_bg' + MMworldVar.currentMap;
this.attachMovie(bgTrans, 'bgClip' + MMworldVar.currentMap, this.getNextHighestDepth());
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
_parent._x = 0;
} else {
MMworldVar.currentMap = 0;
MMheroVar.xpos = 128;
MMheroVar.clip._x = 128;
MMheroVar.ypos = 126;
MMheroVar.clip._y = 126;
bgTrans = 'lvl6_bg' + MMworldVar.currentMap;
this.attachMovie('lvl6_bg0', 'bgClip' + MMworldVar.currentMap, this.getNextHighestDepth());
this['bgClip' + MMworldVar.currentMap].aw._alpha = 0;
_parent._x = -MMheroVar.xpos + 128;
}
}
megaManHealth = megaManHealthMAX;
MMcurrBG = this['bgClip' + MMworldVar.currentMap];
MMcurrBG._y = bgYPos;
if (!MMBossDoor2) {
MMAddEnemies();
}
MMPause = true;
MMheroVar.alive = true;
beamHit = false;
setHeroAnim('beamIn');
MMheroVar.clip._xscale = -100;
MMBossObject.clip.swapDepths(this.getNextHighestDepth());
MMheroVar.clip.swapDepths(this.getNextHighestDepth());
blackBars.swapDepths(this.getNextHighestDepth());
readyPlay.swapDepths(this.getNextHighestDepth());
_parent.coverer._x = -(_parent._x / screenScale) - 347;
readyPlay.gotoAndPlay(1);
++totaldeaths;
_root.megamanGameOver();
}
function updateDarkRoom() {
if (debugMode) {
this['bgClip' + MMworldVar.currentMap].aw._alpha = 50;
}
++darkCount;
if (darkCount / 3 == Math.round(darkCount / 3)) {
if (MMworldVar.currentMap == 7) {
if (roomColor) {
if (this['bgClip' + MMworldVar.currentMap].redFade._alpha > 0) {
this['bgClip' + MMworldVar.currentMap].redFade._alpha = 0;
this['bgClip' + MMworldVar.currentMap].blackFade._alpha = 0;
}
darkCount = 0;
roomColor = false;
}
if (MMheroVar.clip._x <= 100) {
roomBlack = false;
}
if (MMheroVar.clip._x >= 150 && MMheroVar.clip._x < 1060) {
roomBlack = true;
}
if (MMheroVar.clip._x >= 1060) {
roomBlack = false;
roomColor2 = true;
}
if (MME_7_8.active || MME_7_13.active) {
roomRed = true;
} else {
roomRed = false;
}
if (roomRed) {
if (this['bgClip' + MMworldVar.currentMap].redFade._alpha < 100) {
this['bgClip' + MMworldVar.currentMap].redFade._alpha += 20;
}
}
if (!roomRed) {
if (this['bgClip' + MMworldVar.currentMap].redFade._alpha > 0) {
this['bgClip' + MMworldVar.currentMap].redFade._alpha -= 20;
}
}
if (roomBlack) {
if (this['bgClip' + MMworldVar.currentMap].blackFade._alpha < 100) {
this['bgClip' + MMworldVar.currentMap].blackFade._alpha += 20;
}
}
if (!roomBlack) {
if (this['bgClip' + MMworldVar.currentMap].blackFade._alpha > 0) {
this['bgClip' + MMworldVar.currentMap].blackFade._alpha -= 20;
}
}
}
}
}
var MMbgTransX = 0;
var MMbgTransY = 247;
var MMbgTrans2X = 0;
var MMbgTrans2Y = -233;
var bgYPos = 7;
var MMfirstMap = false;
var MMtransition = false;
var lifeDropped = false;
var lifeTaken = false;
var lifeDropped2 = false;
var lifeTaken2 = false;
loadFirstMap();
var darkCount = 2;
}
frame 2 {
function MMBossFinished() {
_root.aboboMedal('Mega Mashed');
if (totaldeaths <= 0) {
_root.aboboMedal('Mega Master');
}
_root.megamanOver();
}
function MMStartBoss() {
bossRageReset = false;
bossActionDone2 = false;
meltTimer = 0;
MMBossRagePause = false;
MMBossInst2 = false;
bossSmallDead = false;
bossSmallDeadDone = false;
smallBossJumpStep = 0;
MMBossObject.small = true;
MMBossPositions = new Array();
smallBossJumpSpots = new Array();
MMBossObject.clip.swapDepths(this.getNextHighestDepth());
MMBossHeadClip.swapDepths(this.getNextHighestDepth());
drillAttack.swapDepths(this.getNextHighestDepth());
MMBossHeadClip._xscale = 100;
MMBossHeadClip.gotoAndStop(1);
MMBossHeadClip._x = MMBossObject.xPos - 320;
MMBossHeadClip._y = MMBossObject.yPos - 840;
MMheroVar.clip.swapDepths(this.getNextHighestDepth());
_parent.healthBarBoss._x = _parent.healthBar._x + 16 * screenScale;
_parent.healthBarBoss.gotoAndStop(1);
MMBossObject.attackComplete = true;
MMBossObject.xPos = MMheroVar.xpos + 150;
MMBossObject.yPos = MMheroVar.ypos + 30;
MMBossPositions.push(MMBossObject.xPos);
MMBossPositions.push(MMBossObject.xPos - 105);
MMBossPositions.push(MMBossObject.xPos - 35);
MMBossPositions.push(MMBossObject.xPos + 25);
smallBossJumpSpots.push(MMBossObject.xPos);
smallBossJumpSpots.push(MMBossObject.xPos - 105);
smallBossJumpSpots.push(MMBossObject.xPos - 35);
smallBossJumpSpots.push(MMBossObject.xPos + 25);
smallBossJumpSpots.push(MMBossObject.xPos + 60);
smallBossJumpSpots.push(MMBossObject.xPos - 135);
smallBossCount = 0;
smallBossProjThrow = false;
smallBossProj._x = MMBossObject.xPos;
MMBossObject.currentStatus = 'idle';
smallBossLastAction = 'idle';
MMDrillLeft = MMBossPositions[0] - 155;
MMDrillRight = MMBossPositions[0] + 70;
smallBossProj.swapDepths(this.getNextHighestDepth());
smallBossPellet.swapDepths(this.getNextHighestDepth());
MMheroVar.clip.swapDepths(this.getNextHighestDepth());
smallBossProj._alpha = 100;
smallBossPellet._alpha = 100;
bossActionDone = true;
bossClip._x = MMBossObject.xPos;
bossClip._y = MMBossObject.yPos;
MMBossGoto('fallingIn');
MMBossObject.bossPosition = 0;
}
function MMBossMove() {
if (MMBossDoor2) {
if (MMBossObject.playDeath && MMBossObject.currentStatus != 'launchhead' && MMBossObject.currentStatus != 'headwait') {
MMBossObject.playDeath = false;
MMBossObject.playDeathGO = true;
MMBossGoto('death');
return undefined;
}
if (MMRagePause) {
MMBossRagePause = true;
}
if (!MMRagePause) {
MMBossRagePause = false;
}
if (MMBossObject.small) {
if (!MMBossObject.jumping && MMBossObject.currentStatus != 'idle' && MMBossObject.currentStatus != 'smallShoot' && MMBossObject.currentStatus != 'smallThrow') {
if (MMBossHP > 0) {
MMBossObject.currentStatus = 'idle';
} else {
bossActionDone = true;
if (!MMBossInst2) {
MMBossInst2 = true;
if (MMBossObject.currentStatus != 'smallDie') {
smallBossProj._alpha = 0;
smallBossPellet._alpha = 0;
smallBossLastAction = 'smallDie';
MMBossObject.currentStatus = 'smallDie';
MMBossGoto('smallDie');
}
}
}
} else {
if (MMBossObject.currentStatus == 'smallShoot') {
if (MMBossHP <= 0) {
bossActionDone = true;
if (!MMBossInst2) {
MMBossInst2 = true;
if (MMBossObject.currentStatus != 'smallDie') {
smallBossProj._alpha = 0;
smallBossPellet._alpha = 0;
smallBossLastAction = 'smallDie';
MMBossObject.currentStatus = 'smallDie';
MMBossGoto('smallDie');
}
}
}
}
if (MMBossObject.jumping && !MMPause && !MMBossRagePause) {
MMBossObject.xPos -= smallBossJumpStep;
MMBossObject.clip._x = MMBossObject.xPos;
}
}
if (!MMBossRagePause && !MMPause) {
++smallBossCount;
if (!MMBossObject.jumping && MMBossObject.currentStatus == 'idle' && bossRageReset == true) {
bossActionDone = true;
bossRageReset = false;
smallBossCount = 20;
}
} else {
if (!MMBossObject.jumping && !MMBossRagePause) {
MMBossObject.currentStatus = 'idle';
bossActionDone = false;
}
smallBossCount = 0;
}
if (MMBossObject.xPos > MMheroVar.xpos + 5 && MMBossObject.clip._xscale != 100 && bossActionDone) {
MMBossObject.clip._xscale = 100;
MMBossHeadClip._xscale = 100;
MMBossObject.xPos -= 5;
MMBossObject.clip._x = MMBossObject.xPos;
} else {
if (MMBossObject.xPos <= MMheroVar.xpos - 5 && MMBossObject.clip._xscale != -100 && bossActionDone) {
MMBossObject.clip._xscale = -100;
MMBossHeadClip._xscale = -100;
MMBossObject.xPos += 5;
MMBossObject.clip._x = MMBossObject.xPos;
}
}
if (MMBossObject.alive && MMBossObject.currentStatus == 'idle' && smallBossCount > 30) {
if (MMBossObject.bossPosition == 0 && MMBossHP > 0) {
MMBossObject.currentStatus = 'smallJump';
MMBossGoto('smallJump');
MMBossFirstAttack = true;
smallBossOldPos = MMBossObject.bossPosition;
MMBossObject.bossPosition = 4;
MMBossObject.jumping = true;
smallBossJumpStep = (smallBossJumpSpots[smallBossOldPos] - smallBossJumpSpots[MMBossObject.bossPosition]) / 24;
} else {
if (MMBossObject.alive && MMBossObject.currentStatus == 'idle' && smallBossCount > 30) {
if (bossActionDone && !MMBossInst2 && smallBossLastAction != 'smallJump') {
if (MMBossHP <= 0 && MMBossObject.bossPosition == 0) {
smallBossLastAction = 'smallChange';
MMBossObject.currentStatus = 'smallChange';
MMBossGoto('smallChange');
MMBossObject.small = false;
MMBossInst2 = true;
} else {
if (!bossSmallDeadDone && MMBossHP <= 0) {
if (MMBossObject.currentStatus != 'smallDie') {
smallBossLastAction = 'smallDie';
MMBossObject.currentStatus = 'smallDie';
MMBossGoto('smallDie');
MMBossInst2 = true;
}
} else {
smallBossLastAction = 'smallJump';
MMBossObject.currentStatus = 'smallJump';
MMBossGoto('smallJump');
smallBossOldPos = MMBossObject.bossPosition;
MMBossPickPosition();
MMBossObject.jumping = true;
smallBossJumpStep = (smallBossJumpSpots[smallBossOldPos] - smallBossJumpSpots[MMBossObject.bossPosition]) / 24;
}
}
} else {
if (bossActionDone) {
if (MMBossHP <= 0) {
if (MMBossObject.bossPosition != 0) {
if (bossSmallDeadDone) {
MMBossObject.currentStatus = 'smallJump';
MMBossGoto('smallJump');
smallBossOldPos = MMBossObject.bossPosition;
MMBossObject.bossPosition = 0;
MMBossObject.jumping = true;
smallBossJumpStep = (smallBossJumpSpots[smallBossOldPos] - smallBossJumpSpots[MMBossObject.bossPosition]) / 24;
} else {
if (!MMBossInst2) {
MMBossInst2 = true;
if (MMBossObject.currentStatus != 'smallDie') {
smallBossLastAction = 'smallDie';
MMBossObject.currentStatus = 'smallDie';
MMBossGoto('smallDie');
smallBossProj._alpha = 0;
smallBossPellet._alpha = 0;
_root.aboboMedal('Skynet Stopper');
}
}
}
} else {
smallBossLastAction = 'smallChange';
MMBossObject.currentStatus = 'smallChange';
MMBossGoto('smallChange');
MMBossObject.small = false;
}
} else {
randAttack = Math.floor(Math.random() * 2) + 1;
if (randAttack == 1 || MMBossFirstAttack) {
MMBossFirstAttack = false;
if (smallBossProjThrow) {
smallBossProj.proj.gotoAndStop(2);
} else {
smallBossProj.proj.gotoAndStop(1);
smallBossProjThrow = true;
}
smallBossProj._alpha = 100;
smallBossProj._xscale = MMBossObject.clip._xscale;
smallBossProj._x = MMBossObject.xPos + (MMBossObject.clip._xscale / 100) * 5;
smallBossProj.play();
MMBossGoto('smallThrow');
smallBossLastAction = 'smallThrow';
MMBossObject.currentStatus = 'smallThrow';
} else {
if (randAttack == 2) {
smallBossPellet._xscale = MMBossObject.clip._xscale;
smallBossPellet._x = MMBossObject.xPos + (MMBossObject.clip._xscale / 100) * 5;
smallBossPellet.gotoAndPlay(2);
MMBossGoto('smallShoot');
smallBossLastAction = 'smallShoot';
MMBossObject.currentStatus = 'smallShoot';
}
}
bossActionDone = false;
}
}
}
}
}
}
} else {
if (MMBossRagePause) {
idlePauseCount = 0;
}
if (!MMBossRagePause && !MMPause) {
++meltTimer;
}
if (MMBossObject.alive && MMBossObject.currentStatus == 'idle' && MMBossObject.attackComplete) {
if (MMBossObject.bossPosition == 2) {
if (MMBossObject.xPos > MMheroVar.xpos && MMBossObject.clip._xscale != 100) {
MMBossObject.clip._xscale = 100;
MMBossHeadClip._xscale = 100;
MMBossObject.currentStatus = 'turnaround';
MMBossGoto('turnaround');
} else {
if (MMBossObject.xPos <= MMheroVar.xpos && MMBossObject.clip._xscale != -100) {
MMBossObject.clip._xscale = -100;
MMBossHeadClip._xscale = -100;
MMBossObject.currentStatus = 'turnaround';
MMBossGoto('turnaround');
}
}
}
if (!MMBossRagePause && !MMPause) {
++idlePauseCount;
MMBossPickAttack();
}
} else {
if (MMBossObject.alive && MMBossObject.currentStatus == 'puddle' && !MMBossRagePause) {
MMBossMoveCount = 20;
MMBossObject.xPos = MMBossPositions[MMBossObject.bossPosition];
if (bossClip._x > MMBossObject.xPos + MMBossObject.speed) {
bossClip._x -= MMBossObject.speed;
meltTimer = 0;
}
if (bossClip._x < MMBossObject.xPos - MMBossObject.speed) {
bossClip._x += MMBossObject.speed;
meltTimer = 0;
}
if (bossClip._x <= MMBossObject.xPos + MMBossObject.speed && bossClip._x >= MMBossObject.xPos - MMBossObject.speed) {
if (meltTimer <= 15) {
if (meltTimer == 5 || meltTimer == 10) {
hitFlash(MMBossObject.clip);
}
} else {
bossClip._x = MMBossObject.xPos;
idlePauseGoal = idlePauseMin + random(idlePauseMin);
MMBossObject.currentStatus = 'unMelt';
MMBossGoto('unmelt');
}
}
if (MMBossObject.bossPosition == 1) {
MMBossObject.clip._xscale = -100;
}
if (MMBossObject.bossPosition == 2) {
if (MMBossObject.xPos > MMheroVar.xpos) {
MMBossObject.clip._xscale = 100;
} else {
if (MMBossObject.xPos <= MMheroVar.xpos) {
MMBossObject.clip._xscale = -100;
}
}
}
if (MMBossObject.bossPosition == 3) {
MMBossObject.clip._xscale = 100;
}
}
}
}
}
}
function MMBossStartMove() {
MMBossInst2 = false;
MMBossPickPosition();
if (MMBossObject.alive && MMBossObject.currentStatus != 'puddle') {
MMBossObject.currentStatus = 'melt';
MMBossGoto('melt');
}
}
function MMUpdateBossHealth() {
if (Math.floor(MMBossHP) == 0) {
if (MMBossHP == 0) {
_parent.healthBarBoss.gotoAndStop(1);
} else {
_parent.healthBarBoss.gotoAndStop(2);
}
} else {
_parent.healthBarBoss.gotoAndStop(Math.floor(MMBossHP) + 1);
}
var v3 = new Object();
if (MMBossObject.small) {
v3.nam = 'ROBOBOBO';
v3.picid = 102;
} else {
v3.nam = 'MECHABOBO';
v3.picid = 89;
}
v3.hp = MMBossHP;
v3.maxhp = MMBossMaxHP;
_root.mmBadHit(v3);
}
function MMBossTakeDamage() {
MMBossHP -= 0.5;
MMUpdateBossHealth();
if (MMBossObject.small) {
if (MMBossHP <= 0) {
bossSmallDead = true;
bossActionDone = true;
MMBossObject.currentStatus = 'idle';
smallBossCount = 30;
smallBossLastAction = 'smallJump';
} else {
hitFlash(MMBossObject.clip);
if (MMRageSoundCount == 0 || !MMRageAttack) {
_global.megamanWrapper.MMsfx.bossSmallHurtSound.start(0, 0);
++MMRageSoundCount;
}
}
} else {
if (MMRageSoundCount == 0 || !MMRageAttack) {
_global.megamanWrapper.MMsfx.bossHurtSound.start(0, 0);
++MMRageSoundCount;
}
if (MMBossHP <= 0) {
MMBossObject.alive = false;
if (MMBossObject.currentStatus != 'launchhead' && MMBossObject.currentStatus != 'headwait') {
MMBossObject.finished = true;
MMBossGoto('death');
MMBossInst2 = true;
} else {
MMBossObject.playDeath = true;
MMBossInst2 = true;
if (MMBossHeadClip._currentframe <= 150) {
MMBossHeadClip.gotoAndPlay(150);
}
}
}
}
}
function MMBossPickPosition() {
if (MMBossObject.small) {
bossPositionNew = random(smallBossJumpSpots.length - 1) + 1;
} else {
bossPositionNew = random(MMBossPositions.length - 1) + 1;
}
if (MMBossObject.bossPosition == bossPositionNew) {
MMBossPickPosition();
} else {
MMBossObject.bossPosition = bossPositionNew;
}
}
function MMBossPickAttack() {
if (idlePauseGoal <= idlePauseCount && MMBossObject.bossPosition != 0 && MMBossObject.attackComplete) {
idlePauseCount = 0;
MMBossAttackRand = random(3) + 1;
MMBossObject.attackComplete = false;
if (MMBossObject.bossPosition == 1) {
if (MMBossAttackRand == 1) {
MMBossObject.currentStatus = 'shootspikes';
MMBossGoto('shootspikes');
} else {
if (MMBossAttackRand == 2) {
MMBossObject.currentStatus = 'shoot';
MMBossGoto('shoot');
} else {
if (MMBossAttackRand == 3) {
MMBossObject.currentStatus = 'shoot';
MMBossGoto('shoot');
}
}
}
} else {
if (MMBossObject.bossPosition == 2) {
if (MMBossAttackRand == 1) {
MMBossObject.currentStatus = 'shootspikes';
MMBossGoto('shootspikes');
} else {
if (MMBossAttackRand == 2) {
MMBossObject.currentStatus = 'launchhead';
MMBossGoto('launchhead');
} else {
if (MMBossAttackRand == 3) {
MMBossObject.currentStatus = 'launchhead';
MMBossGoto('launchhead');
}
}
}
} else {
if (MMBossObject.bossPosition == 3) {
if (MMBossAttackRand == 1) {
MMBossObject.currentStatus = 'shootspikes';
MMBossGoto('shootspikes');
} else {
if (MMBossAttackRand == 2) {
MMBossObject.currentStatus = 'shoot';
MMBossGoto('shoot');
} else {
if (MMBossAttackRand == 3) {
MMBossObject.currentStatus = 'shoot';
MMBossGoto('shoot');
}
}
}
}
}
}
} else {
if (idlePauseGoal <= idlePauseCount && MMBossObject.bossPosition == 0) {
MMBossStartMove();
}
}
}
function fillBossHP() {
if (MMBossObject.filling) {
++MMBossHPFillCount;
if (MMBossHPFillCount >= 1) {
++MMBossHP;
var v2 = new Object();
v2.nam = 'ROBOBOBO';
v2.hp = MMBossHP;
v2.maxhp = MMBossMaxHP;
v2.picid = 102;
_root.mmBadHit(v2);
if (MMBossHP >= 28) {
MMBossHP = 28;
MMBossObject.filling = false;
MMPause = false;
}
MMBossHPFillCount = 0;
}
MMUpdateBossHealth();
}
}
function MMBossGoto(STRING) {
smallBossLastAction = STRING;
this.bossClip.guts.gotoAndPlay(STRING);
}
function MMBossCheckPlayerHits() {
if (MMBossObject.alive && !MMBossInst2) {
i = 0;
while (i < MMPellets.length) {
if (!MMPellets[i].deflected) {
if (MMPellets[i].hitarea.hitTest(bossClip.guts.hitBox)) {
MMBossTakeDamage();
addRage();
MMPellets[i].alive = false;
bossClip.guts.headFlash.play();
} else {
if (MMPellets[i].hitarea.hitTest(MMBossHeadClip.damageBox1)) {
MMBossTakeDamage();
addRage();
MMPellets[i].alive = false;
MMBossHeadClip.bossHead.guts.gotoAndPlay('damaged');
}
}
}
++i;
}
if (MMheroVar.clip.guts.hitarea.hitTest(bossClip.guts.damageBox)) {
MMPlayerTakeDamage(3);
}
if (MMBossAttackNow == 'shoot') {
if (MMheroVar.clip.guts.hitarea.hitTest(bossClip.guts.bullets.damageBox)) {
MMPlayerTakeDamage(5);
}
}
if (MMBossAttackNow == 'shootspikes') {
i = 1;
while (i <= 10) {
if (MMheroVar.clip.guts.hitarea.hitTest(drillAttack['hitBox' + i])) {
MMPlayerTakeDamage(10);
}
++i;
}
}
if (MMheroVar.clip.guts.hitarea.hitTest(smallBossProj.damageBox1)) {
MMPlayerTakeDamage(3);
}
if (smallBossProj._alpha != 0) {
if (smallBossProj.damageBox1.hitTest(this['bgClip' + MMworldVar.currentMap].aw2)) {
if (smallBossProj.proj._currentframe == 1) {
this['bgClip' + MMworldVar.currentMap].splat._alpha = 100;
_global.megamanWrapper.MMsfx.bossWileSound.start(0, 0);
} else {
_global.megamanWrapper.MMsfx.gearHitSound.start(0, 0);
}
smallBossProj.boom._x = smallBossProj.damageBox1._x;
smallBossProj.boom._y = smallBossProj.damageBox1._y;
smallBossProj.gotoAndStop(1);
smallBossProj.boom.play();
}
if (smallBossProj.damageBox1.hitTest(this['bgClip' + MMworldVar.currentMap].aw3)) {
_global.megamanWrapper.MMsfx.gearHitSound.start(0, 0);
smallBossProj.boom._x = smallBossProj.damageBox1._x;
smallBossProj.boom._y = smallBossProj.damageBox1._y;
smallBossProj.gotoAndStop(1);
smallBossProj.boom.play();
}
}
if (MMheroVar.clip.guts.hitarea.hitTest(smallBossPellet.damageBox1)) {
MMPlayerTakeDamage(3);
}
if (MMheroVar.clip.guts.hitarea.hitTest(smallBossPellet.damageBox2)) {
MMPlayerTakeDamage(3);
}
if (MMBossAttackNow == 'launchhead') {
if (MMheroVar.clip.guts.hitarea.hitTest(MMBossHeadClip.damageBox1)) {
MMPlayerTakeDamage(6);
}
if (MMheroVar.clip.guts.hitarea.hitTest(MMBossHeadClip.damageBox2)) {
MMPlayerTakeDamage(6);
}
if (MMheroVar.clip.guts.hitarea.hitTest(MMBossHeadClip.damageBox3)) {
MMPlayerTakeDamage(6);
}
}
}
}
var MMBossHP = 0;
var MMBossMaxHP = 28;
var MMBossFight = false;
var MMBossObject = {'small': true, 'clip': bossClip, 'playDeath': false, 'attackComplete': true, 'currentStatus': 'idle', 'speed': 3, 'alive': false, 'finished': false, 'filling': false, 'jumping': false, 'bossPosition': 0, 'xPos': -200, 'yPos': -200};
bossClip._x = MMBossObject.xPos;
bossClip._y = MMBossObject.yPos;
MMBossTransition = false;
bossClip.guts.gotoAndStop('idle');
var MMBossHPFillCount = 0;
var MMBossInst = false;
var MMBossMemory = new Array();
var MMBossActions = new Array('idle');
var MMBossPositions = [];
var MMBossMoveCount = 0;
var MMDrillLeft = 0;
var MMDrillRight = 0;
var idlePauseMin = 24;
var MMBossAttackNow = '';
var smallBossJumpSpots = new Array();
var smallBossJumpStep = 0;
var smallBossOldPos = 0;
var smallBossToss = false;
var bossActionDone = true;
var smallBossProjThrow = false;
var MMBossRagePause = false;
bossRageReset = false;
bossActionDone2 = false;
var idlePauseCount = 0;
var idlePauseGoal = 0;
}
frame 2 {
function MMAddEnemies() {
MMEnemies = new Array();
i = 0;
while (i < MMEnemiesInRoom[MMworldVar.currentMap].length) {
if (MMEnemiesInRoom[MMworldVar.currentMap][i] != 0) {
thisEnemy = this[MMEnemiesInRoom[MMworldVar.currentMap][i]];
thisEnemy.alive = true;
thisEnemy.active = false;
thisEnemy.count = 0;
thisEnemy.clip = MMcurrBG[thisEnemy.clipName];
thisEnemy.xpos = thisEnemy.clip._x;
thisEnemy.ypos = thisEnemy.clip._y;
thisEnemy.xspeed = 0;
thisEnemy.yspeed = 0;
MMEnemies.push(thisEnemy);
thisEnemy.currHP = thisEnemy.hp;
thisEnemy.currclipW = thisEnemy.clipW;
if (thisEnemy.type == 'mech') {
}
if (thisEnemy.type == 'crawl' && thisEnemy.type != 'penguin') {
thisEnemy.xposStart = thisEnemy.clip._x;
thisEnemy.yposStart = thisEnemy.clip._y;
}
}
++i;
}
}
function runEnemyCode() {
updateDarkRoom();
checkEnemyHits();
updateProjectiles();
++flameCount;
if (!MMPause) {
i = 0;
while (i < MMEnemies.length) {
var v3 = MMEnemies[i];
if (v3.alive) {
if (!v3.active) {
if (v3.type == 'penguin') {
if (v3.clip.guts.hitBox.hitTest(MMheroVar.clip.guts.hitarea)) {
if (!v3.clip.guts.hitSomething) {
MMPlayerTakeDamage(3);
v3.clip.guts.virus._alpha = 0;
v3.clip.guts.boom._x = v3.clip.guts.virus._x;
v3.clip.guts.boom._y = v3.clip.guts.virus._y;
v3.clip.guts.gotoAndPlay('end');
v3.clip.guts.boom.play();
}
} else {
if (v3.clip.guts.hitBox.hitTest(v3.clip.guts.hitBox2)) {
if (!v3.clip.guts.hitSomething) {
v3.clip.guts.virus._alpha = 0;
v3.clip.guts.boom._x = v3.clip.guts.virus._x;
v3.clip.guts.boom._y = v3.clip.guts.virus._y;
v3.clip.guts.hitSomething = true;
v3.clip.guts.boom.play();
}
}
}
}
}
if (Math.abs(MMheroVar.xpos - v3.xpos) < 140 || MMheroVar.xpos < 256 && v3.xpos < 256) {
if (v3.type != 'flame' && v3.type != 'masterDude' && !MMBossDoor2) {
v3.active = true;
}
} else {
if (v3.type != 'masterDude') {
v3.active = false;
}
if (v3.type == 'springy') {
v3.clip.guts.gotoAndStop('rest');
}
}
if (v3.type == 'mech') {
if (Math.abs(MMheroVar.xpos - v3.xpos) < 150 || MMheroVar.xpos < 256 && v3.xpos < 256) {
v3.active = true;
}
}
if (MMBossDoor2) {
v3.active = false;
v3.alive = false;
}
if (v3.type != 'mech') {
if (Math.abs(MMheroVar.xpos - thisEnaemy.xpos) > 140) {
v3.active = false;
}
} else {
if (Math.abs(MMheroVar.xpos - thisEnaemy.xpos) > 144) {
v3.active = false;
}
}
if (v3.active && !MMRagePause) {
if (v3.aware) {
if (MMheroVar.xpos < v3.xpos) {
if (v3.type != 'crawl' && v3.type != 'penguin' && v3.type != 'master') {
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (MMheroVar.xpos > v3.xpos) {
if (v3.type != 'crawl' && v3.type != 'penguin' && v3.type != 'master') {
v3.dir = 1;
v3.clip._xscale = -100;
}
}
}
}
++v3.count;
}
if (v3.active) {
if (v3.type == 'mech') {
if (v3.currHP <= v3.hp / 2) {
if (v3.currHP == v3.hp / 2) {
v3.clip.guts.gotoAndStop('die');
v3.xspeed = 0;
v3.yspeed = 0;
v3.currentAction = 'die';
v3.count = 0;
--v3.currHP;
v3.currclipW = 15;
}
if (v3.count > 30 && !v3.walking && v3.currentAction != 'die' && v3.currentAction != 'shootbub') {
v3.walking = true;
v3.currentAction = 'walkbub';
v3.clip.guts.gotoAndStop(v3.currentAction);
v3.targX = MMheroVar.xpos;
}
if (v3.walking && v3.targX != v3.xpos && v3.count > 30 && v3.count < 50) {
if (v3.targX < v3.xpos + 5 && v3.targX > v3.xpos - 5) {
v3.xspeed = 0;
} else {
v3.xspeed = 1 * v3.dir;
}
} else {
if (v3.count < 80 && v3.count > 50) {
v3.xspeed = 0;
v3.walking = false;
if (MMheroVar.xpos < v3.xpos + 180 && MMheroVar.xpos > v3.xpos - 180) {
if (v3.currentAction != 'shootbub' && v3.active) {
v3.currentAction = 'shootbub';
_global.megamanWrapper.MMsfx.spitBubbleSound.start(0, 0);
v3.clip.guts.gotoAndStop(v3.currentAction);
thisBubble = this.attachMovie('MMBaddieBubble', 'bubble' + MMEPNum, this.getNextHighestDepth());
++MMEPNum;
thisBubble.proType = 'bubble';
thisBubble._x = v3.xpos + 10 * v3.dir;
thisBubble._y = v3.ypos + 10;
MMEnemyProjectiles.push(thisBubble);
if (v3.dir == -1) {
thisBubble._xscale = -100;
}
}
}
} else {
if (v3.count > 80) {
if (v3.currentAction != 'restbub') {
v3.currentAction = 'restbub';
v3.clip.guts.gotoAndStop(v3.currentAction);
v3.count = 0;
}
}
}
}
} else {
if (v3.count > 30 && !v3.falling) {
v3.yspeed = -10;
v3.xspeed = 4 * v3.dir;
v3.clip.guts.gotoAndStop('jump');
v3.currentAction = 'jump';
} else {
if ((v3.underBL || v3.underBR) && v3.yspeed > 0 && v3.falling) {
v3.clip.guts.gotoAndStop('land');
if (v3.currentAction != 'land') {
_global.megamanWrapper.MMsfx.mechLandSound.start(0, 0);
}
v3.currentAction = 'land';
v3.xspeed = 0;
}
}
}
} else {
if (v3.type == 'springy') {
if (v3.count < 10) {
v3.walking = true;
v3.targX = MMheroVar.xpos;
if (v3.targX < v3.xpos + 5 && v3.targX > v3.xpos - 5) {
v3.xspeed = 0;
} else {
v3.xspeed = 0.5 * v3.dir;
}
if (v3.damaged) {
v3.count = 30;
v3.clip.guts.gotoAndStop('hit');
} else {
v3.clip.guts.gotoAndStop('rest');
}
} else {
if (v3.count > 10 && v3.count < 15) {
v3.damaged = false;
} else {
if (v3.count > 15 && v3.count < 65) {
v3.xspeed = 0;
v3.walking = false;
v3.clip.guts.gotoAndStop('attack');
v3.attacking = true;
} else {
if (v3.count > 85) {
v3.damaged = false;
v3.count = 0;
v3.clip.guts.gotoAndStop('rest');
v3.attacking = false;
}
}
}
}
} else {
if (v3.type == 'dino') {
if (MMheroVar.ypos < v3.ypos + 50 && MMheroVar.ypos > v3.ypos - 50) {
if (v3.currentAction != 'attack') {
v3.clip.guts.gotoAndStop('walk');
v3.currentAction = 'walk';
if (MMheroVar.xpos > v3.xpos + 40 || MMheroVar.xpos < v3.xpos - 40) {
if (MMheroVar.xpos < v3.xpos) {
v3.dir = -1;
v3.clip._xscale = 100;
if (!v3.sideL) {
v3.xspeed = 3 * v3.dir;
}
} else {
if (MMheroVar.xpos > v3.xpos) {
v3.dir = 1;
v3.clip._xscale = -100;
if (!v3.sideR) {
v3.xspeed = 3 * v3.dir;
}
}
}
} else {
v3.xspeed = 0;
v3.clip.guts.gotoAndPlay('attack');
v3.currentAction = 'attack';
v3.count = 50;
}
} else {
if (v3.currentAction == 'attack' && v3.count >= 78) {
v3.count = 0;
if (MMheroVar.xpos < v3.xpos) {
v3.dir = -1;
v3.clip._xscale = 100;
} else {
if (MMheroVar.xpos > v3.xpos) {
v3.dir = 1;
v3.clip._xscale = -100;
}
}
v3.clip.guts.gotoAndStop('rest');
v3.currentAction = 'rest';
}
}
}
} else {
if (v3.type == 'dino2') {
if (MMheroVar.ypos < v3.ypos + 50 && MMheroVar.ypos > v3.ypos - 50) {
if (v3.currentAction != 'attack') {
v3.clip.guts.gotoAndStop('walk');
v3.currentAction = 'walk';
if (MMheroVar.xpos > v3.xpos + 40 || MMheroVar.xpos < v3.xpos - 40) {
if (MMheroVar.xpos < v3.xpos) {
v3.dir = -1;
v3.clip._xscale = 100;
if (!v3.sideL) {
v3.xspeed = v3.baseSpeed * v3.dir;
}
} else {
if (MMheroVar.xpos > v3.xpos) {
v3.dir = 1;
v3.clip._xscale = -100;
if (!v3.sideR) {
v3.xspeed = v3.baseSpeed * v3.dir;
}
}
}
} else {
v3.xspeed = 0;
v3.clip.guts.gotoAndPlay('attack');
v3.currentAction = 'attack';
v3.count = 50;
}
} else {
if (v3.currentAction == 'attack' && v3.count >= 78) {
v3.count = 0;
if (MMheroVar.xpos < v3.xpos) {
v3.dir = -1;
v3.clip._xscale = 100;
} else {
if (MMheroVar.xpos > v3.xpos) {
v3.dir = 1;
v3.clip._xscale = -100;
}
}
v3.clip.guts.gotoAndStop('rest');
v3.currentAction = 'rest';
}
}
}
} else {
if (v3.type == 'skull') {
if (Math.abs(MMheroVar.ypos - v3.ypos) < 40) {
if (MMheroVar.xpos < v3.xpos + 180 && MMheroVar.xpos > v3.xpos - 180) {
if (MMheroVar.xpos + 10 < v3.xpos) {
if (v3.dir != -1) {
v3.clip.guts.gotoAndStop('turn');
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (MMheroVar.xpos - 10 > v3.xpos) {
if (v3.dir != 1) {
v3.clip.guts.gotoAndStop('turn');
v3.dir = 1;
v3.clip._xscale = -100;
}
}
}
v3.xspeed = v3.baseSpeed * v3.dir;
}
}
} else {
if (v3.type == 'skull2') {
gizMax = 176;
gizMin = 90;
if (v3.dir == -1 && v3.clip._xscale != 100) {
v3.clip._xscale = 100;
v3.clip.guts.gotoAndStop('turn');
}
if (v3.dir == 1 && v3.clip._xscale != -100) {
v3.clip._xscale = -100;
v3.clip.guts.gotoAndStop('turn');
}
if (gizMax < v3.xpos) {
if (v3.dir != -1) {
v3.clip.guts.gotoAndStop('turn');
v3.xpos = gizMax;
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (gizMin > v3.xpos) {
if (v3.dir != 1) {
v3.clip.guts.gotoAndStop('turn');
v3.dir = 1;
v3.xpos = gizMin;
v3.clip._xscale = -100;
}
}
}
v3.xspeed = v3.baseSpeed * v3.dir;
} else {
if (v3.type == 'gizmo') {
gizMax = 125;
gizMin = 76;
++v3.count;
if (v3.count >= 40) {
v3.count = 0;
if (MMheroVar.xpos <= v3.xpos && v3.dir == -1) {
createBullet(v3);
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
} else {
if (MMheroVar.xpos >= v3.xpos && v3.dir == 1) {
createBullet(v3);
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
}
}
if (gizMax < v3.xpos) {
if (v3.dir != -1) {
v3.xpos = gizMax;
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (gizMin > v3.xpos) {
if (v3.dir != 1) {
v3.dir = 1;
v3.xpos = gizMin;
v3.clip._xscale = -100;
}
}
}
v3.xspeed = v3.baseSpeed * v3.dir;
if (v3.dir == -1 && v3.clip._xscale != 100) {
v3.clip._xscale = 100;
}
if (v3.dir == 1 && v3.clip._xscale != -100) {
v3.clip._xscale = -100;
}
} else {
if (v3.type == 'gizmo2') {
gizMax = 155;
gizMin = 65;
++v3.count;
if (v3.count >= 40) {
v3.count = 0;
if (MMheroVar.xpos <= v3.xpos && v3.dir == -1) {
createBullet(v3);
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
} else {
if (MMheroVar.xpos >= v3.xpos && v3.dir == 1) {
createBullet(v3);
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
}
}
if (v3.dir == -1 && v3.clip._xscale != 100) {
v3.clip._xscale = 100;
}
if (v3.dir == 1 && v3.clip._xscale != -100) {
v3.clip._xscale = -100;
}
if (gizMax < v3.xpos) {
if (v3.dir != -1) {
v3.xpos = gizMax;
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (gizMin > v3.xpos) {
if (v3.dir != 1) {
v3.dir = 1;
v3.xpos = gizMin;
v3.clip._xscale = -100;
}
}
}
v3.xspeed = v3.baseSpeed * v3.dir;
} else {
if (v3.type == 'master') {
if (MMheroVar.xpos < v3.xpos + 180 && MMheroVar.xpos > v3.xpos - 180) {
if (v3.driving) {
if (MMheroVar.alive && !MMRagePause) {
++v3.count2;
++v3.count3;
}
if (v3.count2 > 20) {
if (MMheroVar.xpos < v3.xpos) {
if (v3.dir != -1) {
v3.count3 -= 15;
v3.clip.guts.gotoAndStop('drive');
v3.dir = -1;
v3.clip._xscale = 100;
}
} else {
if (MMheroVar.xpos + 30 > v3.xpos) {
if (v3.dir != 1) {
v3.count3 -= 15;
v3.clip.guts.gotoAndStop('drive');
v3.dir = 1;
v3.clip._xscale = -100;
}
}
}
if (v3.clip.guts._currentframe == 12) {
v3.clip.guts.gotoAndStop('drive');
}
v3.count2 = 0;
}
if (v3.count3 >= 40) {
if (MMheroVar.xpos < v3.xpos && v3.dir == -1 || MMheroVar.xpos > v3.xpos && v3.dir == 1) {
v3.clip.guts.gotoAndStop('shoot');
v3.count3 = 0;
v3.count2 = 10;
}
}
if (v3.currHP < v3.hp / 2) {
v3.driving = false;
v3.flying = true;
v3.lift = true;
v3.xspeed = 0;
v3.count2 = 0;
v3.count3 = 0;
}
} else {
if (v3.flying) {
if (v3.clip.guts._currentframe != 18) {
v3.clip.guts.gotoAndStop('fly');
}
if (!MMBossRagePause) {
++v3.count2;
++v3.count3;
}
if (MMheroVar.xpos < v3.xpos) {
v3.clip._xscale = 100;
} else {
if (MMheroVar.xpos > v3.xpos) {
v3.clip._xscale = -100;
}
}
if (v3.count3 > 30) {
dropBomb(v3);
v3.count3 = 0;
}
if (v3.count2 > 40) {
v3.count2 = 0;
if (MMheroVar.xpos < v3.xpos) {
if (v3.dir != -1) {
v3.count3 -= 15;
v3.dir = -1;
}
} else {
if (MMheroVar.xpos > v3.xpos) {
if (v3.dir != 1) {
v3.count3 -= 15;
v3.dir = 1;
}
}
}
}
if (v3.aboveLimit || v3.ypos <= 70) {
v3.lift = false;
} else {
if (v3.belowLimit) {
v3.lift = true;
}
}
v3.xspeed = v3.baseSpeed * v3.dir;
if (v3.lift) {
v3.yspeed = -2;
} else {
v3.yspeed = 0.5;
}
}
}
if (v3.driving) {
if (v3.clip.guts._currentframe != 12) {
v3.xspeed = v3.baseSpeed * v3.dir;
v3.clip.guts.gotoAndStop('drive');
} else {
v3.xspeed = 0;
}
}
}
} else {
if (v3.type == 'flame') {
if (v3.sideR) {
v3.dir = -1;
v3.xspeed = v3.baseSpeed * v3.dir;
}
if (v3.sideL) {
v3.dir = 1;
v3.xspeed = v3.baseSpeed * v3.dir;
}
} else {
if (v3.type == 'masterDude') {
if (v3.sideR2) {
v3.dir = -1;
v3.xspeed = v3.baseSpeed * v3.dir;
}
if (v3.sideL2) {
v3.dir = 1;
v3.xspeed = v3.baseSpeed * v3.dir;
}
v3.clip._xscale = -(100 * v3.dir);
} else {
if (v3.type == 'penguin') {
if (Math.abs(MMheroVar.xpos - v3.xpos) < 120) {
if (!v3.clip.attacking) {
v3.active = true;
v3.clip.guts.hitSomething = false;
v3.clip.guts.gotoAndPlay('attack');
}
} else {
if (v3.active) {
if (!v3.clip.attacking) {
v3.clip.guts.gotoAndStop(1);
v3.active = false;
}
}
}
if (v3.clip.guts.hitBox.hitTest(MMheroVar.clip.guts.hitarea)) {
if (!v3.clip.guts.hitSomething) {
MMPlayerTakeDamage(3);
v3.clip.guts.virus._alpha = 0;
v3.clip.guts.boom._x = v3.clip.guts.virus._x;
v3.clip.guts.boom._y = v3.clip.guts.virus._y;
v3.clip.guts.gotoAndPlay('end');
v3.clip.guts.boom.play();
_global.megamanWrapper.MMsfx.gearHitSound.start(0, 0);
}
} else {
if (v3.clip.guts.hitBox.hitTest(v3.clip.guts.hitBox2)) {
if (!v3.clip.guts.hitSomething) {
v3.clip.guts.virus._alpha = 0;
v3.clip.guts.boom._x = v3.clip.guts.virus._x;
v3.clip.guts.boom._y = v3.clip.guts.virus._y;
v3.clip.guts.hitSomething = true;
v3.clip.guts.boom.play();
_global.megamanWrapper.MMsfx.gearHitSound.start(0, 0);
}
}
}
} else {
if (v3.type == 'pumpkin') {
if (Math.abs(MMheroVar.xpos - v3.xpos) < 140) {
if (flameCount >= 55) {
flameCount = 0;
if (flameNum > 4) {
flameNum = 1;
}
if (flameNum == 1) {
thisFlame = MME_7_9;
} else {
if (flameNum == 2) {
thisFlame = MME_7_10;
} else {
if (flameNum == 3) {
thisFlame = MME_7_11;
} else {
if (flameNum == 4) {
thisFlame = MME_7_12;
}
}
}
}
_global.megamanWrapper.MMsfx.pumpkinSound.start(0, 0);
thisFlame.clip.guts.gotoAndPlay(1);
thisFlame.xpos = v3.clip._x;
thisFlame.ypos = v3.clip._y;
thisFlame.yspeed = -5;
thisFlame.xspeed = -2;
thisFlame.active = true;
++flameNum;
}
v3.active = true;
} else {
v3.active = false;
}
} else {
if (v3.type == 'crawl') {
if (v3.xpos >= v3.xposStart + v3.halfW || v3.dir == 1 && (!v3.overTR && !v3.underBR || v3.TR && v3.BR)) {
v3.dir = -1;
} else {
if (v3.xpos <= v3.xposStart - v3.halfW || v3.dir == -1 && (!v3.overTL && !v3.underBL || v3.TL && v3.BL)) {
v3.dir = 1;
}
}
if (v3.count > 45) {
v3.count = 0;
v3.clip.guts.gotoAndStop('rest');
v3.currentAction = 'rest';
} else {
if (v3.count == 36 && Math.abs(v3.xpos - MMheroVar.xpos) < 150) {
createBullet(v3);
} else {
if (v3.count == 30 && Math.abs(v3.xpos - MMheroVar.xpos) < 150) {
if (v3.currentAction != 'shoot') {
_global.megamanWrapper.MMsfx.bulletEnemySound.start(0, 0);
}
v3.currentAction = 'shoot';
v3.clip.guts.gotoAndStop('shoot');
} else {
if (v3.count < 30) {
v3.currentAction = 'rest';
v3.xspeed = 0.5 * v3.dir;
v3.clip.guts.gotoAndStop('rest');
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if (v3.active) {
if ((v3.underBL || v3.underBR) && v3.yspeed > 0) {
v3.falling = false;
if (v3.type == 'masterDude') {
if (v3.clip.guts._currentframe == 1) {
v3.clip.guts.gotoAndPlay('land');
} else {
if (v3.clip.guts._currentframe == 11) {
v3.clip.guts.gotoAndStop('walk');
v3.xspeed = v3.baseSpeed * v3.dir;
}
}
}
} else {
if (v3.falling && v3.type != 'crawl') {
v3.count = 0;
}
if (v3.type == 'masterDude') {
v3.clip.guts.gotoAndStop('fall');
}
if (!v3.flying) {
v3.falling = true;
}
}
if (v3.falling && v3.type != 'crawl') {
if (v3.type != 'flame') {
v3.yspeed += MMworldVar.gravity;
} else {
v3.yspeed += MMworldVar.gravity / 2;
}
}
if (!MMRagePause) {
v3.xpos += v3.xspeed;
v3.ypos += v3.yspeed;
}
checkFloorHitEnemy(v3);
v3.clip._x = v3.xpos;
v3.clip._y = v3.ypos;
}
}
++i;
}
}
}
function getCornersEnemy(OBJ) {
var v3 = OBJ.xpos - OBJ.currclipW / 2;
var v2 = OBJ.ypos;
if (debugMode) {
var v4 = OBJ.clip.createEmptyMovieClip('rectangles', 2);
v4.beginFill(16711680, 70);
v4.moveTo(1 - OBJ.currclipW / 2, 1);
v4.lineTo(OBJ.currclipW / 2, 1);
v4.lineTo(OBJ.currclipW / 2, OBJ.clipH - 2);
v4.lineTo(1 - OBJ.currclipW / 2, OBJ.clipH - 2);
}
OBJ.TL = shitTest(MMcurrBG.aw, v3 + 1, v2);
OBJ.TR = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW - 2, v2);
OBJ.BL = shitTest(MMcurrBG.aw, v3 + 1, v2 + OBJ.clipH - 2);
OBJ.BR = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW - 2, v2 + OBJ.clipH - 2);
OBJ.underBL = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.1, v2 + OBJ.clipH - 1);
OBJ.underBR = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.9, v2 + OBJ.clipH - 1);
OBJ.overTL = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.1, v2);
OBJ.overTR = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.9, v2);
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.5, v2 + OBJ.clipH - 3);
if (!OBJ.groundDetect) {
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.25, v2 + OBJ.clipH - 3);
}
if (!OBJ.groundDetect) {
OBJ.groundDetect = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW * 0.75, v2 + OBJ.clipH - 3);
}
OBJ.sideL = shitTest(MMcurrBG.aw, v3 - 1, v2 + OBJ.clipH * 0.75);
OBJ.sideR = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW + 3, v2 + OBJ.clipH * 0.75);
if (OBJ.type == 'masterDude') {
OBJ.sideL2 = shitTest(MMcurrBG.aw, v3 - 10, v2 + 4);
OBJ.sideR2 = shitTest(MMcurrBG.aw, v3 + 10, v2 + 4);
}
OBJ.sideLT = shitTest(MMcurrBG.aw, v3 - 1, v2 + OBJ.clipH * 0.2);
OBJ.sideRT = shitTest(MMcurrBG.aw, v3 + OBJ.currclipW + 3, v2 + OBJ.clipH * 0.2);
if (OBJ.type == 'crawl' || OBJ.type == 'dino2' || OBJ.type == 'masterDude' || OBJ.type == 'master' && OBJ.flying) {
if (OBJ.type == 'masterDude') {
if (OBJ.sideR2) {
OBJ.dir = -1;
OBJ.xspeed = OBJ.baseSpeed * OBJ.dir;
}
if (OBJ.sideL2) {
OBJ.dir = 1;
OBJ.xspeed = OBJ.baseSpeed * OBJ.dir;
}
} else {
if (OBJ.sideR) {
OBJ.dir = -1;
if (OBJ.type == 'master') {
}
}
if (OBJ.sideL) {
OBJ.dir = 1;
if (OBJ.type == 'master') {
}
}
}
}
if (OBJ.type == 'master') {
OBJ.aboveLimit = shitTest(MMcurrBG.aw, v3, v2 - 15);
OBJ.belowLimit = shitTest(MMcurrBG.aw, v3, v2 + 60);
}
}
function checkFloorHitEnemy(OBJ) {
getCornersEnemy(OBJ);
for (;;) {
if (!(OBJ.underBR && OBJ.BR || OBJ.underBL && OBJ.BL || OBJ.groundDetect)) break;
OBJ.ypos = Math.floor(OBJ.ypos);
--OBJ.ypos;
OBJ.ySpeed = 0;
getCornersEnemy(OBJ);
}
for (;;) {
if (!(OBJ.sideR || OBJ.sideTR)) break;
OBJ.xpos = Math.floor(OBJ.xpos);
--OBJ.xpos;
if (OBJ.type == 'springy') {
}
OBJ.xSpeed = 0;
getCornersEnemy(OBJ);
}
for (;;) {
if (!(OBJ.sideL || OBJ.sideTL)) break;
OBJ.xpos = Math.floor(OBJ.xpos);
++OBJ.xpos;
OBJ.xSpeed = 0;
getCornersEnemy(OBJ);
if (OBJ.type == 'flame' && OBJ.active) {
OBJ.clip.guts.gotoAndStop('die');
}
}
}
function damageEnemy(OBJ) {
dropVar = random(20);
--OBJ.currHP;
lastEnemyHit = OBJ;
var v4 = new Object();
v4.nam = OBJ.nam;
v4.hp = OBJ.currHP;
v4.maxhp = OBJ.hp;
v4.picid = OBJ.pic;
_root.mmBadHit(v4);
if (OBJ.type == 'mech') {
if (OBJ.currHP > OBJ.hp / 2) {
hitFlash(OBJ.clip);
}
if (OBJ.currHP < OBJ.hp / 2 && OBJ.currHP > 0) {
hitFlash(OBJ.clip);
}
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x + 5 * OBJ.dir, OBJ.clip._y + 60);
}
OBJ.clip.guts.gotoAndStop('diebub');
OBJ.alive = false;
}
} else {
if (OBJ.type == 'springy') {
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 10);
}
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'skull') {
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 15);
}
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'skull2') {
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 15);
}
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'master') {
if (OBJ.currHP <= 0) {
MME_15_10.clip.guts.gotoAndPlay(1);
MME_15_10.xpos = OBJ.clip._x;
MME_15_10.ypos = OBJ.clip._y;
MME_15_10.yspeed = -3;
MME_15_10.xspeed = 0;
MME_15_10.clip.guts.gotoAndStop('fall');
_global.megamanWrapper.MMsfx.MBDitchSound.start(0, 0);
MME_15_10.active = true;
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
OBJ.lift = true;
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'masterDude') {
if (OBJ.currHP <= 0) {
jasondead = true;
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y);
}
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'gizmo') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 20);
}
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'gizmo2') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 20);
}
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'dino') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 15);
}
} else {
if (OBJ.currentAction == 'attack') {
hitFlash(OBJ.clip);
} else {
hitFlash(OBJ.clip);
}
}
} else {
if (OBJ.type == 'dino2') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 15);
}
} else {
if (OBJ.currentAction == 'attack') {
hitFlash(OBJ.clip);
} else {
hitFlash(OBJ.clip);
}
}
} else {
if (OBJ.type == 'crawl') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndStop('die');
OBJ.alive = false;
} else {
hitFlash(OBJ.clip);
}
} else {
if (OBJ.type == 'penguin') {
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x + 50 * OBJ.dir, OBJ.clip._y + 90);
}
OBJ.clip.guts.gotoAndPlay('die');
OBJ.alive = false;
} else {
hitFlash(OBJ.clip.guts.penguin);
}
} else {
if (OBJ.type == 'pumpkin') {
if (OBJ.currHP <= 0) {
if (dropVar <= 1) {
dropHealth(OBJ.clip._x, OBJ.clip._y + 25);
}
OBJ.clip.guts.gotoAndPlay('die');
OBJ.alive = false;
OBJ.active = false;
} else {
hitFlash(OBJ.clip.guts);
}
} else {
if (OBJ.type == 'flame') {
if (OBJ.currHP <= 0) {
OBJ.clip.guts.gotoAndPlay('die');
OBJ.active = false;
} else {
thisEnemy.active = false;
hitFlash(OBJ.clip.guts);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function checkEnemyHits() {
i = 0;
while (i < MMEnemies.length) {
if (MMEnemies[i].alive) {
if (MMEnemies[i].clip.guts.hitarea.hitTest(MMheroVar.clip.guts.hitarea)) {
if (MMEnemies[i].type != 'masterDude') {
MMPlayerTakeDamage(2);
}
if (MMEnemies[i].type == 'penguin') {
MMheroVar.xpos -= MMheroVar.speedMax;
}
}
}
++i;
}
i = 0;
while (i < MMEnemyProjectiles.length) {
if (MMEnemyProjectiles[i].hitarea.hitTest(MMheroVar.clip.guts.hitarea) && MMEnemyProjectiles[i].proType != 'bomb') {
MMPlayerTakeDamage(1);
}
++i;
}
}
function updateProjectiles() {
i = 0;
while (i < MMEnemyProjectiles.length) {
if (MMEnemyProjectiles[i].proType != 'bubble' && MMEnemyProjectiles[i].proType != 'bomb') {
++MMEnemyProjectiles[i].count;
if (MMEnemyProjectiles[i].count < 150) {
MMEnemyProjectiles[i]._x += MMEnemyProjectiles[i].xSpeed * 2;
MMEnemyProjectiles[i]._y += MMEnemyProjectiles[i].ySpeed * 2;
} else {
removeMovieClip(MMEnemyProjectiles[i]);
MMEnemyProjectiles.splice(i, 1);
}
} else {
if (MMEnemyProjectiles[i].proType == 'bomb') {
if (MMEnemyProjectiles[i].bombDone) {
removeMovieClip(MMEnemyProjectiles[i]);
MMEnemyProjectiles.splice(i, 1);
} else {
if (!shitTest(MMcurrBG.aw, MMEnemyProjectiles[i]._x, MMEnemyProjectiles[i]._y) && !MMEnemyProjectiles[i].hitarea.hitTest(MMheroVar.clip.guts.hitarea)) {
if (MMEnemyProjectiles[i]._currentframe < 12) {
MMEnemyProjectiles[i].ySpeed += MMworldVar.gravity / 2 / 2;
MMEnemyProjectiles[i]._y += MMEnemyProjectiles[i].ySpeed;
}
} else {
if (MMEnemyProjectiles[i]._currentframe < 12) {
if (MMEnemyProjectiles[i].hitarea.hitTest(MMheroVar.clip.guts.hitarea)) {
MMPlayerTakeDamage(3);
}
MMEnemyProjectiles[i].gotoAndPlay(12);
}
}
}
}
}
if (MMtransition) {
removeMovieClip(MMEnemyProjectiles[i]);
MMEnemyProjectiles.splice(i, 1);
}
++i;
}
}
function createBullet(SHOOTER) {
thisBullet = this.attachMovie('mmsbullet', 'bullet' + MMEPNum, this.getNextHighestDepth());
++MMEPNum;
thisBullet.proType = 'bullet';
thisBullet._x = SHOOTER.xpos - 6;
thisBullet._y = SHOOTER.ypos + 4;
thisBullet.count = 0;
thisBullet.shotSpeed = 3;
x1 = SHOOTER.clip._x;
y1 = SHOOTER.clip._y;
x2 = MMheroVar.clip._x;
y2 = MMheroVar.clip._y;
dy = y2 - y1;
dx = x2 - x1;
MMEnemyProjectiles.push(thisBullet);
thisBullet.myAngle = Math.atan2(dx, dy);
thisBullet.xSpeed = Math.sin(thisBullet.myAngle) * thisBullet.shotSpeed;
thisBullet.ySpeed = Math.cos(thisBullet.myAngle) * thisBullet.shotSpeed;
}
function createBullet2(SHOOTER) {
thisBullet = this.attachMovie('mmsbullet', 'bullet' + MMEPNum, this.getNextHighestDepth());
++MMEPNum;
thisBullet.proType = 'bullet';
if (SHOOTER.dir == -1) {
thisBullet._x = SHOOTER.xpos - 24;
} else {
thisBullet._x = SHOOTER.xpos + 10;
}
thisBullet._y = SHOOTER.ypos + 6;
thisBullet.count = 0;
thisBullet.shotSpeed = 3;
x1 = SHOOTER.clip._x;
y1 = SHOOTER.clip._y;
x2 = MMheroVar.clip._x;
y2 = MMheroVar.clip._y;
dy = y2 - y1;
dx = x2 - x1;
MMEnemyProjectiles.push(thisBullet);
thisBullet.myAngle = Math.atan2(dx, dy);
thisBullet.xSpeed = Math.sin(thisBullet.myAngle) * thisBullet.shotSpeed;
thisBullet.ySpeed = Math.cos(thisBullet.myAngle) * thisBullet.shotSpeed;
}
function dropBomb(SHOOTER) {
thisBomb = this.attachMovie('MMbombGraphic', 'bomb' + MMEPNum, this.getNextHighestDepth());
++MMEPNum;
thisBomb.proType = 'bomb';
thisBomb._x = SHOOTER.xpos;
thisBomb._xscale = -(SHOOTER.dir * 100);
_global.megamanWrapper.MMsfx.MBBommbSound.start(0, 0);
thisBomb._y = SHOOTER.ypos + 15;
thisBomb.count = 0;
thisBomb.shotSpeed = 3;
thisBomb.xSpeed = SHOOTER.xspeed;
thisBomb.ySpeed = 1;
MMEnemyProjectiles.push(thisBomb);
}
var MMEnemies = new Array();
var MMEnemyProjectiles = new Array();
var MMEPNum = 0;
var radians = 0.0174532925199433;
}
frame 2 {
var MMEnemiesInRoom = [[0], ['MME_1_2'], ['MME_2_1'], ['MME_3_1'], ['MME_4_1'], ['MME_5_1'], ['MME_6_1', 'MME_6_2'], ['MME_7_3', 'MME_7_4', 'MME_7_5', 'MME_7_6', 'MME_7_7', 'MME_7_8', 'MME_7_9', 'MME_7_10', 'MME_7_11', 'MME_7_12', 'MME_7_13', 'MME_7_14', 'MME_7_15', 'MME_7_16', 'MME_7_17'], [0], [0], [0], [0], [0], [0], [0], ['MME_15_1', 'MME_15_2', 'MME_15_3', 'MME_15_4', 'MME_15_6', 'MME_15_7', 'MME_15_8', 'MME_15_9', 'MME_15_10']];
var MME_1_2 = {'pic': 99, 'type': 'springy', 'nam': 'Spiranha', 'clip': null, 'clipName': 'springy2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 3, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 12, 'clipH': 28, 'falling': false, 'walking': false, 'damaged': false};
var MME_1_3 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl1', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_2_1 = {'pic': 91, 'type': 'gizmo', 'nam': 'GizmoDuck', 'clip': null, 'clipName': 'skull1', 'currentAction': '', 'baseSpeed': 2, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 34, 'falling': false, 'walking': false, 'damaged': false};
var MME_3_1 = {'pic': 99, 'type': 'springy', 'nam': 'Spiranha', 'clip': null, 'clipName': 'springy1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 3, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 14, 'clipH': 28, 'falling': false, 'walking': false, 'damaged': false};
var MME_4_1 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl1', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_5_1 = {'pic': 91, 'type': 'gizmo2', 'nam': 'GizmoDuck', 'clip': null, 'clipName': 'skull1', 'currentAction': '', 'baseSpeed': 1, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 34, 'falling': false, 'walking': false, 'damaged': false};
var MME_6_1 = {'pic': 101, 'type': 'skull2', 'nam': 'skully', 'clip': null, 'clipName': 'skull1', 'currentAction': '', 'baseSpeed': 1, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 15, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false};
var MME_6_2 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl1', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_7_1 = {'pic': 101, 'type': 'skull', 'nam': 'skully', 'clip': null, 'clipName': 'skull1', 'currentAction': '', 'baseSpeed': 1, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false};
var MME_7_2 = {'pic': 101, 'type': 'skull', 'nam': 'skully', 'clip': null, 'clipName': 'skull2', 'currentAction': '', 'baseSpeed': 1, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false};
var MME_7_3 = {'pic': 93, 'type': 'dino', 'nam': 'dinoroller', 'clip': null, 'clipName': 'dino1', 'currentAction': '', 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 26, 'falling': false, 'walking': false, 'damaged': false};
var MME_7_4 = {'pic': 101, 'type': 'skull', 'nam': 'skully', 'clip': null, 'clipName': 'skull3', 'currentAction': '', 'baseSpeed': 1, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false};
var MME_7_5 = {'pic': 96, 'type': 'mech', 'nam': 'Bub', 'clip': null, 'clipName': 'mech1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 66, 'falling': false, 'walking': false};
var MME_7_6 = {'pic': 96, 'type': 'mech', 'nam': 'Bub', 'clip': null, 'clipName': 'mech2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 66, 'falling': false, 'walking': false};
var MME_7_7 = {'pic': 94, 'type': 'penguin', 'nam': 'Cranky', 'clip': null, 'clipName': 'penguin1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 20, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 100, 'falling': false, 'walking': false};
var MME_7_8 = {'pic': 88, 'type': 'pumpkin', 'nam': 'Punkin', 'clip': null, 'clipName': 'pumpkin1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 55, 'falling': false, 'walking': false};
var MME_7_9 = {'pic': 92, 'type': 'flame', 'nam': 'SparkHard', 'clip': null, 'clipName': 'flame1', 'currentAction': '', 'active': false, 'aware': false, 'hp': 1, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 10, 'clipH': 15, 'falling': false, 'walking': false};
var MME_7_10 = {'pic': 92, 'type': 'flame', 'nam': 'Shiner', 'clip': null, 'clipName': 'flame2', 'currentAction': '', 'active': false, 'aware': false, 'hp': 1, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 10, 'clipH': 15, 'falling': false, 'walking': false};
var MME_7_11 = {'pic': 92, 'type': 'flame', 'nam': 'Hothead', 'clip': null, 'clipName': 'flame3', 'currentAction': '', 'active': false, 'aware': false, 'hp': 1, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 10, 'clipH': 15, 'falling': false, 'walking': false};
var MME_7_12 = {'pic': 92, 'type': 'flame', 'nam': 'Flaming', 'clip': null, 'clipName': 'flame4', 'currentAction': '', 'active': false, 'aware': false, 'hp': 1, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 10, 'clipH': 15, 'falling': false, 'walking': false};
var MME_7_13 = {'pic': 88, 'type': 'pumpkin', 'nam': 'Punkin', 'clip': null, 'clipName': 'pumpkin2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 55, 'falling': false, 'walking': false};
var MME_7_14 = {'pic': 94, 'type': 'penguin', 'nam': 'Cranky', 'clip': null, 'clipName': 'penguin2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 20, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 100, 'falling': false, 'walking': false};
var MME_7_15 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl1', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_7_16 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl2', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_7_17 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl3', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 8, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var flameCount = 1;
var flameNum = 1;
var MME_15_1 = {'pic': 96, 'type': 'mech', 'nam': 'Bub', 'clip': null, 'clipName': 'mech1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 66, 'falling': false, 'walking': false};
var MME_15_2 = {'pic': 96, 'type': 'mech', 'nam': 'Bub', 'clip': null, 'clipName': 'mech2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 10, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 66, 'falling': false, 'walking': false};
var MME_15_3 = {'pic': 99, 'type': 'springy', 'nam': 'Spiranha', 'clip': null, 'clipName': 'springy1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 3, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 14, 'clipH': 28, 'falling': false, 'walking': false, 'damaged': false};
var MME_15_4 = {'pic': 93, 'type': 'dino2', 'nam': 'dinoroller', 'clip': null, 'clipName': 'dino1', 'currentAction': '', 'baseSpeed': 2.25, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 16, 'clipH': 26, 'falling': false, 'walking': false, 'damaged': false};
var MME_15_5 = {'pic': 97, 'type': 'crawl', 'nam': 'Xevio', 'clip': null, 'clipName': 'crawl1', 'currentAction': '', 'halfW': 600, 'active': false, 'aware': true, 'hp': 5, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 14, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false, 'downDir': 0};
var MME_15_6 = {'pic': 99, 'type': 'springy', 'nam': 'Spiranha', 'clip': null, 'clipName': 'springy2', 'currentAction': '', 'active': false, 'aware': true, 'hp': 3, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 14, 'clipH': 28, 'falling': false, 'walking': false, 'damaged': false, 'attacking': false};
var MME_15_7 = {'pic': 101, 'type': 'skull', 'nam': 'skully', 'clip': null, 'clipName': 'skull1', 'currentAction': '', 'baseSpeed': 2, 'active': false, 'aware': false, 'hp': 5, 'count': 0, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 20, 'clipH': 30, 'falling': false, 'walking': false, 'damaged': false};
var MME_15_8 = {'pic': 94, 'type': 'penguin', 'nam': 'Cranky', 'clip': null, 'clipName': 'penguin1', 'currentAction': '', 'active': false, 'aware': true, 'hp': 20, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 100, 'falling': false, 'walking': false};
var MME_15_9 = {'pic': 100, 'type': 'master', 'nam': 'sophia', 'clip': null, 'clipName': 'master1', 'currentAction': '', 'baseSpeed': 2, 'active': false, 'aware': true, 'hpMax': 12, 'hp': 12, 'lift': false, 'count': 0, 'count2': 0, 'count3': 0, 'driving': true, 'alive': true, 'dir': -1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 40, 'clipH': 32, 'falling': false, 'walking': false};
var MME_15_10 = {'pic': 90, 'type': 'masterDude', 'nam': 'jason', 'clip': null, 'clipName': 'master2', 'currentAction': '', 'baseSpeed': 3, 'active': false, 'aware': false, 'hp': 3, 'count': 0, 'alive': true, 'dir': 1, 'xpos': 0, 'ypos': 0, 'speed': 0, 'xspeed': 0, 'yspeed': 0, 'clipW': 2, 'clipH': 27, 'falling': false, 'walking': false};
}
frame 2 {
music.setVolume(soundVolume);
}
frame 2 {
function pausedRageClipsFuncPlay() {
if (MMBossObject.playDeathGO) {
} else {
i = 0;
while (i < pausedRageClips.length) {
pausedRageClips[i].play();
++i;
}
}
MMBossRagePause = false;
smallBossCount = 0;
}
function pausedRageClipsFunc() {
MMBossRagePause = true;
pausedRageClips = new Array();
if (MMBossObject.currentStatus == 'launchhead' || MMBossObject.currentStatus == 'headland' || MMBossObject.currentStatus == 'turnaround' || MMBossObject.currentStatus == 'melt' || MMBossObject.currentStatus == 'unmelt' || MMBossObject.currentStatus == 'smallJump') {
pausedRageClips.push(MMBossObject.clip.guts);
}
if (MMBossObject.clip.guts._currentframe == 216) {
pausedRageClips.push(MMBossObject.clip.guts.fallIn);
}
if (MMBossObject.currentStatus == 'headwait') {
pausedRageClips.push(MMBossHeadClip);
}
if (MMBossObject.currentStatus == 'shootspikes') {
if (MMBossObject.clip.guts.shootSpikes) {
pausedRageClips.push(MMBossObject.clip.guts);
}
}
if (MMBossObject.currentStatus == 'shootspikes' && MMBossAttackNow == 'shootspikes') {
pausedRageClips.push(drillAttack);
}
if (MMBossObject.currentStatus == 'smallShoot') {
pausedRageClips.push(MMBossObject.clip.guts);
pausedRageClips.push(smallBossPellet);
}
if (MMBossObject.currentStatus == 'smallThrow') {
pausedRageClips.push(MMBossObject.clip.guts.clip);
pausedRageClips.push(smallBossProj);
pausedRageClips.push(smallBossProj.proj.clip);
}
if (MMBossObject.currentStatus == 'shoot') {
pausedRageClips.push(MMBossObject.clip.guts);
pausedRageClips.push(MMBossObject.clip.guts.clip);
pausedRageClips.push(MMBossObject.clip.guts.bullets);
}
if (MMBossObject.currentStatus == 'smallJump' || smallBossCount == 25 && MMBossObject.currentStatus == 'idle') {
pausedRageClips.push(MMBossObject.clip.guts.jumpClip);
}
i = 0;
while (i < MMEnemyProjectiles.length) {
thisProjectile = MMEnemyProjectiles[i];
if (thisProjectile.proType == 'bubble') {
pausedRageClips.push(thisProjectile);
}
++i;
}
if (MME_7_7.active && MME_7_7.alive) {
pausedRageClips.push(MME_7_7.clip.guts);
}
if (MME_7_9.active) {
pausedRageClips.push(MME_7_9.clip.guts);
}
if (MME_7_10.active) {
pausedRageClips.push(MME_7_10.clip.guts);
}
if (MME_7_11.active) {
pausedRageClips.push(MME_7_11.clip.guts);
}
if (MME_7_12.active) {
pausedRageClips.push(MME_7_12.clip.guts);
}
if (MME_7_14.active && MME_7_14.alive) {
pausedRageClips.push(MME_7_14.clip.guts);
}
if (MME_15_8.active && MME_15_8.alive) {
pausedRageClips.push(MME_15_8.clip.guts);
}
if (MME_1_2.active && MME_1_2.alive) {
pausedRageClips.push(MME_1_2.clip.guts.clip);
}
if (MME_3_1.active && MME_3_1.alive) {
pausedRageClips.push(MME_3_1.clip.guts.clip);
}
if (MME_15_3.active && MME_15_3.alive) {
pausedRageClips.push(MME_15_3.clip.guts.clip);
}
if (MME_15_6.active && MME_15_6.alive) {
pausedRageClips.push(MME_15_6.clip.guts.clip);
}
if (MME_15_9.active && MME_15_9.alive) {
pausedRageClips.push(MME_15_9.clip.guts.clip);
}
if (MMBossObject.alive) {
if (!MMBossObject.finished) {
i = 0;
while (i < pausedRageClips.length) {
pausedRageClips[i].stop();
++i;
}
}
} else {
i = 0;
while (i < pausedRageClips.length) {
pausedRageClips[i].stop();
++i;
}
}
}
var pausedRageClips = new Array();
}
frame 2 {
function pauseClipsFunc() {
if (MMheroVar.alive && readyAnimationDone && !_parent.MMbossPauseBlock) {
if (!MMPause) {
if (!MMbossTransition && !MMtransition && !MMbossPauseBlock) {
muteSoundsPause();
_root.mmPauseMe();
pausedClips = new Array();
pausedClips.push(MMheroVar.clip.guts.clip);
if (MMBossObject.currentStatus == 'launchhead' || MMBossObject.currentStatus == 'headland' || MMBossObject.currentStatus == 'turnaround' || MMBossObject.currentStatus == 'melt' || MMBossObject.currentStatus == 'unmelt' || MMBossObject.currentStatus == 'smallJump') {
pausedClips.push(MMBossObject.clip.guts);
}
if (MMBossObject.clip.guts._currentframe == 216) {
pausedClips.push(MMBossObject.clip.guts.fallIn);
}
if (MMBossObject.currentStatus == 'headwait') {
pausedClips.push(MMBossHeadClip);
}
if (MMBossObject.currentStatus == 'shootspikes') {
if (MMBossObject.clip.guts.shootSpikes) {
pausedClips.push(MMBossObject.clip.guts);
}
}
if (MMBossObject.currentStatus == 'shootspikes' && MMBossAttackNow == 'shootspikes') {
pausedClips.push(drillAttack);
}
if (MMBossObject.currentStatus == 'smallShoot') {
pausedClips.push(MMBossObject.clip.guts);
pausedClips.push(smallBossPellet);
}
if (MMBossObject.currentStatus == 'smallThrow') {
pausedClips.push(MMBossObject.clip.guts.clip);
pausedClips.push(smallBossProj);
pausedClips.push(smallBossProj.proj.clip);
}
if (MMBossObject.currentStatus == 'shoot') {
pausedClips.push(MMBossObject.clip.guts);
pausedClips.push(MMBossObject.clip.guts.clip);
pausedClips.push(MMBossObject.clip.guts.bullets);
}
if (MMBossObject.currentStatus == 'smallJump' || smallBossCount == 25 && MMBossObject.currentStatus == 'idle') {
pausedClips.push(MMBossObject.clip.guts.jumpClip);
}
i = 0;
while (i < MMEnemyProjectiles.length) {
thisProjectile = MMEnemyProjectiles[i];
if (thisProjectile.proType == 'bubble' || thisProjectile.proType == 'bomb') {
pausedClips.push(thisProjectile);
}
++i;
}
if (MME_7_7.active && MME_7_7.alive) {
pausedClips.push(MME_7_7.clip.guts);
}
if (MME_7_9.active) {
pausedClips.push(MME_7_9.clip.guts);
}
if (MME_7_10.active) {
pausedClips.push(MME_7_10.clip.guts);
}
if (MME_7_11.active) {
pausedClips.push(MME_7_11.clip.guts);
}
if (MME_7_12.active) {
pausedClips.push(MME_7_12.clip.guts);
}
if (MME_7_14.active && MME_7_14.alive) {
pausedClips.push(MME_7_14.clip.guts);
}
if (MME_15_8.active && MME_15_8.alive) {
pausedClips.push(MME_15_8.clip.guts);
}
if (MMBossObject.alive) {
if (!MMBossObject.finished) {
i = 0;
while (i < pausedClips.length) {
pausedClips[i].stop();
++i;
}
MMPause = true;
}
} else {
i = 0;
while (i < pausedClips.length) {
pausedClips[i].stop();
++i;
}
MMPause = true;
}
}
} else {
if (!MMbossTransition && !MMtransition && !MMbossPauseBlock) {
muteSoundsPause();
if (MMBossObject.alive) {
if (!MMBossObject.finished) {
i = 0;
while (i < pausedClips.length) {
pausedClips[i].play();
++i;
}
MMPause = true;
}
} else {
i = 0;
while (i < pausedClips.length) {
pausedClips[i].play();
++i;
}
MMPause = true;
}
MMPause = false;
if (0 >= megaManHealth) {
MMKillPlayer();
}
pholder.removeMovieClip();
pholder.unloadMovie();
_root.mmUnPauseMe();
}
}
}
}
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
var pausedClips = new Array();
}
frame 2 {
rageFace.gotoAndStop('endFrame');
}
frame 2 {
_global.megamanWrapper.pauseBox.play();
}
frame 2 {
endMessage._visible = false;
}
}
movieClip 4567 mm_levely {
}
movieClip 4594 {
frame 11 {
stop();
}
}
movieClip 4595 {
}
movieClip 4604 {
frame 17 {
stop();
}
}
movieClip 4609 {
}
movieClip 4669 {
frame 1 {
stop();
}
frame 131 {
stop();
}
}
movieClip 4683 {
}
movieClip 4691 {
frame 91 {
stop();
}
}
movieClip 4705 {
frame 55 {
stop();
}
}
movieClip 4718 {
frame 17 {
stop();
}
}
movieClip 4719 {
frame 111 {
stop();
}
}
movieClip 4726 {
}
movieClip 4730 mmcut_dbottombarA {
frame 114 {
megabobeat.play();
}
frame 874 {
stopAllSounds();
}
frame 1270 {
stopAllSounds();
}
frame 1328 {
stop();
}
}
movieClip 4734 cloud1 {
frame 283 {
this.removeMovieClip();
this.unloadMovie();
}
}
movieClip 4737 cloud2 {
frame 317 {
this.removeMovieClip();
this.unloadMovie();
}
}
movieClip 4740 cloud3 {
frame 254 {
this.removeMovieClip();
this.unloadMovie();
}
}
movieClip 4743 cloud4 {
frame 340 {
this.removeMovieClip();
this.unloadMovie();
}
}
movieClip 4746 cute1 {
frame 276 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4749 cute2 {
frame 204 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4752 cute3 {
frame 233 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4755 cute4 {
frame 288 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4758 cute5 {
frame 223 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4809 {
frame 1 {
gotoAndStop(random(26) + 2);
stop();
}
frame 2 {
stop();
}
}
movieClip 4811 {
}
movieClip 4814 {
frame 14 {
stop();
}
}
movieClip 4824 {
frame 2 {
ran = random(8);
ran = 0;
if (0) {
gotoAndStop('one');
}
ran = 1;
if (1) {
gotoAndStop('two');
}
ran = 2;
if (2) {
gotoAndStop('three');
}
ran = 3;
if (3) {
gotoAndStop('four');
}
ran = 4;
if (4) {
gotoAndStop('five');
}
ran = 5;
if (5) {
gotoAndStop('six');
}
ran = 6;
if (6) {
gotoAndStop('seven');
}
ran = 7;
if (7) {
gotoAndStop('eight');
}
}
}
movieClip 4825 {
frame 28 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4826 {
frame 1 {
stop();
}
instance of movieClip 4811 {
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._parent.dragon.dragon2.abobody)) {
_parent._parent.stop();
_parent._parent._parent._parent.thing = random(30);
_parent._parent._parent._parent.textualvomit = _parent._parent._parent._parent.myarray[_parent._parent._parent._parent.thing];
_parent._parent._parent.textthing._x = random(160);
_parent._parent._parent.textthing._y = random(130) - 214;
_parent._parent._parent._parent.cutescore += random(50);
_parent.gotoAndPlay('boom');
}
}
}
frame 11 {
play();
_parent._parent.progresss.progressbar._x += 4;
}
frame 43 {
stop();
_parent.removeMovieClip();
_parent.unloadMovie();
}
}
movieClip 4827 bullshit1 {
frame 35 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 4830 {
}
movieClip 4833 {
}
movieClip 4835 {
}
movieClip 4836 {
}
movieClip 4838 {
}
movieClip 4839 {
}
movieClip 4843 {
}
movieClip 4848 {
frame 1 {
stop();
}
frame 11 {
stop();
}
frame 21 {
stop();
}
}
movieClip 4849 {
}
movieClip 4852 {
}
movieClip 4859 {
}
movieClip 4860 {
}
movieClip 4863 {
}
movieClip 4868 {
}
movieClip 4869 {
frame 1 {
aup = false;
stop();
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup && !_parent.gamestarted) {
aup = false;
_parent.gamestarted = true;
_parent.introtext.gotoAndStop(20);
}
};
}
}
movieClip 4873 {
}
movieClip 4876 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 50 {
stop();
aup = false;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
aup = false;
delete this.onEnterFrame;
_parent._parent.gotoAndStop('backtomain');
}
};
}
frame 91 {
_parent._parent.gotoAndStop('backtomain');
stop();
}
}
movieClip 4879 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 3 {
stop();
aup = false;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
aup = false;
delete this.onEnterFrame;
_root.unlockPoster();
_parent._parent.gotoAndStop('backtomain');
}
};
}
frame 143 {
_parent._parent.gotoAndStop('backtomain');
}
}
// unknown tag 88 length 65
// unknown tag 88 length 65
// unknown tag 88 length 65
movieClip 4885 {
}
movieClip 4886 {
}
// unknown tag 88 length 37
movieClip 4892 {
}
movieClip 4893 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 4895 {
}
movieClip 4896 {
frame 1 {
timedown = false;
}
instance of movieClip 4852 {
onClipEvent (enterFrame) {
if (!_parent.gamestarted) {
_parent.textthing._alpha = 0;
}
if (_parent.gamestarted) {
_parent.textthing._alpha = 100;
if (_parent.progresss.progressbar._x > -40) {
_parent.gamestarted = false;
_parent.wintext._alpha = 100;
_parent.wintext.gotoAndPlay(2);
_parent.progresss.progressbar.gotoAndStop('winbar');
}
_parent.timedown += 1;
if (_parent.timedown > 30) {
_parent._parent.timeleft -= 1;
_parent.timedown = 0;
}
if (_parent._parent.timeleft == 0 && !itsover) {
_parent.progresss.progressbar._alpha = 0;
_parent.failtext._alpha = 100;
_parent.failtext.gotoAndPlay(2);
_parent.gamestarted = false;
this.itsover = true;
delete this.onEnterFrame;
delete _parent.onEnterFrame;
}
if (!Key.isDown(38) && !Key.isDown(40)) {
_parent.dragon.dragon2.gotoAndStop('normal');
}
if (Key.isDown(38) && _parent.dragon._y > -190) {
_parent.dragon._y -= 6;
_parent.dragon.dragon2.gotoAndStop('godown');
}
if (Key.isDown(40) && _parent.dragon._y < -80) {
_parent.dragon._y += 6;
_parent.dragon.dragon2.gotoAndStop('goup');
}
if (Key.isDown(37) && _parent.dragon._x > -150) {
_parent.dragon._x -= 3;
}
if (Key.isDown(39) && _parent.dragon._x < -5) {
_parent.dragon._x += 3;
}
_parent._parent.cloudcount += 1;
if (_parent._parent.cloudcount > 40) {
cloudz = _parent.backgrounda.attachMovie('cloud' + (random(4) + 1), 'cloudaa' + random(9000), random(10000));
cloudz._x = 260;
cloudz._y = random(224) - 224;
_parent._parent.cloudcount = 0;
}
_parent._parent.cutecount += 1;
if (_parent._parent.cutecount > 100) {
cloudzz = _parent.backgrounda.attachMovie('cute' + (random(5) + 1), 'cloudaza' + random(9000), random(10000));
cloudzz._x = 260;
cloudzz._y = random(224) - 224;
_parent._parent.cutecount = 0;
}
_parent._parent.bullshitcount += 1;
if (_parent._parent.bullshitcount > 10) {
cloudzzz = _parent._parent.funtime.attachMovie('bullshit1', 'clouda4za' + random(9000), random(10000));
cloudzzz._x = 300;
cloudzzz._y = random(224) - 224;
_parent._parent.bullshitcount = 0;
}
}
}
}
}
movieClip 4900 {
}
button 4903 {
on (release) {
target = 'blank';
getURL('http://www.pestoforce.com/', 'blank');
}
}
movieClip 4906 {
}
button 4909 {
on (release) {
target = 'blank';
getURL('http://www.i-mockery.com/', 'blank');
}
}
movieClip 4912 {
}
button 4915 {
on (release) {
target = 'blank';
getURL('http://www.thepoxbox.com/', 'blank');
}
}
movieClip 4919 {
}
movieClip 4922 _falkorbonusgameD {
frame 1 {
stop();
gotoAndStop('stuff');
}
frame 6 {
stop();
var cloudcount = 0;
var cutecount = 0;
var cutescore = 0;
var timeleft = 60;
var bullshitcount = 0;
var textualvomit = '';
var gamestarted = false;
var thing = 1;
myarray = new Array('FUNKADELIC!!', 'SUPERMAGICAL!', 'BACON STRIPS!!!', 'AWESOME!!!', 'SUPER!!!', 'KEWL!!!', 'MAGIRIFIC!!!', 'CRUNK!!!', 'FOSHIZZLE!!!', 'COLORFUL!!!', 'SWEETASTIC!!!', 'YAAAAAAY!', 'WEEEEEEEEE!', 'HURRAY!', 'WELL DONE!!!', 'AMAZING!', 'FABULOUS!', 'SWELL!!!', 'TERRIFIC!!!', 'BAH-WEEP-GRAAAAGNAH WHEEP NI NI BONG!', 'OKAAAAAY!!', 'DANG!!!', 'SPIFFY!!!', 'SPIFFY!!!', 'CLASSIC!!!', 'SUPERTASTICULAR!!!', 'FABTACULAR!!!', 'SPRANKTON!!!', 'UNIMAGINABLE!!!', 'ULTRA GREAT!!!');
}
frame 21 {
stop();
_root.endFalkor();
}
}
movieClip 4940 {
frame 17 {
var tar = this._parent._parent._parent;
tar.burnMe(this._parent);
stop();
}
}
movieClip 4959 {
frame 21 {
var tar = this._parent._parent._parent;
tar.burnMe(this._parent);
stop();
}
}
movieClip 4960 prow_groundsplat {
}
movieClip 4965 {
}
movieClip 4968 {
}
movieClip 4969 {
}
movieClip 4974 {
}
movieClip 4978 {
}
movieClip 4979 bf_raaaar {
frame 48 {
stop();
this._parent.endRageCut();
}
}
movieClip 4980 {
}
movieClip 4982 bf_pholder {
}
movieClip 4985 prow_crumple {
}
movieClip 4994 {
frame 9 {
stop();
this._parent.unloadMovie();
this._parent.removeMovieClip();
}
}
movieClip 5005 {
frame 11 {
stop();
this._parent.unloadMovie();
this._parent.removeMovieClip();
}
}
movieClip 5014 {
frame 9 {
stop();
this._parent.unloadMovie();
this._parent.removeMovieClip();
}
}
movieClip 5015 prow_bloodsplat {
}
movieClip 5020 {
}
movieClip 5021 prow_rageoverlay {
frame 49 {
stop();
this._parent.endRageOverlay();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 5082 {
}
movieClip 5084 {
}
movieClip 5086 {
}
movieClip 5088 {
}
movieClip 5090 {
}
movieClip 5091 {
frame 2 {
gotoAndPlay(random(40) + 1);
}
frame 4 {
gotoAndPlay(random(40) + 1);
}
frame 6 {
gotoAndPlay(random(40) + 1);
}
frame 8 {
gotoAndPlay(random(40) + 1);
}
frame 10 {
gotoAndPlay(random(40) + 1);
}
frame 12 {
gotoAndPlay(random(40) + 1);
}
frame 14 {
gotoAndPlay(random(40) + 1);
}
frame 16 {
gotoAndPlay(random(40) + 1);
}
frame 18 {
gotoAndPlay(random(40) + 1);
}
frame 20 {
gotoAndPlay(random(40) + 1);
}
frame 22 {
gotoAndPlay(random(40) + 1);
}
frame 24 {
gotoAndPlay(random(40) + 1);
}
frame 26 {
gotoAndPlay(random(40) + 1);
}
frame 28 {
gotoAndPlay(random(40) + 1);
}
frame 30 {
gotoAndPlay(random(40) + 1);
}
frame 32 {
gotoAndPlay(random(40) + 1);
}
frame 34 {
gotoAndPlay(random(40) + 1);
}
frame 36 {
gotoAndPlay(random(40) + 1);
}
frame 38 {
gotoAndPlay(random(40) + 1);
}
frame 40 {
gotoAndPlay(random(40) + 1);
}
}
movieClip 5124 {
}
movieClip 5157 {
}
movieClip 5162 {
}
movieClip 5178 {
}
movieClip 5207 {
}
movieClip 5240 {
}
movieClip 5280 {
}
movieClip 5284 {
}
movieClip 5289 {
}
movieClip 5292 {
}
movieClip 5301 {
}
movieClip 5387 {
}
movieClip 5439 {
}
movieClip 5614 prow_ragemove {
frame 21 {
this.tar = this._parent._parent;
tar.shakeIt(8);
}
frame 69 {
tar.crowdFlash();
}
frame 385 {
tar.endCrowdFlash();
}
frame 464 {
tar.crowdFlash();
}
frame 588 {
tar.shakeIt(8);
}
frame 619 {
tar.endCrowdFlash();
}
frame 649 {
tar.leftBounce();
}
frame 673 {
tar.shakeIt(8);
}
frame 710 {
tar.crowdFlash();
}
frame 765 {
tar.endCrowdFlash();
}
frame 967 {
tar.crowdFlash();
}
frame 1053 {
tar.endCrowdFlash();
}
frame 1209 {
tar.crowdFlash();
}
frame 1250 {
tar.shakeIt(8);
}
frame 1273 {
tar.endCrowdFlash();
}
frame 1364 {
tar.crowdFlash();
}
frame 1472 {
tar.endCrowdFlash();
}
frame 1569 {
tar.leftBounce();
}
frame 1590 {
tar.shakeIt(8);
}
frame 1621 {
tar.leftBounce();
}
frame 1652 {
tar.shakeIt(8);
tar.crowdFlash();
}
frame 1739 {
tar.endCrowdFlash();
}
frame 1880 {
stop();
tar.fadeItOut();
}
}
movieClip 5635 {
frame 9 {
var tar = this._parent._parent._parent;
tar.eatGuy(this._parent);
}
frame 27 {
stop();
var tar = this._parent._parent._parent;
tar.endFish();
}
}
movieClip 5636 bf_fish {
}
movieClip 5643 bf_burst {
frame 11 {
this.unloadMovie();
this.removeMovieClip();
stop();
}
}
movieClip 5647 {
}
movieClip 5648 {
}
movieClip 5649 bf_minideaths {
frame 1 {
this.minireaper = true;
this.nam = 'Reapette';
this.picid = 82;
}
}
movieClip 5652 {
}
movieClip 5653 bf_monkeyhead {
}
movieClip 5662 {
}
movieClip 5663 {
}
movieClip 5664 bf_powb {
}
movieClip 5671 {
}
movieClip 5672 {
}
movieClip 5673 bf_pukeball {
}
movieClip 5682 {
}
movieClip 5683 {
}
movieClip 5684 bf_scythe {
}
movieClip 5695 {
}
movieClip 5697 {
}
movieClip 5698 bf_spark {
}
movieClip 5703 {
}
movieClip 5705 {
}
movieClip 5706 bf_spikey {
}
movieClip 5707 bf_splashy {
frame 9 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 5710 {
}
movieClip 5717 bf_xshot {
}
movieClip 5726 {
}
movieClip 5727 bf_deathblossomwords {
}
movieClip 5730 {
}
movieClip 5733 {
frame 1 {
stop();
}
}
movieClip 5736 {
}
movieClip 5737 bf_enemy8 {
frame 1 {
this.typ = 7;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Lakitu';
this.picid = 78;
}
}
movieClip 5752 bf_ragesploder {
frame 15 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 5753 bf_smokewrap {
frame 5 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 5757 {
}
movieClip 5758 bf_bomb {
}
movieClip 5763 {
}
movieClip 5764 bf_laser {
}
movieClip 5803 {
frame 1 {
stop();
}
}
movieClip 5805 {
frame 1 {
this.cacheAsBitmap = true;
}
}
movieClip 5815 {
}
movieClip 5828 {
frame 8 {
stop();
}
}
movieClip 5829 {
}
movieClip 5830 {
frame 1 {
stop();
}
}
movieClip 5831 {
frame 1 {
this.typ = 2;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Storm Cloud';
this.picid = 73;
}
}
movieClip 5834 {
}
movieClip 5835 {
}
movieClip 5836 {
frame 1 {
this.typ = 3;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Spinner';
this.picid = 84;
}
}
movieClip 5843 {
}
movieClip 5844 {
}
movieClip 5849 {
frame 7 {
var tar = this._parent._parent._parent._parent;
tar.endPaddle(this._parent._parent);
}
}
movieClip 5856 {
frame 10 {
stop();
}
}
movieClip 5869 {
}
movieClip 5874 {
}
movieClip 5875 {
}
movieClip 5876 {
frame 1 {
this.typ = 1;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Popper';
this.picid = 80;
}
}
movieClip 5881 {
}
movieClip 5882 {
}
movieClip 5883 {
frame 1 {
this.typ = 4;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Skele-ghost';
this.picid = 82;
}
}
movieClip 5888 {
}
movieClip 5889 {
}
movieClip 5890 {
frame 1 {
this.typ = 4;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Oculo';
this.picid = 79;
}
}
movieClip 5895 {
}
movieClip 5896 {
}
movieClip 5897 {
frame 1 {
this.typ = 4;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Buzzy';
this.picid = 71;
}
}
movieClip 5904 {
}
movieClip 5905 {
frame 1 {
stop();
}
}
movieClip 5906 {
frame 1 {
this.typ = 5;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Reaper';
this.picid = 81;
}
}
movieClip 5909 {
}
movieClip 5916 {
}
movieClip 5917 {
frame 1 {
stop();
}
}
movieClip 5918 {
frame 1 {
this.typ = 8;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Toroid';
this.picid = 85;
}
}
movieClip 5925 {
}
movieClip 5930 {
}
movieClip 5931 {
}
movieClip 5938 {
}
movieClip 5943 {
}
movieClip 5944 {
}
movieClip 5953 {
}
movieClip 5960 {
frame 7 {
var tar = this._parent._parent._parent._parent;
tar.endPaddle(this._parent._parent);
}
}
movieClip 5967 {
}
movieClip 5968 {
}
movieClip 5969 {
frame 1 {
this.typ = 0;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Balloon Fighter';
this.picid = 70;
}
}
movieClip 5972 {
}
movieClip 5983 {
frame 13 {
stop();
}
}
movieClip 5984 {
frame 1 {
stop();
}
}
movieClip 5985 {
frame 1 {
if (!this.ready) {
this.ready = true;
this.typ = 11;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Excitebiker';
this.picid = 75;
}
stop();
}
}
movieClip 6000 {
frame 18 {
stop();
}
}
movieClip 6007 {
}
movieClip 6008 {
}
movieClip 6009 {
frame 1 {
stop();
}
}
movieClip 6010 {
frame 1 {
this.typ = 12;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Blob';
this.picid = 72;
}
}
movieClip 6015 {
}
movieClip 6016 {
}
movieClip 6019 {
frame 1 {
stop();
}
}
movieClip 6020 {
frame 1 {
this.typ = 0;
this.jouster = true;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Jouster';
this.picid = 77;
}
}
movieClip 6023 {
frame 1 {
stop();
}
}
movieClip 6024 {
frame 1 {
this.typ = 10;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Death';
this.picid = 74;
}
}
movieClip 6031 {
}
movieClip 6032 {
}
movieClip 6039 {
}
movieClip 6048 {
}
movieClip 6055 {
frame 6 {
stop();
this._parent._parent.gotoAndStop('hold');
}
}
movieClip 6056 {
}
movieClip 6063 {
}
movieClip 6072 {
}
movieClip 6079 {
}
movieClip 6084 {
frame 124 {
stop();
}
}
movieClip 6087 {
}
movieClip 6088 {
}
movieClip 6091 {
}
movieClip 6098 {
}
movieClip 6099 {
frame 1 {
stop();
}
}
movieClip 6100 {
frame 1 {
this.typ = 99;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Amazon';
this.picid = 69;
}
}
movieClip 6107 {
}
movieClip 6114 {
}
movieClip 6119 {
}
movieClip 6120 {
}
movieClip 6127 {
}
movieClip 6132 {
}
movieClip 6133 {
}
movieClip 6142 {
}
movieClip 6149 {
frame 6 {
stop();
this._parent._parent._parent._parent.endPaddle(this._parent._parent);
}
}
movieClip 6156 {
}
movieClip 6159 {
}
movieClip 6220 {
frame 284 {
stop();
this._parent._parent._parent._parent.endBlossom(this._parent._parent);
}
}
movieClip 6221 {
}
movieClip 6226 {
}
movieClip 6227 {
frame 1 {
stop();
}
frame 10 {
this._parent._parent.chkRaging();
}
}
movieClip 6232 {
}
movieClip 6239 {
}
movieClip 6240 {
frame 1 {
stop();
}
}
movieClip 6241 {
frame 1 {
this.typ = 9;
var tar = this._parent._parent;
tar.registerBad(this);
this.nam = 'Thrilla Gor.';
this.picid = 76;
}
}
movieClip 6245 {
}
movieClip 6246 {
instance of movieClip 5918 {
onClipEvent (load) {
this.leader = true;
this.partners = new Array(_parent.x1_0, _parent.x1_1);
this.ourdir = random(2);
if (this.ourdir == 0) {
this.ourdir = -1;
}
}
}
instance of movieClip 5918 {
onClipEvent (load) {
this.leader = true;
this.partners = new Array(_parent.x3_0, _parent.x3_1, _parent.x3_2, _parent.x3_3);
this.ourdir = random(2);
if (this.ourdir == 0) {
this.ourdir = -1;
}
}
}
}
// unknown tag 88 length 37
movieClip 6264 {
}
movieClip 6271 {
}
movieClip 6277 {
}
movieClip 6278 {
}
movieClip 6294 {
}
movieClip 6296 {
frame 244 {
_parent.gotoAndStop('loon');
}
}
movieClip 6306 {
}
movieClip 6311 {
}
movieClip 6316 {
}
movieClip 6327 {
}
movieClip 6334 {
}
movieClip 6345 {
}
movieClip 6383 {
}
movieClip 6384 {
frame 115 {
stop();
}
}
movieClip 6391 {
}
movieClip 6399 {
}
movieClip 6408 {
frame 6 {
stop();
}
}
movieClip 6422 {
}
movieClip 6450 {
}
movieClip 6452 {
frame 347 {
stop();
}
}
movieClip 6458 {
frame 11 {
stop();
}
}
movieClip 6463 {
}
movieClip 6475 {
frame 608 {
stopAllSounds();
}
frame 710 {
stop();
this._parent._parent.gotoAndPlay('fightintro');
}
}
movieClip 6476 {
frame 1 {
stop();
}
frame 3 {
stop();
}
}
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 6488 {
}
movieClip 6497 {
}
movieClip 6498 {
frame 1 {
stop();
}
frame 8 {
stop();
}
}
movieClip 6500 {
}
movieClip 6501 {
}
movieClip 6503 {
}
movieClip 6504 {
}
movieClip 6507 {
}
movieClip 6510 {
}
movieClip 6513 {
}
movieClip 6520 {
}
movieClip 6527 {
frame 5 {
stop();
}
}
movieClip 6530 {
}
movieClip 6531 {
frame 2 {
var tar = this._parent._parent._parent._parent;
tar.chkPunch(this._parent._parent, box, 2);
}
frame 4 {
var tar = this._parent._parent._parent._parent;
tar.chkPunch(this._parent._parent, box, 2);
}
frame 6 {
this._parent._parent._parent._parent.endPunch(this._parent._parent);
}
}
movieClip 6540 {
frame 7 {
tar = this._parent._parent._parent._parent;
tar.chkPunch(this._parent._parent, box, 4);
}
frame 9 {
tar = this._parent._parent._parent._parent;
tar.chkPunch(this._parent._parent, box, 4);
}
frame 11 {
this._parent._parent._parent._parent.endPunch(this._parent._parent);
}
}
movieClip 6548 {
}
movieClip 6555 {
frame 1 {
this.tar = this._parent._parent._parent._parent;
}
frame 2 {
tar.chkPunch(this._parent._parent, box, 5);
}
frame 4 {
tar.chkPunch(this._parent._parent, box, 5);
}
frame 6 {
tar.chkPunch(this._parent._parent, box, 5);
}
frame 8 {
tar.chkPunch(this._parent._parent, box, 5);
}
frame 11 {
tar.endPunch(this._parent._parent);
}
}
movieClip 6564 {
frame 15 {
tar = this._parent._parent._parent._parent;
tar.shakeIt(5);
}
frame 19 {
var tar = this._parent._parent._parent._parent;
tar.endSlam(this._parent._parent, -45, -1);
}
}
movieClip 6571 {
frame 18 {
tar = this._parent._parent._parent._parent;
tar.b.hp -= 2;
tar.shakeIt(5);
tar.updateHud();
}
frame 25 {
var tar = this._parent._parent._parent._parent;
tar.endSlam(this._parent._parent, 10, 1);
}
}
movieClip 6577 {
frame 7 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(5, true);
tar.punchsound.start();
tar.endSlam(this._parent._parent, 20, 1, true, true);
}
}
movieClip 6588 {
frame 2 {
var tar = this._parent._parent._parent._parent;
tar.crowdFlash();
}
frame 6 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 12 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 18 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 24 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 30 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 36 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 42 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 48 {
tar.b.hp -= 0.25;
tar.updateHud();
}
frame 55 {
var tar = this._parent._parent._parent._parent;
tar.endCrowdFlash();
tar.endSlam(this._parent._parent, 25, -1, true, false);
}
}
movieClip 6593 {
frame 8 {
stop();
}
}
movieClip 6600 {
frame 1 {
this.tar = this._parent._parent._parent._parent;
}
frame 2 {
tar.chkPunch(this._parent._parent, box, 5, true);
}
frame 4 {
tar.chkPunch(this._parent._parent, box, 5, true);
}
frame 6 {
tar.chkPunch(this._parent._parent, box, 5, true);
}
frame 8 {
tar.chkPunch(this._parent._parent, box, 5, true);
}
frame 10 {
tar.chkPunch(this._parent._parent, box, 5, true);
}
frame 12 {
tar.endPunch(this._parent._parent);
}
}
movieClip 6611 {
frame 19 {
tar = this._parent._parent._parent._parent;
tar.shakeIt(5);
}
frame 25 {
var tar = this._parent._parent._parent._parent;
tar.endSlam(this._parent._parent, 35, -1);
}
}
movieClip 6620 {
}
movieClip 6629 {
frame 20 {
stop();
}
}
movieClip 6630 {
frame 20 {
stop();
}
}
movieClip 6633 {
}
movieClip 6634 {
}
movieClip 6637 {
}
movieClip 6642 {
}
movieClip 6647 {
frame 9 {
stop();
var tar = this._parent._parent._parent._parent;
tar.endChairSwing(this._parent._parent);
}
}
movieClip 6650 {
frame 6 {
stop();
var tar = this._parent._parent._parent._parent;
tar.chairHit(this._parent._parent);
}
}
movieClip 6660 {
frame 13 {
stop();
var tar = this._parent._parent._parent._parent;
tar.warpBack();
}
}
movieClip 6677 {
frame 43 {
stop();
var tar = this._parent._parent._parent._parent;
tar.goSuper();
}
}
movieClip 6678 {
frame 1 {
stop();
}
}
movieClip 6679 {
frame 1 {
stop();
}
frame 8 {
gotoAndPlay('rageout');
}
}
movieClip 6680 {
}
movieClip 6687 {
}
movieClip 6694 {
frame 5 {
stop();
}
}
movieClip 6696 {
}
movieClip 6699 {
frame 3 {
var tar = this._parent._parent._parent._parent;
tar.chkBadPunch(this._parent._parent, box);
}
frame 5 {
var tar = this._parent._parent._parent._parent;
tar.chkBadPunch(this._parent._parent, box);
}
frame 8 {
tar.endBadPunch(this._parent._parent);
}
}
movieClip 6708 {
frame 7 {
var tar = this._parent._parent._parent._parent;
tar.chkBadPunch(this._parent._parent, box);
}
frame 9 {
var tar = this._parent._parent._parent._parent;
tar.chkBadPunch(this._parent._parent, box);
}
frame 11 {
tar.endBadPunch(this._parent._parent);
}
}
movieClip 6710 {
}
movieClip 6716 {
}
movieClip 6727 {
}
movieClip 6736 {
}
movieClip 6741 {
frame 9 {
stop();
var tar = this._parent._parent._parent._parent;
tar.endChairSwing(this._parent._parent);
}
}
movieClip 6744 {
frame 7 {
stop();
var tar = this._parent._parent._parent._parent;
tar.chairHit(this._parent._parent);
}
}
movieClip 6753 {
frame 15 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(5);
}
frame 19 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
}
frame 26 {
stop();
var tar = this._parent._parent._parent._parent;
tar.endBSlam(this._parent._parent, -35, -1, true, false);
}
}
movieClip 6759 {
frame 4 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 10 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 16 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 22 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 28 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 31 {
stop();
stop();
var tar = this._parent._parent._parent._parent;
tar.endBSlam(this._parent._parent, -25, 1, true, false);
}
}
movieClip 6775 {
frame 16 {
var tar = this._parent._parent._parent._parent;
}
frame 29 {
stop();
tar.endBSlam(this._parent._parent, 25, -1, true, false);
}
}
movieClip 6780 {
frame 4 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 10 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 16 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 22 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 28 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(3, true);
tar.makeBlood(tar.d._x + (random(6) - 3), tar.d._y - 23, tar.b.dir);
}
frame 31 {
stop();
var tar = this._parent._parent._parent._parent;
tar.endBSlam(this._parent._parent, 25, -1, true, false);
}
}
movieClip 6817 {
frame 4 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(8, true);
}
frame 22 {
tar = this._parent._parent._parent._parent;
tar.crowdFlash();
}
frame 96 {
var tar = this._parent._parent._parent._parent;
tar.shakeIt(8);
tar.endCrowdFlash();
}
frame 98 {
stop();
var tar = this._parent._parent._parent._parent;
tar.endBSlam(this._parent._parent, -100, 1, true, false);
}
}
movieClip 6822 {
frame 9 {
stop();
}
}
movieClip 6823 {
frame 1 {
stop();
}
}
movieClip 6824 {
frame 1 {
this.nam = 'Amazon';
this.picid = 69;
}
}
movieClip 6829 {
}
movieClip 6850 {
frame 105 {
stop();
}
}
movieClip 6855 {
}
movieClip 6856 {
}
movieClip 6857 {
}
movieClip 6858 {
}
movieClip 6863 {
}
movieClip 6912 {
frame 185 {
stop();
}
}
movieClip 6913 {
}
movieClip 6914 {
}
movieClip 6921 {
frame 1 {
stop();
}
}
movieClip 6928 {
frame 1 {
stop();
}
}
movieClip 6931 {
}
movieClip 6932 {
}
movieClip 6934 {
frame 1 {
stop();
}
frame 21 {
this._parent.goBigScene();
stop();
}
}
movieClip 6938 {
}
movieClip 6939 {
frame 1 {
var i = 0;
while (i < 8) {
var d = cloudz.duplicateMovieClip('cloud' + i, i);
var num = i + 1;
d._y = 308 - num * cloudz._height;
++i;
}
}
}
movieClip 6975 {
frame 3 {
gotoAndPlay(1);
}
frame 7 {
gotoAndPlay('phasetwo');
}
frame 14 {
gotoAndPlay('phasethree');
}
frame 25 {
gotoAndPlay('phasefour');
}
frame 40 {
gotoAndPlay('phasefive');
}
frame 42 {
stop();
}
frame 171 {
gotoAndPlay('rape');
}
}
movieClip 6985 {
}
movieClip 6992 {
}
movieClip 6995 {
}
movieClip 6997 {
frame 39 {
stop();
}
}
movieClip 6998 {
frame 44 {
fblowabobo.gotoAndPlay('phasetwo');
}
frame 80 {
fblowabobo.gotoAndPlay('phasethree');
}
frame 114 {
fblowabobo.gotoAndPlay('phasefour');
}
frame 144 {
fblowabobo.gotoAndPlay('phasefive');
}
frame 177 {
fblowabobo.gotoAndPlay('phasesix');
}
frame 205 {
fblowabobo.gotoAndPlay('turn');
}
frame 564 {
_parent.gotoAndStop('stadium');
}
}
movieClip 7000 {
}
movieClip 7018 {
}
movieClip 7019 {
frame 1 {
}
frame 92 {
}
frame 92 {
_parent.gotoAndPlay('ring');
}
}
movieClip 7022 prow_wras {
}
movieClip 7026 {
}
movieClip 7027 {
}
movieClip 7029 {
}
movieClip 7030 {
frame 1 {
stop();
}
}
movieClip 7031 {
}
movieClip 7040 {
}
movieClip 7049 {
frame 1 {
stop();
}
}
movieClip 7058 {
}
movieClip 7065 {
frame 1 {
_parent._parent._parent.bigring._x += 2;
}
frame 2 {
_parent._parent._parent.bigring._x -= 4;
}
frame 3 {
_parent._parent._parent.bigring._y += 2;
}
frame 4 {
_parent._parent._parent.bigring._x += 2;
}
frame 5 {
_parent._parent._parent.bigring._y -= 4;
}
frame 6 {
_parent._parent._parent.bigring._y += 2;
}
}
movieClip 7162 {
frame 64 {
stop();
}
}
movieClip 7165 {
}
movieClip 7166 {
frame 65 {
_parent._parent.gotoAndPlay('city2');
}
}
movieClip 7167 {
frame 1 {
gotoAndPlay(2);
}
frame 2 {
wrap.attachMovie('prow_wras', 'guts', 0);
}
frame 35 {
stopAllSounds();
}
frame 35 {
_parent.bigring._x += 1;
}
frame 36 {
_parent.bigring._x -= 2;
}
frame 37 {
_parent.bigring._x += 2;
}
frame 38 {
_parent.bigring._x -= 2;
}
frame 39 {
_parent.bigring._x += 2;
}
frame 40 {
_parent.bigring._x -= 4;
}
frame 41 {
_parent.bigring._x += 4;
}
frame 42 {
_parent.bigring._x -= 4;
}
frame 43 {
_parent.bigring._x += 4;
}
frame 44 {
_parent.bigring._x -= 2;
}
frame 45 {
ringaling.crowd.stop();
rooopes.stop();
wrasslers.stop();
}
frame 168 {
ringaling.crowd.play();
rooopes.play();
wrasslers.play();
}
}
movieClip 7170 {
}
movieClip 7181 {
frame 11 {
stop();
}
}
movieClip 7182 {
frame 20 {
stop();
}
}
movieClip 7192 {
}
movieClip 7199 {
}
movieClip 7200 {
frame 1 {
_parent.shitty._y += 1;
}
frame 2 {
_parent.shitty._y -= 1;
}
frame 6 {
_parent.shitty._y -= 1;
}
frame 7 {
_parent.shitty._y += 1;
}
frame 10 {
_parent.shitty._x += 1;
}
frame 11 {
_parent.shitty._x -= 1;
}
frame 14 {
_parent.shitty._x -= 1;
}
frame 15 {
_parent.shitty._x += 1;
}
frame 18 {
_parent.shitty._y -= 1;
}
frame 19 {
_parent.shitty._y += 1;
}
frame 23 {
_parent.shitty._x -= 1;
}
frame 24 {
_parent.shitty._x += 1;
}
frame 28 {
_parent.shitty._y += 1;
}
frame 29 {
_parent.shitty._y -= 1;
}
frame 33 {
_parent.shitty._y -= 1;
}
frame 34 {
_parent.shitty._y += 1;
}
frame 74 {
_parent.gotoAndPlay('ring2');
}
}
movieClip 7209 {
}
movieClip 7211 {
frame 71 {
stopAllSounds();
_parent.gotoAndStop('megamana');
}
}
movieClip 7233 {
frame 35 {
stop();
}
}
movieClip 7238 {
frame 45 {
stop();
}
}
movieClip 7240 {
frame 155 {
_parent.gotoAndStop('lastring');
}
}
movieClip 7252 {
frame 120 {
stop();
_root.goMegaman();
}
}
movieClip 7253 TMPlxg2loeksl {
frame 1 {
stop();
}
frame 6 {
stop();
}
frame 14 {
stop();
}
frame 20 {
stop();
}
frame 27 {
stop();
}
frame 36 {
stop();
}
frame 45 {
stop();
}
}
movieClip 7254 bf_wrapperG {
frame 1 {
gotoAndStop(2);
}
frame 2 {
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function updateHud() {
if (rage > maxrage) {
rage = maxrage;
}
lbar._xscale = (hp / maxhp) * 100;
d.hp = hp;
d.maxhp = maxhp;
if (lbar._xscale < 0) {
lbar._xscale = 0;
}
if (lbar._xscale > 100) {
lbar._xscale = 100;
}
if (rage < 0) {
rage = 0;
}
var v2 = (rage / maxrage) * 100;
rbar._xscale = v2;
if (v2 > 100) {
rbar._xscale = 100;
v2 = 100;
}
if (v2 < 0) {
rbar._xscale = 0;
v2 = 0;
}
if (v2 == 100) {
raging = true;
d.gotoAndPlay('flash');
} else {
if (!pausy) {
raging = false;
d.gotoAndStop(1);
}
}
if (d == undefined) {
d = bg.dude;
}
this._parent.hud.updateRage(v2);
this._parent.hud.updateMe(d);
this._parent.setRageNotify(v2);
if (d.lives == undefined) {
d.lives = 5;
}
this._parent.hud.tries.text = 'X' + d.lives;
}
function endRageCut() {
this.cutt.unloadMovie();
this.cutt.removeMovieClip();
d.balls1._visible = false;
d.balls2._visible = false;
d._xscale = 100;
var v4 = this.attachMovie('bf_deathblossomwords', 'db', effcv + 998811);
v4._visible = false;
++effcv;
d.guts.gotoAndStop('blossom');
var v2 = 0;
while (v2 < projs.length) {
var v3 = projs[v2];
removeProj(v3);
++v2;
}
v2 = 0;
while (v2 < projs.length) {
v3 = projs[v2];
removeProj(v3);
++v2;
}
}
function endBlossom(who) {
pausy = false;
this.db.unloadMovie();
this.db.removeMovieClip();
who.guts.gotoAndStop('airrest');
who.yvel = -2;
who.xvel = 0;
raging = false;
who.numballoons = 2;
who.hp = who.maxhp;
hp = maxhp;
who.balls2._visible = true;
ragecutcv = 0;
blosscv = 0;
maxbloss = 13;
nokeys = false;
bgloop.setVolume(VOLLEVEL);
}
function runRageScene() {
_root.aboboMedal('Death Blossom');
bgloop.setVolume(0);
pausy = true;
nokeys = true;
who.gotoAndStop(1);
shooters = new Array();
homingburst = false;
rage = 0;
hp = maxhp;
updateHud();
d._visible = true;
var v5 = this.attachMovie('bf_raaaar', 'cutt', effcv + 999118);
++effcv;
var v3 = 0;
while (v3 < projs.length) {
var v4 = projs[v3];
removeProj(v4);
++v3;
}
v3 = 0;
while (v3 < projs.length) {
v4 = projs[v3];
removeProj(v4);
++v3;
}
}
function rageTimer() {
++ragecutcv;
if (ragecutcv == 30) {
d._x = -bg._x + 128;
d._y = 120;
}
if (ragecutcv >= 95) {
if (ragecutcv < 285) {
++blosscv;
if (blosscv >= maxbloss) {
blosscv = 0;
if (maxbloss > 1) {
--maxbloss;
} else {
if (!homingburst) {
if (!db._visible) {
db._visible = true;
}
homingburst = true;
homingBloss();
}
}
launchBloss();
}
}
var v9 = 0;
while (v9 < shooters.length) {
var v3 = shooters[v9];
v3._x += v3.xvel;
v3._y += v3.yvel;
v3.virtx = v3._x + bg._x;
var v4 = 0;
while (v4 < baddies.length) {
var v2 = baddies[v4];
v2.virtx = v2._x + bg._x;
if (v2.virtx > -20 && v2.virtx < 270) {
var v6 = v2._x - v3._x;
var v5 = v2._y - v3._y;
var v7 = Math.sqrt(v6 * v6 + v5 * v5);
if (v7 < 20) {
rageSplode(v2._x, v2._y);
if (v2.typ != 99) {
changeEName(v2.nam);
v2.hp = 0;
v2.maxhp = 1;
this._parent.hud.updateBad(v2, true);
removeBad(v2);
v3.unloadMovie();
v3.removeMovieClip();
} else {
v2.hp = 1;
v2.maxhp = 1;
this._parent.hud.updateBad(v2);
changeEName(v2.nam);
v2.surprised = true;
v2.guts.gotoAndStop('surprised');
var v8 = random(ragecomplaints.length);
msg.text = '';
v2.msg = ragecomplaints[v8];
v2.lpointer = 0;
v3.unloadMovie();
v3.removeMovieClip();
}
}
}
++v4;
}
if (v3.virtx > 290 || v3.virtx < -50 || v3._y < -100 || v3._y > 290) {
v3.unloadMovie();
v3.removeMovieClip();
}
++v9;
}
}
}
function rageSplode(x, y) {
dsplode.start();
var v1 = bg.attachMovie('bf_ragesploder', 'rsplode' + effcv, effcv + 99812);
++effcv;
v1._x = x;
v1._y = y;
}
function chkRaging() {
if (raging && !pausy) {
d.gotoAndPlay('flash');
}
}
function homingBloss() {
var v6 = 0;
while (v6 < baddies.length) {
var v3 = baddies[v6];
v3.virtx = v3._x + bg._x;
if (v3.virtx > -20 && v3.virtx < 270) {
var v8 = random(2);
if (v8 == 0) {
var v9 = 'bf_bomb';
}
if (v8 == 1) {
v9 = 'bf_laser';
}
var v2 = this.bg.attachMovie(v9, 'bloss' + effcv, effcv + 77881);
++effcv;
v2._x = d._x;
v2._y = d._y;
v2.sp = 8;
var v5 = v3._x - d._x;
var v4 = v3._y - d._y;
var v7 = Math.sqrt(v5 * v5 + v4 * v4);
v5 /= v7;
v4 /= v7;
var v10 = Math.atan2(v4, v5);
v2._rotation = v10 * 180 / Math.PI;
v2.xvel = v5 * v2.sp;
v2.yvel = v4 * v2.sp;
v2._x += v2.xvel;
v2._y += v2.yvel;
shooters.push(v2);
}
++v6;
}
}
function launchBloss() {
var v4 = random(2);
if (v4 == 0) {
var v6 = 'bf_bomb';
var v8 = random(2);
var v7 = this['bbs' + v8];
v7.start();
}
if (v4 == 1) {
v6 = 'bf_laser';
v8 = random(4);
v7 = this['bbl' + v8];
v7.start();
}
var v2 = this.bg.attachMovie(v6, 'bloss' + effcv, effcv + 77881);
++effcv;
v2._x = d._x;
v2._y = d._y;
var v3 = random(360) + 1;
v2._rotation = v3;
v2.sp = 8;
var v5 = v3 * Math.PI / 180;
v2.xvel = Math.cos(v5) * v2.sp;
v2.yvel = Math.sin(v5) * v2.sp;
v2._x += v2.xvel;
v2._y += v2.yvel;
shooters.push(v2);
}
function makeSmokePoof(who) {
var v1 = bg.attachMovie('bf_smokewrap', 'sm' + effcv, effcv + 77611);
++effcv;
v1._x = who._x + random(10) - 5;
v1._y = who._y + random(10) - 5;
var v2 = random(2);
if (v2 == 0) {
v2 = -1;
}
v1._xscale = v2 * 100;
}
function changeEName(txt) {
_root.hud.enemnam.text = txt.toUpperCase();
}
function init() {
bg.dude.paddleplaying = false;
fallsoundplayed = false;
maxbloss = 13;
blosscv = 0;
ragecutcv = 0;
ragecv = 0;
raging = false;
maxrage = 13;
rage = 0;
maxhp = 2;
hp = maxhp;
updateHud();
pows = new Array();
powcv = 0;
pouts = new Array();
pouts.push('WATCH THE HAIR! IT TAKES ME HOURS TO GET IT LOOKING THIS GOOD!');
pouts.push('APPARENTLY YOU MISTOOK MY HEAD AS A FOOTSTOOL. BAD ABOBO! BAD!');
pouts.push('EVERYBODY GETS LUCKY NOW \'N THEN. EVEN COMPLETE MORONS LIKE YOU.');
pouts.push('WHEN WAS THE LAST TIME YOU WASHED YOUR FEET? THE EIGHTIES?');
pouts.push('BACK OFF MAN, I\'M A SCIENTIST.');
pouts.push('STUPID GNATS BUZZING AROUND MY FACE. OH WAIT, THAT WAS YOU.');
pouts.push('TRY THAT AGAIN AND I\'LL FEED ABOBOY TO MY PRIZED PIRANHAS!');
rscv = 0;
heroeaten = false;
tossers = new Array();
bg.boss.outofgas = false;
projs = new Array();
msg.text = '';
nokeys = false;
baddies = new Array();
effcv = 0;
respawn = false;
spawncv = 0;
fishonscreen = false;
bg.antiwalk._alpha = 0;
P = 80;
A = 65;
B = 83;
L = 37;
R = 39;
AIRFRIC = 0.99;
GROUNDFRIC = 0.4;
GRAV = 0.15;
SCROLLSPEED = 0.5;
pausy = false;
bg._x = -bg._width + 256;
this.d = bg.dude;
d.lives = LIVES;
d.hp = 100;
d.maxhp = 100;
this._parent.hud.updateMe(d);
d.guts.gotoAndStop('groundrest');
d.hitcv = 0;
d.balls1.gotoAndStop('groundrest');
d.balls2.gotoAndStop('groundrest');
d.xvel = 0;
d.yvel = 0;
d.paddlepowery = 1.5;
d.paddlepowerx = 0.9;
d.fishwait = 0;
d.falling = false;
d.youflashing = false;
d.you._visible = false;
d.youcv = 0;
d.numballoons = 2;
var v2 = d['balls' + d.numballoons];
d.balls2._visible = false;
d.balls1._visible = false;
v2._visible = true;
d.groundspeed = 1;
this.onEnterFrame = function () {
enterF();
};
}
function moveBg() {
if (bg._x < -1175) {
bg._x += SCROLLSPEED;
if (bg._x > -200) {
if (bg.boss.virtx > 256) {
bg.boss._x = 256;
}
}
} else {
bg._x = -1175;
bg.boss.outofgas = true;
bg.boss.flyby = true;
pausy = false;
}
rightside = -bg._x + 246;
leftside = -bg._x + 10;
restrain(d);
}
function restrain(who) {
if (!who.pumping) {
if (who._x > rightside) {
who._x = rightside - 1;
who.xvel = -who.xvel * 0.6;
}
if (who._x < leftside) {
who.xvel = 0;
who._x = leftside;
}
if (who._y < 16) {
who._y = 16;
who.yvel = 0;
}
}
}
function phys(who) {
if (raging) {
++ragecv;
if (ragecv >= 3) {
ragecv = 0;
makeSmokePoof(who);
}
}
who.yvel += GRAV;
who._y += who.yvel;
who._x += who.xvel;
if (who.onground) {
who.xvel *= GROUNDFRIC;
var v4 = Math.abs(who.xvel);
if (v4 < 0.15) {
who.xvel = 0;
}
} else {
who.xvel *= AIRFRIC;
}
who.vx = who._x + bg._x;
who.vy = who._y + bg._y;
if (!who.falling) {
while (shitTest(bg.antiwalk, who.vx, who.vy + 10)) {
who._y -= GRAV;
who.vy -= GRAV;
who.yvel = 0;
if (bg.dude.startedup && !who.onground) {
lands.start();
}
who.onground = true;
}
var v2 = false;
for (;;) {
if (!(shitTest(bg.antiwalk, who.vx - 6, who.vy) || !v2 && shitTest(bg.antiwalk, who.vx - 6, who.vy - 10))) break;
v2 = true;
who._x += 1;
who.vx += 1;
}
for (;;) {
if (!(!v2 && shitTest(bg.antiwalk, who.vx + 6, who.vy) || !v2 && shitTest(bg.antiwalk, who.vx + 6, who.vy - 10))) break;
v2 = true;
who._x -= 1;
who.vx -= 1;
}
var v3 = false;
if (v2) {
v3 = true;
who.xvel = -who.xvel * 0.6;
}
while (shitTest(bg.antiwalk, who.vx, who.vy - 14)) {
v3 = true;
who.yvel = 1;
who._y += 1;
who.vy += 1;
v2 = true;
}
if (v3) {
bumps.start();
}
}
if (who.yvel > 0.15) {
if (!who.shocked) {
who.onground = false;
if (!who.paddling) {
who.guts.gotoAndStop('airrest');
var v5 = who['balls' + who.numballoons];
v5.gotoAndStop('airrest');
}
} else {
who.guts.gotoAndStop('shocked');
}
}
if (who.youflashing) {
++who.youcv;
who.hit = true;
who.hitcv = 13;
who.you._visible = true;
if (who.youcv >= 50) {
who.youcv = 0;
who.youflashing = false;
who.you._visible = false;
}
who.you._xscale = who._xscale;
}
}
function controls() {
var v1 = d;
if (d.numballoons > 0) {
if (raging) {
if (Key.isDown(A) && Key.isDown(B)) {
runRageScene();
}
}
if (v1.hit) {
++v1.hitcv;
v1.guts._visible = !v1.guts._visible;
var v2 = v1['balls' + v1.numballoons];
v2._visible != v2._visible;
if (v1.hitcv >= 15) {
v2._visible = true;
v1.guts._visible = true;
v1.hitcv = 0;
v1.hit = false;
}
}
if (!Key.isDown(A)) {
aup = true;
}
if (aup && Key.isDown(A)) {
aup = false;
paddle(d);
}
if (Key.isDown(L)) {
d._xscale = 100;
if (v1.onground) {
v1.xvel -= v1.groundspeed;
v1.guts.gotoAndStop('groundmove');
var v3 = v1['balls' + v1.numballoons];
v3.gotoAndStop('groundmove');
}
}
if (Key.isDown(R)) {
d._xscale = -100;
if (v1.onground) {
v1.xvel += v1.groundspeed;
v1.guts.gotoAndStop('groundmove');
v3 = v1['balls' + v1.numballoons];
v3.gotoAndStop('groundmove');
}
}
if (v1.onground && !Key.isDown(R) && !Key.isDown(L)) {
v1.guts.gotoAndStop('groundrest');
v3 = v1['balls' + v1.numballoons];
v3.gotoAndStop('groundrest');
}
} else {
if (!v1.shocked) {
if (!fallsoundplayed) {
falls.start();
fallsoundplayed = true;
}
v1.guts.gotoAndStop('fall');
}
v1.xvel *= 0.9;
fishwait = 10;
}
}
function endPaddle(who) {
who.guts.gotoAndStop('airrest');
var v2 = who['balls' + who.numballoons];
v2.gotoAndStop('airrest');
v2._visible = true;
who.paddling = false;
}
function paddle(who, nokeys) {
who.onground = false;
if (who == d) {
flaps.start();
}
who.paddling = true;
who.guts.gotoAndStop('airmove');
var v2 = who['balls' + who.numballoons];
v2.gotoAndStop('airmove');
v2._visible = true;
if (who.yvel > -3) {
who.yvel -= who.paddlepowery;
}
if (!nokeys) {
if (Key.isDown(L)) {
if (who.xvel < 5) {
who.xvel -= who.paddlepowerx;
}
}
if (Key.isDown(R)) {
if (who.xvel > -5) {
who.xvel += who.paddlepowerx;
}
}
} else {
if (who.dec2 == 0) {
if (who._x < d._x) {
who.xvel += 0.1;
} else {
who.xvel -= 0.1;
}
}
if (who.dec2 == 1) {
if (who._x < d._x - 50) {
who.xvel += 0.1;
}
if (who._x > d._x - 50) {
who.xvel -= 0.1;
}
}
if (who.dec2 == 2) {
if (who._x < d._x + 50) {
who.xvel += 0.1;
}
if (who._x > d._x + 50) {
who.xvel -= 0.1;
}
}
if (who.virtx > 240) {
who.xvel -= 0.25;
}
}
}
function eatGuy(who) {
who.partner._visible = false;
if (who.bad) {
removeBad(who.partner);
}
}
function removeBad(who) {
var v1 = 0;
while (v1 < baddies.length) {
var v2 = baddies[v1];
if (v2 == who) {
baddies.splice(v1, 1);
}
++v1;
}
who.unloadMovie();
who.removeMovieClip();
}
function endFish() {
fishonscreen = false;
}
function chkFish(who, bad) {
if (who._y > 225) {
if (!bad) {
nokeys = true;
pausy = true;
respawn = true;
hp = 0;
rage = 0;
raging = false;
d = bg.dude;
++numdeaths;
--d.lives;
this._parent.hud.updateMe(d);
updateHud();
} else {
removeBad(who);
}
who._visible = false;
if (who._x > 750) {
splashs.start();
var v3 = bg.attachMovie('bf_splashy', 'splash', 992);
v3._x = who._x;
v3._y = 215;
}
}
if (who._y > 195 && !who.eaten && !fishonscreen) {
++who.fishwait;
if (who.fishwait > 35) {
fishonscreen = true;
who.eaten = true;
if (!bad) {
nokeys = true;
pausy = true;
respawn = true;
heroeaten = true;
hp = 0;
rage = 0;
raging = false;
d = bg.dude;
++numdeaths;
--d.lives;
this._parent.hud.updateMe(d);
updateHud();
} else {
v3.bad = true;
}
bgloop.setVolume(0);
fishbites.start();
fishbites.onSoundComplete = function () {
bgloop.setVolume(VOLLEVEL);
};
v3 = bg.attachMovie('bf_fish', 'fish', 991);
v3._x = who._x - 7;
v3._y = 215;
v3.partner = who;
}
} else {
who.fishwait = 0;
}
}
function chkBPop(who) {
if (!who.hit && !d.hit && who._visible) {
if (who.typ == 5) {
if (d.guts.hitarea.hitTest(who.guts.bhitarea)) {
if (!who.summoned) {
_root.aboboMedal('Reap This');
}
changeEName(who.nam);
this._parent.hud.updateBad(who, true);
reaperkill.start();
rage += 5;
updateHud();
d.yvel = -3;
who.hit = true;
who.guts.gotoAndStop('die');
}
}
if (who.typ == 99) {
if (d.guts.hitarea.hitTest(who.guts.bhitarea) && !who.outofgas) {
_root.aboboMedal('Bonkers');
changeEName(who.nam);
rage += 2;
bonks.start();
updateHud();
d.yvel = -3;
d.xvel = 3;
who.surprised = true;
who.hp = 1;
who.maxhp = 1;
this._parent.hud.updateBad(who);
var v6 = random(pouts.length);
msg.text = '';
who.msg = pouts[v6];
who.lpointer = 0;
}
}
if (who.typ == 9) {
if (d.guts.hitarea.hitTest(who.guts.bhitarea)) {
_root.aboboMedal('Surf\'s Up');
changeEName(who.nam);
gorilladie.start();
rage += 5;
updateHud();
d.yvel = -3;
who.hit = true;
who.guts.gotoAndStop('die');
this._parent.hud.updateBad(who, true);
var v4 = bg.attachMovie('bf_monkeyhead', 'head' + effcv, effcv + 8811);
++effcv;
v4._x = who._x;
v4._y = who._y - 20;
v4.yvel = -5;
hd = -1;
v4.xvel = hd * random(3) + 2;
tossers.push(v4);
}
}
if (who.typ == 7) {
if (d.guts.hitarea.hitTest(who.guts.bhitarea)) {
changeEName(who.nam);
this._parent.hud.updateBad(who, true);
lakitus.start();
rage += 5;
updateHud();
who.hit = true;
d.yvel = -3;
who.yvel = 1;
--who.numballoons;
who.guts.gotoAndStop('fall');
}
}
if (who.typ == 0) {
var v7 = who['balls' + who.numballoons];
if (who.jouster) {
v7 = who.guts;
}
if (d.guts.hitarea.hitTest(v7.hitarea)) {
changeEName(who.nam);
if (who.jouster) {
joustdie.start();
} else {
ballpops.start();
}
rage += 2;
updateHud();
who.hit = true;
d.yvel = -3;
who.yvel = 1;
--who.numballoons;
who.balls2._visible = false;
who.balls1._visible = false;
if (who.numballoons > 0) {
who.hp = 1;
who.maxhp = 2;
this._parent.hud.updateBad(who);
var v5 = who['balls' + who.numballoons];
v5._visible = true;
v5.gotoAndStop('airrest');
who.guts.gotoAndStop('airrest');
} else {
this._parent.hud.updateBad(who, true);
who.guts.gotoAndStop('fall');
}
}
}
if (who.typ == 1 && !who.falling) {
if (d.guts.hitarea.hitTest(who.guts.bhitarea)) {
changeEName(who.nam);
if (who.chuting && !who.pumping) {
this._parent.hud.updateBad(who, true);
bonks.start();
rage += 2;
updateHud();
who.xvel = 0;
who.hit = true;
d.yvel = -3;
who.yvel = 1;
who.chuting = false;
who.guts.gotoAndStop('chutepop');
who.falling = true;
}
if (who.pumping && !who.hit) {
this._parent.hud.updateBad(who, true);
bonks.start();
rage += 2;
updateHud();
who.xvel = 0;
who.hit = true;
d.yvel = -3;
who.yvel = 1;
who.chuting = false;
who.pumping = false;
who.guts.gotoAndStop('dead');
who.falling = true;
}
if (!who.chuting && !who.pumping && !who.hit) {
ballpops.start();
rage += 2;
updateHud();
who.dir = random(2);
if (who.dir == 0) {
who.dir = -1;
}
who.xvel = 0;
who.hit = true;
d.yvel = -3;
who.yvel = 1;
--who.numballoons;
if (who.numballoons <= 0) {
this._parent.hud.updateBad(who, true);
who.guts.gotoAndStop('chute');
who.chuting = true;
} else {
who.hp = 1;
who.maxhp = 2;
this._parent.hud.updateBad(who);
}
}
}
}
}
if (!d.hit && !who.hit && !CHEAT && who._visible) {
v7 = d['balls' + d.numballoons];
if (who.guts.hitarea.hitTest(v7.hitarea)) {
rage -= 2;
hp -= 1;
updateHud();
who.yvel = -3;
dudeHit(who);
}
if (who.canhitbody) {
if (who.guts.hitarea.hitTest(d.guts.hitarea)) {
rage -= 2;
hp -= 1;
updateHud();
dudeHit(who);
}
}
}
}
function dudeHit(who, shocked) {
if (!d.youflashing) {
if (who.typ == 6) {
reaphitdude = true;
}
onepopped = true;
d.hit = true;
d.yvel = 1;
--d.numballoons;
d.balls2._visible = false;
d.balls1._visible = false;
makeSplode(d._x, d._y - 10);
if (d.numballoons > 0) {
if (who.typ == 10) {
d.xvel += 4;
d.yvel -= 3;
}
if (who.typ == 11) {
if (who._x < d._x) {
d.xvel += 2;
} else {
d.xvel -= 2;
}
d.yvel -= 3;
}
if (who.typ == 12) {
removeBad(who);
}
var v2 = d['balls' + d.numballoons];
v2._visible = true;
v2.gotoAndStop('airrest');
d.guts.gotoAndStop('airrest');
if (!shocked) {
ballpops.start();
}
} else {
d.falling = true;
d.guts.gotoAndStop('fall');
}
}
}
function moveBads() {
var v2 = 0;
while (v2 < baddies.length) {
var v1 = baddies[v2];
v1.virtx = v1._x + bg._x;
if (v1.virtx > 20 && !v1.pgone) {
++v1.ptimer;
if (v1.ptimer >= 50) {
v1.pointer._visible = !v1.pointer._visible;
if (v1.ptimer >= 75) {
v1.pointer._visible = false;
v1.pgone = true;
}
}
}
chkBPop(v1);
var v3 = v1._x + bg._x;
if (v3 > 300) {
removeBad(v1);
}
if (!v1.eaten) {
switch (v1.typ) {
case 0:
ai0(v1);
break;
case 1:
ai1(v1);
break;
case 2:
ai2(v1);
break;
case 3:
ai3(v1);
break;
case 4:
ai4(v1);
break;
case 5:
ai5(v1);
break;
case 6:
ai6(v1);
break;
case 7:
ai7(v1);
break;
case 8:
ai8(v1);
break;
case 9:
ai9(v1);
break;
case 10:
ai10(v1);
break;
case 11:
ai11(v1);
break;
case 12:
ai12(v1);
break;
case 13:
ai13(v1);
break;
case 99:
ai99(v1);
}
}
++v2;
}
}
function registerBad(who) {
baddies.push(who);
who.ptimer = 0;
if (who.typ == 7) {
who.numballoons = 1;
}
if (who.typ == 0) {
who.fishwait = 0;
who.act = false;
who.dec = 0;
who.dec2 = 0;
who.paddlepowery = 1;
who.aicv = 0;
who.aicv2 = 0;
who.xvel = 0;
who.yvel = 0;
who.hitcv = 0;
who.numballoons = 2;
who.guts.gotoAndStop('airrest');
who.balls2._visible = false;
who.balls1._visible = false;
var v5 = who['balls' + who.numballoons];
v5._visible = true;
v5.gotoAndStop('airrest');
if (who.jouster) {
who.numballoons = 1;
who.guts.gotoAndStop('rest');
}
}
if (who.typ == 1) {
who.pumpcv = 0;
who.chuting = false;
who.fishwait = 0;
who.act = false;
who.dec = 0;
who.dec2 = 0;
who.paddlepowery = 1;
who.aicv = 0;
who.aicv2 = 0;
who.xvel = 0;
who.yvel = 0;
who.hitcv = 0;
who.numballoons = 1;
who.guts.gotoAndStop('airrest');
}
if (who.typ == 99) {
who.fishwait = 0;
who.aicv = 0;
who.dir = -1;
who.msg = 'HA! LET\'S SEE YOUR STUPID BALLOONS KEEP UP WITH MY JETPACK, ABOBO!';
who.pat = 0;
var v2 = new Array();
v2.push('FIRST YOU HAVE NO BRAINS, NOW NO REFLEXES. WAY TO GO, SLOWBOBO!');
v2.push('AWWW, DID POOR WITTLE ABOBO GET SWIME ALL OVER HIS WITTO FACE?');
v2.push('WHAT INSPIRED YOUR AERIAL ACROBATICS? THE CHALLENGER SHUTTLE?');
v2.push('NO WONDER YOUR BALLOONS LOOK SAD. THEY HAVE TO CARRY YOUR WORTHLESS BODY!');
v2.push('HA HA! TOO EASY. I SHOULD FIGHT YOU BLINDFOLDED TO MAKE IT MORE INTERESTING!');
v2.push('MY SLIME BALLS ARE NOSE-PICKED FOR YOU! ENJOY YOUR FACE FULL O\' BOOGERS?');
v2.push('HITTING YOUR BIG HEAD IS EASIER THAN HITTING THE BROAD SIDE OF A BARN!');
v2.push('YOU DON\'T BELONG ON THE NES. YOU MOVE MORE LIKE PONG!');
v2.push('WHEN YOU DROWN IN THE OCEAN, IT\'LL BE YOUR FIRST BATH EVER!');
v2.push('HA! EVEN KIN CORN KARN PUTS UP A BETTER FIGHT THAN YOU!');
v2.push('GIVE UP NOW AND I\'LL SPARE YOU THE AGONY OF MY PATENTED PIRANHA BITE!');
v2.push('A LOSER IS YOU!');
who.msgarray = new Array();
var v4 = 0;
while (v4 < 12) {
var v3 = random(v2.length);
who.msgarray.push(v2[v3]);
v2.splice(v3, 1);
++v4;
}
who.msgpointer = 0;
}
}
function ai99(who) {
who.virtx = who._x + bg._x;
who.virty = who._y + bg._y;
if (!who.flyby) {
++who.aicv;
if (who.aicv > 5) {
nokeys = true;
}
if (!bg.dude.startedup) {
who._x -= 2;
}
if (who.aicv == 10 && !bg.dude.startedup) {
omin.start();
}
who._x -= 5;
if (who.virtx < 35) {
who.ouchcv = 0;
who.flyby = true;
who.taunting = true;
who.aicv = 0;
who.successfulhit = false;
who.tiredcv = 0;
who.lpointer = 0;
who.cv = 0;
}
} else {
if (!who.outofgas) {
who._x -= SCROLLSPEED;
if (who.surprised) {
who._x -= 1;
who._xscale = -100;
who.successfulhit = false;
who.guts.gotoAndStop('surprised');
++who.cv;
if (who.cv >= 2 && who.lpointer <= who.msg.length) {
who.cv = 0;
msg.text += who.msg.charAt(who.lpointer);
typesound.start();
++who.lpointer;
}
if (who.lpointer > who.msg.length) {
++who.ouchcv;
}
if (who.virtx <= -50 && who.ouchcv > 20) {
who.ouchcv = 0;
who.surprised = false;
who.tiredcv = 0;
who.aicv = 0;
who.taunting = false;
who.successfulhit = false;
msg.text = '';
who.guts.gotoAndStop('forward');
}
} else {
if (who.taunting) {
++who.tiredcv;
if (who.tiredcv >= 40 && !who.successfulhit && who.msgpointer > 0) {
who.guts.gotoAndStop('shakefist');
}
if (who.tiredcv >= 80 && !who.successfulhit && who.msgpointer > 0) {
nokeys = false;
msg.text = '';
who._x -= 2;
who._xscale = -100;
if (who.tiredcv >= 120) {
who.tiredcv = 0;
who.aicv = 0;
who.taunting = false;
who.successfulhit = false;
}
}
if (who.successfulhit || who.msgpointer == 0) {
++who.cv;
if (who.cv >= 2 && who.lpointer <= who.msg.length) {
who.cv = 0;
msg.text += who.msg.charAt(who.lpointer);
++who.lpointer;
typesound.start();
}
++who.aicv;
if (who.aicv >= 165) {
nokeys = false;
if (who.aicv == 165 && !bg.dude.startedup) {
bg.dude.startedup = true;
bg.dude.youflashing = true;
bgloop.start(0, 999);
bgloop.setVolume(VOLLEVEL);
}
msg.text = '';
who.guts.gotoAndStop('forward');
who._x -= 5;
who._xscale = 100;
} else {
who.guts.gotoAndStop('laugh');
if (d._x > who._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
}
if (who.aicv >= 185) {
who.tiredcv = 0;
who.aicv = 0;
who.taunting = false;
who.successfulhit = false;
}
}
} else {
if (!who.inpattern) {
++who.aicv;
if (who.aicv > 250) {
who._xscale = -100;
who._x += 5;
if (who.pat == 0) {
if (who.virtx > 30) {
who.inpattern = true;
who.aicv = 0;
who.guts.gotoAndStop('prepare');
who.ydir = 1;
who.goaltime = random(100) + 20;
}
}
}
} else {
if (who.pat == 0) {
++who.aicv;
if (who.aicv >= who.goaltime) {
who.virtx = who._x + bg._x;
if (who.aicv == who.goaltime + 5 && who.virtx > 0 && who.virtx < 256) {
snots.start();
makePuke(who._x, who._y, 3, -2, who);
makePuke(who._x, who._y, 3, 0, who);
makePuke(who._x, who._y, 3, 2, who);
}
if (who.aicv > who.goaltime + 20) {
if (who.aicv > who.goaltime + 30) {
who.aicv = 0;
who.msg = who.msgarray[who.msgpointer];
++who.msgpointer;
if (who.msgpointer >= who.msgarray.length) {
who.msgpointer = 1;
}
who.taunting = true;
who.inpattern = false;
who.cv = 0;
who.lpointer = 0;
}
} else {
if (who.aicv >= who.goaltime + 5) {
who.guts.gotoAndStop('up');
}
}
} else {
if (who.ydir == 1) {
if (who._y < 160) {
who._y += 3;
} else {
who.ydir = -1;
}
}
if (who.ydir == -1) {
if (who._y > 30) {
who._y -= 3;
} else {
who.ydir = 1;
}
}
}
}
}
}
}
} else {
if (!who.gasinit) {
who.virtx = who._x + bg._x;
if (who.virtx > 256) {
who._x = -bg._x + 256;
}
if (!clearedallbads) {
clearedallbads = true;
var v5 = 0;
while (v5 < baddies.length) {
var v4 = baddies[v5];
if (v4.typ != 99) {
v4.unloadMovie();
v4.removeMovieClip();
}
++v5;
}
}
stopAllSounds();
who.gasinit = true;
who.gascv = 0;
msg.text = '';
who.msg = 'NICE TRY ABOBO, BUT MY JETPACK WILL NEVER RUN OUT OF FUEL! *SPUT* *SPUT* AHHHHH!!!';
who.cv = 0;
who.lpointer = 0;
bg.dude.guts._visible = true;
bg.dude.you._visible = false;
bg.dude.onground = false;
bg.dude.guts.gotoAndStop('airmove');
}
var d = bg.dude;
if (!d.chasedown) {
d.virtx = d._x + bg._x;
var v9 = Math.abs(170 - d.virtx);
var v8 = Math.abs(100 - d._y);
if (v8 > 5) {
if (d._y > 100) {
d._y -= 5;
}
if (d._y < 100) {
d._y += 5;
}
}
if (v9 > 5) {
d.guts.gotoAndStop('airmove');
if (d.virtx > 170) {
d._xscale = 100;
d._x -= 5;
}
if (d.virtx < 170) {
who._xscale = -100;
d._x += 5;
}
}
}
who.virtx = who._x + bg._x;
var v7 = Math.abs(100 - who.virtx);
var v6 = Math.abs(100 - who._y);
if (v6 > 5) {
if (who._y > 100) {
who._y -= 5;
}
if (who._y < 100) {
who._y += 5;
}
}
if (v7 > 5) {
who.guts.gotoAndStop('forward');
if (who.virtx > 100) {
who._xscale = 100;
who._x -= 5;
}
if (who.virtx < 100) {
who._xscale = -100;
who._x += 5;
}
} else {
nokeys = true;
who._x = -bg._x + 100;
if (bg.dude._x > who._x) {
who._xscale = -100;
bg.dude._xscale = 100;
} else {
who._xscale = 100;
bg.dude._xscale = -100;
}
++who.gascv;
if (who.gascv >= 63) {
++who.cv;
if (who.cv >= 2) {
who.cv = 0;
msg.text += who.msg.charAt(who.lpointer);
++who.lpointer;
}
who.guts.gotoAndStop('die');
if (who.gascv >= 195) {
d.chasedown = true;
var d = bg.dude;
d._y += 2;
d._x -= 0.5;
if (who.gascv >= 240) {
if (!who.tranplayed) {
who.tranplayed = true;
if (numdeaths <= 0) {
_root.aboboMedal('Balloon Master');
}
if (!onepopped) {
_root.aboboMedal('Balloon Jedi');
}
this.gotoAndPlay('transition');
}
}
}
} else {
++who.cv;
if (who.cv >= 2) {
who.cv = 0;
msg.text += who.msg.charAt(who.lpointer);
++who.lpointer;
}
who.guts.gotoAndStop('up');
}
}
}
}
}
function makePuke(x, y, xvel, yvel, bosspuke) {
var v1 = bg.attachMovie('bf_pukeball', 'pukeball' + effcv, effcv + 9102);
v1._x = x;
v1._y = y;
++effcv;
v1.xvel = xvel;
v1.yvel = yvel;
if (bosspuke != undefined) {
v1.par = bosspuke;
}
projs.push(v1);
}
function removeProj(who) {
var v1 = 0;
while (v1 < projs.length) {
var v2 = projs[v1];
if (v2 == who) {
projs.splice(v1, 1);
--v1;
v2.unloadMovie();
v2.removeMovieClip();
}
++v1;
}
}
function moveProjs() {
var v2 = 0;
while (v2 < projs.length) {
var v1 = projs[v2];
if (!v1.spiky) {
v1.virtx = v1._x + bg._x;
v1.virty = v1._y + bg._y;
v1._x += v1.xvel;
v1._y += v1.yvel;
}
var v3 = d['balls' + d.numballoons];
if (v1._visible && !d.hit) {
if (d.guts.hitarea.hitTest(v1.hitarea) || v3.hitarea.hitTest(v1.hitarea)) {
if (v1.spark) {
rage = 0;
hp = 0;
updateHud();
d.shocked = true;
shocks.start();
d.guts.gotoAndStop('shocked');
dudeHit(v1, true);
d.numballoons = 0;
d.falling = true;
d.balls2._visible = false;
d.balls1._visible = false;
} else {
dudeHit();
--hp;
rage -= 2;
trace(rage);
updateHud();
}
v1.par.successfulhit = true;
removeProj(v1);
}
}
if (!v1.spark) {
if (v1.virtx > 260 || v1.virtx < -5 || v1.virty < -5 || v1.virty > 260) {
removeProj(v1);
}
} else {
if (v1.virtx >= 256) {
v1.xvel *= -1;
v1._x = -bg._x + 253;
v1._x += v1.xvel;
}
if (v1.virtx <= 0) {
v1.xvel *= -1;
v1._x += v1.xvel;
}
if (v1._y >= 224 || v1._y <= 0) {
v1.yvel *= -1;
v1._y += v1.yvel;
}
++v1.cv;
if (v1.cv >= 210) {
removeProj(v1);
}
}
++v2;
}
}
function ai12(who) {
if (!who.inited) {
who.missileform = false;
who.cv = 0;
who.xvel = 0;
who.yvel = 0;
who.canhitbody = true;
who.inited = true;
who.soundplaying = false;
}
if (who.act) {
if (!who.missileform) {
++who.cv;
if (who.cv >= 15) {
who.cv = 0;
who.pointer._visible = false;
who.pgone = true;
who.missileform = true;
}
} else {
who.guts.gotoAndStop('rocket');
++who.cv;
if (who.cv > 200) {
who._visible = !who._visible;
if (who.cv >= 230) {
removeBad(who);
}
}
if (!who.soundplaying) {
who.soundplaying = true;
rockets.start();
rockets.onSoundComplete = function () {
who.soundplaying = false;
};
}
moveMissile(who, d, 2, 3);
}
} else {
who.virtx = who._x + bg._x;
var v1 = Math.abs(d._x - who._x);
if (v1 < 110 && who.virtx > 10) {
who.act = true;
who.guts.gotoAndStop('trans');
}
}
}
function makeSplode(x, y) {
var v1 = bg.attachMovie('bf_burst', 'burst' + effcv, effcv + 8712);
++effcv;
v1._x = x;
v1._y = y;
}
function moveMissile(who, target, speed, updatespeed) {
++who.dec;
if (who.dec >= updatespeed) {
who.dx = target._x - who._x;
who.dy = target._y - who._y - 10;
length = Math.sqrt(who.dx * who.dx + who.dy * who.dy);
who.dx /= length;
who.dy /= length;
who.dx *= speed;
who.dy *= speed;
angle = Math.atan2(who.dy, who.dx);
who.dr = Math.round(angle * 180 / Math.PI);
who.dec = 0;
}
var v2 = who.dr - who._rotation;
if (v2 > 180) {
v2 -= 360;
}
if (v2 < -180) {
v2 += 360;
}
who._rotation += v2 / 5;
who._x += who.dx;
who._y += who.dy;
}
function ai11(who) {
if (!who.inited) {
who.cv = 0;
who.maxact = 5;
who.inited = true;
}
if (who.act) {
who.virtx = who._x + bg._x;
++who.cv;
if (who.cv == who.maxact) {
exgo.start();
who.guts.gotoAndStop('launch');
}
if (who.cv >= who.maxact + 12) {
if (!who.launched) {
who.pointer._visible = false;
who.pgone = true;
who.launched = true;
var v3 = d._x - who._x;
var v2 = d._y - who._y;
var v4 = Math.sqrt(v3 * v3 + v2 * v2);
v3 /= v4;
v2 /= v4;
who.gox = v3;
who.goy = v2;
}
var v5 = 5;
who.guts._rotation += 35;
who._x += who.gox * v5;
who._y += who.goy * v5;
}
if (who.virtx > 270 || who.virtx < -50) {
removeBad(who);
}
} else {
who.virtx = who._x + bg._x;
var v6 = Math.abs(d._x - who._x);
if (v6 < 110 && who.virtx > 10) {
who.act = true;
exstart.start();
who.gotoAndPlay(2);
}
}
}
function ai10(who) {
if (!who.inited) {
who.maxcv = 0;
who.maxtime = 500;
who.sp = 3;
who.ydir = 1;
who.cv = 0;
who.inited = true;
}
if (who.act) {
who.virtx = who._x + bg._x;
if (who.virtx > 30 && !who.stayonscreen) {
who.stayonscreen = true;
}
if (who.stayonscreen) {
++who.maxcv;
if (who.maxcv >= who.maxtime) {
who.stayonscreen = false;
who.retreat = true;
}
who._x -= SCROLLSPEED;
++who.cv;
if (who.cv >= 30) {
who.cv = 0;
throwScythe(who);
}
}
if (who.retreat) {
who._x -= 2;
if (who.virtx < -60) {
removeBad(who);
}
} else {
who._y += who.ydir * who.sp;
if (who._y > 180) {
who.ydir = -1;
}
if (who._y < 30) {
who.ydir = 1;
}
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
}
}
}
function throwScythe(who) {
scythes.start();
var v1 = bg.attachMovie('bf_scythe', 'scythe' + effcv, effcv + 88771);
++effcv;
v1._x = who._x;
v1._y = who._y;
v1.xvel = 4;
projs.push(v1);
}
function ai9(who) {
if (!who.inited) {
who.inited = true;
}
if (who.act) {
who.virtx = who._x + bg._x;
who._x += 2;
if (who.virtx > 270) {
removeBad(who);
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 265) {
who.act = true;
}
}
}
function ai8(who) {
if (!who.inited) {
who.inited = true;
who.sp = 3;
who.cv = 0;
who.fcv = 0;
who.movecv = 0;
}
if (who.act) {
who.virtx = who._x + bg._x;
if (who._y < -20 || who._y > 280) {
removeBad(who);
}
if (!who.retreat) {
who._x += who.sp;
++who.movecv;
if (who.movecv >= 50) {
who.retreat = true;
who.ydir = who.ourdir;
}
} else {
++who.cv;
if (who.cv >= 100) {
who._y += who.ydir * 4;
who._x += 2;
who.guts.gotoAndStop('spin');
} else {
who._x -= 1;
++who.fcv;
if (who.fcv >= 10) {
who.fcv = 0;
shootXPellet(who);
}
}
}
} else {
var v5 = Math.abs(d._x - who._x);
if (v5 < 240) {
who.act = true;
if (who.leader) {
var v2 = 0;
while (v2 < who.partners.length) {
var v3 = who.partners[v2];
v3.act = true;
v3.ourdir = who.ourdir;
var v4 = v2 + 1;
v3.movecv -= v4 * 10;
++v2;
}
}
}
}
}
function shootXPellet(who) {
who.virtx = who._x + bg._x;
if (who.virtx > 0) {
xevbuls.start();
}
var v1 = bg.attachMovie('bf_xshot', 'xshot' + effcv, effcv + 999223);
++effcv;
v1._x = who._x;
v1._y = who._y;
v1.xvel = 8;
v1.yvel = 0;
projs.push(v1);
}
function ai7(who) {
if (!who.inited) {
who.maxcv = 195;
who.cv = 0;
who.movecv = random(100);
who.yvel = 0;
who.xvel = 0;
who.inited = true;
who.dir = random(2);
who.ydir = random(2);
if (who.ydir == 0) {
who.ydir = -1;
}
if (who.dir == 0) {
who.dir = -1;
}
who.sp = 0.25;
}
if (who.act) {
if (!who.hit) {
who._x -= SCROLLSPEED;
who.xvel += who.dir * who.sp;
who._x += who.xvel;
who.xvel *= 0.8;
who.virtx = who._x + bg._x;
if (who.virtx >= 230) {
who.dir = -1;
}
if (who.virtx <= 20) {
who.dir = 1;
}
who._y += who.ydir * 1.5;
if (who._y < 15) {
who.ydir = 1;
}
if (who._y > 200) {
who.ydir = -1;
}
++who.movecv;
if (who.movecv >= 300) {
who.movecv = random(250) + 50;
who.dir *= -1;
}
++who.cv;
if (who.cv >= who.maxcv) {
who.guts.gotoAndStop('duck');
if (who.cv >= who.maxcv + 4) {
makeSpikey(who);
who.cv = 0;
who.maxcv = random(50) + 25;
who.guts.gotoAndStop('rest');
}
}
} else {
who._y += who.yvel;
who.yvel += GRAV;
chkFish(who, true);
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
}
}
}
function makeSpikey(who) {
var v2 = this.bg.attachMovie('bf_spikey', 'spikey' + effcv, effcv + 991222);
++effcv;
v2._x = who._x;
v2._y = who._y;
if (v2._x > d._x) {
v2.xvel = -4;
} else {
v2.xvel = 4;
}
v2.yvel = -4;
v2.spiky = true;
projs.push(v2);
tossers.push(v2);
}
function moveTossers() {
var v2 = 0;
while (v2 < tossers.length) {
var v1 = tossers[v2];
v1._x += v1.xvel;
v1._y += v1.yvel;
v1.xvel *= 0.99;
v1.yvel += 0.5;
if (v1._y > 270) {
v1.unloadMovie();
v1.removeMovieClip();
tossers.splice(v2, 1);
--v2;
}
++v2;
}
}
function ai6(who) {
++who.expirecv;
if (who.expirecv >= 200) {
if (who.expirecv >= 250) {
who._visible = false;
} else {
who._visible = !who._visible;
}
}
if (d._x > who._x) {
who._xscale = 100;
} else {
who._xscale = -100;
}
var v7 = d._x - who._x;
var v6 = d._y - who._y;
var v10 = Math.sqrt(v7 * v7 + v6 * v6);
v7 /= v10;
v6 /= v10;
var v12 = 0.4;
v7 *= v12;
v6 *= v12;
who.xvel += v7;
who.yvel += v6;
who._x += who.xvel;
who._y += who.yvel;
var v11 = 0.8;
who.xvel *= v11;
who.yvel *= v11;
var v5 = 0;
while (v5 < who.childs.length) {
var v2 = who.childs[v5];
++v2.cv;
if (v2.cv >= v2.del) {
var v9 = who.childs[v5 - 1];
if (v5 == 0) {
v9 = who;
}
v7 = v9._x - v2._x;
v6 = v9._y - v2._y;
v10 = Math.sqrt(v7 * v7 + v6 * v6);
v7 /= v10;
v6 /= v10;
v7 *= v12;
v6 *= v12;
v2.xvel += v7;
v2.yvel += v6;
v2._x += v2.xvel;
v2._y += v2.yvel;
v2.xvel *= v11;
v2.yvel *= v11;
if (d._x > v2._x) {
v2._xscale = 100;
} else {
v2._xscale = -100;
}
++v2.expirecv;
if (v2.expirecv >= v2.maxexpire) {
if (v2.expirecv >= v2.maxexpire + 50) {
v2._visible = false;
if (v5 == who.childs.length - 1) {
removeBad(who);
var v4 = 0;
while (v4 < who.childs.length) {
var v8 = who.childs[v4];
removeBad(v8);
++v4;
}
if (!reaphitdude) {
_root.aboboMedal('Reaper Runner');
}
}
} else {
v2._visible = !v2._visible;
}
}
}
++v5;
}
}
function ai5(who) {
if (!who.inited) {
who.screamcv = 0;
who.screaming = false;
who.dancecv = 0;
who.cv = 0;
who.yvel = 0;
who.xvel = 0;
who.inited = true;
who.dir = random(2);
if (who.dir == 0) {
who.dir = -1;
}
}
if (who.act) {
who.virtx = who._x + bg._x;
who._y += who.yvel;
if (!who.hit) {
who.yvel += 1;
if (!who.dancing) {
who._xscale = who.dir * 100;
}
while (shitTest(bg.antiwalk, who.virtx, who._y)) {
who.yvel = 0;
--who._y;
}
if (!who.dancing) {
who._x += who.xvel;
who.xvel = who.dir * 1.5;
var v3 = who._x + who.xvel;
if (!shitTest(bg.antiwalk, v3 + who.dir * 2 + bg._x, who._y + 1)) {
who.dir *= -1;
}
} else {
if (!who.summoned) {
++who.cv;
if (who.cv >= 30) {
who.summoned = true;
summonMiniDeaths(who);
}
}
if (!who.screaming) {
reaperfreak.start();
who.screaming = true;
} else {
++who.screamcv;
if (who.screamcv >= 70) {
who.screamcv = 0;
who.screaming = false;
}
}
++who.dancecv;
if (who.dancecv >= 7) {
who.dancecv = 0;
who._xscale *= -1;
}
who.guts.gotoAndStop('dance');
}
} else {
who.yvel += GRAV;
who.guts.gotoAndStop('die');
chkFish(who, true);
}
}
if (!who.hit) {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
if (v2 < 50) {
who.dancing = true;
}
} else {
who.act = false;
}
if (d._x < who._x && v2 > 150) {
who.act = false;
}
}
}
function summonMiniDeaths(par) {
reaphitdude = false;
var v3 = bg.attachMovie('bf_minideaths', 'minideath' + effcv, effcv + 9981);
++effcv;
v3.expirecv = 0;
v3._x = par._x;
v3._y = -30;
v3.typ = 6;
v3.childs = new Array();
v3.xvel = 0;
v3.yvel = 0;
registerBad(v3);
var v2 = 0;
while (v2 < 4) {
var v1 = bg.attachMovie('bf_minideaths', 'minideath' + effcv, effcv + 9981);
++effcv;
v1.xvel = 0;
v1.yvel = 0;
v3.childs.push(v1);
v1._x = par._x;
v1._y = -30;
v1.del = (v2 + 1) * 15;
v1.cv = 0;
v1.expirecv = 0;
v1.maxexpire = 200 + v2 * 15;
registerBad(v1);
++v2;
}
}
function ai4(who) {
if (!who.inited) {
if (who._y > 127) {
who.ydir = -1;
} else {
who.ydir = 1;
}
who.xdir = 1;
who.cv = 0;
who.inited = true;
}
if (who.act) {
who.virtx = who._x + bg._x;
who._x += who.xdir * 1;
who._y += who.ydir * 2.5;
++who.cv;
if (who.cv >= 35) {
who.ydir *= -1;
who.cv = 0;
}
if (who.virtx >= 275) {
removeBad(who);
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
}
}
}
function ai3(who) {
if (!who.inited) {
who.cv = 0;
who.inited = true;
who.timer = 0;
who.spinspeed = 1;
}
if (who.act) {
var v11 = new Array();
var v5 = 0;
while (v5 < baddies.length) {
var v1 = baddies[v5];
if (v1.typ != 99 && v1.typ != 2 && v1.typ != 3 && v1.typ != 4 && !v1.minireaper && v1.typ != 8 && v1.typ != 10) {
v11.push(v1);
}
++v5;
}
v11.push(d);
v5 = 0;
while (v5 < v11.length) {
var v2 = v11[v5];
var v10 = v2._x - who._x;
var v9 = v2._y - who._y;
var v12 = Math.sqrt(v10 * v10 + v9 * v9);
if (v12 < 15 && !v2.youflashing) {
bumps.start();
who.spinning = true;
var v13 = random(360);
var v8 = v13 * Math.PI / 180;
var v7 = Math.cos(v8);
var v6 = Math.sin(v8);
var v4 = 3;
v2._x += v7 * v4;
v2._y += v6 * v4;
v2.xvel = v7 * v4;
v2.yvel = v6 * v4;
}
++v5;
}
if (who.spinning) {
++who.cv;
++who.timer;
if (who.timer >= 10) {
who.spinspeed = 2;
if (who.timer >= 20) {
who.spinning = false;
who.timer = 0;
who.spinspeed = 1;
}
}
if (who.cv == who.spinspeed) {
who.cv = 0;
who.guts.spinner._rotation += 45;
}
}
} else {
var v14 = Math.abs(d._x - who._x);
if (v14 < 240) {
who.act = true;
}
}
}
function ai2(who) {
if (who.act) {
if (!who.inited) {
who.maxtime = 150;
who.cv = random(who.maxtime);
who.inited = true;
}
who.virtx = who._x + bg._x;
++who.cv;
if (who.cv >= who.maxtime) {
if (who.cv >= who.maxtime + 20) {
who.guts.gotoAndStop('zap');
if (who.cv == who.maxtime + 20) {
who.guts.spinner._rotation = random(360);
}
if (who.cv == who.maxtime + 25) {
rads = (who.guts.spinner._rotation + 100) * Math.PI / 180;
var v3 = Math.cos(rads);
var v2 = Math.sin(rads);
makeSpark(who._x, who._y, v3, v2, 20);
}
if (who.cv >= who.maxtime + 50) {
who.guts.gotoAndStop('rest');
who.cv = 0;
}
} else {
who.guts.gotoAndStop('flash');
}
}
}
var v4 = Math.abs(d._x - who._x);
if (v4 < 240) {
who.act = true;
} else {
who.act = false;
who.guts.gotoAndStop('rest');
}
}
function makeSpark(x, y, xv, yv, len) {
var v2 = x + bg._x;
if (v2 > 0 && v2 < 256) {
lightnings.start();
var v1 = bg.attachMovie('bf_spark', 'spark' + effcv, effcv + 9981);
++effcv;
v1.cv = 0;
v1._x = x;
v1._y = y;
v1.xvel = xv * 2;
v1.yvel = yv * 2;
v1._x += v1.xvel * len;
v1._y += v1.yvel * len;
v1.spark = true;
projs.push(v1);
}
}
function ai1(who) {
if (who.act) {
who.virtx = who._x + bg._x;
who.virty = who._y + bg._y;
if (who.onscreen) {
chkFish(who, true);
restrain(who);
} else {
if (who.virtx > 16 && who.virtx < 240) {
who.onscreen = true;
}
}
who.xvel *= AIRFRIC;
who._x += who.xvel;
who._y += who.yvel;
if (!who.falling) {
if (!who.pumping) {
if (!who.chuting) {
who.yvel += GRAV;
if (who._x < d._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
++who.aicv;
++who.aicv2;
if (who.aicv2 >= 30) {
who.aicv2 = 0;
who.dec2 = random(3);
}
if (who.aicv >= 40) {
who.aicv = 0;
who.dec = random(4);
}
if (who.numballoons > 0 && !who.hit) {
if (who.dec == 0) {
if (who._y > d._y && who._y > 30) {
paddle(who, true);
}
}
if (who.dec == 1) {
if (who._y > 80) {
paddle(who, true);
}
}
if (who.dec == 2) {
if (who._y > 100) {
paddle(who, true);
}
}
if (who.dec == 3) {
if (who._y > 140) {
paddle(who, true);
}
}
}
} else {
who.xvel += 0.15 * who.dir;
++who.aicv;
who.yvel = 0.6;
if (who.aicv >= 35) {
who.aicv = 0;
who.dir *= -1;
}
while (shitTest(bg.antiwalk, who.virtx, who.virty + 8)) {
--who._y;
--who.virty;
who.pumping = true;
who.xvel = 0;
who.yvel = 0;
who.guts.gotoAndStop('pump');
}
}
} else {
++who.pumpcv;
if (who.pumpcv >= 104) {
who.yvel = -5;
who.pumping = false;
who.chuting = false;
who.pumpcv = 0;
who.guts.gotoAndStop('airrest');
who.numballoons = 1;
who.aicv = 0;
who.aicv2 = 0;
}
}
} else {
who.yvel += GRAV;
}
if (who.hit) {
++who.hitcv;
who._visible = !who._visible;
if (who.hitcv >= 15) {
who._visible = true;
who.hitcv = 0;
who.hit = false;
}
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
}
}
}
function ai0(who) {
if (who.act) {
who.virtx = who._x + bg._x;
who.virty = who._y + bg._y;
if (who.onscreen) {
chkFish(who, true);
restrain(who);
} else {
if (who.virtx > 16 && who.virtx < 240) {
who.onscreen = true;
}
}
who.yvel += GRAV;
who.xvel *= AIRFRIC;
who._x += who.xvel;
who._y += who.yvel;
if (who._x < d._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
++who.aicv;
++who.aicv2;
if (who.aicv2 >= 30) {
who.aicv2 = 0;
who.dec2 = random(3);
}
if (who.aicv >= 40) {
who.aicv = 0;
who.dec = random(4);
}
if (who.numballoons > 0 && !who.hit) {
if (who.dec == 0) {
if (who._y > d._y && who._y > 30) {
paddle(who, true);
}
}
if (who.dec == 1) {
if (who._y > 90) {
paddle(who, true);
}
}
if (who.dec == 2) {
if (who._y > 100) {
paddle(who, true);
}
}
if (who.dec == 3) {
if (who._y > 140) {
paddle(who, true);
}
}
}
if (who.hit) {
++who.hitcv;
who._visible = !who._visible;
if (who.hitcv >= 15) {
who._visible = true;
who.hitcv = 0;
who.hit = false;
}
}
} else {
var v2 = Math.abs(d._x - who._x);
if (v2 < 240) {
who.act = true;
}
}
}
function chkPause() {
if (!Key.isDown(P)) {
pup = true;
}
if (pup && Key.isDown(P)) {
pup = false;
pauses.start();
if (!pausy) {
bgloop.setVolume(0);
pausy = true;
this.attachMovie('bf_pholder', 'pholder', this.getNextHighestDepth());
btm = new flash.display.BitmapData(256, 254, true, 16777215);
pholder.guts.attachBitmap(btm, 0);
o = _root;
var v3 = new flash.geom.Matrix();
v3.tx = 0;
v3.ty = 0;
v3.a = 1;
alf = 1;
var v4 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v3, v4);
pholder.guts.filters = new Array(filter);
} else {
if (rage >= maxrage) {
d.gotoAndPlay('flash');
}
pholder.unloadMovie();
pholder.removeMovieClip();
bgloop.setVolume(VOLLEVEL);
pausy = false;
}
}
}
function chkRespawn() {
d = bg.dude;
if (d.lives >= 0) {
if (!heroeaten) {
++spawncv;
if (spawncv >= 0) {
fallsoundplayed = false;
hp = maxhp;
rage = 0;
raging = false;
respawn = false;
spawncv = 0;
pausy = false;
nokeys = false;
d._x = -bg._x + 128;
d.shocked = false;
d._y = 107;
d.youflashing = true;
d.numballoons = 2;
d._visible = true;
d.yvel = -2;
d.xvel = 0;
d._xscale = 100;
d.guts.gotoAndStop('airrest');
d.hit = true;
d.falling = false;
var v2 = d['balls' + d.numballoons];
d.balls2._visible = false;
d.balls1._visible = false;
v2._visible = true;
v2.gotoAndStop('airrest');
updateHud();
}
} else {
++rscv;
if (rscv >= 50) {
d.fishwait = 0;
d.eaten = falsel;
fishonscreen = false;
rscv = 0;
heroeaten = false;
}
}
} else {
if (rscv == 0) {
bgloop.setVolume(0);
}
++rscv;
if (rscv >= 50) {
_root.endBF();
}
}
}
function spawnBalloons() {
++powcv;
if (powcv >= 750) {
powcv = 0;
makePowB();
}
}
function makePowB() {
var v2 = random(220) + 3;
var v1 = bg.attachMovie('bf_powb', 'powb' + effcv, effcv + 998123);
++effcv;
v1._x = v2 - bg._x;
pows.push(v1);
v1._y = 240;
v1.xvel = 0;
v1.dir = random(2);
v1.cv = 0;
if (v1.dir == 0) {
v1.dir = -1;
}
}
function movePows() {
var v3 = 0;
while (v3 < pows.length) {
var v2 = pows[v3];
v2.virtx = v2._x + bg._x;
v2._y -= 0.35;
v2._x += v2.xvel;
v2.xvel += v2.dir * 1;
v2.xvel *= 0.65;
++v2.cv;
if (v2.cv >= 20) {
v2.dir = random(2);
v2.cv = 0;
if (v2.dir == 0) {
v2.dir = -1;
}
}
if (v2.virtx <= 0) {
v2.dir = 1;
v2.xvel += 1;
}
if (v2.virtx > 245) {
v2._x = 245 - bg._x;
v2.dir = -1;
v2.xvel = -2;
v2._x -= 1;
}
if (v2.hitarea.hitTest(d.guts.hitarea)) {
_root.aboboMedal('Ballooney');
getballoon.start();
makeSplode(v2._x, v2._y);
pows.splice(v3, 1);
v2.unloadMovie();
v2.removeMovieClip();
--v3;
rage += 5;
if (d.numballoons < 2) {
++hp;
++d.numballoons;
var v4 = d['balls' + d.numballoons];
d.balls2._visible = false;
d.balls1._visible = false;
v4._visible = true;
v4.gotoAndStop('airrest');
}
updateHud();
}
if (v2._y < -50) {
pows.splice(v3, 1);
v2.unloadMovie();
v2.removeMovieClip();
--v3;
}
++v3;
}
}
function enterF() {
if (Key.isDown(49) && !skipper) {
stopAllSounds();
skipper = true;
pausy = true;
_root.hud.output._y = 200;
_root.hud._visible = false;
gotoAndStop('prow');
}
if (!nokeys) {
chkPause();
}
if (respawn) {
chkRespawn();
}
if (raging && pausy && rage == 0) {
rageTimer();
}
if (!pausy) {
moveBg();
if (!bg.boss.outofgas) {
phys(d);
}
if (!nokeys) {
controls();
}
if (!bg.boss.outofgas) {
moveProjs();
chkFish(d);
spawnBalloons();
}
movePows();
moveBads();
moveTossers();
}
}
this._quality = 'LOW';
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
lbar = _root.hud.lbar;
rbar = _root.hud.rbar;
VOLLEVEL = 65;
if (_root.lives == undefined) {
LIVES = 5;
} else {
LIVES = _root.lives;
}
if (skippit) {
pausy = true;
_root.hud.output._y = 200;
_root.hud._visible = false;
gotoAndStop('prow');
} else {
init();
stop();
}
numdeaths = 0;
onepopped = false;
_root.hud.output.text = 'YOU HAVE DIED: ' + numdeaths + ' TIMES!';
this.createEmptyMovieClip('bglooper', -7799);
var bgloop = new Sound(bglooper);
bgloop.attachSound('bf_bgloop');
var omin = new Sound(bglooper);
omin.attachSound('bf_ominous');
this.createEmptyMovieClip('sfx', -7798);
var xevbuls = new Sound(sfx);
xevbuls.attachSound('bf_xevbulsound');
var splashs = new Sound(sfx);
splashs.attachSound('bf_splash');
var reaperkill = new Sound(sfx);
reaperkill.attachSound('bf_reaperkill');
var reaperfreak = new Sound(sfx);
reaperfreak.attachSound('bf_reaperfreak');
var getballoon = new Sound(sfx);
getballoon.attachSound('bf_getballoon');
var pauses = new Sound(sfx);
pauses.attachSound('bf_pause');
var lightnings = new Sound(sfx);
lightnings.attachSound('bf_lightning');
var lakitus = new Sound(sfx);
lakitus.attachSound('bf_lakitu');
var joustdie = new Sound(sfx);
joustdie.attachSound('bf_joustdie');
var gorilladie = new Sound(sfx);
gorilladie.attachSound('bf_gorilladie');
var flaps = new Sound(sfx);
flaps.attachSound('bf_flap');
var fishbites = new Sound(sfx);
fishbites.attachSound('bf_fishbite');
var falls = new Sound(sfx);
falls.attachSound('bf_fall');
var exstart = new Sound(sfx);
exstart.attachSound('bf_excitestart');
var exgo = new Sound(sfx);
exgo.attachSound('bf_excitego');
var lands = new Sound(sfx);
lands.attachSound('bf_land');
var shocks = new Sound(sfx);
shocks.attachSound('bf_shocked');
var scythes = new Sound(sfx);
scythes.attachSound('bf_scythesound');
var bumps = new Sound(sfx);
bumps.attachSound('bf_bump');
var rockets = new Sound(sfx);
rockets.attachSound('bf_blobrocket');
var ballpops = new Sound(sfx);
ballpops.attachSound('bf_balloonpop');
var snots = new Sound(sfx);
snots.attachSound('bf_snot');
var bonks = new Sound(sfx);
bonks.attachSound('bf_bonk');
var dsplode = new Sound(sfx);
dsplode.attachSound('bf_deathsplode');
var bbs0 = new Sound(sfx);
bbs0.attachSound('bf_dbb0');
var bbs1 = new Sound(sfx);
bbs1.attachSound('bf_dbb1');
var bbl0 = new Sound(sfx);
bbl0.attachSound('bf_db0');
var bbl1 = new Sound(sfx);
bbl1.attachSound('bf_db1');
var bbl2 = new Sound(sfx);
bbl2.attachSound('bf_db2');
var bbl3 = new Sound(sfx);
bbl3.attachSound('bf_db3');
var typesound = new Sound(sfx);
typesound.attachSound('bf_typesound');
ragecomplaints = new Array();
ragecomplaints.push('WHAT THE... WHERE THE HELL DID *THAT* COME FROM!?');
ragecomplaints.push('ACK! THAT WAS 1.21 GIGAWATTS OF PAIN! FORGET THIS, I\'M GOING BACK TO THE FUTURE.');
ragecomplaints.push('HOGWASH! YOU SIR, ARE A CHARLATAN AND A REPROBATE!');
ragecomplaints.push('UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A, FART!');
ragecomplaints.push('IT\'S 23 MINUTES PAST THE HOUR, NOW HERE\'S THE BUCKINGHAMS WITH \'KIND OF A DRAG\'');
}
frame 48 {
this._parent.hud._visible = false;
}
frame 69 {
stop();
this._x = 0;
this._y = 0;
trace('x: ' + this._x);
trace('y: ' + this._y);
}
frame 322 {
function chkAllMoves() {
if (move1 && move2 && move3 && move4 && move5) {
_root.aboboMedal('Pro Wrestler');
}
}
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function changeEName(txt) {
_root.hud.enemnam.text = txt.toUpperCase();
}
function updateHud() {
if (d.energy < 1) {
d.energy = 1;
}
if (b.energy < 1) {
b.energy = 1;
}
if (d.hp > d.maxhp) {
d.hp = d.maxhp;
}
if (d.hp < 0) {
d.hp = 0;
}
if (b.hp > b.maxhp) {
b.hp = b.maxhp;
}
if (b.hp < 0) {
b.hp = 0;
}
_root.hud.ebar._xscale = (b.hp / b.maxhp) * 100;
_root.hud.lbar._xscale = (d.hp / d.maxhp) * 100;
if (d.rage > d.maxrage) {
d.rage = d.maxrage;
}
if (d.rage < 0) {
d.rage = 0;
}
_root.hud.rbar._xscale = (d.rage / d.maxrage) * 100;
if (d.rage == d.maxrage) {
if (!d.raging) {
d.raging = true;
d.gotoAndPlay('rageout');
}
} else {
d.raging = false;
d.gotoAndStop(1);
}
if (d.hp == 0) {
d.dead = true;
d.maxblink = 10;
d.deadtimer = 0;
d.deadcv = 0;
pausy = true;
nokeys = true;
}
if (b.hp == 0 && d.rage < d.maxrage && !finalscene) {
d.rage = d.maxrage;
b.hp = 1;
updateHud();
}
this._parent.hud.updateRage((d.rage / d.maxrage) * 100);
this._parent.hud.updateMe(d);
this._parent.hud.updateBad(b);
this._parent.setRageNotify((d.rage / d.maxrage) * 100);
this._parent.hud.tries.text = 'X' + d.lives;
}
function init2() {
gam.cam._visible = false;
gam.ref._visible = false;
gam.ref.nam = 'Referee';
gam.cam.nam = 'Cameraman';
gam.ref.picid = 86;
gam.cam.picid = 87;
gam.cam.guts.gotoAndStop('rest');
gam.cam.xvel = 0;
gam.cam.yvel = 0;
gam.cam.daring = gam.walk1;
gam.ref.guts.gotoAndStop('rest');
gam.ref.xvel = 0;
gam.ref.yvel = 0;
gam.ref.daring = gam.walk0;
finalscene = false;
ragecv = 0;
gam.corner0._visible = false;
gam.corner1._visible = false;
ringpointer = 0;
trandir = -1;
nokeys = false;
pausy = false;
_root.hud._visible = true;
wobble = 0;
wobdir = 1;
wobhome = gam._x;
effcv = 0;
this.d = gam.dude;
this.b = gam.boss;
U = 38;
D = 40;
P = 80;
A = 65;
B = 83;
L = 37;
R = 39;
gam.walk0._visible = false;
gam.walk1._visible = false;
delete this.onEnterFrame;
pausy = false;
cv = 0;
swaps = new Array();
FRIC = 0.4;
d.maxrage = 100;
d.rage = 0;
d.maxhp = 150;
d.hp = d.maxhp;
d._visible = false;
d.xvel = 0;
d.yvel = 0;
d.dir = 1;
d.sp = 1.5;
d.grappling = false;
d.onground = false;
d.groundcv = 0;
d.runnin = false;
d.grapcv = 0;
d.tiredcv = 0;
d.throwcv = 0;
d.runcv = 0;
d.hitcv = 0;
d.numhits = 0;
d.numhitcv = 0;
d.ltapcv = 0;
d.rtapcv = 0;
d.ltaps = 0;
d.rtaps = 0;
d.numbounces = 0;
d.kneeing = false;
d.fthrough = false;
d.fthrucv = 0;
d.picking = false;
d.pickcv = 0;
d.finishcv = 0;
d.rollcv = 0;
d.onropes = false;
d.ropecv = 0;
d.mounted = false;
d.divebombcv = 0;
d.energy = 5;
d.youcv = 0;
d.showyou = true;
d.lives = 3;
b.maxhp = 100;
b.hp = b.maxhp;
b._visible = false;
b.xvel = 0;
b.yvel = 0;
b.dir = -1;
b.sp = 2;
b.grappling = false;
b.onground = false;
b.groundcv = 0;
b.runnin = false;
b.grapcv = 0;
b.tiredcv = 0;
b.throwcv = 0;
b.runcv = 0;
b.hitcv = 0;
b.numhits = 0;
b.numhitcv = 0;
b.numbounces = 0;
b.kneeing = false;
b.fthrough = false;
b.fthrucv = 0;
b.picking = false;
b.pickcv = 0;
b.finishcv = 0;
b.rollcv = 0;
b.onropes = false;
b.ropecv = 0;
b.mounted = false;
b.maxai = 30;
b.aicv = b.maxai;
b.divebombcv = 0;
b.energy = 4;
b.dodgecv = 0;
b.dodging = false;
b._xscale = gam.boss.dir * 100;
swaps.push(gam.dude);
swaps.push(gam.boss);
swaps.push(gam.ropes0);
swaps.push(gam.ropes1);
swaps.push(gam.topropes);
swaps.push(gam.ref);
swaps.push(gam.cam);
d.daring = gam.walk0;
b.daring = gam.walk0;
gam.rollarea0._visible = false;
gam.rollarea1._visible = false;
updateHud();
this.onEnterFrame = function () {
if (!inited) {
++cv;
if (cv >= 4) {
cv = 0;
gam.cam._visible = true;
gam.ref._visible = true;
gam.dude._visible = true;
gam.boss._visible = true;
inited = true;
prloop.start(0, 9999);
prloop.setVolume(70);
}
} else {
enterF();
}
};
}
function makeSmokePoof2(who) {
var v1 = gam.attachMovie('bf_smokewrap', 'sm' + effcv, effcv + 77611);
++effcv;
v1._x = who._x + random(20) - 10;
v1._y = who._y - random(60);
var v2 = random(2);
if (v2 == 0) {
v2 = -1;
}
v1._xscale = v2 * 100;
}
function goSuper() {
gam.ref._visible = false;
if (ringpointer != 0) {
tranny = true;
trandir = 0;
} else {
runSuper();
}
}
function goBigScene() {
prloop.setVolume(0);
gotoAndStop('bigtime');
_root.hud._visible = false;
}
function fadeItOut() {
fader.gotoAndPlay(2);
}
function crowdFlash() {
gam.bg.gotoAndStop('cheer');
}
function endCrowdFlash() {
gam.bg.gotoAndStop('normal');
}
function leftBounce() {
gam.rope0.gotoAndPlay(2);
}
function runSuper() {
b.hp = 0;
updateHud();
var v1 = gam.attachMovie('prow_ragemove', 'ragemover', 9911);
v1._x = 204;
v1._y = 15;
swaps.push(v1);
swapEm();
}
function warpBack() {
d.guts.gotoAndStop('reappear');
d._x = b._x;
d._y = b._y;
b._visible = false;
}
function endRageOverlay() {
prloop.setVolume(70);
d.guts.gotoAndStop('ragewarp');
}
function controls(who) {
who.moving = false;
if (who.hit && !who.onground && !who.picking) {
++who.hitcv;
if (who.hitcv >= 4) {
who.hitcv = 0;
who.attacking = false;
who.hit = false;
who.guts.gotoAndStop('rest');
}
}
who.chairpartner = undefined;
if (!who.gotchair) {
if (who.daring == gam.walk1 && ringpointer != 0) {
var v5 = 0;
while (v5 < 4) {
var v4 = gam['chair' + v5];
if (v4._visible && who.chairpartner == undefined) {
var v7 = Math.abs(v4._x - who._x);
var v12 = Math.abs(v4._y - who._y);
if (v12 < 6) {
if (v7 < 10) {
who.chairpartner = v4;
}
}
}
++v5;
}
}
}
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(B)) {
bup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (who.ltaps > 0) {
++who.ltapcv;
if (who.ltapcv >= 6) {
who.ltapcv = 0;
who.ltaps = 0;
}
}
if (who.rtaps > 0) {
++who.rtapcv;
if (who.rtapcv >= 6) {
who.rtapcv = 0;
who.rtaps = 0;
}
}
if (who.raging) {
if (Key.isDown(A) && Key.isDown(B)) {
_root.aboboMedal('A Winner Is Me');
if (!gam.cam.dead) {
gam.cam.guts.gotoAndStop('rest');
}
who.you._visible = false;
who.showyou = false;
aup = false;
bup = false;
finalscene = true;
b.guts.gotoAndStop('rest');
var v10 = this.attachMovie('prow_rageoverlay', 'rageout', 999110 + effcv);
v10._x = 128;
v10._y = 127;
prloop.setVolume(0);
who.gotoAndStop(1);
who.raging = false;
who.rage = 0;
nokeys = true;
d.gotoAndStop(1);
who._visible = true;
b._visible = true;
updateHud();
}
++ragecv;
if (ragecv >= 3) {
ragecv = 0;
makeSmokePoof2(who);
}
}
if (!finalscene && !who.gettingslammed) {
if (!who.gotchair) {
if (!who.rolling) {
if (!who.onground) {
if (!who.onropes) {
if (!who.divebomb) {
if (!who.finishing) {
if (!who.picking) {
if (!who.fthrough) {
if (!who.tired) {
if (!who.runnin) {
if (!who.throwing) {
if (!who.grappling) {
if (Key.isDown(B) && bup) {
bup = false;
var v11 = 6;
var v13 = false;
if (b._y > who._y - v11 && b._y < who._y + v11 && b.onground && b.groundcv < 100 && !b.rolling && b.groundcv > 5 && !d.rolling && !b.rolling) {
var v17 = Math.abs(who._x - b._x);
if (v17 < 25) {
v13 = true;
}
}
if (!v13) {
throwPunchA(who);
} else {
who.guts.gotoAndStop('pickup');
who.picking = true;
who.runnin = false;
who.runcv = 0;
}
}
if (Key.isDown(A) && aup && !who.throwing && !who.gotchair) {
aup = false;
if (who.chairpartner == undefined || !who.chairpartner._visible) {
throwPunchB(who);
} else {
who.gotchair = true;
who.chairpartner._y = -500;
who.chairpartner._visible = false;
who.chairpartner.unloadMovie();
who.chairpartner.removeMovieClip();
who.chairpartner = undefined;
who.attacking = false;
who.runnin = false;
who.runcv = 0;
who.grappling = false;
who.grapcv = 0;
who.throwing = false;
who.throwcv = 0;
who.onground = false;
who.groundcv = 0;
who.kneeing = false;
who.guts.gotoAndStop('chairrest');
}
}
if (!who.attacking && !who.gotchair) {
if (Key.isDown(U)) {
who.yvel -= who.sp;
who.moving = true;
who.virtx = gam._x + who._x;
if (ringpointer == 0) {
if (shitTest(gam.corner0, who.virtx, who._y)) {
if (Key.isDown(L)) {
lup = false;
who._xscale = -100;
who.dir = -1;
who.onground = false;
who.groundcv = 0;
who.onropes = true;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.guts.gotoAndStop('mount');
}
}
if (shitTest(gam.corner1, who.virtx, who._y)) {
if (Key.isDown(R)) {
rup = false;
who._xscale = 100;
who.dir = 1;
who.onground = false;
who.groundcv = 0;
who.onropes = true;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.guts.gotoAndStop('mount');
}
}
}
}
if (Key.isDown(D) && !who.gotchair) {
who.yvel += who.sp;
who.moving = true;
}
if (Key.isDown(L) && !who.gotchair) {
who.xvel -= who.sp;
who.moving = true;
who.dir = -1;
if (!b.gotchair && !who.gotchair && !who.attacking && !who.rolling) {
chkGrap(who);
}
if (lup && who.daring == gam.walk0) {
lup = false;
++who.ltaps;
if (who.ltaps == 2) {
who.ltaps = 0;
who.ltapcv = 0;
who.dir = -1;
who.runnin = true;
who.runcv = 0;
who.numbounces = 0;
who.guts.gotoAndStop('run');
}
}
}
if (Key.isDown(R) && !who.gotchair) {
who.xvel += who.sp;
who.moving = true;
who.dir = 1;
if (!b.gotchair && !who.gotchair && !who.attacking && !who.rolling) {
chkGrap(who);
}
if (rup && who.daring == gam.walk0) {
rup = false;
++who.rtaps;
if (who.rtaps == 2) {
who.rtaps = 0;
who.rtapcv = 0;
who.dir = 1;
who.runnin = true;
who.runcv = 0;
who.numbounces = 0;
who.guts.gotoAndStop('run');
}
}
}
if (!who.runnin && !who.onropes && !who.gotchair) {
if (who._x < b._x) {
who._xscale = 100;
who.dir = 1;
} else {
who._xscale = -100;
who.dir = -1;
}
}
if (!who.grappling && !who.gotchair && !who.throwing && !who.runnin && !who.picking && !who.onropes) {
if (who.moving) {
who.guts.gotoAndStop('move');
} else {
who.guts.gotoAndStop('rest');
}
}
}
} else {
++who.grapcv;
if (!who.slamming) {
if (who.dir == 1) {
who.toward = R;
who.away = L;
} else {
who.toward = L;
who.away = R;
}
if (Key.isDown(D) && !Key.isDown(U) && who.grapcv > 5) {
if (bup && Key.isDown(A) && !who.slamming) {
bup = false;
who.slamming = true;
b._visible = false;
who.guts.gotoAndStop('rightslam');
move1 = true;
chkAllMoves();
}
}
if (Key.isDown(U) && who.grapcv > 5) {
if (aup && Key.isDown(A)) {
aup = false;
who.slamming = true;
b._visible = false;
who.guts.gotoAndStop('leftslam');
move2 = true;
chkAllMoves();
}
}
}
if (!who.throwing && !who.slamming && who.grapcv > 5) {
if (!Key.isDown(L) && !Key.isDown(R)) {
if (bup && Key.isDown(B)) {
bup = false;
who.slamming = true;
b._visible = false;
who.guts.gotoAndStop('upslama');
move3 = true;
chkAllMoves();
}
}
if (Key.isDown(who.away) && !Key.isDown(who.toward) && aup && Key.isDown(A)) {
aup = false;
who.slamming = true;
b._visible = false;
who.guts.gotoAndStop('arch');
move4 = true;
chkAllMoves();
}
if (!Key.isDown(who.away) && Key.isDown(who.toward) && aup && Key.isDown(A)) {
aup = false;
who.slamming = true;
b._visible = false;
who.guts.gotoAndStop('upslamb');
move5 = true;
chkAllMoves();
}
}
if (Key.isDown(L) && who.grapcv > 5 && bup && Key.isDown(B) && !who.throwing && !who.slamming) {
bup = false;
lup = false;
var v6 = false;
if (who._y > 180 && ringpointer == 2 || ringpointer == 0 && d.daring == gam.walk1) {
v6 = true;
}
if (!v6) {
who.dir = 1;
who._xscale = 100;
who.grapcv = 0;
who.attacking = false;
who.grappling = false;
who.throwing = true;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.throwcv = 0;
who.guts.gotoAndStop('ropethrow');
who.xvel = -4;
b.dir = -1;
if (who._y > 100 && who._y < 180) {
b._y = who._y - 3;
} else {
b._y = who._y + 3;
}
b.grappling = false;
b.hit = false;
b.onground = false;
b.runcv = 0;
b.numbounces = 0;
b.runnin = true;
b._visible = false;
}
}
if (Key.isDown(R) && who.grapcv > 5 && bup && Key.isDown(B) && !who.throwing && !who.slamming) {
bup = false;
rup = false;
if (who._y > 180 && ringpointer == 1 || ringpointer == 0 && d.daring == gam.walk1) {
v6 = true;
}
if (!v6) {
who.dir = -1;
who._xscale = -100;
who.grapcv = 0;
who.attacking = false;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.grappling = false;
who.throwing = true;
who.throwcv = 0;
who.guts.gotoAndStop('ropethrow');
who.xvel = 4;
if (who._y > 100 && who._y < 180) {
b._y = who._y - 3;
} else {
b._y = who._y + 3;
}
b.dir = 1;
b.grappling = false;
b.hit = false;
b.onground = false;
b.runnin = true;
b.runcv = 0;
b.numbounces = 0;
b._visible = false;
}
}
if (who.grapcv >= 90 && !who.throwing && !who.slamming) {
b.grappling = false;
b.guts.gotoAndStop('rest');
who.grapcv = 0;
who.tiredcv = 0;
who.grappling = false;
who.tired = true;
who.guts.gotoAndStop('tired');
}
}
} else {
++who.throwcv;
if (who.throwcv == 5) {
b.numbounces = 0;
b._visible = true;
b.runnin = true;
b.runcv = 0;
b.guts.gotoAndStop('run');
if (b.dir == -1) {
b._x = who._x - 15;
} else {
b._x = who._x + 15;
}
}
if (who.throwcv >= 8) {
if (who.dir == 1) {
who.dir = -1;
who._xscale = -100;
} else {
who.dir = 1;
who._xscale = 100;
}
who.throwing = false;
who.guts.gotoAndStop('rest');
}
}
} else {
who._x += who.dir * who.sp * 3;
who._xscale = who.dir * 100;
if (who.numbounces < 2) {
who.virtx = who._x + gam._x;
if (who.daring == gam.walk0) {
if (!shitTest(who.daring, who.virtx, who._y)) {
++who.numbounces;
if (who.dir == 1) {
gam.rope1.gotoAndPlay(2);
} else {
gam.rope0.gotoAndPlay(2);
}
who.dir *= -1;
while (!shitTest(who.daring, who.virtx, who._y)) {
who._x += who.dir;
who.virtx += who.dir;
}
}
} else {
who.hp -= 4;
who.energy -= 0.2;
if (who == b) {
d.rage += 4;
}
updateHud();
who.fallen = false;
who.numbounces = 0;
who.runnin = false;
who.runcv = 0;
who.guts.gotoAndStop('ropebounce');
who.onground = true;
who.groundcv = -1;
who.numbounces = 0;
}
} else {
++who.runcv;
if (who.runcv >= 20) {
who.numbounces = 0;
who.runnin = false;
who.runcv = 0;
who.guts.gotoAndStop('rest');
}
}
if (aup && Key.isDown(A)) {
aup = false;
var v9 = false;
if (who._x < b._x && who.dir == -1 || who._x > b._x && who.dir == 1 || b.groundcv >= 100 || !b.onground) {
v9 = true;
}
if (who.daring == gam.walk0 && b.daring == gam.walk0 || v9) {
if (!who.kneeing) {
who.kneeing = true;
who.guts.gotoAndStop('knee');
}
}
if (who.daring == gam.walk0 && b.daring == gam.walk1 && !v9) {
who.runnin = false;
who.runcv = 0;
who.kneeing = true;
who.guts.gotoAndStop('dive');
who.divebomb = true;
b.groundcv = 0;
}
}
if (bup && Key.isDown(B)) {
bup = false;
v9 = false;
if (who._x < b._x && who.dir == -1 || who._x > b._x && who.dir == 1 || b.groundcv >= 100 || !b.onground) {
v9 = true;
}
if (who.daring == gam.walk0 && b.daring == gam.walk0 || v9) {
if (!who.kneeing) {
who.kneeing = true;
who.guts.gotoAndStop('clothesline');
}
}
if (who.daring == gam.walk0 && b.daring == gam.walk1 && !v9) {
who.runnin = false;
who.runcv = 0;
who.kneeing = true;
who.guts.gotoAndStop('dive');
who.divebomb = true;
b.groundcv = 0;
}
}
}
} else {
++who.tiredcv;
if (who.tiredcv >= 50) {
who.tired = false;
who.tiredcv = 0;
who.guts.gotoAndStop('rest');
}
}
} else {
++who.fthrucv;
if (who.fthrucv >= 20) {
who.fthrucv = 0;
who.fthrough = false;
who.guts.gotoAndStop('rest');
}
}
} else {
++who.pickcv;
b.groundcv = 0;
if (who.pickcv < 4) {
b.guts.gotoAndStop('onground');
}
if (who.pickcv == 4) {
b.guts.gotoAndStop('getup');
}
if (who.pickcv >= 10) {
b.fallen = false;
who.pickcv = 0;
who.picking = false;
who.grappling = true;
b.onground = false;
b.groundcv = 0;
b.runnin = false;
b.hit = false;
b.hitcv = 0;
chkGrap(who, true);
}
}
} else {
++who.finishcv;
who.xvel = 0;
who.yvel = 0;
if (who.finishcv >= 20) {
who.kneeing = false;
who.attacking = false;
who.finishcv = 0;
who.finishing = false;
who.guts.gotoAndStop('rest');
}
}
} else {
++who.divebombcv;
if (who.divebombcv == 1) {
who._xscale = -who.dir * 100;
who.bxvel = who.dir * 5;
who.byvel = -9;
who.divebombwait = 0;
}
who._x += who.bxvel;
who._y += who.byvel;
who.bxvel *= 0.95;
who.byvel += 1;
if (who.byvel > 0) {
v7 = b._x - who._x;
who._x += v7 / 8;
if (who._y >= b._y + 5) {
++who.divebombwait;
who._y = b._y + 5;
who._x = b._x;
if (who.divebombwait == 1) {
who.daring = gam.walk1;
b.guts.gotoAndStop('groundhit');
b.groundcv = -8;
shakeIt(5);
}
if (who.divebombwait == 5) {
who._visible = true;
b.fallen = false;
who._y = b._y;
who.daring = gam.walk1;
who.onground = true;
who.guts.gotoAndStop('getup');
who.groundcv = 100;
who._y = b._y;
who.divebomb = false;
who.divebombcv = 0;
}
}
}
}
} else {
if (!who.mounted) {
++who.ropecv;
if (who.ropecv == 5) {
who._y = 58;
if (who.dir == -1) {
who._x = 120;
}
if (who.dir == 1) {
who._x = 320;
}
}
if (who.ropecv >= 16) {
if (who.dir == -1) {
who._y = 48;
who._x = 110;
}
if (who.dir == 1) {
who._y = 48;
who._x = 329;
}
who.mounted = true;
who.ropecv = 0;
who.dismount = false;
who.dismountcv = 0;
who.airland = false;
}
} else {
if (!who.attacking && !who.dismount) {
var v8 = false;
if (Key.isDown(A) && aup) {
aup = false;
who.divetype = 0;
who.attacking = true;
who.guts.gotoAndStop('dive');
who.diving = true;
who.divecv = 0;
who.miss = false;
v8 = true;
}
if (Key.isDown(B) && bup) {
bup = false;
who.divetype = 1;
who.attacking = true;
who.guts.gotoAndStop('airknee');
who.diving = true;
who.divecv = 0;
v8 = true;
who.miss = false;
who.airland = false;
}
if (v8) {
_root.aboboMedal('Risky');
v7 = Math.abs(who._x - b._x);
v12 = Math.abs(who._y - b._y);
var v15 = Math.sqrt(v7 * v7 + v12 * v12);
if (v15 < 85 && b.onground) {
if (who.dir == -1) {
who.axvel = v7 * 0.09;
who.ayvel = -5;
}
if (who.dir == 1) {
who.axvel = -v7 * 0.09;
who.ayvel = -5;
}
} else {
who.miss = true;
if (who.dir == -1) {
who.axvel = 4;
who.ayvel = -6;
}
if (who.dir == 1) {
who.axvel = -4;
who.ayvel = -6;
}
}
}
if (Key.isDown(D) && dup && !who.attacking && !v8) {
dup = false;
who.dismount = true;
who.guts.gotoAndStop('dismount');
}
}
if (who.diving) {
who._x += who.axvel;
who.axvel *= 0.95;
who._y += who.ayvel;
who.ayvel += 1;
if (who._y > b._y - 3 && !who.miss || who.miss && who._y > 80) {
if (!who.airland) {
who.airland = true;
shakeIt(5);
who.hot = false;
b.beenslammed = false;
if (!who.miss) {
b.beenslammed = true;
who.hot = true;
b.fallen = false;
b.guts.gotoAndStop('groundhit');
b.groundcv = -5;
b.hp -= 4;
b.energy -= 0.2;
who.rage += 4;
updateHud();
if (who.divetype == 1) {
who._y = b._y + 1;
} else {
who._y = b._y + 10;
}
who._x = b._x;
} else {
trace('miss: ' + who.miss);
trace('hot: ' + who.hot);
}
if (who.divetype == 0) {
if (!who.hot) {
who.divecv = -5;
who.guts.gotoAndStop('onground');
if (b._x > who._x) {
who.dir = 1;
who._xscale = 100;
} else {
who.dir = -1;
who._xscale = -100;
}
} else {
who.guts.gotoAndStop('dive');
who.divecv = 10;
}
}
}
if (!who.hot) {
who._y = 80;
}
++who.divecv;
who.ayvel = 0;
who.axvel = 0;
if (who.divecv >= 10) {
who.onground = true;
if (who.divetype == 0) {
who.groundcv = 100;
if (!who.hot) {
who.groundcv = 70;
} else {
who.groundcv = 95;
}
}
if (who.divetype == 1) {
if (!who.hot) {
who.groundcv = 70;
who.guts.gotoAndStop('onground');
if (b._x > who._x) {
who.dir = 1;
who._xscale = 100;
} else {
who.dir = -1;
who._xscale = -100;
}
} else {
who._y = b._y + 1;
who._x = b._x;
if (b._x > who._x) {
who.dir = 1;
who._xscale = 100;
} else {
who.dir = -1;
who._xscale = -100;
}
who.groundcv = 100;
}
}
who.diving = false;
who.dismount = false;
who.mounted = false;
who.onropes = false;
who.ropecv = 0;
who.dismountcv = 0;
}
}
}
if (who.dismount) {
++who.dismountcv;
if (who.dismountcv == 11) {
if (who.dir == -1) {
who._x = 120;
}
if (who.dir == 1) {
who._x = 315;
}
who._y = 60;
}
if (who.dismountcv >= 20) {
who.dismount = false;
who.mounted = false;
who.onropes = false;
who.ropecv = 0;
who.dismountcv = 0;
if (who.dir == -1) {
who._x = 125;
who._y = 65;
}
if (who.dir == 1) {
who._x = 310;
who._y = 65;
}
if (b._x > who._x) {
who.dir = 1;
who._xscale = 100;
} else {
who.dir = -1;
who._xscale = -100;
}
}
}
}
}
} else {
who.groundcv += who.energy;
if (who.groundcv >= who.energy * 4 && !who.fallen) {
who.guts.gotoAndStop('onground');
who.fallen = true;
}
if (who.groundcv >= 100) {
who.guts.gotoAndStop('getup');
if (who.groundcv >= 100 + who.energy * 8) {
if (b._x > d._x) {
d.dir = 1;
} else {
d.dir = -1;
}
d._xscale = d.dir * 100;
who.fallen = false;
who.onground = false;
who.groundcv = 0;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
}
} else {
++who.rollcv;
if (who.rollcv < 20) {
if (who.rolldir == 1) {
who.guts.gotoAndStop('roll');
who._y += 2.5;
} else {
if (who.rollcv > 6) {
who.guts.gotoAndStop('roll');
who._y -= 3;
} else {
who.runnin = false;
who.runcv = 0;
who.kneeing = false;
who.guts.gotoAndStop('backside');
if (who.rollcv == 4) {
who._y -= 15;
}
}
}
} else {
if (who.rolldir == 1) {
who.guts.gotoAndStop('backside');
if (who.rollcv >= 25) {
who.daring = gam.walk1;
who.rollcv = 0;
who.rolling = false;
who.kneeing = false;
who.guts.gotoAndStop('rest');
}
} else {
who.guts.gotoAndStop('getup');
who.onground = true;
who.groundcv = 99;
who.daring = gam.walk0;
who.rollcv = 0;
who.rolling = false;
who.throwing = false;
who.throwcv = 0;
}
}
}
} else {
var v16 = false;
if (!who.attacking) {
if (Key.isDown(R)) {
v16 = true;
who.dir = 1;
who.xvel += who.sp;
}
if (Key.isDown(L)) {
v16 = true;
who.dir = -1;
who.xvel -= who.sp;
}
if (b._x > who._x) {
who.dir = 1;
} else {
who.dir = -1;
}
who._xscale = who.dir * 100;
if (Key.isDown(U)) {
v16 = true;
who.yvel -= who.sp;
}
if (Key.isDown(D)) {
v16 = true;
who.yvel += who.sp;
}
if (Key.isDown(A) && aup) {
aup = false;
who.attacking = true;
var v11 = 8;
var v14 = false;
if (b.daring == d.daring) {
if (!b.onground && b.groundcv < 100) {
if (b._y > who._y - v11 && b._y < who._y + v11) {
if (b._x > who._x - 45 && b._x < who._x + 45) {
v14 = true;
}
}
}
}
if (v14) {
who.attacking = true;
who.runnin = false;
who.runcv = 0;
who.grappling = false;
who.grapcv = 0;
who.throwing = false;
who.throwcv = 0;
who.onground = false;
who.groundcv = 0;
who.kneeing = false;
who.guts.gotoAndStop('chairbreak');
} else {
who.guts.gotoAndStop('chairswing');
}
}
if (Key.isDown(B) && bup) {
bup = false;
chairCrumple(who._x + 10 * who.dir, who._y - 20, who._y, who);
}
if (!who.attacking) {
if (v16) {
who.guts.gotoAndStop('chairmove');
} else {
who.guts.gotoAndStop('chairrest');
}
}
}
}
}
if (who.showyou) {
who.you._visible = true;
++who.youcv;
who.you._xscale = who._xscale;
if (who.youcv >= 70) {
who.youcv = 0;
who.showyou = false;
who.you._visible = false;
}
}
}
function endChairSwing(who) {
who.attacking = false;
who.guts.gotoAndStop('chairrest');
}
function chairCrumple(x, y, home, who) {
trace('CHAIR CRUMPLE');
var v2 = gam.attachMovie('prow_crumple', 'chairy' + effcv, effcv + 8871);
++effcv;
v2._x = x;
v2._y = y;
v2._xscale = -who.dir * 100;
v2.cv = 0;
v2.home = home;
swaps.push(v2);
v2.yvel = -3;
v2.onEnterFrame = function () {
if (!this.stopper) {
this._y += this.yvel;
this.yvel += 1;
if (this._y >= this.home) {
this._y = this.home;
this.stopper = true;
}
} else {
++this.cv;
if (this.cv >= 15) {
this._visible = !this._visible;
if (this.cv >= 35) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
this._visible = false;
}
}
}
};
who.attacking = false;
who.guts.gotoAndStop('rest');
who.gotchair = false;
who.runnin = false;
who.runcv = 0;
who.onground = false;
who.groundcv = 0;
}
function chairHit(who) {
who.throwing = false;
who.throwcv = 0;
chairsound.start();
chairCrumple(who._x + 10 * who.dir, who._y - 20, who._y, who);
makeBurst(b._x + (random(6) - 3), b._y - 43);
shakeIt(5, true);
if (who != b) {
_root.aboboMedal('Have A Seat');
++chairsmacks;
if (chairsmacks >= 4) {
_root.aboboMedal('Chair Massacre');
}
if (b.gotchair) {
chairCrumple(b._x + 10 * b.dir, b._y - 20, b._y, b);
}
makeBlood(b._x + (random(6) - 3), b._y - 43, d.dir);
b.hp -= 4;
b.energy -= 0.2;
d.rage += 5;
b.xvel = 0;
b.yvel = 0;
if (d._xscale == 100) {
b._x = d._x + 10;
} else {
b._x = d._x - 10;
}
updateHud();
b.guts.gotoAndStop('groundhit');
b.onground = true;
b.groundcv = -5;
b.runnin = false;
b.runcv = 0;
who.attacking = false;
if (b.daring == gam.walk1) {
b.runcv = 0;
b.runnin = false;
if (ringpointer == 1) {
if (b._y < 180) {
if (b._x >= 75) {
b._x = 75;
}
}
if (b._x <= 58) {
b._x = 58;
}
}
if (ringpointer == 2) {
if (b._x >= 376) {
b._x = 376;
}
if (b._y < 180) {
if (b._x <= 360) {
b._x = 360;
}
}
}
}
} else {
if (d.gotchair) {
chairCrumple(d._x + 10 * d.dir, d._y - 20, d._y, d);
}
makeBlood(d._x + (random(6) - 3), d._y - 43, b.dir);
d.rage -= 2;
d.hp -= 4;
d.xvel = 0;
d.yvel = 0;
d.energy -= 0.2;
updateHud();
d.guts.gotoAndStop('groundhit');
d.onground = true;
d.groundcv = -5;
d.runnin = false;
d.runcv = 0;
who.attacking = false;
if (d.daring == gam.walk1) {
if (ringpointer == 1) {
if (d._y < 180) {
if (d._x >= 75) {
d._x = 75;
}
}
if (d._x <= 58) {
d._x = 58;
}
}
if (ringpointer == 2) {
if (d._x >= 376) {
d._x = 376;
}
if (d._y < 180) {
if (d._x <= 360) {
d._x = 360;
}
}
}
}
}
}
function endSlam(who, xdist, dir, nogetup, followthrough) {
var v2 = 1.5;
if (!followthrough) {
v2 += 1.5;
}
if (who == d) {
b.hp -= v2;
b.energy -= 0.1;
d.rage += 3;
}
if (who == b) {
d.hp -= v2;
d.energy -= 0.1;
}
updateHud();
who.tiredcv = 0;
who.grapcv = 0;
if (!nogetup) {
who.groundcv = 95;
who.guts.gotoAndStop('onground');
who.onground = true;
}
if (followthrough) {
who.guts.gotoAndStop('followthrough');
who.fthrough = true;
} else {
if (nogetup) {
who.guts.gotoAndStop('rest');
}
}
who.slamming = false;
who.grappling = false;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.attacking = false;
b.guts.gotoAndStop('onground');
b.grappling = false;
b.onground = true;
b._visible = true;
b._x = who._x + xdist * who.dir;
b.dir = who.dir * dir;
b._xscale = b.dir * 100;
if (ringpointer == 0) {
if (b._x < 120) {
ringpointer = 1;
tranny = true;
trandir = -1;
b.daring = gam.walk1;
b.dir = 1;
while (b._x > 75) {
--b._x;
}
}
if (b._x > 318) {
ringpointer = 2;
tranny = true;
trandir = 1;
b.daring = gam.walk1;
b.dir = 1;
while (b._x < 330) {
++b._x;
}
}
}
if (b.daring == gam.walk1) {
b.runcv = 0;
b.runnin = false;
if (ringpointer == 1) {
if (b._y < 180) {
if (b._x >= 75) {
b._x = 75;
}
}
if (b._x <= 58) {
b._x = 58;
}
}
if (ringpointer == 2) {
if (b._x >= 376) {
b._x = 376;
}
if (b._y < 180) {
if (b._x <= 360) {
b._x = 360;
}
}
}
}
}
function chkPunch(who, box, amt, clothes) {
var v6 = 4;
var v3 = gam.cam;
if (who._y > v3._y - v6 - 3 && who._y < v3._y + v6 + 3 && !v3.onground) {
if (box.hitTest(v3.guts.hitarea) && !v3.hit) {
_root.aboboMedal('No Filming');
this._parent.hud.updateBad(v3, true);
punchsound.start();
v3.hit = true;
makeBurst(v3._x + (random(6) - 3), v3._y - 43);
makeBlood(v3._x + (random(6) - 3), v3._y - 43, d.dir);
v3.rage += 3;
updateHud();
v3.dead = true;
v3.guts.gotoAndStop('die');
}
}
var v4 = gam.ref;
if (who._y > v4._y - v6 - 3 && who._y < v4._y + v6 + 3 && !v4.onground) {
if (box.hitTest(v4.guts.hitarea) && !v4.hit) {
this._parent.hud.updateBad(v4, true);
punchsound.start();
v4.hit = true;
makeBurst(v4._x + (random(6) - 3), v4._y - 43);
makeBlood(v4._x + (random(6) - 3), v4._y - 43, d.dir);
d.rage += 3;
updateHud();
v4.dead = true;
v4._xscale = who._xscale * -1;
v4.guts.gotoAndStop('die');
_root.aboboMedal('Bloodsport');
}
}
if (who._y > b._y - v6 && who._y < b._y + v6 && !b.onground) {
if (box.hitTest(b.guts.headhit) && !b.hit) {
punchsound.start();
makeBlood(b._x + (random(6) - 3), b._y - 43, d.dir);
b.fallen = false;
amt = 0.5;
if (who.runnin) {
amt += 0.5;
}
if (b.runnin) {
amt += 0.5;
}
b.energy -= 0.05;
d.rage += 2;
b.hp -= amt;
updateHud();
changeEName(b.nam);
makeBurst(b._x + (random(6) - 3), b._y - 43);
if (b.runnin || b.gotchair) {
b.numhits = 2;
}
if (b.gotchair) {
chairCrumple(b._x + 10 * b.dir, b._y - 20, b._y, b);
}
if (b.numhits >= 2) {
b.runnin = false;
b.numhits = 0;
b.numhitcv = 0;
b.onground = true;
b.groundcv = 0;
b.guts.gotoAndStop('ropebounce');
} else {
b.hit = true;
++b.numhits;
b.numhitcv = 0;
b.guts.gotoAndStop('hit0');
}
}
if (box.hitTest(b.guts.bodhit) && !b.hit) {
punchsound.start();
b.fallen = false;
amt = 0.5;
if (who.runnin) {
amt += 0.5;
}
if (b.runnin) {
amt += 0.5;
}
d.rage += 2;
b.energy -= 0.1;
changeEName(b.nam);
if (b.gotchair) {
chairCrumple(b._x + 10 * b.dir, b._y - 20, b._y, b);
}
if (b.runnin) {
shakeIt(5, true);
}
makeBlood(b._x + (random(6) - 3), b._y - 30, d.dir);
makeBurst(b._x + (random(6) - 3), b._y - 30);
b.runnin = false;
b.numhits = 0;
b.numhitcv = 0;
if (who.kneeing) {
amt += 0.5;
}
if (clothes) {
amt += 0.5;
who.runcv = 0;
who.runnin = false;
who.numbounces = 0;
who.guts.gotoAndStop('clothesend');
who.finishing = true;
b.groundcv = -4;
b.clothesline = true;
}
b.onground = true;
b.groundcv = 0;
b.guts.gotoAndStop('ropebounce');
b.hp -= amt;
updateHud();
}
}
}
function makeBlood(x, y, dir) {
var v1 = gam.attachMovie('prow_bloodsplat', 'burst' + effcv, effcv + 9981);
++effcv;
v1._xscale = dir * 100;
v1._x = x;
v1._y = y;
var v2 = random(3) + 1;
v1.gotoAndStop(v2);
v1 = gam.attachMovie('prow_groundsplat', 'burst' + effcv, effcv + 9981);
++effcv;
v1._xscale = dir * 100;
v1._x = x;
v1._y = d._y + random(6) - 3;
v2 = random(2) + 1;
v1.gotoAndStop(v2);
swaps.push(v1);
}
function burnMe(who) {
var v3 = who;
var v4 = new flash.geom.Matrix();
v4.tx = v3._x - gam.bcatcher._x;
v4.ty = v3._y - gam.bcatcher._y;
v4.a = v3._xscale / 100;
v4.d = v3._yscale / 100;
alf = 1;
var v5 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(v3, v4, v5);
var v1 = 0;
while (v1 < swaps.length) {
if (swaps[v1] == who) {
swaps.splice(v1, 1);
}
++v1;
}
who.unloadMovie();
who.removeMovieClip();
}
function makeBurst(x, y) {
var v1 = gam.attachMovie('bf_burst', 'burst' + effcv, effcv + 9981);
++effcv;
v1._x = x;
v1._y = y;
}
function endBSlam(who, xdist, dir, nogetup, followthrough) {
d.rage -= 2;
var v2 = 3;
if (!followthrough) {
v2 += 3;
}
if (who == b) {
d.hp -= v2;
d.energy -= 0.1;
}
updateHud();
who.tiredcv = 0;
who.grapcv = 0;
if (!nogetup) {
who.groundcv = 95;
who.guts.gotoAndStop('onground');
who.onground = true;
}
if (followthrough) {
who.guts.gotoAndStop('followthrough');
who.fthrough = true;
} else {
if (nogetup) {
who.guts.gotoAndStop('rest');
}
}
who.slamming = false;
who.grappling = false;
who.runnin = false;
who.runcv = 0;
who.numbounces = 0;
who.attacking = false;
d.gettingslammed = false;
d.guts.gotoAndStop('onground');
d.grappling = false;
d.onground = true;
d._visible = true;
d._x = who._x + xdist * who.dir;
d.dir = who.dir * dir;
d._xscale = d.dir * 100;
if (ringpointer == 0) {
if (d._x < 120) {
ringpointer = 1;
tranny = true;
trandir = -1;
d.daring = gam.walk1;
d.dir = 1;
while (d._x > 75) {
--d._x;
}
}
if (d._x > 318) {
ringpointer = 2;
tranny = true;
trandir = 1;
d.daring = gam.walk1;
d.dir = 1;
while (d._x < 330) {
++d._x;
}
}
}
if (d.daring == gam.walk1) {
d.runcv = 0;
d.runnin = false;
if (ringpointer == 1) {
if (d._y < 180) {
if (d._x >= 75) {
d._x = 75;
}
}
if (d._x <= 58) {
d._x = 58;
}
}
if (ringpointer == 2) {
if (d._x >= 376) {
d._x = 376;
}
if (d._y < 180) {
if (d._x <= 360) {
d._x = 360;
}
}
}
}
}
function chkBadPunch(who, box) {
var v3 = 4;
if (who._y > d._y - v3 && who._y < d._y + v3 && !d.onground) {
if (box.hitTest(d.guts.headhit) && !d.hit) {
punchsound.start();
d.fallen = false;
var v2 = 2;
if (who.runnin) {
v2 += 2;
}
if (d.runnin) {
v2 += 2;
}
d.energy -= 0.05;
d.hp -= v2;
updateHud();
makeBlood(d._x + (random(6) - 3), d._y - 43, b.dir);
makeBurst(d._x + (random(6) - 3), d._y - 43);
if (d.runnin || d.gotchair) {
d.numhits = 2;
}
if (d.gotchair) {
chairCrumple(d._x + 10 * d.dir, d._y - 20, d._y, d);
}
if (d.numhits >= 2) {
d.rage -= 2;
d.runnin = false;
d.numhits = 0;
d.numhitcv = 0;
d.onground = true;
d.groundcv = 0;
d.guts.gotoAndStop('ropebounce');
updateHud();
} else {
d.hit = true;
++d.numhits;
d.numhitcv = 0;
d.guts.gotoAndStop('hit0');
}
}
if (box.hitTest(d.guts.bodhit) && !d.hit) {
d.rage -= 2;
updateHud();
punchsound.start();
d.fallen = false;
v2 = 2;
if (who.runnin) {
v2 += 2;
}
if (d.runnin) {
v2 += 2;
}
d.energy -= 0.1;
if (d.gotchair) {
chairCrumple(d._x + 10 * d.dir, d._y - 20, d._y, d);
}
if (d.runnin) {
shakeIt(5);
}
makeBlood(d._x + (random(6) - 3), d._y - 30, b.dir);
makeBurst(d._x + (random(6) - 3), d._y - 30);
d.runnin = false;
d.numhits = 0;
d.numhitcv = 0;
if (who.kneeing) {
v2 += 1;
}
if (clothes) {
v2 += 1;
who.runcv = 0;
who.runnin = false;
who.numbounces = 0;
who.guts.gotoAndStop('clothesend');
who.finishing = true;
d.groundcv = -4;
d.clothesline = true;
}
d.onground = true;
d.groundcv = 0;
d.guts.gotoAndStop('ropebounce');
d.hp -= v2;
updateHud();
}
}
}
function endBadPunch(who) {
who.attacking = false;
who.guts.gotoAndStop('rest');
}
function bossAI(who) {
if (who.grappling && !d.slamming && !d.hit && !b.hit && !b.slamming && !d.throwing) {
if (!who.decision) {
who.grapcv = 0;
who.actgoal = random(10) + 4 / who.energy;
who.decision = true;
}
++who.grapcv;
if (who.grapcv >= who.actgoal) {
who.slamming = true;
who.decision = false;
who.grapcv = 0;
var v12 = random(5);
who.guts.gotoAndStop('slam' + v12);
d.gettingslammed = true;
who.grappling = false;
d.grappling = false;
d._visible = false;
d.rolling = false;
d.rollcv = 0;
}
}
if (who.picking) {
++who.pickcv;
d.onground = true;
d.groundcv = 0;
if (who.pickupcv < 6) {
d.guts.gotoAndStop('onground');
}
if (who.pickcv < 9 && who.pickupcv >= 6) {
if (d._x < who._x) {
d._x = who._x - 15;
} else {
d._x = who._x + 15;
}
d.guts.gotoAndStop('getup');
}
if (who.pickcv == 10) {
d.onground = false;
d.groundcv = 0;
d.runnin = false;
d.runcv = 0;
who.pickcv = 0;
who.picking = false;
who.grappling = true;
who.grapcv = 0;
d.grappling = true;
d.grapcv = 0;
d.guts.gotoAndStop('grapple');
who.guts.gotoAndStop('grapple');
chkGrap(d, true);
}
}
if (!who.onground && !who.picking && !who.runnin && !who.hit && !who.grappling && !who.rolling && !who.slamming && !who.attacking) {
if (d._x > who._x) {
who.dir = 1;
} else {
who.dir = -1;
}
who._xscale = who.dir * 100;
++who.aicv;
if (who.aicv >= who.maxai) {
who.aicv = 0;
v12 = random(3);
if (v12 >= 1 || d.onropes || d.runnin) {
if (who.daring == 0) {
who.xgoal = random(75) + 130;
who.ygoal = 60 + random(60);
}
} else {
var v6 = random(3);
if (v6 > 2 || ringpointer == 0 || gam.chair0._y < -200 && gam.chair1._y < -200 && ringpointer == 1 || gam.chair2._y < -200 && gam.chair3._y < -200 && ringpointer == 2) {
who.xgoal = d._x + 15 * d.dir;
who.ygoal = d._y;
} else {
if (ringpointer == 1) {
if (gam.chair0._y > -200) {
who.xgoal = gam.chair0._x;
who.ygoal = gam.chair0._y - 3;
who.aicv = -20;
}
if (gam.chair1._y > -200) {
who.xgoal = gam.chair1._x;
who.ygoal = gam.chair1._y - 3;
who.aicv = -20;
}
}
if (ringpointer == 2) {
if (gam.chair2._y > -200 && gam.chair2._visible) {
who.xgoal = gam.chair2._x;
who.ygoal = gam.chair2._y - 3;
who.aicv = -20;
}
if (gam.chair3._y > -200 && gam.chair3._visible) {
who.xgoal = gam.chair3._x;
who.ygoal = gam.chair3._y - 3;
who.aicv = -20;
}
}
}
}
if (who.daring == gam.walk0) {
if (d.daring == gam.walk1) {
who.xgoal = 200;
who.ygoal = 190;
}
}
if (who.daring == gam.walk1) {
if (d.daring == gam.walk0) {
who.xgoal = d._x + 35 * d.dir;
if (ringpointer != 0) {
who.ygoal = 190;
}
}
}
}
if (!who.gotchair) {
if (ringpointer == 1) {
if (gam.chair0._visible) {
var v13 = Math.abs(gam.chair0._x - who._x);
var v10 = Math.abs(gam.chair0._y - who._y);
if (v10 < 6) {
if (v13 < 15) {
who.gotchair = true;
who.chairpartner = gam.chair0;
who.chairpartner._y = -500;
who.chairpartner._visible = false;
who.chairpartner.unloadMovie();
who.chairpartner.removeMovieClip();
who.chairpartner = undefined;
who.guts.gotoAndStop('chairrest');
}
}
}
if (gam.chair1._visible && !who.gotchair) {
var v11 = Math.abs(gam.chair1._x - who._x);
var v9 = Math.abs(gam.chair1._y - who._y);
if (v9 < 6) {
if (v11 < 15) {
who.gotchair = true;
who.chairpartner = gam.chair1;
who.chairpartner._y = -500;
who.chairpartner._visible = false;
who.chairpartner.unloadMovie();
who.chairpartner.removeMovieClip();
who.chairpartner = undefined;
who.guts.gotoAndStop('chairrest');
}
}
}
}
if (ringpointer == 2) {
if (gam.chair2._visible) {
v13 = Math.abs(gam.chair2._x - who._x);
v10 = Math.abs(gam.chair2._y - who._y);
if (v10 < 6) {
if (v13 < 15) {
who.gotchair = true;
who.chairpartner = gam.chair2;
who.chairpartner._y = -500;
who.chairpartner._visible = false;
who.chairpartner.unloadMovie();
who.chairpartner.removeMovieClip();
who.chairpartner = undefined;
who.guts.gotoAndStop('chairrest');
}
}
}
if (gam.chair3._visible && !who.gotchair) {
v11 = Math.abs(gam.chair3._x - who._x);
v9 = Math.abs(gam.chair3._y - who._y);
if (v9 < 6) {
if (v11 < 15) {
who.gotchair = true;
who.chairpartner = gam.chair3;
who.chairpartner._y = -500;
who.chairpartner._visible = false;
who.chairpartner.unloadMovie();
who.chairpartner.removeMovieClip();
who.chairpartner = undefined;
who.guts.gotoAndStop('chairrest');
}
}
}
}
}
if (who.gotchair) {
if (d._x > who._x) {
who.dir = 1;
} else {
who.dir = -1;
}
who._xscale = who.dir * 100;
if (d.daring == gam.walk1) {
if (d.dir == 1) {
who.xgoal = d._x + 25;
} else {
who.xgoal = d._x - 25;
}
who.ygoal = d._y;
}
}
var v5 = Math.abs(who.xgoal - who._x);
var v4 = Math.abs(who.ygoal - who._y);
var v7 = Math.abs(who._y - d._y);
var v2 = Math.abs(who._x - d._x);
if (v7 < 3) {
if (v2 < 27 && v2 >= 10) {
if (!who.attacking && !who.picking && !d.onground && !d.hit && !d.runnin && !who.slamming && !who.runnin && !who.grappling && !d.onropes && !who.rolling && !who.gotchair) {
var v8 = random(3);
if (v8 > 0) {
if (v2 <= 15) {
who.guts.gotoAndStop('punch');
} else {
who.guts.gotoAndStop('kick');
}
who.attacking = true;
}
}
if (v2 < 20 && d.onground && !who.picking && d.groundcv > 65 && d.groundcv < 100 && !who.onground && !who.hit && !who.rolling && !d.rolling) {
who.guts.gotoAndStop('pickup');
d.dir = who.dir * -1;
d._xscale = d.dir * 100;
who.picking = true;
}
}
if (v2 < 10) {
if (!d.runnin && !d.rolling && !b.rolling && !who.picking && !who.slamming && !who.runnin && !who.grappling && !d.onground && !d.hit && !d.onropes && !who.rolling && !d.gotchair && !who.gotchair && !d.attacking) {
chkGrap(d);
}
}
}
var v3 = false;
if (!who.attacking && !who.slamming && !who.picking) {
if (who.gotchair) {
if (d.daring == gam.walk1 || ringpointer != 0) {
who.guts.gotoAndStop('chairmove');
} else {
chairCrumple(who._x + 10 * who.dir, who._y - 20, who._y, who);
}
if (v5 < 20 && v4 < 8 && who.daring == d.daring && !d.onground && d.groundcv < 100 && !who.hit) {
who.attacking = true;
who.runnin = false;
who.runcv = 0;
who.grappling = false;
who.grapcv = 0;
who.throwing = false;
who.throwcv = 0;
who.onground = false;
who.groundcv = 0;
who.kneeing = false;
who.guts.gotoAndStop('chairbreak');
}
}
if (v5 > 2) {
v3 = true;
if (who.xgoal < who._x) {
who.xvel = -who.sp;
} else {
who.xvel = who.sp;
}
}
if (v4 > 2) {
v3 = true;
if (who.ygoal < who._y) {
who.yvel -= who.sp;
} else {
who.yvel += who.sp;
}
}
if (!who.grappling && !who.runnin && !who.hit && !who.onground && !who.gotchair) {
if (d.runnin) {
if (!who.dodging) {
who.dodging = true;
who.dodgedir = random(2);
if (who.dodgedir == 0) {
who.dodgedir = -1;
}
}
who.yvel = who.dodgedir;
v3 = true;
}
if (v3) {
who.guts.gotoAndStop('move');
} else {
who.guts.gotoAndStop('rest');
}
}
}
}
if (who.hit && !who.onground && !who.picking) {
++who.hitcv;
if (who.hitcv >= 4) {
who.hitcv = 0;
who.attacking = false;
who.hit = false;
who.guts.gotoAndStop('rest');
}
}
if (who.onground) {
who.groundcv += who.energy;
if (who.groundcv >= who.energy * 4 && !who.fallen) {
who.fallen = true;
if (!who.clothesline) {
who.guts.gotoAndStop('onground');
if (who.beenslammed) {
who.beenslammed = false;
who.groundcv = 50;
}
if (ringpointer == 1) {
who.runcv = 0;
who.runnin = false;
if (who._y < 180) {
if (who._x >= 75) {
who._x = 75;
}
}
if (who._x <= 58) {
who._x = 58;
}
}
if (ringpointer == 2) {
who.runcv = 0;
who.runnin = false;
if (who._x >= 376) {
who._x = 376;
}
if (who._y < 180) {
if (who._x <= 360) {
who._x = 360;
}
}
}
} else {
who.guts.gotoAndStop('groundhit');
}
}
if (who.groundcv >= 10 && who.clothesline) {
who.guts.gotoAndStop('onground');
who.clothesline = false;
}
if (who.groundcv > 60 && who.groundcv < 100) {
if (who.groundcv > 60 && !who.dodging) {
who.droll = 0;
who.tododge = random(3);
who.dodgedir = random(2);
if (who.dodgedir == 0) {
who.dodgedir = -1;
}
who.dodging = true;
}
if (!d.onropes && who.tododge == 0) {
++who.droll;
who.yvel = who.dodgedir;
who.guts.gotoAndStop('roll');
if (who.droll >= 15) {
who.droll = 0;
who.groundcv = 100;
who.dodging = false;
}
}
}
if (who.groundcv >= 100) {
who.dodging = false;
who.guts.gotoAndStop('getup');
who.fallen = false;
if (who.groundcv >= 100 + who.energy * 8) {
who.onground = false;
who.groundcv = 0;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
}
if (who.rolling) {
++who.rollcv;
if (who.rollcv < 20) {
if (who.rolldir == 1) {
who.guts.gotoAndStop('roll');
who._y += 2.5;
} else {
if (who.rollcv > 6) {
who.guts.gotoAndStop('roll');
who._y -= 3;
} else {
who.guts.gotoAndStop('backside');
if (who.rollcv == 4) {
who._y -= 15;
}
}
}
} else {
if (who.rolldir == 1) {
who.guts.gotoAndStop('backside');
if (who.rollcv >= 25) {
who.daring = gam.walk1;
who.rollcv = 0;
who.rolling = false;
who.guts.gotoAndStop('rest');
}
} else {
who.guts.gotoAndStop('getup');
who.onground = true;
who.groundcv = 100;
who.daring = gam.walk0;
who.rollcv = 0;
who.rolling = false;
who.throwing = false;
who.throwcv = 0;
}
}
}
if (who.numhits > 0) {
++who.numhitcv;
if (who.numhitcv > 100) {
who.numhits = 0;
who.numhitcv = 0;
}
}
if (who.runnin && !who.hit) {
who._x += who.dir * who.sp * 3;
who._xscale = who.dir * 100;
if (who.numbounces < 2) {
who.virtx = who._x + gam._x;
if (!shitTest(who.daring, who.virtx, who._y)) {
if (who.daring == gam.walk0) {
++who.numbounces;
if (who.dir == 1) {
gam.rope1.gotoAndPlay(2);
} else {
gam.rope0.gotoAndPlay(2);
}
who.dir *= -1;
while (!shitTest(who.daring, who.virtx, who._y)) {
who._x += who.dir;
who.virtx += who.dir;
}
} else {
who.hp -= 4;
who.energy -= 0.2;
if (who == b) {
d.rage += 4;
}
updateHud();
who.fallen = false;
who.numbounces = 0;
who.fallen = false;
who.runnin = false;
who.runcv = 0;
who.guts.gotoAndStop('ropebounce');
who.onground = true;
who.groundcv = -1;
who.numbounces = 0;
}
}
} else {
++who.runcv;
if (who.runcv >= 20) {
who.numbounces = 0;
who.runnin = false;
who.runcv = 0;
who.guts.gotoAndStop('rest');
}
}
}
}
function chkGrap(who, force) {
var v2 = 4;
if (who._y > b._y - v2 && who._y < b._y + v2 && !b.runnin && !b.hit && !b.onground && !who.gotchair && !b.gotchair && !who.hit || force) {
var v3 = Math.abs(who._x - b._x);
if (v3 < 9 || force) {
b.decision = false;
who.grappling = true;
who.guts.gotoAndStop('grapple');
b.grappling = true;
b.guts.gotoAndStop('grapple');
who.moving = false;
b._y = who._y + 1;
who._xscale = who.dir * 100;
b._xscale = who._xscale * -1;
b.dir = who.dir * -1;
if (who.dir == 1) {
b._x = who._x + 16;
} else {
b._x = who._x - 16;
}
if (b.daring == gam.walk0 || ringpointer == 0) {
if (b._y < 150) {
if (b._x >= 318) {
b._x = 318;
who._x = b._x - 16;
}
if (b._x <= 120) {
b._x = 120;
who._x = b._x + 16;
}
}
}
if (b.daring == gam.walk1) {
if (ringpointer == 1) {
if (b._y < 180) {
if (b._x >= 110) {
b._x = 110;
who._x = b._x - 16;
}
}
if (b._x <= 58) {
b._x = 58;
who._x = b._x + 16;
}
}
if (ringpointer == 2) {
b.runcv = 0;
b.runnin = false;
if (b._x >= 376) {
b._x = 376;
who._x = b._x - 16;
}
if (b._y < 180) {
if (b._x <= 360) {
b._x = 360;
who._x = b._x + 16;
}
}
}
}
}
}
}
function endPunch(who) {
if (who.kneeing) {
who.numbounces = 0;
who.runcv = 0;
who.runnin = false;
who.kneeing = false;
}
who.attacking = false;
who.guts.gotoAndStop('rest');
}
function throwPunchA(who) {
if (!who.attacking) {
who.attacking = true;
who.guts.gotoAndStop('punch');
}
}
function throwPunchB(who) {
if (!who.attacking) {
who.attacking = true;
who.guts.gotoAndStop('kick');
}
}
function phys(who) {
var v3 = Math.abs(who.xvel);
var v2 = Math.abs(who.yvel);
if (v3 < 0.5) {
who.xvel = 0;
}
if (v2 < 0.5) {
who.yvel = 0;
}
who._x += who.xvel;
who.virtx = who._x + gam._x;
if (!shitTest(who.daring, who.virtx, who._y) || who.virtx > 248 || who.virtx < 8) {
who._x -= who.xvel;
who.xvel = 0;
who.virtx = who._x + gam._x;
}
who._y += who.yvel;
if (!shitTest(who.daring, who.virtx, who._y)) {
who._y -= who.yvel;
who.yvel = 0;
}
who.xvel *= FRIC;
who.yvel *= FRIC;
}
function swapEm() {
var v3 = new Array();
var v1 = 0;
while (v1 < swaps.length) {
var v2 = swaps[v1];
if (v2._x == undefined) {
swaps.splice(v1, 1);
} else {
v3.push({'nam': v2, 'yval': v2._y});
}
++v1;
}
var v6 = v3.sortOn('yval', Array.NUMERIC);
v1 = 0;
while (v1 < v6.length) {
v3[v1].nam.swapDepths(v1 + 99);
++v1;
}
}
function restrain(who) {
if (ringpointer == 0 && !tranny) {
if (who._y < 150) {
if (who._x > 318) {
who._x = 318;
}
if (who._x < 120) {
who._x = 120;
}
}
}
}
function shakeIt(amt, nosound) {
if (!finalscene && !nosound) {
slamsound.start();
}
wobble = amt;
}
function chkWobble() {
gam._x = wobhome + wobble * wobdir;
if (wobble > 0) {
--wobble;
wobdir *= -1;
} else {
gam._x = wobhome;
}
}
function moveTran() {
if (trandir == -1) {
gam._x += 5;
if (gam._x >= 0) {
gam._x = 0;
wobhome = 0;
tranny = false;
nokeys = false;
}
}
if (trandir == 1) {
gam._x -= 5;
if (gam._x <= -184) {
gam._x = -184;
wobhome = -184;
tranny = false;
nokeys = false;
}
}
if (trandir == 0) {
if (ringpointer == 1) {
gam._x -= 5;
if (gam._x <= -92) {
gam._x = -92;
wobhome = -92;
tranny = false;
if (!finalscene) {
nokeys = false;
} else {
runSuper();
}
ringpointer = 0;
}
}
if (ringpointer == 2) {
gam._x += 5;
if (gam._x >= -92) {
gam._x = -92;
wobhome = -92;
tranny = false;
if (!finalscene) {
nokeys = false;
} else {
runSuper();
}
ringpointer = 0;
}
}
}
}
function chkRoll() {
if (ringpointer == 1 || ringpointer == 2 || ringpointer == 0 && d.daring == gam.walk1 || ringpointer == 0 && b.daring == gam.walk1) {
if (ringpointer == 1) {
if (b._x > 120 && d._x > 120) {
nokeys = true;
tranny = true;
trandir = 0;
}
}
if (ringpointer == 2) {
if (b._x < 320 && d._x < 320) {
nokeys = true;
tranny = true;
trandir = 0;
}
}
if (d.daring == gam.walk0 && !d.gotchair && !d.grappling && !d.hit && !b.grappling && !d.onground && !d.attacking && !d.slamming && !d.throwing && !d.fthrough && d._visible && !d.gettingslammed && !d.picking && !b.picking) {
d.virtx = gam._x + d._x;
if (shitTest(gam.rollarea0, d.virtx, d._y)) {
if (Key.isDown(D) && !d.rolling) {
d.grappling = false;
d.grapcv = 0;
d.runnin = false;
d.runcv = 0;
d.rolling = true;
d.rolldir = 1;
wobble = 0;
}
}
}
if (d.daring == gam.walk1 && !d.gotchair && !d.grappling && !d.hit && !b.hit && !d.onground && !d.attacking && !d.slamming && !d.throwing && !d.fthrough && d._visible && !d.gettingslammed && !d.picking && !b.picking) {
d.virtx = gam._x + d._x;
if (shitTest(gam.rollarea1, d.virtx, d._y)) {
if (Key.isDown(U) && !d.rolling) {
d.grappling = false;
d.grapcv = 0;
d.runnin = false;
d.runcv = 0;
d.rolling = true;
d.rolldir = -1;
wobble = 0;
}
}
}
if (b.daring == gam.walk0 && !b.gotchair && !b.grappling && !b.hit && !b.onground && !b.attacking && !d.slamming) {
b.virtx = gam._x + b._x;
if (shitTest(gam.rollarea0, b.virtx, b._y)) {
if (b.yvel > 0 && !b.rolling) {
b.rolling = true;
b.rolldir = 1;
b.goalx = d._x;
b.goaly = d._y;
wobble = 0;
}
}
}
if (b.daring == gam.walk1 && !b.gotchair && d.daring == gam.walk0 && !b.grappling && !b.hit && !b.onground && !b.attacking && !d.slamming) {
b.virtx = gam._x + b._x;
if (shitTest(gam.rollarea1, b.virtx, b._y)) {
if (b.yvel < 0 && !b.rolling) {
b.goalx = d._x;
b.goaly = d._y;
b.rolling = true;
b.rolldir = -1;
wobble = 0;
}
}
}
}
}
function blinkOut() {
++d.deadcv;
if (d.deadcv >= d.maxblink) {
d.deadcv = 0;
d._visible = !d._visible;
--d.maxblink;
if (d.maxblink <= 2) {
d.maxblink = 2;
++d.deadtimer;
if (d.deadtimer >= 15) {
if (d.deadtimer == 15) {
--d.lives;
if (d.lives <= 0) {
_root.endBF();
}
}
d._visible = false;
if (d.deadtimer >= 30) {
d.showyou = true;
d.attacking = false;
d.deadtimer = 0;
d.grappling = false;
d.grapcv = 0;
b.grappling = false;
b.grapcv = 0;
d.energy = 4;
d.dead = false;
d.picking = false;
d.pickcv = 0;
d.throwing = false;
d.throwcv = 0;
d.finishing = false;
d.finishcv = 0;
d.hp = d.maxhp;
d.deadcv = 0;
d.guts.gotoAndStop('rest');
d.onground = false;
d.groundcv = 0;
d.runnin = false;
d.runcv = 0;
d.slamming = false;
b.slamming = false;
b.onground = false;
b.groundcv = 0;
b.guts.gotoAndStop('rest');
d.rage = 0;
b.runnin = false;
b.runcv = 0;
d.hit = false;
d.hitcv = 0;
b.hit = false;
b.hitcv = 0;
b._visible = true;
d._visible = true;
updateHud();
pausy = false;
nokeys = false;
}
}
}
}
}
function moveCam() {
var v1 = gam.cam;
if (!v1.dead) {
v1.xvel = 0;
v1.yvel = 0;
var v2 = Math.abs(b._x - d._x);
if (b._x < d._x) {
var v4 = b;
} else {
var v4 = d;
}
v2 = v4._x + v2 / 2;
var v5 = v2 - v1._x;
var v3 = false;
if (v1._x < v2 - 5) {
v1.xvel = 2;
v3 = true;
}
if (v1._x > v2 + 5) {
v1.xvel = -2;
v3 = true;
}
if (v3) {
v1.guts.gotoAndStop('move');
} else {
v1.guts.gotoAndStop('rest');
}
v1._x += v1.xvel;
v1.xvel *= FRIC;
}
}
function moveRef() {
var v1 = gam.ref;
if (!v1.dead) {
v1.xvel = 0;
v1.yvel = 0;
if (d._y < b._y) {
most = d._y;
} else {
most = b._y;
}
var v4 = most - 25;
var v2 = Math.abs(b._x - d._x);
if (b._x < d._x) {
var v6 = b;
} else {
var v6 = d;
}
v2 = v6._x + v2 / 2;
var v9 = v2 - v1._x;
var v3 = false;
if (v1._x < v2 - 5) {
v1.xvel = 1;
v3 = true;
}
if (v1._x > v2 + 5) {
v1.xvel = -1;
v3 = true;
}
var v8 = v4 - v1._y;
var v7 = v4 - 5;
var v5 = v4 + 5;
if (v1._y < v7) {
v1.yvel = 1;
v3 = true;
}
if (v1._y > v5) {
v1.yvel = -1;
v3 = true;
}
if (v3) {
v1.guts.gotoAndStop('move');
} else {
v1.guts.gotoAndStop('rest');
}
}
}
function chkPause() {
if (!Key.isDown(P)) {
pup = true;
}
if (pup && Key.isDown(P)) {
pup = false;
if (!pausy) {
pausy = true;
psound.start();
prloop.setVolume(0);
this.attachMovie('bf_pholder', 'pholder', this.getNextHighestDepth());
ptm = new flash.display.BitmapData(256, 254, true, 16777215);
pholder.guts.attachBitmap(ptm, 0);
o = _root;
var v3 = new flash.geom.Matrix();
v3.tx = 0;
v3.ty = 0;
v3.a = 1;
alf = 1;
var v4 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
ptm.draw(o, v3, v4);
pholder.guts.filters = new Array(filter);
} else {
psound.start();
pausy = false;
pholder.unloadMovie();
pholder.removeMovieClip();
prloop.setVolume(70);
}
}
}
function enterF() {
if (finalscene && !tranny) {
chkWobble();
}
if (!nokeys && !finalscene) {
if (!pausy) {
controls(gam.dude);
}
chkPause();
}
if (!pausy && !tranny && !finalscene) {
phys(d);
phys(b);
restrain(b);
bossAI(b);
swapEm();
chkWobble();
chkRoll();
moveCam();
moveRef();
phys(gam.ref);
}
if (d.dead) {
d.onground = true;
d.guts.gotoAndStop('onground');
blinkOut();
}
if (tranny) {
nokeys = true;
moveTran();
}
}
stop();
move1 = false;
move2 = false;
move3 = false;
move4 = false;
move5 = false;
chairsmacks = 0;
gam.boss.nam = 'AMAZON';
init2();
this.bgnoise = this.createEmptyMovieClip('bgnoise', -1829);
var prloop = new Sound(bgnoise);
prloop.attachSound('prow_bgloop');
this.sfx = this.createEmptyMovieClip('sfx', -1828);
var chairsound = new Sound(sfx);
chairsound.attachSound('prow_chairhit');
var punchsound = new Sound(sfx);
punchsound.attachSound('prow_punchsound');
var slamsound = new Sound(sfx);
slamsound.attachSound('prow_slam');
var psound = new Sound(sfx);
psound.attachSound('prow_pause');
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
btm = new flash.display.BitmapData(331, 163, true, 16777215);
gam.bcatcher.attachBitmap(btm, 0);
}
}
movieClip 7257 {
frame 1 {
stop();
}
frame 54 {
stop();
}
}
movieClip 7258 {
}
movieClip 7259 {
}
movieClip 7263 {
frame 58 {
stop();
}
}
movieClip 7264 bombdropped1234 {
frame 31 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7283 firepillar223 {
frame 19 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7284 {
frame 1 {
stop();
}
}
movieClip 7287 {
}
movieClip 7293 {
}
movieClip 7296 {
}
movieClip 7298 {
frame 1 {
var effcv = 0;
var delay = 0;
var bombfire = false;
var bombtotal = 30;
var distance = 0;
var p = this._parent._parent;
var bdrop = new Sound(this);
bdrop.attachSound('con_bombdrop');
var rbombs = new Sound(this);
rbombs.attachSound('con_ragebombs');
rbombs.setVolume(60);
var bcv = 0;
var rcv = 0;
this.onEnterFrame = function () {
delay += 1;
++bcv;
if (bcv > 4) {
bdrop.start();
bcv = 0;
}
if (delay > 2) {
e = bombshere.attachMovie('bombdropped1234', 'cloccudaa' + effcv, effcv - 100);
++effcv;
e._x = bomber._x - 80 + random(5);
e._y = bomber._y + 20 + random(5);
delay = 0;
}
if (bombfire && bombtotal > 0) {
++rcv;
if (rcv == 2) {
rbombs.start();
rcv = 0;
}
ex = bombshere.attachMovie('firepillar223', 'cloccudaa' + effcv, effcv - 100);
++effcv;
ex._x = +distance;
ex._y = 100 - random(100);
bombtotal -= 1;
distance += 20;
}
};
}
frame 28 {
p.gam.shakeIt(3);
}
frame 30 {
p.gam.shakeIt(3);
}
frame 32 {
p.gam.shakeIt(3);
}
frame 34 {
p.gam.shakeIt(3);
}
frame 36 {
p.gam.shakeIt(3);
}
frame 38 {
p.gam.shakeIt(3);
}
frame 40 {
p.gam.shakeIt(3);
}
frame 42 {
p.gam.shakeIt(3);
}
frame 44 {
p.gam.shakeIt(3);
}
frame 46 {
p.gam.shakeIt(3);
}
frame 48 {
p.gam.shakeIt(3);
}
frame 50 {
p.gam.shakeIt(3);
}
frame 50 {
bombfire = true;
overlaying.play();
}
frame 52 {
p.gam.shakeIt(3);
}
frame 54 {
p.gam.shakeIt(3);
}
frame 56 {
p.gam.shakeIt(3);
}
frame 88 {
this._parent._parent.gam.endRageOut();
}
}
movieClip 7299 con_ragemove {
}
movieClip 7306 con_suckeffectfire0 {
frame 7 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7313 con_suckeffectfire1 {
frame 7 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7322 con_suckeffectice1 {
frame 12 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7329 con_suckeffectrock0 {
frame 7 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7336 con_suckeffectrock1 {
frame 7 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7340 {
}
movieClip 7349 {
}
movieClip 7352 con_sucker {
frame 1 {
stop();
}
}
movieClip 7356 {
}
movieClip 7357 con_badbul0 {
}
movieClip 7360 con_badbul1 {
}
movieClip 7369 {
}
movieClip 7370 {
}
movieClip 7371 con_badbul2 {
}
movieClip 7374 {
}
movieClip 7375 con_badbul3 {
}
movieClip 7378 con_badbul4 {
}
movieClip 7381 con_badbul5 {
}
movieClip 7386 {
}
movieClip 7387 con_badbul6 {
}
movieClip 7392 {
}
movieClip 7394 {
}
movieClip 7395 con_badbul7 {
}
movieClip 7402 {
}
movieClip 7406 {
}
movieClip 7425 con_bigfball {
frame 1 {
stop();
}
frame 2 {
var tar = this._parent;
tar.chkBadBul(block, block);
}
frame 4 {
tar.chkBadBul(block, block);
}
frame 22 {
this.dead = true;
}
}
movieClip 7429 {
}
movieClip 7430 con_climber {
}
movieClip 7433 {
}
movieClip 7434 con_arrow {
}
movieClip 7437 con_higgins {
}
movieClip 7448 con_icebreak {
frame 12 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7452 {
}
movieClip 7475 {
frame 159 {
stop();
this._parent.dead = true;
}
}
movieClip 7477 {
}
movieClip 7478 con_icemissile {
frame 1 {
stop();
}
}
movieClip 7483 {
}
movieClip 7484 {
}
movieClip 7485 con_ninjastar {
}
movieClip 7488 {
}
movieClip 7489 con_pup1 {
frame 1 {
this.typ = 'M';
this.bulkind = 1;
this.firepattern = 0;
this.rapidity = 5;
}
}
movieClip 7492 con_pup2 {
frame 1 {
this.typ = 'S';
this.bulkind = 1;
this.firepattern = 1;
this.rapidity = 7;
}
}
movieClip 7495 con_pup3 {
frame 1 {
this.typ = 'L';
this.bulkind = 2;
this.firepattern = 0;
this.rapidity = 7;
}
}
movieClip 7498 con_pup4 {
frame 1 {
this.typ = 'F';
this.bulkind = 3;
this.firepattern = 0;
this.rapidity = 6;
}
}
movieClip 7501 {
}
movieClip 7502 con_zookbullet {
}
movieClip 7505 {
frame 6 {
stop();
var t = this._parent;
t.unloadMovie();
t.removeMovieClip();
}
}
movieClip 7506 con_watersplash {
}
movieClip 7519 con_splode2 {
frame 15 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7520 con_splode {
frame 10 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7521 con_smokewrap {
frame 5 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7526 {
}
movieClip 7527 {
}
movieClip 7529 {
frame 15 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7530 {
frame 1 {
stop();
}
}
movieClip 7531 con_enem19 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 8;
this.ind = true;
this.typ = 19;
this.nam = 'Flyguy';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 113;
}
stop();
}
}
movieClip 7534 {
}
movieClip 7537 {
frame 2 {
this._parent._parent._parent.fireBazooka(this._parent._parent);
}
frame 8 {
stop();
}
}
movieClip 7538 {
frame 15 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7539 con_enem18 {
frame 1 {
stop();
}
}
movieClip 7546 {
}
movieClip 7547 {
}
movieClip 7556 {
frame 20 {
this._parent._parent.removeable = true;
}
}
movieClip 7557 {
frame 1 {
stop();
}
}
movieClip 7558 con_enem17 {
frame 1 {
stop();
}
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 10;
this.ind = true;
this.typ = 17;
this.nam = 'Wraith';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 124;
}
stop();
}
}
movieClip 7563 {
}
movieClip 7564 {
}
movieClip 7569 {
}
movieClip 7572 {
}
movieClip 7573 {
frame 1 {
stop();
}
}
movieClip 7574 con_enem15 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 12;
this.ind = true;
this.typ = 16;
this.nam = 'Higgins';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 111;
}
stop();
}
}
movieClip 7577 {
}
movieClip 7578 {
}
movieClip 7579 {
frame 15 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7580 {
frame 1 {
stop();
}
}
movieClip 7581 con_enem14 {
frame 1 {
if (!this.ind) {
this.hp = 999;
this.ind = false;
this.typ = 15;
this.nam = 'FIRE';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 114;
}
stop();
}
}
movieClip 7592 {
}
movieClip 7593 {
frame 10 {
stop();
this._parent.gotoAndStop('ready');
}
}
movieClip 7594 {
}
movieClip 7595 {
frame 10 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7596 {
frame 1 {
stop();
}
}
movieClip 7597 con_enem12 {
frame 1 {
if (!this.ind) {
this.hp = 1;
this.ind = true;
this.typ = 12;
this.nam = 'Powerbox';
this._parent.registerBad(this);
this.notouchy = false;
this.picid = 105;
}
stop();
}
}
movieClip 7604 {
}
movieClip 7605 {
}
movieClip 7611 {
frame 19 {
stop();
}
}
movieClip 7612 {
frame 19 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7613 {
frame 1 {
stop();
}
}
movieClip 7614 con_enem10 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 30;
this.ind = true;
this.typ = 10;
this.nam = 'Jason';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 110;
}
stop();
}
}
movieClip 7616 {
}
movieClip 7617 con_bullet0 {
frame 1 {
this.amt = 1;
}
}
movieClip 7618 con_bullet1 {
frame 1 {
this.amt = 1.1;
}
}
movieClip 7630 {
}
movieClip 7631 con_bullet2 {
frame 1 {
this.amt = 1.1;
stop();
}
frame 3 {
this.amt = 2;
stop();
}
}
movieClip 7634 {
}
movieClip 7635 con_bullet3 {
frame 1 {
this.amt = 1.15;
stop();
}
}
movieClip 7638 {
}
movieClip 7639 {
}
movieClip 7640 con_rocker {
}
movieClip 7645 con_bridgesplode {
frame 16 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 7648 twoplayerintro {
}
movieClip 7678 {
frame 1 {
stop();
}
}
movieClip 7682 {
}
movieClip 7684 {
}
movieClip 7688 {
}
movieClip 7691 {
}
movieClip 7694 {
frame 6 {
this._parent.gotoAndStop('rest');
}
}
movieClip 7695 {
frame 12 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7696 {
frame 1 {
stop();
}
}
movieClip 7697 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 14;
this.ind = true;
this.typ = 9;
this.nam = 'Gunna';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 112;
}
stop();
}
}
movieClip 7712 {
frame 21 {
stop();
}
}
movieClip 7713 {
}
movieClip 7714 {
frame 1 {
stop();
}
}
movieClip 7715 {
frame 1 {
stop();
}
}
movieClip 7718 {
}
movieClip 7723 {
}
movieClip 7728 {
}
movieClip 7737 {
}
movieClip 7741 {
frame 72 {
stop();
}
}
movieClip 7744 {
}
movieClip 7751 {
frame 75 {
stop();
}
}
movieClip 7752 {
frame 1 {
stop();
}
}
movieClip 7753 {
frame 1 {
stop();
}
}
movieClip 7760 {
}
movieClip 7771 {
}
movieClip 7776 {
}
movieClip 7783 {
frame 125 {
stop();
}
}
movieClip 7792 {
}
movieClip 7799 {
}
movieClip 7800 {
frame 5 {
stop();
}
}
movieClip 7802 {
frame 38 {
this._parent.gotoAndStop('swallow');
}
}
movieClip 7807 {
}
movieClip 7812 {
frame 7 {
stop();
}
}
movieClip 7815 {
}
movieClip 7816 {
}
movieClip 7817 {
frame 1 {
stop();
}
}
movieClip 7818 {
frame 1 {
stop();
}
}
movieClip 7828 {
frame 23 {
stop();
}
}
movieClip 7831 {
}
movieClip 7838 {
frame 59 {
stop();
}
}
movieClip 7839 {
frame 1 {
stop();
}
}
movieClip 7840 {
frame 1 {
stop();
}
}
movieClip 7841 {
}
movieClip 7846 {
}
movieClip 7847 {
}
movieClip 7848 {
frame 1 {
stop();
var tar = this._parent._parent;
}
frame 3 {
tar.shakeIt(5);
}
frame 5 {
tar.shakeIt(5);
}
frame 7 {
tar.shakeIt(5);
}
frame 9 {
tar.shakeIt(5);
}
frame 11 {
tar.shakeIt(5);
}
frame 13 {
tar.shakeIt(5);
}
frame 15 {
tar.shakeIt(5);
}
frame 17 {
tar.shakeIt(5);
}
frame 19 {
tar.shakeIt(5);
}
frame 21 {
tar.shakeIt(5);
}
frame 23 {
tar.shakeIt(5);
}
frame 25 {
tar.shakeIt(5);
}
frame 27 {
tar.shakeIt(5);
}
frame 29 {
tar.shakeIt(5);
}
frame 31 {
tar.shakeIt(5);
}
frame 33 {
tar.shakeIt(5);
}
frame 35 {
tar.shakeIt(5);
}
frame 37 {
tar.shakeIt(5);
}
frame 39 {
tar.shakeIt(5);
}
frame 41 {
tar.shakeIt(5);
}
frame 43 {
tar.shakeIt(5);
}
frame 45 {
tar.shakeIt(5);
}
frame 47 {
tar.shakeIt(5);
}
frame 49 {
tar.shakeIt(5);
}
frame 51 {
tar.shakeIt(5);
}
frame 53 {
tar.shakeIt(5);
}
frame 55 {
tar.shakeIt(5);
}
frame 57 {
tar.shakeIt(5);
}
frame 59 {
tar.shakeIt(5);
}
frame 61 {
tar.shakeIt(5);
}
frame 63 {
tar.shakeIt(5);
}
frame 65 {
tar.shakeIt(5);
}
frame 67 {
tar.shakeIt(5);
}
frame 69 {
tar.shakeIt(5);
}
frame 71 {
tar.shakeIt(5);
}
frame 73 {
tar.shakeIt(5);
}
frame 75 {
tar.shakeIt(5);
}
frame 77 {
tar.shakeIt(5);
}
frame 79 {
tar.shakeIt(5);
}
frame 81 {
tar.shakeIt(5);
}
frame 83 {
tar.shakeIt(5);
}
frame 85 {
tar.shakeIt(5);
}
frame 87 {
tar.shakeIt(5);
}
frame 89 {
tar.shakeIt(5);
}
frame 91 {
tar.shakeIt(5);
}
frame 93 {
tar.shakeIt(5);
}
frame 95 {
tar.shakeIt(5);
}
frame 97 {
tar.shakeIt(5);
}
frame 99 {
tar.shakeIt(5);
}
frame 101 {
tar.shakeIt(5);
}
frame 103 {
tar.shakeIt(5);
}
frame 105 {
tar.shakeIt(5);
}
frame 107 {
tar.shakeIt(5);
}
frame 109 {
tar.shakeIt(5);
}
frame 111 {
tar.shakeIt(5);
}
frame 113 {
tar.shakeIt(5);
}
frame 115 {
tar.shakeIt(5);
}
frame 117 {
tar.shakeIt(5);
}
frame 119 {
tar.shakeIt(5);
}
frame 121 {
tar.shakeIt(5);
}
frame 123 {
tar.shakeIt(5);
}
frame 125 {
tar.shakeIt(5);
}
frame 127 {
tar.shakeIt(5);
}
frame 129 {
tar.shakeIt(5);
}
frame 131 {
tar.shakeIt(5);
}
frame 133 {
tar.shakeIt(5);
}
frame 135 {
tar.shakeIt(5);
}
frame 137 {
tar.shakeIt(5);
}
frame 139 {
tar.shakeIt(5);
}
frame 141 {
tar.shakeIt(5);
}
frame 143 {
tar.shakeIt(5);
}
frame 145 {
tar.shakeIt(5);
}
frame 147 {
tar.shakeIt(5);
}
frame 149 {
tar.shakeIt(5);
}
frame 151 {
tar.shakeIt(5);
}
frame 153 {
tar.shakeIt(5);
}
frame 155 {
tar.shakeIt(5);
}
frame 157 {
tar.shakeIt(5);
}
frame 159 {
tar.shakeIt(5);
}
frame 161 {
tar.shakeIt(5);
}
frame 163 {
tar.shakeIt(5);
}
frame 165 {
tar.shakeIt(5);
}
frame 167 {
tar.shakeIt(5);
}
frame 169 {
stop();
this._parent._parent.startBFight1();
}
frame 178 {
}
frame 179 {
tar.shakeIt(5);
}
frame 181 {
tar.shakeIt(5);
}
frame 183 {
tar.shakeIt(5);
}
frame 185 {
tar.shakeIt(5);
}
frame 187 {
tar.shakeIt(5);
}
frame 189 {
tar.shakeIt(5);
}
frame 191 {
tar.shakeIt(5);
}
frame 193 {
tar.shakeIt(5);
}
frame 195 {
tar.shakeIt(5);
}
frame 197 {
tar.shakeIt(5);
}
frame 199 {
tar.shakeIt(5);
}
frame 201 {
tar.shakeIt(5);
}
frame 203 {
tar.shakeIt(5);
}
frame 205 {
tar.shakeIt(5);
}
frame 207 {
tar.shakeIt(5);
}
frame 209 {
tar.shakeIt(5);
}
frame 211 {
tar.shakeIt(5);
}
frame 213 {
tar.shakeIt(5);
}
frame 215 {
tar.shakeIt(5);
}
frame 217 {
tar.shakeIt(5);
}
frame 219 {
tar.shakeIt(5);
}
frame 221 {
tar.shakeIt(5);
}
frame 223 {
tar.shakeIt(5);
}
frame 225 {
tar.shakeIt(5);
}
frame 227 {
tar.shakeIt(5);
}
frame 229 {
tar.shakeIt(5);
}
frame 231 {
tar.shakeIt(5);
}
frame 233 {
tar.shakeIt(5);
}
frame 235 {
tar.shakeIt(5);
}
frame 237 {
tar.shakeIt(5);
}
frame 239 {
tar.shakeIt(5);
}
frame 241 {
tar.shakeIt(5);
}
frame 243 {
tar.shakeIt(5);
}
frame 245 {
tar.shakeIt(5);
}
frame 247 {
tar.shakeIt(5);
}
frame 249 {
tar.shakeIt(5);
}
frame 251 {
tar.shakeIt(5);
}
frame 253 {
tar.shakeIt(5);
}
frame 255 {
tar.shakeIt(5);
}
frame 257 {
tar.shakeIt(5);
}
frame 259 {
tar.shakeIt(5);
}
frame 261 {
tar.shakeIt(5);
}
frame 263 {
tar.shakeIt(5);
}
frame 265 {
tar.shakeIt(5);
}
frame 267 {
tar.shakeIt(5);
}
frame 269 {
tar.shakeIt(5);
}
frame 393 {
stop();
}
}
movieClip 7849 {
}
movieClip 7854 {
}
movieClip 7861 {
}
movieClip 7868 {
frame 1 {
stop();
}
frame 106 {
stop();
this.donesplode = true;
}
}
movieClip 7875 {
}
movieClip 7882 {
}
movieClip 7907 {
}
movieClip 7908 {
}
movieClip 7909 {
frame 13 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7910 {
frame 1 {
stop();
}
}
movieClip 7911 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 6;
this.ind = true;
this.typ = 0;
this.nam = 'Turret';
this.picid = 120;
this._parent.registerBad(this);
}
stop();
}
}
movieClip 7922 {
}
movieClip 7923 {
}
movieClip 7926 {
frame 15 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7927 {
frame 1 {
stop();
}
}
movieClip 7928 {
frame 1 {
if (!this.ind) {
this.hp = 1;
this.ind = true;
this.typ = 1;
this.nam = 'Runner';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 126;
}
stop();
}
}
movieClip 7931 {
}
movieClip 7944 {
frame 37 {
this._parent.gotoAndStop('move');
}
}
movieClip 7947 {
}
movieClip 7948 {
}
movieClip 7949 {
frame 10 {
stop();
var t = this._parent._parent;
t.removable = true;
}
}
movieClip 7950 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 7951 {
frame 1 {
if (!this.ind) {
this.hp = 1;
this.ind = true;
this.typ = 2;
this.nam = 'Zombie';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 119;
this.inground = true;
}
stop();
}
}
movieClip 7958 {
}
movieClip 7959 {
}
movieClip 7962 {
frame 95 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 7963 {
frame 1 {
stop();
}
}
movieClip 7964 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 10;
this.ind = true;
this.typ = 3;
this.nam = 'Polarbear';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 115;
}
stop();
}
}
movieClip 7969 {
}
movieClip 7970 {
}
movieClip 7977 {
}
movieClip 7978 {
frame 8 {
var tar = this._parent._parent._parent;
tar.chkBadBul(this._parent._parent, box);
}
frame 14 {
stop();
}
}
movieClip 7981 {
frame 1 {
stop();
}
}
movieClip 7982 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 11;
this.ind = true;
this.typ = 4;
this.nam = 'Toxie';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 121;
}
stop();
}
}
movieClip 7989 {
}
movieClip 7990 {
}
movieClip 7995 {
frame 6 {
var tar = this._parent._parent._parent;
tar.chkBadBul(this._parent._parent, box);
}
}
movieClip 7998 {
frame 17 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 8001 {
frame 1 {
stop();
}
}
movieClip 8002 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 7;
this.ind = true;
this.typ = 5;
this.nam = 'Rambo';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 104;
}
stop();
}
}
movieClip 8007 {
}
movieClip 8008 {
}
movieClip 8013 {
}
movieClip 8018 {
}
movieClip 8019 {
frame 13 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 8020 {
frame 1 {
stop();
}
}
movieClip 8021 {
frame 1 {
if (!this.ind) {
this.hp = 1;
this.ind = true;
this.typ = 6;
this.nam = 'Sharpshoot';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 123;
}
stop();
}
}
movieClip 8024 {
}
movieClip 8035 {
frame 31 {
stop();
}
}
movieClip 8038 {
frame 20 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 8039 {
frame 1 {
stop();
}
}
movieClip 8040 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 50;
this.ind = true;
this.typ = 7;
this.nam = 'Robocop';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 103;
}
stop();
}
}
movieClip 8043 {
}
movieClip 8048 {
frame 9 {
stop();
this._parent.gotoAndStop('dir0');
}
}
movieClip 8050 {
}
movieClip 8055 {
}
movieClip 8062 {
}
movieClip 8069 {
}
movieClip 8070 {
frame 1 {
stop();
}
}
movieClip 8071 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 15;
this.ind = true;
this.typ = 8;
this.nam = 'BigTurret';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 117;
}
stop();
}
}
movieClip 8074 {
}
movieClip 8075 {
frame 1 {
stop();
}
}
movieClip 8076 {
frame 1 {
if (!this.ind) {
stop();
this._visible = false;
this.hp = 1;
this.ind = true;
this.typ = 13;
this.nam = 'Powerup';
this._parent.registerBad(this);
}
}
}
movieClip 8079 {
}
movieClip 8082 {
}
movieClip 8091 {
}
movieClip 8096 {
}
movieClip 8101 {
}
movieClip 8112 {
}
movieClip 8121 {
}
movieClip 8130 {
}
movieClip 8139 {
}
movieClip 8150 {
frame 25 {
stop();
}
}
movieClip 8159 {
frame 4 {
stop();
}
}
movieClip 8162 {
}
movieClip 8165 {
}
movieClip 8168 {
}
movieClip 8169 {
frame 6 {
stop();
}
}
movieClip 8183 {
}
movieClip 8184 {
frame 46 {
stop();
this._parent._parent._parent.endBeamUp(this._parent._parent);
}
}
movieClip 8185 {
}
movieClip 8186 {
frame 1 {
stop();
}
}
movieClip 8191 {
}
movieClip 8200 {
}
movieClip 8205 {
}
movieClip 8210 {
}
movieClip 8221 {
}
movieClip 8230 {
}
movieClip 8239 {
}
movieClip 8248 {
}
movieClip 8259 {
frame 25 {
stop();
}
}
movieClip 8268 {
}
movieClip 8271 {
}
movieClip 8274 {
}
movieClip 8275 {
}
movieClip 8276 {
frame 1 {
stop();
}
}
movieClip 8279 {
}
movieClip 8284 {
}
movieClip 8295 {
frame 5 {
var tar = this._parent._parent._parent;
tar.shootMiniArm(this._parent._parent);
}
frame 26 {
this._parent.gotoAndStop('rest');
}
}
movieClip 8300 {
}
movieClip 8318 {
}
movieClip 8326 {
}
movieClip 8337 {
}
movieClip 8338 {
frame 1 {
tar = this._parent._parent._parent;
}
frame 1 {
}
frame 2 {
tar.shakeIt(5);
}
frame 5 {
tar.shakeIt(5);
}
frame 8 {
tar.shakeIt(5);
}
frame 15 {
tar.shakeIt(5);
}
frame 18 {
tar.shakeIt(5);
}
frame 21 {
tar.shakeIt(5);
}
frame 311 {
stop();
tar.startBoss1();
this._parent._parent.removeable = true;
}
}
movieClip 8339 {
frame 1 {
stop();
}
}
movieClip 8340 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 65;
this.ind = true;
this.typ = 11;
this.nam = 'Krang';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 107;
}
stop();
}
}
movieClip 8346 {
frame 1 {
stop();
}
frame 63 {
this._parent.goWaterfall();
}
frame 168 {
stop();
this._parent.initWaterfall();
}
}
movieClip 8353 {
}
movieClip 8357 {
}
movieClip 8358 {
}
movieClip 8361 {
}
movieClip 8367 {
frame 95 {
if (!_parent.sucked) {
gotoAndPlay('loopy');
}
}
frame 113 {
gotoAndPlay('panicloop');
}
}
movieClip 8372 {
}
movieClip 8377 {
}
movieClip 8381 {
}
movieClip 8382 {
frame 1 {
stop();
sucked = false;
}
frame 201 {
sucked = true;
}
frame 325 {
this._parent.goAlien();
stop();
}
}
movieClip 8390 {
}
movieClip 8400 {
frame 196 {
stop();
}
}
movieClip 8401 {
}
movieClip 8406 {
}
movieClip 8407 {
}
movieClip 8416 {
}
movieClip 8421 {
frame 12 {
stop();
}
frame 131 {
stop();
}
}
movieClip 8426 {
frame 9 {
stop();
}
}
movieClip 8429 {
}
movieClip 8440 {
frame 11 {
stop();
}
}
movieClip 8441 {
frame 11 {
stop();
}
}
movieClip 8442 {
}
movieClip 8443 {
}
movieClip 8446 {
}
movieClip 8449 {
}
movieClip 8450 {
frame 10 {
stop();
}
}
movieClip 8453 {
frame 30 {
stop();
}
}
movieClip 8470 {
}
movieClip 8471 {
}
movieClip 8472 {
frame 90 {
stop();
}
}
movieClip 8482 {
}
movieClip 8483 {
frame 79 {
stop();
}
}
movieClip 8490 {
}
movieClip 8493 {
frame 30 {
stop();
}
}
movieClip 8494 {
}
movieClip 8501 {
}
movieClip 8504 {
frame 30 {
stop();
}
}
movieClip 8505 {
}
movieClip 8518 {
frame 33 {
stop();
}
}
movieClip 8532 {
frame 61 {
stop();
}
}
movieClip 8535 {
frame 40 {
stop();
}
}
movieClip 8540 {
frame 22 {
stop();
}
}
movieClip 8545 {
frame 22 {
stop();
}
}
movieClip 8558 {
frame 33 {
stop();
}
}
movieClip 8571 {
frame 42 {
stop();
}
}
movieClip 8575 {
frame 13 {
stop();
}
}
movieClip 8582 {
}
movieClip 8583 {
frame 113 {
stop();
}
}
movieClip 8584 {
}
movieClip 8595 {
}
movieClip 8598 {
}
movieClip 8599 {
frame 41 {
stop();
}
}
movieClip 8600 {
frame 1 {
if (!this.inited) {
this.inited = true;
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 8601 {
frame 1 {
stop();
}
}
movieClip 8604 {
frame 1 {
stop();
}
frame 2 {
var tar = this._parent;
}
frame 4 {
tar.shakeIt(5);
}
frame 6 {
tar.shakeIt(5);
}
frame 8 {
tar.shakeIt(5);
}
frame 10 {
tar.shakeIt(5);
}
frame 12 {
tar.shakeIt(5);
}
frame 14 {
tar.shakeIt(5);
}
frame 16 {
tar.shakeIt(5);
}
frame 18 {
tar.shakeIt(5);
}
frame 20 {
tar.shakeIt(5);
}
frame 22 {
tar.shakeIt(5);
}
frame 24 {
tar.shakeIt(5);
}
frame 26 {
tar.shakeIt(5);
}
frame 28 {
tar.shakeIt(5);
}
frame 30 {
tar.shakeIt(5);
}
frame 32 {
tar.shakeIt(5);
}
frame 34 {
tar.shakeIt(5);
}
frame 36 {
tar.shakeIt(5);
}
frame 38 {
tar.shakeIt(5);
}
frame 40 {
tar.shakeIt(5);
}
frame 42 {
tar.shakeIt(5);
}
frame 44 {
tar.shakeIt(5);
}
frame 46 {
tar.shakeIt(5);
}
frame 48 {
tar.shakeIt(5);
}
frame 50 {
tar.shakeIt(5);
}
frame 52 {
tar.shakeIt(5);
}
frame 54 {
tar.shakeIt(5);
}
frame 56 {
tar.shakeIt(5);
}
frame 58 {
tar.shakeIt(5);
}
frame 60 {
tar.shakeIt(5);
}
frame 62 {
tar.shakeIt(5);
}
frame 64 {
tar.shakeIt(5);
}
frame 66 {
tar.shakeIt(5);
}
frame 68 {
tar.shakeIt(5);
}
frame 70 {
tar.shakeIt(5);
}
frame 72 {
tar.shakeIt(5);
}
frame 74 {
tar.shakeIt(5);
}
frame 76 {
tar.shakeIt(5);
}
frame 78 {
tar.shakeIt(5);
}
frame 80 {
tar.shakeIt(5);
}
frame 82 {
tar.shakeIt(5);
}
frame 84 {
tar.shakeIt(5);
}
frame 86 {
tar.shakeIt(5);
}
frame 88 {
tar.shakeIt(5);
}
frame 90 {
tar.shakeIt(5);
}
frame 92 {
tar.shakeIt(5);
}
frame 94 {
tar.shakeIt(5);
}
frame 96 {
tar.shakeIt(5);
}
frame 98 {
tar.shakeIt(5);
}
frame 100 {
tar.shakeIt(5);
}
frame 102 {
tar.shakeIt(5);
}
frame 104 {
tar.shakeIt(5);
}
frame 106 {
tar.shakeIt(5);
}
frame 108 {
tar.shakeIt(5);
}
frame 110 {
tar.shakeIt(5);
}
frame 112 {
tar.shakeIt(5);
}
frame 114 {
tar.shakeIt(5);
}
frame 116 {
tar.shakeIt(5);
}
frame 118 {
tar.shakeIt(5);
}
frame 120 {
tar.shakeIt(5);
}
frame 122 {
tar.shakeIt(5);
}
frame 124 {
tar.shakeIt(5);
}
frame 126 {
tar.shakeIt(5);
}
frame 128 {
tar.shakeIt(5);
}
frame 130 {
tar.shakeIt(5);
}
frame 132 {
tar.shakeIt(5);
}
frame 134 {
tar.shakeIt(5);
}
frame 136 {
tar.shakeIt(5);
}
frame 138 {
tar.shakeIt(5);
}
frame 140 {
tar.shakeIt(5);
}
frame 142 {
tar.shakeIt(5);
}
frame 144 {
tar.shakeIt(5);
}
frame 145 {
stop();
tar.startBoss2();
}
}
movieClip 8607 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 8612 {
}
movieClip 8613 {
}
movieClip 8618 {
}
movieClip 8619 {
}
movieClip 8622 {
frame 1 {
stop();
}
}
movieClip 8623 {
frame 1 {
if (!this.ind) {
this.hp = 1;
this.ind = true;
this.typ = 14;
this.nam = 'Nakey';
this._parent.registerBad(this);
this.notouchy = false;
this.picid = 106;
}
stop();
}
}
movieClip 8624 {
frame 1 {
this._parent.registerRock(this);
}
}
movieClip 8625 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 6;
this.ind = true;
this.typ = 18;
this.nam = 'Zooker';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 118;
}
stop();
}
}
movieClip 8628 {
}
movieClip 8635 {
}
movieClip 8638 {
frame 4 {
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 8641 {
frame 12 {
stop();
}
}
movieClip 8642 {
frame 1 {
stop();
}
}
movieClip 8643 {
frame 1 {
if (!this.ind) {
this.hp = 30;
this.ind = true;
this.typ = 20;
this.nam = 'Ryu';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 125;
}
stop();
}
}
movieClip 8648 {
}
movieClip 8649 {
}
movieClip 8654 {
}
movieClip 8655 {
frame 12 {
stop();
}
}
movieClip 8656 {
frame 1 {
stop();
}
}
movieClip 8657 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 10;
this.ind = true;
this.typ = 21;
this.nam = 'Stinger';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 122;
}
stop();
}
}
movieClip 8662 {
}
movieClip 8663 {
}
movieClip 8666 {
frame 4 {
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 8671 {
frame 1 {
stop();
}
}
movieClip 8672 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 8;
this.ind = true;
this.typ = 22;
this.nam = 'KidIcarus';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 109;
}
stop();
}
}
movieClip 8679 {
}
movieClip 8680 {
}
movieClip 8681 {
frame 19 {
stop();
this._parent.gotoAndStop('rest');
}
}
movieClip 8682 {
frame 14 {
stop();
this._parent._parent.removeable = true;
}
}
movieClip 8683 {
frame 1 {
stop();
}
}
movieClip 8684 {
frame 1 {
if (!this.ind) {
this.metal = true;
this.hp = 14;
this.ind = true;
this.typ = 23;
this.nam = 'Pterodrop';
this._parent.registerBad(this);
this.notouchy = true;
this.picid = 116;
}
stop();
}
}
movieClip 8689 {
frame 9 {
stop();
}
}
movieClip 8711 {
}
movieClip 8721 {
}
movieClip 8722 {
frame 1 {
stop();
var tar = this._parent;
}
frame 49 {
tar.shakeIt(5);
}
frame 49 {
var tar = this._parent;
tar.chkBadBul(block, block);
}
frame 51 {
tar.chkBadBul(block, block);
}
frame 53 {
tar.chkBadBul(block, block);
}
frame 55 {
tar.chkBadBul(block, block);
}
frame 57 {
tar.chkBadBul(block, block);
}
frame 59 {
tar.chkBadBul(block, block);
}
frame 61 {
tar.chkBadBul(block, block);
}
frame 63 {
tar.chkBadBul(block, block);
}
frame 65 {
tar.chkBadBul(block, block);
}
frame 67 {
tar.chkBadBul(block, block);
}
frame 69 {
tar.chkBadBul(block, block);
}
frame 71 {
tar.chkBadBul(block, block);
}
frame 73 {
tar.chkBadBul(block, block);
}
frame 141 {
stop();
this._parent.endRockStomp();
}
frame 185 {
tar.shakeIt(5);
}
frame 185 {
var tar = this._parent;
tar.chkBadBul(block, block);
}
frame 187 {
tar.chkBadBul(block, block);
}
frame 189 {
tar.chkBadBul(block, block);
}
frame 191 {
tar.chkBadBul(block, block);
}
frame 193 {
tar.chkBadBul(block, block);
}
frame 195 {
tar.chkBadBul(block, block);
}
frame 197 {
tar.chkBadBul(block, block);
}
frame 199 {
tar.chkBadBul(block, block);
}
frame 201 {
tar.chkBadBul(block, block);
}
frame 203 {
tar.chkBadBul(block, block);
}
frame 205 {
tar.chkBadBul(block, block);
}
frame 207 {
tar.chkBadBul(block, block);
}
frame 209 {
tar.chkBadBul(block, block);
}
frame 211 {
tar.chkBadBul(block, block);
}
frame 279 {
stop();
this._parent.endRockStomp();
}
frame 325 {
tar.shakeIt(5);
}
frame 325 {
var tar = this._parent;
tar.chkBadBul(block, block);
}
frame 327 {
tar.chkBadBul(block, block);
}
frame 329 {
tar.chkBadBul(block, block);
}
frame 331 {
tar.chkBadBul(block, block);
}
frame 333 {
tar.chkBadBul(block, block);
}
frame 335 {
tar.chkBadBul(block, block);
}
frame 337 {
tar.chkBadBul(block, block);
}
frame 339 {
tar.chkBadBul(block, block);
}
frame 341 {
tar.chkBadBul(block, block);
}
frame 343 {
tar.chkBadBul(block, block);
}
frame 345 {
tar.chkBadBul(block, block);
}
frame 347 {
tar.chkBadBul(block, block);
}
frame 349 {
tar.chkBadBul(block, block);
}
frame 351 {
tar.chkBadBul(block, block);
}
frame 353 {
tar.chkBadBul(block, block);
}
frame 355 {
tar.chkBadBul(block, block);
}
frame 420 {
stop();
this._parent.endRockStomp();
}
}
movieClip 8789 {
}
movieClip 8790 {
frame 1 {
var tar = this._parent;
tar.shakeIt(5);
}
frame 3 {
tar.shakeIt(5);
}
frame 5 {
tar.shakeIt(5);
}
frame 8 {
tar.shakeIt(5);
}
frame 10 {
tar.shakeIt(5);
}
frame 13 {
tar.shakeIt(5);
}
frame 16 {
tar.shakeIt(5);
}
frame 18 {
tar.shakeIt(5);
}
frame 20 {
tar.shakeIt(5);
}
frame 22 {
tar.shakeIt(5);
}
frame 24 {
tar.shakeIt(5);
}
frame 26 {
tar.shakeIt(5);
}
frame 28 {
tar.shakeIt(5);
}
frame 30 {
tar.shakeIt(5);
}
frame 32 {
tar.shakeIt(5);
}
frame 34 {
tar.shakeIt(5);
}
frame 36 {
tar.shakeIt(5);
}
frame 38 {
tar.shakeIt(5);
}
frame 40 {
tar.shakeIt(5);
}
frame 42 {
tar.shakeIt(5);
}
frame 44 {
tar.shakeIt(5);
}
frame 46 {
tar.shakeIt(5);
}
frame 48 {
tar.shakeIt(5);
}
frame 50 {
tar.shakeIt(5);
}
frame 52 {
tar.shakeIt(5);
}
frame 54 {
tar.shakeIt(5);
}
frame 56 {
tar.shakeIt(5);
}
frame 58 {
tar.shakeIt(5);
}
frame 60 {
tar.shakeIt(5);
}
frame 62 {
tar.shakeIt(5);
}
frame 64 {
tar.shakeIt(5);
}
frame 66 {
tar.shakeIt(5);
}
frame 68 {
tar.shakeIt(5);
}
frame 70 {
tar.shakeIt(5);
}
frame 110 {
tar.shakeIt(15);
}
frame 110 {
_parent.streamy.play();
_parent.streamy.vomit.gotoAndStop(2);
}
frame 176 {
_parent.streamy.play();
}
frame 227 {
_parent.streamy.play();
}
frame 266 {
_parent.streamy.play();
}
frame 326 {
_parent.streamy.play();
_parent.streamy.vomit.endbarf = true;
}
frame 335 {
_parent.streamy.nextFrame();
}
frame 343 {
_parent.streamy.nextFrame();
}
frame 351 {
_parent.streamy.nextFrame();
}
frame 357 {
_parent.streamy.nextFrame();
}
frame 363 {
_parent.streamy.nextFrame();
}
frame 368 {
_parent.streamy.nextFrame();
}
frame 372 {
_parent.streamy.nextFrame();
}
frame 376 {
_parent.streamy.nextFrame();
}
frame 379 {
_parent.streamy.nextFrame();
}
frame 382 {
_parent.streamy.nextFrame();
}
frame 385 {
_parent.streamy.nextFrame();
}
frame 425 {
_parent.streamy.play();
}
frame 426 {
stop();
}
}
movieClip 8795 {
}
movieClip 8798 kirbarf24 {
}
movieClip 8801 kirbarf35 {
}
movieClip 8804 kirbarf46 {
}
movieClip 8807 kirbarf56 {
}
movieClip 8810 kirbarf67 {
}
movieClip 8813 kirbarf78 {
}
movieClip 8816 kirbarf89 {
}
movieClip 8819 kirbarf1 {
}
movieClip 8822 kirbarf4 {
}
movieClip 8825 kirbarf5 {
}
movieClip 8828 kirbarf6 {
}
movieClip 8831 kirbarf7 {
}
movieClip 8834 kirbarf8 {
}
movieClip 8837 kirbarf9 {
}
movieClip 8840 kirbarf10 {
}
movieClip 8843 kirbarf11 {
}
movieClip 8846 kirbarf12 {
}
movieClip 8849 kirbarf14 {
}
movieClip 8852 kirbarf15 {
}
movieClip 8855 kirbarf16 {
}
movieClip 8858 kirbarf17 {
}
movieClip 8861 kirbarf18 {
}
movieClip 8864 kirbarf19 {
}
movieClip 8867 kirbarf20 {
}
movieClip 8870 kirbarf21 {
}
movieClip 8873 kirbarf22 {
}
movieClip 8876 kirbarf23 {
}
movieClip 8879 kirbarf25 {
}
movieClip 8882 kirbarf26 {
}
movieClip 8885 kirbarf27 {
}
movieClip 8888 kirbarf28 {
}
movieClip 8891 kirbarf29 {
}
movieClip 8894 kirbarf30 {
}
movieClip 8897 kirbarf31 {
}
movieClip 8900 kirbarf32 {
}
movieClip 8903 kirbarf33 {
}
movieClip 8906 kirbarf34 {
}
movieClip 8909 kirbarf36 {
}
movieClip 8912 kirbarf37 {
}
movieClip 8915 kirbarf38 {
}
movieClip 8918 kirbarf39 {
}
movieClip 8921 kirbarf40 {
}
movieClip 8924 kirbarf41 {
}
movieClip 8927 kirbarf42 {
}
movieClip 8930 kirbarf43 {
}
movieClip 8933 kirbarf44 {
}
movieClip 8936 kirbarf45 {
}
movieClip 8939 kirbarf47 {
}
movieClip 8942 kirbarf48 {
}
movieClip 8945 kirbarf49 {
}
movieClip 8948 kirbarf50 {
}
movieClip 8951 kirbarf13 {
}
movieClip 8954 kirbarf51 {
}
movieClip 8957 kirbarf52 {
}
movieClip 8960 kirbarf53 {
}
movieClip 8963 kirbarf54 {
}
movieClip 8966 kirbarf55 {
}
movieClip 8969 kirbarf57 {
}
movieClip 8972 kirbarf58 {
}
movieClip 8975 kirbarf59 {
}
movieClip 8978 kirbarf60 {
}
movieClip 8981 kirbarf61 {
}
movieClip 8984 kirbarf62 {
}
movieClip 8987 kirbarf63 {
}
movieClip 8990 kirbarf64 {
}
movieClip 8993 kirbarf65 {
}
movieClip 8996 kirbarf66 {
}
movieClip 8999 kirbarf68 {
}
movieClip 9002 kirbarf69 {
}
movieClip 9005 kirbarf70 {
}
movieClip 9008 kirbarf71 {
}
movieClip 9011 kirbarf72 {
}
movieClip 9014 kirbarf73 {
}
movieClip 9017 kirbarf74 {
}
movieClip 9020 kirbarf75 {
}
movieClip 9023 kirbarf76 {
}
movieClip 9026 kirbarf77 {
}
movieClip 9029 kirbarf79 {
}
movieClip 9032 kirbarf80 {
}
movieClip 9035 kirbarf81 {
}
movieClip 9038 kirbarf82 {
}
movieClip 9041 kirbarf83 {
}
movieClip 9044 kirbarf84 {
}
movieClip 9047 kirbarf85 {
}
movieClip 9050 kirbarf86 {
}
movieClip 9053 kirbarf87 {
}
movieClip 9056 kirbarf88 {
}
movieClip 9059 kirbarf90 {
}
movieClip 9062 kirbarf91 {
}
movieClip 9065 kirbarf92 {
}
movieClip 9068 kirbarf93 {
}
movieClip 9071 kirbarf94 {
}
movieClip 9074 kirbarf95 {
}
movieClip 9077 kirbarf96 {
}
movieClip 9080 kirbarf97 {
}
movieClip 9083 kirbarf98 {
}
movieClip 9086 kirbarf99 {
}
movieClip 9089 kirbarf2 {
}
movieClip 9092 kirbarf3 {
}
movieClip 9093 {
frame 1 {
function movethings() {
var v2 = 0;
while (v2 < enemies.length) {
var v1 = enemies[v2];
v1._y += 6;
v1._x += v1.dir;
if (v1._y > 300) {
v1.unloadMovie();
v1.removeMovieClip();
enemies.splice(v2, 1);
--v2;
}
++v2;
}
}
stop();
randy = 0;
ran = 0;
effcv = 0;
enemies = new Array();
chars = new Array();
var i = 0;
while (i < 99) {
chars.push(i);
++i;
}
this.onEnterFrame = function () {
movethings();
ran = random(2);
if (!_parent.endbarf && ran == 1) {
ran = random(chars.length);
var v3 = chars[ran];
e = this.attachMovie('kirbarf' + v3, 'cloccudaa' + effcv, effcv + 100);
++effcv;
chars.splice(ran, 1);
e._x = -177 - random(10);
e._y = -25 - random(6);
e.dir = 4 - random(8);
enemies.push(e);
}
};
}
}
movieClip 9094 {
frame 1 {
stop();
endbarf = false;
}
frame 2 {
stop();
}
}
movieClip 9095 {
}
movieClip 9104 {
}
movieClip 9105 {
}
movieClip 9107 {
}
movieClip 9109 {
}
movieClip 9111 {
}
movieClip 9164 {
frame 13 {
stop();
}
}
movieClip 9167 {
frame 26 {
stop();
}
}
movieClip 9168 {
frame 1 {
rad = random(10) - 5;
this.onEnterFrame = function () {
tchunk._x += rad;
};
}
}
movieClip 9191 {
frame 35 {
stop();
}
}
movieClip 9198 {
}
movieClip 9205 {
}
movieClip 9218 {
frame 28 {
var randy = random(2);
if (randy == 1) {
gotoAndPlay(1);
}
}
}
movieClip 9231 {
frame 7 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 12 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 18 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 23 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 28 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 33 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
frame 39 {
var ran = 0;
ran = random(7);
if (ran == 0) {
gotoAndPlay('one');
}
if (ran == 1) {
gotoAndPlay('two');
}
if (ran == 2) {
gotoAndPlay('three');
}
if (ran == 3) {
gotoAndPlay('four');
}
if (ran == 4) {
gotoAndPlay('five');
}
if (ran == 5) {
gotoAndPlay('six');
}
if (ran == 6) {
gotoAndPlay('seven');
}
}
}
movieClip 9256 {
}
movieClip 9259 {
}
movieClip 9268 smokerise {
frame 9 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9269 {
frame 1 {
var effcv = 0;
this.onEnterFrame = function () {
e = this.attachMovie('smokerise', 'cloccudaa' + effcv, effcv + 100);
++effcv;
e._x = 104 - random(106);
e._y = 162 - random(130);
};
}
}
movieClip 9285 {
frame 1 {
}
frame 1215 {
stop();
var tar = this._parent._parent;
tar.endContra();
}
}
movieClip 9286 {
frame 1 {
stop();
vomit.setMask(damask);
}
frame 46 {
stop();
vomit.setMask(damask);
}
frame 47 {
stop();
vomit.setMask(damask);
}
frame 48 {
stop();
vomit.setMask(damask);
}
frame 49 {
stop();
vomit.setMask(damask);
}
frame 50 {
stop();
}
frame 382 {
stop();
}
}
movieClip 9299 {
}
// unknown tag 88 length 37
movieClip 9305 {
frame 520 {
docmsg.text = _root.contradocmsg;
}
frame 638 {
stop();
_root.goPunchout();
}
}
movieClip 9306 {
frame 1 {
function switchConts() {
d.conts.A = 86;
d.conts.B = 67;
d.conts.L = 65;
d.conts.R = 68;
d.conts.U = 87;
d.conts.D = 83;
}
function updateHud(bad) {
if (d.hp < 0) {
d.hp = 0;
}
d.maxhp = 1;
_root.hud.updateMe(d);
var v3 = 0;
while (v3 < plays.length) {
var v2 = plays[v3];
if (v2.rage > v2.maxrage) {
v2.rage = v2.maxrage;
}
if (v2.rage >= v2.maxrage && !v2.raging) {
v2.raging = true;
v2.rage = v2.maxrage;
v2.ragecv = 0;
v2.ragecols = new Array();
v2.ragecols[0] = new Array(256, 0, 0);
v2.ragecols[1] = new Array(256, 256, 256);
v2.ragecols[2] = new Array(256, 256, 0);
v2.ragecolcv = 0;
}
if (v2.rage < v2.maxrage) {
v2.raging = false;
v2.myColor.setTint(0, 0, 0, 0);
}
++v3;
}
_root.contraRage((d.rage / d.maxrage) * 100);
if (bad != undefined) {
if (bad.hp < 0) {
bad.hp = 0;
}
_root.hud.updateBad(bad);
}
}
function twoPlayerIntro() {
var v2 = this._parent.attachMovie('twoplayerintro', 'popper', 9999);
v2.con = d.conts;
v2.aup = false;
v2.bup = false;
v2.onEnterFrame = function () {
if (!Key.isDown(this.con.A)) {
this.aup = true;
}
if (!Key.isDown(this.con.B)) {
this.bup = true;
}
if (Key.isDown(this.con.A) && this.aup) {
this.aup = false;
this._parent.gam.switchConts();
this._parent.gam.two = true;
this._parent.gam.plays.push(g);
this._parent.gam.initGuy(g);
this._parent.gam.g._x = d._x;
this._parent.gam.g._y = d._y - 5;
delete this._parent.gam.keyListener;
this._parent.gam.pausy = false;
this._parent.gam.nokeys = false;
this.unloadMovie();
this.removeMovieClip();
}
if (Key.isDown(this.con.B) && this.bup) {
this.bup = false;
this._parent.gam.pausy = false;
this._parent.gam.nokeys = false;
this.unloadMovie();
this.removeMovieClip();
}
};
}
function goWaterfall() {
stopAllSounds();
introloop2.start();
introloop2.onSoundComplete = function () {
lev2muse.start(0, 999);
};
var v2 = 0;
while (v2 < plays.length) {
var v3 = plays[v2];
v3._x = (v2 + 1) * 50;
v3._y = 194;
v3.guts.gotoAndStop('rest0');
++v2;
}
fader._x = 0;
this._x = 0;
dbullets = new Array();
bbullets = new Array();
pups = new Array();
vertical = true;
gotoAndStop(2);
bg.ground._visible = false;
boss2._visible = false;
kattacks._visible = false;
wobhome = this._x;
wobdir = -1;
if (skippit2) {
d._y = -1750;
centerOn();
}
}
function initWaterfall() {
pausy = false;
nokeys = false;
}
function registerBad(who) {
baddies.push(who);
}
function endIntro() {
pausy = false;
nokeys = false;
if (skippit) {
stopAllSounds();
d.xvel = 0;
d.yvel = -3;
g.xvel = 0;
g.yvel = -3;
fader._x = 0;
fader.gotoAndPlay(2);
nokeys = true;
pausy = true;
}
}
function initGuy(who) {
who.lives = this._parent.LIVES;
who.hitsoundready = true;
who.rage = 0;
who.maxrage = 100;
who.bultyp = 0;
who.guts.home = who.guts._y;
who.bobdir = -1;
who.bobcv = 0;
who.xvel = 45;
who.yvel = -4;
who.jumping = true;
who.dir = 0;
who.sp = 1.25;
who._xscale = -100;
who.guts.gotoAndStop('jump');
who.firerate = ORIGFIRERATE;
who.firecv = d.firerate;
who.jumpht = 11.25;
who.inwater = false;
updateHud();
}
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function registerRock(who) {
rockies.push(who);
who._visible = false;
who.cv = 0;
who.homex = who._x;
who.homey = who._y;
who.shakedir = 1;
who.closeenough = false;
}
function moveY(who) {
who.virtx = who._x;
who.virty = who._y;
var v8 = who._y + who.yvel;
if (v8 <= who._y) {
who._y += who.yvel;
} else {
if (!who.dropthrough) {
var v4 = false;
for (;;) {
if (!(who._y < v8 && !v4)) break;
++who._y;
++who.virty;
var v3 = 0;
while (v3 < 2) {
var v6 = this['bridge' + v3];
if (shitTest(v6.ground, who.virtx, who.virty)) {
v4 = true;
--who._y;
--who.virty;
who.yvel = 0;
who.jumping = false;
}
++v3;
}
if (who.virty > 236 && who._x < 1780 && !vertical) {
v4 = true;
--who._y;
--who.virty;
who.yvel = 0;
who.jumping = false;
if (!who.inwater) {
who.inwater = true;
who.splashing = true;
who.guts.gotoAndStop('splash');
who.splashcv = 0;
}
}
var v7 = -bottom + 235;
if (who.virty > 236 && who._x >= 1780 && !who.dead && !vertical || who.virty > v7 && vertical && !who.dead) {
if (!who.blinking) {
runDeath(who);
} else {
if (!vertical) {
v4 = true;
who._y = 230;
who.virty = who._y;
who.yvel = -12;
who.jumping = true;
}
}
if (vertical) {
who._y = v7 - 2;
}
}
if (vertical) {
v3 = 0;
while (v3 < 3) {
var v5 = this['plat' + v3];
if (shitTest(v5.ground, who.virtx, who.virty)) {
v4 = true;
--who._y;
--who.virty;
who.yvel = 0;
who.jumping = false;
if (nokeys && !who.runningoff) {
who.guts.gotoAndStop('rest0');
}
who.xvel = v5.xvel * 2;
who.onplatform = true;
}
++v3;
}
}
if (shitTest(bg.ground, who.virtx, who.virty)) {
v4 = true;
--who._y;
--who.virty;
who.yvel = 0;
who.jumping = false;
if (nokeys && !who.runningoff) {
who.guts.gotoAndStop('rest0');
}
}
}
} else {
who._y += who.yvel;
}
}
if (storedv4 && who.hitsoundready && !who.inwater) {
who.hitsoundready = false;
jumpland.start();
}
}
function runDeath(who) {
if (!who.dead) {
--who.lives;
++numdies;
if (this._currentframe == 2) {
++lev2dies;
}
_root.lives = who.lives;
diesound.start();
who.rage = 0;
++numdeaths;
_root.dbox.text = 'LIVES: ' + d.lives;
if (d.lives < 0) {
_root.dbox.text = 'GAME OVER';
}
who.deathcv = 0;
who.dead = true;
who.guts.gotoAndStop('die');
who.jumping = false;
who.yvel = -5;
who.dropthrough = false;
updateHud();
}
}
function phys(who) {
if (who.blinking) {
who._visible = !who._visible;
++who.blinkcv;
if (who.blinkcv >= 100) {
who.blinking = false;
who.blinkcv = 0;
who._visible = true;
}
}
who.virtx = who._x;
who.virty = who._y;
who._x += who.xvel;
moveY(who);
if (!who.onplatform) {
who.xvel *= FRIC;
}
who.yvel += GRAV;
var v2 = Math.abs(who.xvel);
if (v2 < 0.5) {
who.xvel = 0;
}
if (who.yvel > 2) {
who.jumping = true;
who.onplatform = false;
}
if (who.xvel > 0) {
for (;;) {
if (!(shitTest(bg.blocker, who.virtx, who._y - 20) && who.inwater)) break;
who._x -= who.sp;
who.xvel = 0;
who.virtx -= who.sp;
}
}
if (who.xvel < 0) {
for (;;) {
if (!(shitTest(bg.blocker, who.virtx, who._y - 20) && who.inwater)) break;
who._x += who.sp;
who.xvel = 0;
who.virtx += who.sp;
}
}
if (who.jumping && !who.dead && !who.frozen) {
who.guts.gotoAndStop('jump');
}
if (who.dropthrough) {
++who.dropcv;
if (who.dropcv >= 5) {
who.dropcv = 0;
who.dropthrough = false;
}
}
}
function runJump(who) {
var v2 = who.conts;
who.hitsoundready = true;
if (!who.jumping && !who.rageout) {
if (!Key.isDown(v2.D) || who._y >= 226) {
who.yvel -= who.jumpht;
who.jumping = true;
who.onplatform = false;
who.inwater = false;
} else {
nodrop = false;
if (who._x > 1780 && who._y > 200) {
nodrop = true;
}
who.virtx = who._x + bg._x;
if (shitTest(bg.blocker, who.virtx, who._y + 5)) {
nodrop = true;
}
if (arrived2) {
nodrop = true;
}
if (!nodrop) {
who.yvel = 2;
who.dropthrough = true;
who.dropcv = 0;
who.jumping = true;
}
}
}
}
function doRageMove() {
var v1 = 0;
while (v1 < plays.length) {
var v2 = plays[v1];
if (v2.rageout) {
telesound.start();
v2.guts.gotoAndStop('beamup');
}
++v1;
}
}
function endBeamUp(who) {
var v2 = this._parent.attachMovie('con_ragemove', 'ragemove', 99);
}
function endRageOut() {
this._parent.ragemove.unloadMovie();
this._parent.ragemove.removeMovieClip();
pausy = false;
nokeys = false;
var v7 = 0;
while (v7 < baddies.length) {
var v3 = 0;
while (v3 < 2) {
var v5 = this['bridge' + v3];
if (v5.sploded && !v5.donesplode) {
v5.play();
}
++v3;
}
v5 = baddies[v7];
var v9 = this._x + v5._x;
var v10 = this._y + v5._y;
if (v5.typ == 13) {
v5.play();
}
if (v9 > 0 && v9 < 256 && v10 > 0 && v10 < 254 && v5.closeenough && !v5.inground) {
v5.hp -= 25;
if (v5.hp <= 0) {
v5.rising = true;
v5.yvel = -4;
v5.guts.gotoAndStop('dead');
v5.dead = true;
switch (v5.nam) {
case 'Robocop':
_root.aboboMedal('Robopopped');
break;
case 'FIRE':
_root.aboboMedal('Fire Bad!');
break;
case 'Nakey':
_root.aboboMedal('Soap On A Dope');
}
if (v5.typ == 12) {
makePowerUp(v5.ptyp, v5._x, v5._y);
}
if (v5.typ == 13) {
v5.stop();
makePowerUp(v5.ptyp, v5._x, v5._y);
}
if (v5.typ == 11) {
var v4 = 0;
while (v4 < plays.length) {
var v6 = plays[v4];
v6.yvel = -13 - random(5);
v6.xvel = -75 + random(10);
v6.jumping = true;
v6._xscale = -100;
v6.guts.gotoAndStop('jump');
++v4;
}
lev1muse.stop();
v5.virtx = v5._x + this._x;
if (v5.virtx < 128) {
v5._xscale = -100;
} else {
v5._xscale = 100;
}
shakeIt(5);
nokeys = true;
v5.guts.guts2.gotoAndPlay(2);
}
}
updateHud(v5);
}
++v7;
}
v7 = 0;
while (v7 < bbullets.length) {
v5 = bbullets[v7];
v5.unloadMovie();
v5.removeMovieClip();
v5.dead = true;
++v7;
}
bbullets = new Array();
v7 = 0;
while (v7 < plays.length) {
v6 = plays[v7];
if (v6.rageout) {
v6.guts.gotoAndStop('rest0');
v6.rageout = false;
}
++v7;
}
lev1muse.setVolume(MAXVOL);
lev2muse.setVolume(MAXVOL);
if (boss != undefined) {
boss.vx = boss._x + this._x;
if (boss.vx > 0 && boss.vx < 256 && boss._visible && boss.ready) {
var v8 = boss.guts;
if (!v8.head.dead) {
v8.head.hp -= 30;
}
if (!v8.kirby.dead) {
v8.kirby.hp -= 30;
}
if (!v8.arm.dead) {
v8.arm.hp -= 30;
}
if (v8.arm.hp <= 0) {
v8.arm.dead = true;
v8.arm.guts.gotoAndStop('explode');
if (boss.phase == 0) {
boss.aicv = 0;
if (!v8.head.dead) {
boss.phase = 1;
} else {
boss.phase = 2;
}
}
}
if (v8.head.hp <= 0) {
v8.head.dead = true;
v8.head.guts.gotoAndStop('asplode');
if (boss.phase == 1) {
boss.aicv = 0;
if (!v8.arm.dead) {
boss.phase = 0;
} else {
boss.phase = 2;
}
}
}
if (v8.kirby.hp <= 0) {
v8.kirby.dead = true;
v8.kirby.guts.gotoAndStop('hurt');
if (boss.phase == 2) {
boss.aicv = 0;
if (!v8.arm.dead) {
boss.phase = 0;
} else {
boss.phase = 1;
}
}
}
if (v8.head.hp < 0) {
v8.head.hp = 0;
}
if (v8.kirby.hp < 0) {
v8.kirby.hp = 0;
}
if (v8.arm.hp < 0) {
v8.arm.hp = 0;
}
boss.hp = v8.kirby.hp + v8.head.hp + v8.arm.hp;
updateHud(boss);
}
}
if (boss2 != undefined) {
v10 = boss2._y + this._y;
if (v10 > -5 && v10 < 254) {
boss2.hp -= 45;
chkBoss2Hit(null, true);
updateHud(boss2);
}
}
}
function controls(who) {
var v7 = who.conts;
if (who.raging) {
++who.ragecv;
if (who.ragecv >= 2) {
who.ragecv = 0;
who.myColor.setTint(who.ragecols[who.ragecolcv][0], who.ragecols[who.ragecolcv][1], who.ragecols[who.ragecolcv][2], 50);
++who.ragecolcv;
if (who.ragecolcv >= who.ragecols.length) {
who.ragecolcv = 0;
}
}
var v5 = 0;
while (v5 < 1) {
var v10 = this.attachMovie('con_smokewrap', 'poof' + effcv, effcv + 8729);
++effcv;
v10._x = who._x + random(20) - 10;
v10._y = who._y - random(35);
var v4 = random(2);
if (v4 == 0) {
v4 = -1;
}
v10._xscale = v4 * 100;
++v5;
}
if (Key.isDown(v7.A) && Key.isDown(v7.B) && !tranning && !who.rageout) {
v5 = 0;
while (v5 < 2) {
var v6 = this['bridge' + v5];
v6.stop();
++v5;
}
_root.aboboMedal('Bombs Away');
who.rageout = true;
v5 = 0;
while (v5 < baddies.length) {
v6 = baddies[v5];
if (v6.typ == 13) {
v6.stop();
}
++v5;
}
pausy = true;
nokeys = true;
lev1muse.setVolume(0);
lev2muse.setVolume(0);
this._parent.ragecut._visible = true;
this._parent.ragecut.gotoAndPlay(2);
who.rage = 0;
who.guts.gotoAndStop('rest0');
who.aup = false;
who.bup = false;
updateHud();
}
}
if (who.frozen && !who.rageout) {
if (!Key.isDown(v7.L)) {
who.lup = true;
}
if (!Key.isDown(v7.R)) {
who.rup = true;
}
if (Key.isDown(v7.L) && who.lup && who.rup) {
who.lup = false;
if (who.fdir == -1) {
who._x = who.homex + 1.5 * who.fdir;
who.fdir *= -1;
++who.freezecv;
}
}
if (Key.isDown(v7.R) && who.rup && who.lup) {
who.rup = false;
if (who.fdir == 1) {
who._x = who.homex + 1.5 * who.fdir;
who.fdir *= -1;
++who.freezecv;
}
}
if (who.freezecv >= 35) {
who.freezecv = 0;
_root.aboboMedal('Icy Escape');
who.frozen = false;
v10 = this.attachMovie('con_icebreak', 'icebreak' + effcv, effcv + 9911234);
++effcv;
v10._x = who._x;
v10._y = who._y;
who.guts.gotoAndStop('rest0');
}
}
if (!who.dead && !who.frozen && !who.rageout) {
var v9 = false;
if (!Key.isDown(v7.A)) {
who.aup = true;
}
if (!Key.isDown(v7.B)) {
who.bup = true;
who.firecv = who.firerate;
}
if (Key.isDown(v7.A) && who.aup) {
who.aup = false;
runJump(who);
}
if (Key.isDown(v7.B) && who.bup) {
v9 = true;
}
var v8 = false;
if (Key.isDown(v7.R)) {
who.xvel += who.sp;
v8 = true;
who._xscale = -100;
}
if (Key.isDown(v7.L)) {
who.xvel -= who.sp;
v8 = true;
who._xscale = 100;
}
udown = false;
if (Key.isDown(v7.U)) {
udown = true;
}
ddown = false;
if (Key.isDown(v7.D)) {
ddown = true;
}
if (who.inwater && Key.isDown(v7.D)) {
v8 = false;
who.xvel = 0;
}
if (who.inwater) {
++who.bobcv;
if (who.bobcv >= 4) {
who.bobcv = 0;
who.guts._y = who.guts.home + who.bobdir * 0.5;
who.bobdir *= -1;
}
} else {
who.bobcv = 0;
if (who.guts._y != who.guts.home) {
who.guts._y = who.guts.home;
}
}
if (!who.jumping && !who.rageout) {
if (!who.splashing) {
if (!v9) {
if (!v8) {
if (!who.inwater) {
if (!udown && !ddown) {
who.guts.gotoAndStop('rest0');
}
if (udown && !ddown) {
who.guts.gotoAndStop('rest1');
}
if (!udown && ddown) {
who.guts.gotoAndStop('crouch');
}
} else {
if (!udown && !ddown) {
who.guts.gotoAndStop('water2');
}
if (udown && !ddown) {
who.guts.gotoAndStop('water0');
}
if (!udown && ddown) {
who.guts.gotoAndStop('waterduck');
}
}
} else {
if (!who.inwater) {
if (!udown && !ddown) {
who.guts.gotoAndStop('run0');
}
if (udown && !ddown) {
who.guts.gotoAndStop('diagup');
}
if (!udown && ddown) {
who.guts.gotoAndStop('diagdown');
}
} else {
if (!udown && !ddown) {
who.guts.gotoAndStop('water2');
}
if (udown && !ddown) {
who.guts.gotoAndStop('water1');
}
}
}
} else {
if (!v8) {
if (!who.inwater) {
if (!udown && !ddown) {
who.guts.gotoAndStop('fire0');
shootBullet(who, 2, false);
}
if (udown && !ddown) {
who.guts.gotoAndStop('fire1');
shootBullet(who, 0, false);
}
if (!udown && ddown) {
who.guts.gotoAndStop('crouchfire');
shootBullet(who, 2, true);
}
} else {
if (!udown && !ddown) {
who.guts.gotoAndStop('waterfire2');
shootBullet(who, 2, false);
}
if (udown && !ddown) {
who.guts.gotoAndStop('waterfire0');
shootBullet(who, 0, false);
}
if (!udown && ddown) {
who.guts.gotoAndStop('waterduck');
}
}
} else {
if (!who.inwater) {
if (!udown && !ddown) {
who.guts.gotoAndStop('run0');
shootBullet(who, 2, false);
}
if (udown && !ddown) {
who.guts.gotoAndStop('diagup');
shootBullet(who, 1, false);
}
if (!udown && ddown) {
who.guts.gotoAndStop('diagdown');
shootBullet(who, 3, false);
}
} else {
if (!udown && !ddown) {
who.guts.gotoAndStop('waterfire2');
shootBullet(who, 2, false);
}
if (udown && !ddown) {
who.guts.gotoAndStop('waterfire1');
shootBullet(who, 1, false);
}
if (!udown && ddown) {
who.guts.gotoAndStop('waterduck');
}
}
}
}
} else {
++who.splashcv;
if (who.splashcv >= 5) {
who.splashcv = 0;
who.splashing = false;
}
}
} else {
who.guts.gotoAndStop('jump');
if (v9) {
if (!v8) {
if (!udown && !ddown) {
shootBullet(who, 2, false);
}
if (udown && !ddown) {
shootBullet(who, 0, false);
}
if (!udown && ddown) {
shootBullet(who, 4, true);
}
} else {
if (!udown && !ddown) {
shootBullet(who, 2, false);
}
if (udown && !ddown) {
shootBullet(who, 1, false);
}
if (!udown && ddown) {
shootBullet(who, 3, false);
}
}
}
}
}
}
function shootBullet(who, dir, crouch) {
if (!who.dead && !who.frozen) {
++who.firecv;
if (who.firecv >= who.firerate) {
who.firecv = 0;
var v2 = this.attachMovie('con_bullet' + who.bultyp, 'bullet' + effcv, effcv + 991);
++effcv;
if (who.bultyp == 0) {
gunsound0.start();
}
if (who.bultyp == 1 && who.bulpat != 1) {
gunsound1.start();
}
if (who.bultyp == 1 && who.bulpat == 1) {
gunsound4.start();
}
if (who.bultyp == 2) {
gunsound2.start();
}
if (who.bultyp == 3) {
gunsound3.start();
}
v2.bullett = true;
v2._x = who._x;
v2._y = who._y;
v2.typ = who.bultyp;
v2.originator = who;
if (v2.typ == 3) {
v2.diry = -1;
v2.dirx = 1;
v2.offamtx = 0;
v2.offamty = 0;
v2.hax = v2.hitarea._x;
v2.hay = v2.hitarea._y;
}
if (who._xscale == -100) {
if (!crouch || dir == 4) {
if (dir == 0) {
v2._x += 5;
v2._y -= 50;
v2.yvel = -8;
v2.xvel = 0;
}
if (dir == 1) {
v2._x += 15;
v2._y -= 40;
v2.yvel = -4;
v2.xvel = 7;
}
if (dir == 2) {
v2._x += 15;
v2._y -= 22;
v2.yvel = 0;
v2.xvel = 7;
}
if (dir == 3) {
v2._x += 15;
v2._y -= 10;
v2.yvel = 4;
v2.xvel = 7;
}
if (dir == 4) {
v2._x += 0;
v2._y += 5;
v2.yvel = 8;
v2.xvel = 0;
}
} else {
v2._x += 15;
v2._y -= 10;
v2.yvel = 0;
v2.xvel = 7;
}
} else {
if (!crouch || dir == 4) {
if (dir == 0) {
v2._x -= 5;
v2._y -= 50;
v2.yvel = -8;
v2.xvel = 0;
}
if (dir == 1) {
v2._x -= 15;
v2._y -= 40;
v2.yvel = -4;
v2.xvel = -7;
}
if (dir == 2) {
v2._x -= 15;
v2._y -= 22;
v2.yvel = 0;
v2.xvel = -7;
}
if (dir == 3) {
v2._x -= 15;
v2._y -= 10;
v2.yvel = 4;
v2.xvel = -7;
}
if (dir == 4) {
v2._x += 0;
v2._y += 5;
v2.yvel = 8;
v2.xvel = 0;
}
} else {
v2._x -= 15;
v2._y -= 10;
v2.yvel = 0;
v2.xvel = -7;
}
}
dbullets.push(v2);
if (who.bultyp == 2) {
var v13 = Math.atan2(v2.yvel, v2.xvel);
var v10 = v13 / 0.0174532925199433;
v2._rotation = v10;
}
if (who.bultyp == 3) {
v2._rotation = -185;
v2.xvel *= 0.35;
v2.yvel *= 0.35;
v2._x += v2.xvel + (v2.xvel / Math.abs(v2.xvel)) * 15;
v2._y += v2.yvel;
v2._xscale = -who._xscale;
v2._yscale = who._xscale;
}
if (who.bulpat == 1) {
v13 = Math.atan2(v2.yvel, v2.xvel);
var v5 = Math.sqrt(v2.yvel * v2.yvel + v2.xvel * v2.xvel);
v10 = v13 / 0.0174532925199433;
var v9 = this.attachMovie('con_bullet' + who.bultyp, 'bullet' + effcv, effcv + 991);
++effcv;
v9._x = v2._x;
v9._y = v2._y;
v9.originator = who;
var v12 = v10 + 8;
var v11 = v12 / 57.29577951308232;
v9.xvel = Math.cos(v11) * v5;
v9.yvel = Math.sin(v11) * v5;
dbullets.push(v9);
var v8 = this.attachMovie('con_bullet' + who.bultyp, 'bullet' + effcv, effcv + 991);
++effcv;
v8._x = v2._x;
v8._y = v2._y;
v8.originator = who;
v12 = v10 - 8;
v11 = v12 / 57.29577951308232;
v8.xvel = Math.cos(v11) * v5;
v8.yvel = Math.sin(v11) * v5;
dbullets.push(v8);
var v7 = this.attachMovie('con_bullet' + who.bultyp, 'bullet' + effcv, effcv + 991);
++effcv;
v7._x = v2._x;
v7._y = v2._y;
v7.originator = who;
v12 = v10 - 14;
v11 = v12 / 57.29577951308232;
v7.xvel = Math.cos(v11) * v5;
v7.yvel = Math.sin(v11) * v5;
dbullets.push(v7);
var v6 = this.attachMovie('con_bullet' + who.bultyp, 'bullet' + effcv, effcv + 991);
++effcv;
v6.originator = who;
v6._x = v2._x;
v6._y = v2._y;
v12 = v10 + 14;
v11 = v12 / 57.29577951308232;
v6.xvel = Math.cos(v11) * v5;
v6.yvel = Math.sin(v11) * v5;
dbullets.push(v6);
}
}
}
}
function centerOn(who) {
if (!vertical) {
if (onlytwo) {
dax = g._x + wobbleamt;
trace('onlytwo centerOn');
}
if (!two && !onlytwo) {
dax = d._x + wobbleamt;
} else {
if (!onlytwo) {
var v4 = Math.abs(d._x - g._x) / 2;
if (d._x < g._x) {
dax = d._x + v4 + wobbleamt;
} else {
dax = g._x + v4 + wobbleamt;
}
}
}
if (PART == 0) {
if (!tranned && !tranning) {
if (d.virtx > 1 && g.virtx > 1 || !two) {
this.goalx = -dax + 128;
var v7 = this.goalx - this._x;
this._x += v7 + wobbleamt;
}
if (this._x < curleft) {
curleft = this._x;
wobhome = curleft;
}
if (this._x > curleft) {
this._x = curleft;
}
var v6 = this._x + bg._width;
if (v6 <= 390) {
tranning = true;
}
}
if (tranning) {
v6 = this._x + bg._width;
if (v6 > 270) {
this._x -= 2;
} else {
this._x = -bg._width + 270;
wobhome = this._x;
tranning = false;
tranned = true;
}
}
}
} else {
if (!tran2) {
if (onlytwo) {
day = g._y + wobbleamt;
}
if (!two && !onlytwo) {
day = d._y + wobbleamt;
} else {
if (!onlytwo) {
var v4 = Math.abs(d._y - g._y) / 2;
if (d._y < g._y) {
day = d._y + v4 + wobbleamt;
} else {
day = g._y + v4 + wobbleamt;
}
}
}
if (d.virty > 1 && g.virty > 1 || !two) {
this.goaly = -day + 127;
var v7 = this.goaly - this._y;
var v5 = this._y + v7 + wobbleamt;
if (v5 > bottom) {
this._y = v5;
bottom = this._y;
}
}
}
if (this._y < 0) {
this._y = 0;
}
if (this._y > 1832 && !arrived2) {
if (!tran2) {
lev2muse.stop();
bossmuse.start(0, 999);
var v2 = 0;
while (v2 < plays.length) {
var v3 = plays[v2];
v3.myColor.setTint(0, 0, 0, 0);
v3.raging = false;
++v2;
}
}
nokeys = true;
tran2 = true;
if (this._y < 1935) {
this._y += 2;
} else {
arrived2 = true;
alienshow.gotoAndPlay(2);
castle.gotoAndPlay(2);
this._y = 1935;
if (skippit2) {
alienshow.gotoAndPlay(324);
}
}
}
}
}
function goAlien() {
boss2._visible = true;
boss2.gotoAndPlay('rise');
if (skippit2) {
boss2.gotoAndPlay(144);
}
}
function startBoss2() {
boss2.aicv = 0;
boss2.phase = 0;
boss2.typ = 'rock';
nokeys = false;
bossbattle2 = true;
boss2.guts.fac.guts.gotoAndStop('noface');
boss2.guts.body.gotoAndStop('idle');
boss2.hp = 190;
boss2.waitercv = 0;
boss2.maxwaiter = 100;
}
function chkBoss2Hit(b, oride) {
if (!boss2.dead) {
if (b.hitarea.hitTest(boss2.guts.body.hitarea) && b._visible && !b.dead || oride) {
if (boss2.maxhp == undefined) {
boss2.maxhp = boss2.hp;
boss2.nam = 'Kirby';
boss2.picid = 108;
}
metalhit.start();
gensplode.start();
makeSplode2(b._x + random(20) - 10, b._y - random(20) + 10);
boss2.guts.gotoAndPlay('hit');
if (b.amt != undefined) {
boss2.hp -= b.amt;
}
if (!b.originator.dead) {
if (b.originator.bulpat != 1) {
b.originator.rage += RAGEAMT;
} else {
b.originator.rage += RAGEAMT * 0.25;
}
}
b.dead = true;
if (boss2.hp <= 0) {
var v2 = 0;
while (v2 < plays.length) {
var v3 = plays[v2];
v3.myColor.setTint(0, 0, 0, 0);
v3.raging = false;
++v2;
}
if (lev2dies < 1) {
_root.aboboMedal('War Hero');
}
if (numdies < 1) {
_root.aboboMedal('Contrabobo God');
}
_root.aboboMedal('Barf-O-Rama');
boss2.dead = true;
sucker.unloadMovie();
sucker.removeMovieClip();
stopAllSounds();
gotoAndStop('finalpuke');
boss2.hp = 0;
boss2.maxhp = 100;
updateHud(boss2);
nokeys = true;
}
updateHud(boss2);
}
}
}
function endContra() {
stopAllSounds();
_root.hud._visible = false;
gotoAndStop('training');
this._x = 0;
this._y = 0;
}
function boss2ai(who) {
if (!who.dead) {
if (!who.donewaiting) {
++who.waitercv;
if (who.waitercv >= who.maxwaiter) {
who.donewaiting = true;
}
} else {
if (who.phase == 0) {
if (!who.sucking && !who.swallowed) {
who.sucking = true;
++who.aicv;
who.guts.body.gotoAndStop('suck');
kattacks.gotoAndStop('suck');
kattacks._visible = true;
} else {
++who.aicv;
if (who.aicv == 30) {
var v9 = this.attachMovie('con_sucker', 'sucker', effcv + 98135);
++effcv;
var v12 = random(2);
if (v12 == 0) {
v9._x = -50;
v9.rdir = 1;
} else {
v9._x = 306;
v9.rdir = -1;
}
v9._y = -1747;
v9.goingup = false;
if (who.typ == 'rock') {
v9.gotoAndStop(1);
}
if (who.typ == 'fire') {
v9.gotoAndStop(2);
}
if (who.typ == 'ice') {
v9.gotoAndStop(3);
}
}
chkBadBul(sucker, sucker.hitarea);
sucker._rotation += 45 * sucker.rdir;
var v6 = 0;
while (v6 < 3) {
var v7 = random(2);
var v3 = this.attachMovie('con_suckeffect' + who.typ + v7, 'suckeffect' + effcv, effcv + 991027);
++effcv;
v3._x = sucker._x;
v3._y = sucker._y;
v3._x += random(20) - 10;
v3._y += random(20) - 10;
var v4 = random(2);
if (v4 == 0) {
v4 = -1;
}
v3._xscale = v4 * 100;
++v6;
}
if (!sucker.goingup) {
if (sucker._x < 113) {
sucker._x += 4;
}
if (sucker._x > 143) {
sucker._x -= 4;
}
if (sucker._x >= 113 && sucker._x <= 143) {
sucker.goingup = true;
}
} else {
if (sucker._y > -1860) {
sucker._y -= 4;
if (sucker._x <= 126) {
sucker._x += 2;
}
if (sucker._x >= 130) {
sucker._x -= 2;
}
} else {
sucker.unloadMovie();
sucker.removeMovieClip();
}
}
if (!who.swallowed) {
if (who.aicv > 25 && who.aicv < 100) {
var v5 = 0;
while (v5 < plays.length) {
var v8 = plays[v5];
if (!v8.dead && !v8.blinking) {
if (!v8.jumping) {
if (v8._x < 113) {
v8._x += 2;
}
if (v8._x > 143) {
v8._x -= 2;
}
}
if (v8._x >= 113 && v8._x <= 143) {
v8.frozen = true;
v8.freezecv = 0;
v8.jumping = true;
v8.guts.gotoAndStop('jump');
if (v8._y > -1810) {
v8.yvel = -4;
} else {
v8.yvel = 0;
pausy = true;
nokeys = true;
v8._visible = false;
kattacks._visible = false;
v8.hp = 0;
updateHud();
who.guts.body.gotoAndStop('eating');
who.partner = v8;
spitskel = true;
spitskelcv = 0;
}
if (v8._x <= 126) {
v8._x += 2;
}
if (v8._x >= 130) {
v8._x -= 2;
}
}
}
++v5;
}
}
} else {
if (!who.partner.dead) {
kattacks._visible = false;
} else {
kattacks.gotoAndStop('suck');
kattacks._visible = true;
who.guts.body.gotoAndStop('suck');
}
}
if (who.aicv == 100) {
who.guts.body.guts2.gotoAndStop('release');
kattacks._visible = false;
var v5 = 0;
while (v5 < plays.length) {
var v8 = plays[v5];
v8.frozen = false;
++v5;
}
}
if (who.aicv == 110) {
who.guts.body.gotoAndStop('changestart');
sucker.unloadMovie();
sucker.removeMovieClip();
kattacks._visible = false;
}
if (who.aicv >= 120) {
who.swallowed = false;
kattacks._visible = false;
who.guts.body.gotoAndStop('change' + who.typ);
who.aicv = 0;
who.sucking = false;
if (who.typ == 'rock') {
who.phase = 1;
}
if (who.typ == 'fire') {
who.phase = 2;
}
if (who.typ == 'ice') {
who.phase = 3;
}
}
}
}
if (who.phase == 1) {
if (!who.stomprecover) {
++who.aicv;
if (who.aicv == 20) {
who.guts.body.gotoAndStop('rockfly');
}
if (who.aicv == 125) {
kattacks._visible = true;
var v10 = random(9);
if (v10 < 3 || v10 >= 7) {
ran = 0;
}
if (v10 >= 3 && v10 < 5) {
ran = 1;
}
if (v10 >= 5 && v10 <= 6) {
ran = 2;
}
kattacks.gotoAndPlay('fall' + ran);
}
} else {
++who.aicv;
if (who.aicv >= 80) {
who.stomprecover = false;
who.aicv = 0;
who.phase = 0;
who.guts.body.gotoAndStop('idle');
who.typ = 'fire';
}
}
}
if (who.phase == 2) {
++who.aicv;
if (who.aicv == 20) {
who.guts.body.gotoAndStop('firecharge');
}
if (who.aicv == 70) {
who.guts.body.gotoAndStop('flamethrower');
who.fx = -15;
who.fmove = 8;
who.fex = 128;
who.fey = -1900;
}
if (who.aicv == 75) {
shootBigFireball(who.fex, who.fey, who.fx);
who.fx += who.fmove;
}
if (who.aicv == 80) {
shootBigFireball(who.fex, who.fey, who.fx);
who.fx += who.fmove;
}
if (who.aicv == 85) {
shootBigFireball(who.fex, who.fey, who.fx);
who.fx += who.fmove;
}
if (who.aicv == 90) {
shootBigFireball(who.fex, who.fey, who.fx);
who.fx += who.fmove;
}
if (who.aicv == 95) {
shootBigFireball(who.fex, who.fey, who.fx);
who.fx += who.fmove;
}
if (who.aicv == 120) {
who.guts.body.gotoAndStop('firechangeback');
}
if (who.aicv >= 142) {
who.aicv = 0;
who.phase = 0;
who.guts.body.gotoAndStop('idle');
who.typ = 'ice';
}
}
if (who.phase == 3) {
++who.aicv;
if (who.aicv == 20) {
who.guts.body.gotoAndStop('chargeice');
}
if (who.aicv == 70) {
who.guts.body.gotoAndStop('icemissile');
shootIceMissile(who.fex, who.fey);
}
if (who.aicv == 90) {
who.guts.body.gotoAndStop('iceidle');
}
if (who.aicv == 220) {
who.guts.body.gotoAndStop('icechangeback');
}
if (who.aicv >= 242) {
who.aicv = 0;
who.phase = 4;
who.guts.body.gotoAndStop('idle');
who.typ = 'rock';
}
}
if (who.phase == 4) {
++who.aicv;
who.guts.body.gotoAndStop('idle');
if (who.aicv == 25) {
var v11 = random(4) + 1;
pupspit.start();
makePowerUp(v11, 128, -1850, true);
}
if (who.aicv == 35) {
v11 = random(4) + 1;
pupspit.start();
makePowerUp(v11, 128, -1850, true);
}
if (who.aicv == 45) {
v11 = random(4) + 1;
pupspit.start();
makePowerUp(v11, 128, -1850, true);
}
if (who.aicv == 135) {
who.aicv = 0;
who.phase = 0;
who.guts.body.gotoAndStop('idle');
who.typ = 'rock';
}
}
}
}
}
function shootIceMissile(x, y) {
var v2 = this.attachMovie('con_icemissile', 'imissile' + effcv, effcv + 77112);
++effcv;
v2._x = x;
v2._y = y + 45;
v2._rotation = 90;
v2.icemissile = true;
v2.dec = 0;
v2.cv = 0;
fballs.push(v2);
}
function shootBigFireball(x, y, xv) {
var v2 = this.attachMovie('con_bigfball', 'fball' + effcv, effcv + 81230);
++effcv;
v2.fireball = true;
v2.xvel = xv;
v2.yvel = -15;
v2._x = x;
v2._y = y;
fballs.push(v2);
}
function moveMissile(who, target, speed, updatespeed) {
++who.dec;
if (who.dec >= updatespeed) {
who.dx = target._x - who._x;
who.dy = target._y - who._y - 30;
length = Math.sqrt(who.dx * who.dx + who.dy * who.dy);
who.dx /= length;
who.dy /= length;
who.dx *= speed;
who.dy *= speed;
angle = Math.atan2(who.dy, who.dx);
who.dr = Math.round(angle * 180 / Math.PI);
who.dec = 0;
}
var v2 = who.dr - who._rotation;
if (v2 > 180) {
v2 -= 360;
}
if (v2 < -180) {
v2 += 360;
}
who._rotation += v2 / 5;
who._x += who.dx;
who._y += who.dy;
}
function moveFBalls() {
var v5 = 0;
while (v5 < fballs.length) {
var v2 = fballs[v5];
if (v2.icemissile) {
if (!v2.hitsomeone) {
var v4 = getClosest(v2);
var v12 = v4[0]._x - v2._x;
var v11 = v4[0]._y - v2._y - 30;
var v13 = Math.sqrt(v12 * v12 + v11 * v11);
if (v13 < 6) {
v2.hitsomeone = true;
freezesound.start();
v4[0].frozen = true;
v4[0].freezecv = 0;
v4[0].shakecv = 0;
v4[0].homex = v4[0]._x;
v4[0].fdir = 1;
v4[0].guts.gotoAndStop('frozen');
v2.unloadMovie();
v2.removeMovieClip();
fballs.splice(v5, 1);
--v5;
}
moveMissile(v2, v4[0], 2, 6);
var v7 = 0;
while (v7 < 3) {
var v9 = random(2);
var v3 = this.attachMovie('con_suckeffectice' + v9, 'suckeffect' + effcv, effcv + 991027);
++effcv;
var v14 = v2._rotation;
var v15 = v14 * Math.PI / 180;
var v10 = Math.cos(v15);
var v8 = Math.sin(v15);
v3._x = v2._x - v10 * 30;
v3._y = v2._y - v8 * 30;
v3._x += random(10) - 5;
v3._y += random(10) - 5;
var v6 = random(2);
if (v6 == 0) {
v6 = -1;
}
v3._xscale = v6 * 100;
++v7;
}
++v2.cv;
if (v2.cv >= 150) {
v2.hitsomeone = true;
v2._rotation = 0;
v2.gotoAndStop('iceball');
}
}
if (v2.hitsomeone) {
chkBadBul(v2, v2.hitarea);
}
if (v2.dead) {
v2.unloadMovie();
v2.removeMovieClip();
fballs.splice(v5, 1);
--v5;
}
}
if (v2.fireball) {
if (!v2.sploding) {
v15 = Math.atan2(v2.yvel, v2.xvel);
v14 = v15 / 0.0174532925199433;
v2._rotation = v14;
v2._x += v2.xvel;
v2.xvel *= 0.9;
doYTest(v2);
}
if (v2.dead) {
v2.unloadMovie();
v2.removeMovieClip();
fballs.splice(v5, 1);
--v5;
}
}
++v5;
}
}
function endRockStomp() {
boss2.stomprecover = true;
boss2.aicv = 0;
boss2.guts.body.gotoAndStop('rockback');
}
function chkBulHit(b, originator) {
if (b.amt == undefined) {
b.amt = 1;
}
if (originator.bulpat == 1) {
b.amt = 0.5;
}
if (bossbattle2) {
chkBoss2Hit(b);
}
var v6 = 0;
while (v6 < baddies.length) {
var v3 = baddies[v6];
if (!v3.dead && v3.closeenough && v3._visible) {
if (v3.guts.hitarea.hitTest(b.hitarea) && b._visible) {
if (v3.metal) {
metalhit.start();
}
if (b.amt != undefined) {
v3.hp -= b.amt;
} else {
v3.hp -= 1;
}
updateHud(v3);
if (!originator.dead) {
if (b.originator.bulpat != 1) {
b.originator.rage += RAGEAMT;
} else {
b.originator.rage += RAGEAMT * 0.25;
}
}
if (b.typ != 2) {
b.dead = true;
} else {
var v8 = -b.xvel / b.xvel;
b.xvel = v8 * (5 + random(3));
b.yvel = -(7 + random(4));
b.dead = false;
b.removeable = false;
b.bounced = true;
b._rotation = 0;
b.gotoAndStop('air');
}
if (v3.hp > 0) {
v3.gotoAndPlay('hit');
} else {
v3.guts.gotoAndStop('dead');
v3.dead = true;
switch (v3.nam) {
case 'Robocop':
_root.aboboMedal('Robopopped');
break;
case 'FIRE':
_root.aboboMedal('Fire Bad!');
break;
case 'Nakey':
_root.aboboMedal('Soap On A Dope');
}
if (v3.typ == 1 || v3.typ == 2 || v3.typ == 14 || v3.typ == 18 || v3.typ == 20) {
v3.yvel = -7;
if (b._x < v3._x) {
v3.xvel = 4;
} else {
v3.xvel = -4;
}
}
if (v3.typ == 16) {
var v7 = this.attachMovie('con_higgins', 'higs' + effcv, 99014 + effcv);
++effcv;
v3.part = v7;
v7._x = b._x;
v7._y = b._y;
v3.yvel = -10;
if (b._x < v3._x) {
v7.xvel = -4;
v7._xscale = -100;
} else {
v7.xvel = 4;
v7._xscale = 100;
}
v7.yvel = -7;
}
if (v3.typ == 2) {
v3.yvel = -7;
v3.xvel = 0;
}
if (v3.typ == 3) {
v3.yvel = -7;
}
if (v3.typ == 4) {
v3.yvel = -7;
if (b._x < v3._x) {
v3.xvel = 4;
} else {
v3.xvel = -4;
}
}
if (v3.typ == 5) {
v3.yvel = -7;
if (b._x < v3._x) {
v3.xvel = 4;
} else {
v3.xvel = -4;
}
}
if (v3.typ == 6) {
v3.yvel = -7;
if (b._x < v3._x) {
v3.xvel = 4;
} else {
v3.xvel = -4;
}
}
if (v3.typ == 7) {
v3.yvel = -7;
if (b._x < v3._x) {
v3.xvel = 4;
} else {
v3.xvel = -4;
}
}
if (v3.typ == 11) {
v6 = 0;
while (v6 < plays.length) {
var v5 = plays[v6];
v5.yvel = -13 - random(5);
v5.xvel = -75 + random(10);
v5.jumping = true;
v5._xscale = -100;
v5.guts.gotoAndStop('jump');
v5.myColor.setTint(0, 0, 0, 0);
v5.raging = false;
++v6;
}
lev1muse.stop();
v3.virtx = v3._x + this._x;
if (v3.virtx < 128) {
v3._xscale = -100;
} else {
v3._xscale = 100;
}
shakeIt(5);
nokeys = true;
v3.guts.guts2.gotoAndPlay(2);
}
if (v3.typ == 12) {
makePowerUp(v3.ptyp, v3._x, v3._y);
}
if (v3.typ == 13) {
v3.stop();
makePowerUp(v3.ptyp, v3._x, v3._y);
}
}
}
}
++v6;
}
if (bossfight1) {
var v9 = boss.guts;
if (v9.head.guts.hitarea.hitTest(b.hitarea) && !v9.head.dead) {
b.dead = true;
metalhit.start();
v9.head.gotoAndPlay('hit');
v9.head.hp -= b.amt;
if (!b.originator.dead) {
if (b.originator.bulpat != 1) {
b.originator.rage += RAGEAMT;
} else {
b.originator.rage += RAGEAMT * 0.25;
}
}
}
if (v9.kirby.guts.hitarea.hitTest(b.hitarea) && !v9.kirby.dead) {
metalhit.start();
b.dead = true;
v9.kirby.gotoAndPlay('hit');
v9.kirby.hp -= b.amt;
if (!b.originator.dead) {
if (b.originator.bulpat != 1) {
b.originator.rage += RAGEAMT;
} else {
b.originator.rage += RAGEAMT * 0.25;
}
}
}
if (v9.arm.guts.hitarea.hitTest(b.hitarea) && !v9.arm.dead && !v9.arm.shooting) {
metalhit.start();
b.dead = true;
v9.arm.gotoAndPlay('hit');
v9.arm.hp -= b.amt;
if (!b.originator.dead) {
if (b.originator.bulpat != 1) {
b.originator.rage += RAGEAMT;
} else {
b.originator.rage += RAGEAMT * 0.25;
}
}
}
chkBoss1Die();
}
}
function shootMiniArm(who) {
makeBadBullet(who._x + 30 * who.dir, who._y - 38, 6 * who.dir, -0.5, 7, who.dir);
}
function startBoss1() {
_root.aboboMedal('Turtle Power');
bossmuse.setVolume(MAXVOL);
boss.nam = 'Krangby';
boss.picid = 108;
bossfight1 = true;
boss.aicv = 0;
boss.diecv = 0;
boss.phase = 0;
boss.guts.head.hp = 100;
boss.guts.kirby.hp = 100;
boss.guts.arm.hp = 100;
boss.hp = 300;
boss.maxhp = 300;
boss.guts.gotoAndPlay('rise');
boss.guts.head.guts.gotoAndStop('idle');
boss.guts.kirby.guts.gotoAndStop('laugh');
boss.guts.arm.guts.gotoAndStop('idle');
boss.guts.body.guts.gotoAndStop('idle');
}
function startBFight1() {
nokeys = false;
boss.ready = true;
bossmuse.start(0, 999);
}
function chkBoss1Die() {
if (!boss.dead) {
var v3 = boss.guts;
if (v3.arm.hp <= 0) {
v3.arm.dead = true;
v3.arm.guts.gotoAndStop('explode');
if (boss.phase == 0) {
boss.aicv = 0;
if (!v3.head.dead) {
boss.phase = 1;
} else {
boss.phase = 2;
}
}
}
if (v3.head.hp <= 0) {
v3.head.dead = true;
v3.head.guts.gotoAndStop('asplode');
if (boss.phase == 1) {
boss.aicv = 0;
if (!v3.arm.dead) {
boss.phase = 0;
} else {
boss.phase = 2;
}
}
}
if (v3.kirby.hp <= 0) {
v3.kirby.dead = true;
v3.kirby.guts.gotoAndStop('hurt');
if (boss.phase == 2) {
boss.aicv = 0;
if (!v3.arm.dead) {
boss.phase = 0;
} else {
boss.phase = 1;
}
}
}
if (v3.head.hp < 0) {
v3.head.hp = 0;
}
if (v3.kirby.hp < 0) {
v3.kirby.hp = 0;
}
if (v3.arm.hp < 0) {
v3.arm.hp = 0;
}
boss.hp = v3.kirby.hp + v3.head.hp + v3.arm.hp;
updateHud(boss);
}
if (boss.hp <= 0) {
if (boss.diecv == 0) {
if (numdies < 1) {
_root.aboboMedal('Super Soldier');
}
_root.aboboMedal('Krang Bang');
var v2 = 0;
while (v2 < plays.length) {
var v4 = plays[v2];
v4.myColor.setTint(0, 0, 0, 0);
v4.raging = false;
++v2;
}
boss.dead = true;
nokeys = true;
v3.body.gotoAndPlay('hit');
v3.body.guts.gotoAndStop('gone');
}
}
}
function bossai1() {
var v1 = boss;
if (v1.dead) {
++v1.diecv;
if (v1.diecv == 1) {
lev1muse.stop();
}
if (v1.diecv == 50) {
v1.guts.gotoAndPlay('dies');
}
if (v1.diecv >= 230) {
var v5 = true;
if (!d.runningoff) {
victorymuse.start();
}
var v2 = 0;
while (v2 < plays.length) {
var v4 = plays[v2];
v4.runningoff = true;
v4._xscale = -100;
v4.guts.gotoAndStop('runnoaim');
v4.xvel = v4.sp * 2;
v4.norestrain = true;
if (v4.virtx < 280) {
v5 = false;
}
++v2;
}
if (v5) {
v2 = 0;
while (v2 < baddies.length) {
var v3 = baddies[v2];
v3.unloadMovie();
v3.removeMovieClip();
++v2;
}
baddies = new Array();
v2 = 0;
while (v2 < plays.length) {
v4 = plays[v2];
v4.runningoff = false;
v4.norestrain = false;
++v2;
}
bossfight1 = false;
pausy = true;
fader.gotoAndPlay(2);
}
}
} else {
if (v1.ready) {
chkBadBul(v1, v1.guts.bodhit);
if (!v1.guts.arm.dead && !v1.guts.arm.shooting) {
chkBadBul(v1, v1.guts.armhit);
}
if (v1.phase == 0 && !v1.guts.arm.dead) {
++v1.aicv;
if (v1.aicv == 30) {
v1.guts.kirby.guts.gotoAndStop('controls');
}
if (v1.aicv == 50) {
v1.guts.arm.guts.gotoAndStop('shoot');
v1.guts.arm.shooting = true;
}
chkBadBul(v1, v1.guts.arm.guts.guts2.daarm.hitarea);
if (v1.aicv == 122) {
v1.guts.arm.shooting = false;
v1.guts.kirby.guts.gotoAndStop('idle');
v1.guts.arm.guts.gotoAndStop('idle');
if (!v1.guts.head.dead) {
v1.phase = 1;
} else {
if (!v1.guts.kirby.dead) {
v1.phase = 2;
}
}
v1.aicv = 0;
}
}
if (v1.phase == 1 && !v1.guts.head.dead) {
++v1.aicv;
if (v1.aicv == 15) {
v1.guts.kirby.guts.gotoAndStop('controls');
}
if (v1.aicv == 35) {
v1.guts.head.guts.gotoAndStop('zap');
}
if (v1.aicv == 43) {
makeBadBullet(v1._x + 50, v1._y - 135, -7, 7, 3);
makeBadBullet(v1._x + 35, v1._y - 135, -7, 7, 3);
}
if (v1.aicv == 49) {
makeBadBullet(v1._x + 50, v1._y - 150, -8.5, 6, 4);
makeBadBullet(v1._x + 35, v1._y - 150, -8.5, 6, 4);
}
if (v1.aicv >= 65) {
v1.aicv = 0;
v1.guts.head.guts.gotoAndStop('idle');
v1.guts.kirby.guts.gotoAndStop('idle');
if (!v1.guts.kirby.dead) {
v1.phase = 2;
} else {
if (!v1.guts.arm.dead) {
v1.phase = 0;
}
}
}
}
if (v1.phase == 2 && !v1.guts.kirby.dead) {
chkBadBul(v1, v1.guts.kirby.guts.guts2.rock);
++v1.aicv;
if (v1.aicv == 30) {
v1.guts.kirby.guts.gotoAndStop('suckin');
}
if (v1.aicv == 110) {
v1.guts.kirby.guts.gotoAndStop('spit1');
makeBadBullet(v1._x + 65, v1._y - 42, -6, -3, 6);
}
if (v1.aicv == 118) {
v1.guts.kirby.guts.gotoAndStop('idle');
v1.aicv = 0;
if (!v1.guts.arm.dead) {
v1.phase = 0;
} else {
if (!v1.guts.head.dead) {
v1.phase = 1;
}
}
}
}
}
}
}
function shakeIt(amt) {
wobbleamt = amt;
}
function wobble() {
if (wobbleamt > 0) {
this._x = wobhome + wobdir * wobbleamt;
--wobbleamt;
wobdir *= -1;
}
}
function moveBullets() {
var v3 = 0;
while (v3 < dbullets.length) {
var v2 = dbullets[v3];
v2.virtx = this._x + v2._x;
v2.virty = this._y + v2._y;
if (!v2.bounced) {
v2._x += v2.xvel;
v2._y += v2.yvel;
chkBulHit(v2, v2.originator);
if (v2.typ == 3) {
v2._rotation += 25;
}
} else {
if (!v2.onground) {
v2._x += v2.xvel;
v2.xvel *= 0.9;
doYTest(v2);
} else {
if (!v2.inited) {
v2.inited = true;
v2.dir = random(2);
if (v2.dir == 0) {
v2.dir = -1;
}
v2._xscale = v2.dir * 100;
v2.gotoAndStop('move');
v2.cv = 0;
v2.maxcv = random(120);
v2.aicv = random(20);
}
++v2.aicv;
if (v2.aicv >= 30) {
v2.aicv = 0;
v2.dir *= -1;
v2._xscale = v2.dir * 100;
}
v2._x += 1 * v2.dir;
doYTest(v2);
++v2.cv;
if (v2.cv >= v2.maxcv && !v2.dead) {
lemsplode.start();
v2.dead = true;
makeSplode2(v2._x, v2._y);
chkBulHit(v2);
}
}
}
if (!v2.bounced || v2.dead) {
if (v2.virtx > 270 || v2.virtx < -20 || v2.virty < -20 || v2.virty > 274 || v2.dead) {
dbullets.splice(v3, 1);
--v3;
v2.unloadMovie();
v2.removeMovieClip();
}
}
++v3;
}
}
function restrain(who) {
who.virtx = who._x + this._x;
who.virty = who._y + this._y;
if (!who.norestrain) {
if (who.virtx < 0) {
who._x = -this._x + who.xvel;
who.xvel = 0;
}
if (who.virtx > 256) {
who._x = -this._x + 256 - who.xvel;
who.xvel = 0;
}
}
}
function chkBridges() {
var v7 = 0;
while (v7 < plays.length) {
var v5 = plays[v7];
var v3 = 0;
while (v3 < 2) {
var v2 = this['bridge' + v3];
if (!v2.sploded) {
var v6 = Math.abs(v5._x - v2._x);
if (v6 < 56) {
v2.sploded = true;
v2.splodepartner = v5;
v2.play();
}
} else {
if (v5 == v2.splodepartner && !v2.donesplode) {
++v2.cv;
if (v2.cv >= 22) {
v2.cv = 0;
var v4 = this.attachMovie('con_bridgesplode', 'bsplode' + effcv, effcv + 9911);
bsplodesound.start();
++effcv;
v4._x = v2._x + slocs[v2.pointer];
v4._y = v2._y + 15;
++v2.pointer;
}
}
}
++v3;
}
++v7;
}
}
function getClosest(who) {
if (levdir == 0 || who.closeenough) {
var v5 = Math.abs(who._x - plays[0]._x);
closeguy = plays[0];
var v2 = 0;
while (v2 < plays.length) {
var v1 = plays[v2];
var v3 = Math.abs(who._x - v1._x);
if (v3 < v5 && !v1.dead) {
v5 = v3;
closeguy = v1;
}
++v2;
}
}
if (levdir == 1 && !who.closeenough) {
v5 = Math.abs(who._y - plays[0]._y);
closeguy = plays[0];
v2 = 0;
while (v2 < plays.length) {
v1 = plays[v2];
v3 = Math.abs(who._y - v1._y);
if (v3 < v5 && !v1.dead) {
v5 = v3;
closeguy = v1;
}
++v2;
}
}
var v6 = new Array(closeguy, v5);
return v6;
}
function getClosest2(who) {
var v4 = Math.abs(who._x - plays[0]._x);
closeguy = plays[0];
var v2 = 0;
while (v2 < plays.length) {
var v1 = plays[v2];
var v3 = Math.abs(who._x - v1._x);
if (v3 < v4 && !v1.dead && v1._x < who._x) {
v4 = v3;
closeguy = v1;
}
++v2;
}
var v6 = new Array(closeguy, v4);
return v6;
}
function makePowerUp(id, x, y, spat) {
var v2 = this.attachMovie('con_pup' + id, 'pup' + effcv, effcv + 8769981);
++effcv;
v2.id = id;
v2._x = x;
v2._y = y;
v2.cv = 0;
if (!spat) {
v2.yvel = -15;
v2.xvel = 3;
} else {
v2.yvel = -random(6) - 9;
var v3 = random(2);
if (v3 == 0) {
v3 = -1;
}
v2.xvel = random(10) * v3;
}
pups.push(v2);
}
function movePups() {
var v4 = 0;
while (v4 < pups.length) {
var v2 = pups[v4];
v2._x += v2.xvel;
doYTest(v2);
v2.xvel *= 0.9;
++v2.cv;
if (v2.cv >= 190) {
if (!v2.dead) {
v2._visible = !v2._visible;
}
if (v2.cv >= 240) {
v2.unloadMovie();
v2.removeMovieClip();
pups.splice(v4, 1);
--v4;
}
}
var v5 = 0;
while (v5 < plays.length) {
var v3 = plays[v5];
if (v3.guts.hitarea.hitTest(v2.hitarea)) {
switch (v2.typ) {
case 'M':
_root.aboboMedal('Auto-Assault');
trace('m gun!');
break;
case 'S':
_root.aboboMedal('Spread The Love');
break;
case 'L':
_root.aboboMedal('Lemming Lunacy');
break;
case 'F':
_root.aboboMedal('Fiery Fury');
}
powup.start();
v3.firerate = ORIGFIRERATE;
v3.firerate = v2.rapidity;
v3.bultyp = v2.bulkind;
v3.bulpat = v2.firepattern;
v2.unloadMovie();
v2.removeMovieClip();
pups.splice(v4, 1);
--v4;
}
++v5;
}
++v4;
}
}
function ai13(who) {
if (!who.inited) {
who.inited = true;
who.sp = 1;
who.yvel = 0;
who.xvel = 0;
who.dec = 0;
who.closeenough = false;
}
if (!who.closeenough) {
who.virtx = who._x + this._x;
if (who.virtx < -10) {
who.closeenough = true;
who.play();
who._visible = true;
}
} else {
if (!who.dead) {
who.xvel += who.sp;
who._x += who.xvel;
who.xvel *= 0.6;
who.virtx = who._x + this._x;
who.virty = who._y + this._y;
if (who.virtx > 275 || who.virty > 275) {
who.dead = true;
who.guts.gotoAndStop('dead');
}
}
}
}
function ai23(who) {
if (!who.inited) {
who.dir = 1;
who.cv = 0;
who.sp = 3.5;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
++who.cv;
if (who.cv == 40) {
who.cv = 0;
who.guts.gotoAndStop('drop');
fireBazooka3(who._x + who.dir * 15, who._y, 0, -3, who.dir);
}
who._x += who.dir * who.sp;
if (who._x < 5) {
who._x = 5;
who.dir = 1;
who._xscale = 100;
}
if (who._x > 251) {
who._x = 251;
who.dir = -1;
who._xscale = -100;
}
}
}
}
function ai22(who) {
if (!who.inited) {
var v3 = getClosest(who);
who.ygoal = v3[0]._y - 30;
who.pat = 0;
who.dir = 1;
who.dec = 0;
who.cv = 0;
who.sp = 4;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v5 = getClosest(who);
if (v5[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
v3 = getClosest(who);
var v4 = Math.abs(v3[0]._x - who._x);
var v6 = Math.abs(who.ygoal - who._y);
++who.pat;
if (who.pat == 40) {
who.guts.gotoAndStop('cock');
}
if (who.pat == 50) {
who.pat = 0;
who.guts.gotoAndStop('shoot');
shootArrow(who._x, who._y, who.dir * 6, who._xscale);
}
++who.cv;
if (who.cv >= 20) {
who.ygoal = v3[0]._y - 90;
who.cv = 0;
}
if (v3[0]._x < who._x) {
who._xscale = -100;
who.dir = -1;
} else {
who._xscale = 100;
who.dir = 1;
}
if (v4 > 90) {
if (v3[0]._x < who._x) {
who._x -= 1;
} else {
who._x += 1;
}
}
if (v4 < 70) {
if (v3[0]._x < who._x) {
who._x += 1;
} else {
who._x -= 1;
}
}
if (v6 > 5) {
if (who.ygoal < who._y) {
who._y -= 1;
} else {
who._y += 1;
}
}
if (who._x < 10) {
who._x = 10;
}
if (who._x > 246) {
who._x = 246;
}
} else {
who._x += who.xvel;
who._y += who.yvel;
who.yvel += GRAV;
who.virty = who._y + this._y;
if (who.virty >= 280) {
who.removeable = true;
}
}
}
}
function shootArrow(x, y, vel, sc) {
var v2 = this.attachMovie('con_arrow', 'carrow' + effcv, effcv + 8724);
++effcv;
v2._x = x;
v2._y = y;
v2.xvel = vel;
v2.yvel = 0;
v2.shaft = true;
v2._xscale = sc;
bbullets.push(v2);
}
function ai21(who) {
if (!who.inited) {
who.pat = 0;
who.dir = 1;
who.dec = 0;
who.cv = 0;
who.sp = 4;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
vy = who._y + this._y;
if (vy >= 260) {
who.dead = true;
who.removeable = true;
}
++who.cv;
if (who.cv >= 9) {
who.cv = 0;
stingshot.start();
stingshot.start();
makeBadBullet(who._x + who.dir * 15, who._y, 8 * who.dir, 0, 0);
}
who._x += who.dir * 4;
if (who._x > 251) {
who._x = 251;
who.dir = -1;
who._xscale = -100;
}
if (who._x < 5) {
who._x = 5;
who.dir = 1;
who._xscale = 100;
}
} else {
++who.cv;
if (who.cv >= 10) {
who.yvel = -5;
who.cv = 0;
}
who._y += who.yvel;
who.yvel += GRAV * 0.6;
who.virty = who._y + this._y;
if (who.virty < -50) {
who.removeable = true;
}
}
}
}
function ai20(who) {
if (!who.inited) {
who.pat = 0;
who.dir = 1;
who.dec = 0;
who.cv = 0;
who.sp = 4;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 123) {
who.closeenough = true;
}
} else {
if (!who.dead) {
if (!who.landed) {
who._y += who.yvel;
who.yvel += GRAV;
if (who._y > -1291) {
who._y = -1291;
who.yvel = 0;
who.landed = true;
}
}
if (who.dec == 0) {
++who.cv;
who.guts.gotoAndStop('move');
if (who.cv >= 100) {
who.cv = 0;
who.dec = 1;
who.guts.gotoAndStop('rest');
}
who._x += who.sp * who.dir;
if (who._x <= 5) {
who._x = 5;
who.dir = 1;
who._xscale = 100;
}
if (who._x > 93) {
who._x = 93;
who.dir = -1;
who._xscale = -100;
}
}
if (who.dec == 1) {
var v4 = getClosest(who);
if (v4[0]._x > who._x) {
who._xscale = 100;
who.dir = 1;
} else {
who._xscale = -100;
who.dir = -1;
}
if (who.pat == 0) {
++who.cv;
if (who.cv == 5 || who.cv == 10 || who.cv == 15 || who.cv == 20) {
who.guts.gotoAndStop('throw');
throwStar(who._x, who._y - 15, who.dir * 10, 0);
}
if (who.cv >= 50) {
who.cv = 0;
who.dec = 0;
who.pat = 1;
}
}
if (who.pat == 1) {
++who.cv;
if (who.cv == 20) {
who.guts.gotoAndStop('throw');
throwStar(who._x, who._y - 15, who.dir * 5, -10);
throwStar(who._x, who._y - 15, who.dir * 5, 10);
throwStar(who._x, who._y - 15, who.dir * 10, 0);
}
if (who.cv >= 50) {
who.cv = 0;
who.dec = 0;
who.pat = 0;
}
}
}
} else {
who._x += who.xvel;
who._y += who.yvel;
who.yvel += GRAV;
who.virty = this._y + who._y;
if (who.virty >= 280) {
who.removeable = true;
}
}
}
}
function throwStar(x, y, xvel, yvel) {
var v2 = this.attachMovie('con_ninjastar', 'nstar' + effcv, effcv + 7891);
++effcv;
v2._x = x;
v2._y = y;
v2.xvel = xvel;
v2.yvel = yvel;
v2.zook = true;
bbullets.push(v2);
}
function ai19(who) {
if (!who.inited) {
who.dir = -1;
who.cv = 0;
who.sp = 3.5;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
++who.cv;
if (who.cv == 30) {
who.cv = 0;
fireBazooka2(who._x + who.dir * 15, who._y, 0, 0);
}
who._x += who.dir * who.sp;
if (who._x < 5) {
who._x = 5;
who.dir = 1;
who._xscale = -100;
}
if (who._x > 251) {
who._x = 251;
who.dir = -1;
who._xscale = 100;
}
}
}
}
function ai18(who) {
if (!who.inited) {
who._xscale = -who.dir * 100;
who.cv = 0;
who.vpointer = 0;
who.vels = new Array(15, 10, 5);
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 215) {
who.closeenough = true;
}
} else {
if (!who.dead) {
++who.cv;
if (who.cv == 20) {
who.guts.gotoAndStop('fire');
}
if (who.cv >= 35) {
who.cv = 0;
who.guts.gotoAndStop('rest');
}
} else {
who._x += who.xvel;
who.xvel *= 0.9;
who._y += who.yvel;
who.yvel += GRAV;
}
}
}
function fireBazooka3(x, y, xvel, yvel, dir) {
var v2 = this.attachMovie('con_climber', 'zook' + effcv, effcv + 87124);
++effcv;
v2._xscale = dir * 100;
v2._x = x;
v2._y = y;
v2.xvel = xvel;
v2.yvel = yvel;
v2.shafty = true;
bbullets.push(v2);
}
function fireBazooka2(x, y, xvel, yvel) {
var v2 = this.attachMovie('con_zookbullet', 'zook' + effcv, effcv + 87124);
++effcv;
v2._x = x;
v2._y = y;
v2.xvel = xvel;
v2.yvel = yvel;
v2.zook = true;
bbullets.push(v2);
}
function fireBazooka(who) {
var v3 = this.attachMovie('con_zookbullet', 'zook' + effcv, effcv + 87124);
++effcv;
v3._x = who._x + who.dir * 23;
v3._y = who._y - 20;
v3.xvel = who.dir * who.vels[who.vpointer];
v3.yvel = 0;
v3.zook = true;
++who.vpointer;
if (who.vpointer >= who.vels.length) {
who.vpointer = 0;
}
bbullets.push(v3);
}
function ai17(who) {
if (!who.inited) {
who.dir = -1;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.sp = 2;
who.closeenough = false;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
who._xscale = who.dir * 100;
who._x += who.xvel;
who.xvel *= 0.5;
who.xvel += who.sp * who.dir;
who.virty = who._y + this._y;
var v5 = who._x + who.xvel;
var v4 = who._y + 1;
if (!shitTest(bg.ground, v5, v4) || who._x > 251 || who._x < 5) {
who.dir *= -1;
who._x += who.dir * (who.sp + 3);
if (who._x > 251) {
who._x = 251;
}
if (who._x < 5) {
who._x = 5;
}
}
if (who.virty > 280) {
who.dead = true;
who.removeable = true;
}
}
}
}
function ai16(who) {
if (!who.inited) {
who.hig = true;
who.dir = 1;
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.sp = 2;
who.closeenough = false;
}
if (!who.closeenough) {
var v4 = getClosest(who);
if (v4[1] < 135) {
who.closeenough = true;
}
} else {
if (!who.dead) {
who._xscale = who.dir * 100;
who._x += who.xvel;
who.xvel *= 0.6;
who.xvel += who.sp * who.dir;
doYTest(who);
if (who._x > 246) {
who._x = 246;
who.dir = -1;
}
if (who._x < 10) {
who._x = 10;
who.dir = 1;
}
} else {
who.guts.gotoAndStop('dead');
who._x += who.xvel;
who.xvel *= 0.6;
who._y += who.yvel;
who.yvel += GRAV;
var v3 = who.part;
v3._x += v3.xvel;
v3._y += v3.yvel;
v3.xvel *= 0.9;
v3.yvel += GRAV;
who.virty = who._y + this._y;
if (who.virty >= 280 && v3._x != undefined) {
who.removeable = true;
v3.unloadMovie();
v3.removeMovieClip();
}
}
}
}
function ai15(who) {
if (!who.inited) {
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 145) {
who.closeenough = true;
}
} else {
who._x += who.dir * 1.5;
if (who._x >= 183) {
who.dir = -1;
who._x = 183;
}
if (who._x < 72) {
who._x = 72;
who.dir = 1;
}
who.virty = this._y + who._y;
if (who.virty > 280) {
who.removeable = true;
}
}
}
function ai14(who) {
if (!who.inited) {
who.xvel = 0;
who.yvel = 0;
who.inited = true;
who.closeenough = false;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 135) {
who.closeenough = true;
}
} else {
who._x += who.xvel;
who.xvel *= 0.99;
who._y += who.yvel;
if (who.dead) {
who.yvel += GRAV;
who.virty = this._y + who._y;
if (who.virty > 280) {
who.removeable = true;
}
}
}
}
function ai12(who) {
if (!who.inited) {
who.dir = -1;
who.inited = true;
who.sp = 2;
who.yvel = 0;
who.xvel = 0;
who.dec = 0;
who.closeenough = false;
who.aicv = 0;
who.dirr = 0;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 95) {
who.closeenough = true;
who.guts.gotoAndStop('open');
}
}
}
function ai11(who) {
if (!who.inited) {
who.dir = -1;
who.inited = true;
who.sp = 2;
who.yvel = 0;
who.xvel = 0;
who.dec = 0;
who.closeenough = false;
who.aicv = 0;
who.dirr = 0;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 220) {
who.closeenough = true;
}
} else {
if (!nokeys && !who.dead) {
if (who.dec == 0) {
who.guts.gotoAndStop('rest');
++who.aicv;
if (who.aicv >= 30) {
who.aicv = 0;
who.goalcv = 50 + random(50);
who.dec = 1;
}
}
if (who.dec == 1) {
who._xscale = who.dir * -100;
++who.aicv;
who.guts.gotoAndStop('move');
who._x += who.xvel;
who.xvel += who.sp * who.dir;
who.xvel *= 0.5;
who.virtx = who._x + this._x;
if (who.virtx <= 30) {
who.dir = 1;
}
if (who.virtx >= 226) {
who.dir = -1;
}
if (who.aicv >= who.goalcv) {
var v3 = getClosest(who);
if (v3[0]._x > who._x) {
who.dir = 1;
} else {
who.dir = -1;
}
who._xscale = who.dir * -100;
who.aicv = 0;
who.dec = 2;
who.guts.gotoAndStop('fire');
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 27) {
who.aicv = 0;
who.dec = 0;
who.guts.gotoAndStop('rest');
}
}
}
}
}
function ai10(who) {
if (!who.inited) {
who.dir = -1;
who.pat = 0;
who.inited = true;
who.sp = 1;
who.yvel = 0;
who.xvel = 0;
who.bulcv = 40;
who.shots = 0;
who.closeenough = false;
who.aicv = 30;
who.dirr = 0;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 140) {
who.closeenough = true;
who.guts.gotoAndStop('reveal');
}
} else {
if (!who.dead) {
if (!who.throwing) {
who._x += who.dir * who.sp;
who._xscale = 100 * -who.dir;
var v5 = who._x + 10 * who.dir;
if (!shitTest(bg.ground, v5, who._y + 2)) {
who.dir *= -1;
}
++who.aicv;
if (who.aicv >= 35) {
who.aicv = 0;
who.throwing = true;
who.guts.gotoAndStop('throw');
}
doYTest(who);
} else {
++who.aicv;
var v4 = who._x + this._x;
if (who.aicv == 10 && v4 > -20) {
makeBadBullet(who._x + 25 * who.dir, who._y - 24, 4 * who.dir, 0, 2);
}
if (who.aicv >= 25) {
who.aicv = 0;
who.throwing = false;
who.guts.gotoAndStop('move');
}
}
}
}
}
function ai9(who) {
if (!who.inited) {
who.pat = 0;
who.inited = true;
who.sp = 0;
who.yvel = 0;
who.xvel = 0;
who.bulcv = 40;
who.shots = 0;
who.closeenough = false;
who.aicv = 30;
who.dirr = 0;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 140) {
who.closeenough = true;
who.guts.gotoAndStop('reveal');
}
} else {
if (!who.dead) {
++who.aicv;
if (who.aicv == 42) {
who.guts.gotoAndStop('fire');
enemyshoot.start();
makeBadBullet(who._x - 15, who._y - 24, -2.5, 0, 1);
}
if (who.aicv == 47) {
who.guts.gotoAndStop('fire');
makeBadBullet(who._x - 15, who._y - 24, -2.5, 0, 1);
who.aicv = 0;
}
}
var v4 = who._x + this._x;
if (v4 < -10) {
who.dead = true;
who.removeable = true;
}
}
}
function ai8(who) {
if (!who.inited) {
who.pat = 0;
who.inited = true;
who.sp = 0;
who.yvel = 0;
who.xvel = 0;
who.bulcv = 40;
who.shots = 0;
who.closeenough = false;
who.aicv = 0;
who.dirr = 0;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 80) {
who.closeenough = true;
who.guts.gotoAndStop('reveal');
}
} else {
if (!who.dead) {
++who.aicv;
if (who.aicv >= 10) {
who.moving = true;
who.aicv = 0;
}
++who.bulcv;
if (who.dirr == 0) {
if (who.bulcv == 50) {
makeBadBullet(who._x - 15, who._y, -2, 0, 0);
}
if (who.bulcv == 60) {
makeBadBullet(who._x - 15, who._y, -2, 0, 0);
}
if (who.bulcv == 70) {
makeBadBullet(who._x - 15, who._y, -2, 0, 0);
who.bulcv = 0;
}
}
if (who.dirr == 1) {
if (who.bulcv == 50) {
makeBadBullet(who._x - 18, who._y - 8, -1.2, -0.6, 0);
}
if (who.bulcv == 60) {
makeBadBullet(who._x - 18, who._y - 8, -1.2, -0.6, 0);
}
if (who.bulcv == 70) {
makeBadBullet(who._x - 18, who._y - 8, -1.2, -0.6, 0);
who.bulcv = 0;
}
}
if (who.dirr == 2) {
if (who.bulcv == 50) {
makeBadBullet(who._x - 8, who._y - 14, -0.8, -1.3, 0);
}
if (who.bulcv == 60) {
makeBadBullet(who._x - 8, who._y - 14, -0.8, -1.3, 0);
}
if (who.bulcv == 70) {
makeBadBullet(who._x - 8, who._y - 14, -0.8, -1.3, 0);
who.bulcv = 0;
}
}
if (who.moving) {
who.moving = false;
var v3 = getClosest2(who);
if (v3[0]._x < who._x) {
var v5 = who._x - v3[0]._x;
var v4 = who._y - v3[0]._y + 15;
var v6 = Math.atan2(v4, v5);
var v2 = v6 * 180 / Math.PI;
if (v2 < 15) {
who.dirr = 0;
}
if (v2 >= 15 && v2 < 45) {
who.dirr = 1;
}
if (v2 >= 45) {
who.dirr = 2;
}
who.guts.gotoAndStop('dir' + who.dirr);
}
}
}
}
}
function ai7(who) {
if (!who.inited) {
who.pat = 0;
who.inited = true;
who.sp = 0;
who.yvel = 0;
who.xvel = 0;
who.bulcv = 0;
who.shots = 0;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 140) {
who.closeenough = true;
}
} else {
if (!who.dead) {
if (!who.firing) {
var v2 = getClosest(who);
if (v2[0]._x < who._x) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who.guts.gotoAndStop('rest');
++who.aicv;
if (who.aicv >= 30) {
who.firing = true;
who.aicv = 0;
}
} else {
++who.aicv;
if (who.aicv == 23) {
roboshot.start();
roboshot.start();
if (who._xscale == 100) {
if (who.pat == 0) {
makeBadBullet(who._x - 15, who._y - 45, -3, -1, 1);
makeBadBullet(who._x - 15, who._y - 45, -3, -2, 1);
makeBadBullet(who._x - 15, who._y - 45, -3, 2, 1);
makeBadBullet(who._x - 15, who._y - 45, -3, 1, 1);
}
if (who.pat == 1) {
makeBadBullet(who._x - 15, who._y - 45, -3, 0, 1);
makeBadBullet(who._x - 15, who._y - 45, -3, -0.5, 1);
makeBadBullet(who._x - 15, who._y - 45, -3, 0.5, 1);
}
} else {
if (who.pat == 0) {
makeBadBullet(who._x + 15, who._y - 45, 3, -1, 1);
makeBadBullet(who._x + 15, who._y - 45, 3, -2, 1);
makeBadBullet(who._x + 15, who._y - 45, 3, 2, 1);
makeBadBullet(who._x + 15, who._y - 45, 3, 1, 1);
}
if (who.pat == 1) {
makeBadBullet(who._x + 15, who._y - 45, 3, 0, 1);
makeBadBullet(who._x + 15, who._y - 45, 3, -0.5, 1);
makeBadBullet(who._x + 15, who._y - 45, 3, 0.5, 1);
}
}
++who.pat;
if (who.pat >= 2) {
who.pat = 0;
}
}
if (who.aicv >= 55) {
who.aicv = 0;
who.firing = false;
}
who.guts.gotoAndStop('fire');
}
} else {
who._x += who.xvel;
who.xvel *= 0.8;
who._y += who.yvel;
who.yvel += GRAV;
}
}
}
function ai6(who) {
if (!who.inited) {
who.guts.guts2.stop();
who.aicv = 0;
who.aicv = 45;
who.inited = true;
who.sp = 0;
who.yvel = 0;
who.xvel = 0;
who.bulcv = 0;
who.shots = 0;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 140) {
who.closeenough = true;
}
} else {
if (!who.dead) {
var v2 = getClosest(who);
if (!who.firing) {
if (v2[0]._x > who._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
++who.aicv;
if (who.aicv >= 50) {
who.firing = true;
who.aicv = 0;
}
who.dir = aimGun(who);
}
if (!who.firing) {
who.guts.gotoAndStop('dir' + who.dir);
who.guts.guts2.stop();
} else {
who.guts.guts2.play();
++who.bulcv;
if (who.bulcv >= 7) {
who.bulcv = 0;
++who.shots;
if (who.shots >= 3) {
who.shots = 0;
who.firing = false;
}
if (who._xscale == 100) {
switch (who.dir) {
case 0:
makeBadBullet(who._x - 15, who._y - 27, -4, 0, 0);
break;
case 1:
makeBadBullet(who._x - 15, who._y - 40, -2, -2, 0);
break;
case 2:
makeBadBullet(who._x - 20, who._y - 8, -2, 2, 0);
}
} else {
switch (who.dir) {
case 0:
makeBadBullet(who._x + 15, who._y - 27, 4, 0, 0);
break;
case 1:
makeBadBullet(who._x + 15, who._y - 40, 2, -2, 0);
break;
case 2:
makeBadBullet(who._x + 20, who._y - 8, 2, 2, 0);
}
}
}
}
} else {
who._x += who.xvel;
who.xvel *= 0.8;
who._y += who.yvel;
who.yvel += GRAV;
}
}
}
function moveBadBullets() {
var v8 = 0;
while (v8 < bbullets.length) {
var v2 = bbullets[v8];
if (v2.typ == 7) {
++v2.cv;
if (v2.cv >= 16) {
v2.dead = true;
}
}
v2._x += v2.xvel;
v2._y += v2.yvel;
v2.virtx = this._x + v2._x;
chkBadBul(v2, v2.hitarea);
if (v2.shaft || v2.shafty) {
v2.yvel += GRAV * 0.5;
}
if (v2.typ == 3 || v2.typ == 4 || v2.typ == 5 || v2.zook || v2.shafty) {
if (v2.zook) {
v2.yvel += GRAV;
var v12 = Math.atan2(v2.yvel, v2.xvel);
var v13 = Math.round(v12 * 180 / Math.PI);
v2._rotation = v13;
}
var v4 = v2._x;
var v3 = v2._y;
var v11 = v2._x + v2.xvel;
var v10 = v2._y + v2.yvel;
var v7 = v11 - v2._x;
var v6 = v10 - v2._y;
var v5 = Math.sqrt(v7 * v7 + v6 * v6);
v7 /= v5;
v6 /= v5;
var v9 = v5;
for (;;) {
if (!(v9 > 1 && !v2.dead)) break;
v3 += v6;
v4 += v7;
d2x = v11 - v4;
d2y = v10 - v3;
v5 = Math.sqrt(d2x * d2x + d2y * d2y);
v9 = v5;
if (shitTest(bg.ground, v4, v3)) {
v2.dead = true;
if (!v2.zook) {
shakeIt(5);
} else {
shakeIt(3);
}
gensplode.start();
makeSplode(v4, v3);
}
}
}
v2.virty = v2._y + this._y;
if (v2.virtx > 270 || v2.virtx < -20 || v2.virty < -20 || v2.virty > 274 || v2.dead) {
if (v2.typ == 6 || v2.typ == 7) {
if (v2.virty > 0 && v2.virty < 254 && v2.virtx > 0 && v2.virtx < 256) {
shakeIt(5);
}
gensplode.start();
makeSplode2(v2._x, v2._y);
}
bbullets.splice(v8, 1);
--v8;
v2.unloadMovie();
v2.removeMovieClip();
}
++v8;
}
}
function makeSplode2(x, y) {
var v2 = this.attachMovie('con_splode2', 'splode' + effcv, effcv + 99811);
++effcv;
v2._x = x;
v2._y = y;
}
function makeSplode(x, y) {
var v2 = this.attachMovie('con_splode', 'splode' + effcv, effcv + 99811);
++effcv;
v2._x = x;
v2._y = y;
}
function makeBadBullet(x, y, xvel, yvel, typ, sc) {
var v2 = this.attachMovie('con_badbul' + typ, 'badbul' + effcv, effcv + 998126);
if (sc != undefined) {
v2._xscale = sc * 100;
}
v2._x = x;
v2._y = y;
v2.xvel = xvel;
v2.yvel = yvel;
v2.typ = typ;
v2.bullett = true;
v2.cv = 0;
bbullets.push(v2);
++effcv;
}
function aimGun(who) {
var v1 = 0;
var v2 = getClosest(who);
if (v2[0]._y < who._y - 20) {
v1 = 1;
}
if (v2[0]._y > who._y + 20) {
v1 = 2;
}
return v1;
}
function ai5(who) {
if (!who.inited) {
who.aicv = 55;
who.inited = true;
who.sp = 2;
who.yvel = 0;
who.xvel = 0;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 140) {
who.closeenough = true;
}
} else {
who._x += who.xvel;
if (!who.dead) {
var v2 = getClosest(who);
var v3 = Math.abs(v2[1]);
if (!who.wandering) {
if (v3 > 25 || v2[0]._y < who._y - 20 || v2[0]._y > who._y + 20) {
if (v3 > 15) {
who.guts.gotoAndStop('move');
if (v2[0]._x < who._x) {
who._xscale = 100;
who.xvel = -who.sp;
} else {
who._xscale = -100;
who.xvel = who.sp;
}
} else {
if (v2[0]._y > who._y + 20 || v2[0]._y < who._y - 20) {
who.wandering = true;
}
}
who.xvel *= 0.6;
who.virtx = who._x + bg._x;
if (who.virtx < -10) {
who.dead = true;
who.closeenough = false;
who.removeable = true;
}
} else {
who.xvel *= 0.6;
who.guts.gotoAndStop('atk');
}
} else {
who.guts.gotoAndStop('move');
++who.aicv;
if (who.aicv >= 35) {
v2 = getClosest(who);
who.aicv = 0;
who.xvel = 0;
if (v2[0]._x > who._x) {
who.dir = 1;
} else {
who.dir = -1;
}
if (v2[0]._y < who._y + 20 && v2[0]._y > who._y - 20) {
who.wandering = false;
}
}
var v4 = who.sp * who.dir;
who.xvel += v4;
who.xvel *= 0.4;
who._xscale = who.dir * -100;
}
} else {
who.xvel *= 0.9;
}
doYTest(who);
}
}
function ai4(who) {
if (!who.inited) {
who.inited = true;
who.sp = 1;
who.yvel = 0;
who.xvel = 0;
who.closeenough = false;
who.dead = false;
who.aicv = 0;
who.dir = 1;
who._xscale = -100;
who.atkcv = 0;
}
if (!who.closeenough) {
var v4 = getClosest(who);
if (v4[1] < 140) {
who.closeenough = true;
}
} else {
if (!who.dead) {
if (!who.inattack) {
var v4 = getClosest(who);
var v3 = Math.abs(v4[1]);
if (v3 < 30 && v4[0]._y > who._y - 20) {
who.attacking = true;
} else {
who.attacking = false;
}
}
if (!who.attacking || v4[0].dead) {
if (!who.inattack) {
who._x += who.xvel;
who.xvel *= 0.4;
who.xvel += who.dir * who.sp;
if (who._x > 1403) {
who._x = 1403;
}
if (who._x < 673) {
who._x = 673;
}
++who.aicv;
if (who.aicv >= 75) {
who.aicv = 0;
v4 = getClosest(who);
if (v4[0]._x > who._x) {
who.dir = 1;
who._xscale = -100;
} else {
who.dir = -1;
who._xscale = 100;
}
}
who.guts.gotoAndStop('move');
}
} else {
who.guts.gotoAndStop('atk');
who.inattack = true;
}
if (who.inattack) {
++who.atkcv;
if (who.atkcv >= 10) {
who.inattack = false;
who.guts.gotoAndStop('move');
who.atkcv = 0;
}
}
} else {
who._x += who.xvel;
who.xvel *= 0.8;
who._y += who.yvel;
who.yvel += GRAV;
who.virty = who._y + this._y;
if (who.virty > 216) {
who._y = 216;
who.virty = 216;
if (who._x < 1780) {
who._visible = false;
who.removeable = true;
makeSplash(who._x, who._y);
}
who.dead = true;
}
}
}
}
function chkBadBul(who, box) {
if (!nokeys) {
var v3 = 0;
while (v3 < plays.length) {
var v1 = plays[v3];
if (box.hitTest(v1.guts.hitarea) && !v1.blinking) {
v1.hp = 0;
updateHud();
runDeath(v1);
if (who.zook) {
who.dead = true;
shakeIt(5);
gensplode.start();
makeSplode(who._x, who._y);
who._visible = false;
}
v1.dead = true;
if (who.bullett) {
who.dead = true;
}
v1.yvel = -3;
if (who._x > v1._x) {
v1.xvel = -4;
} else {
v1.xvel = 4;
}
}
++v3;
}
}
}
function ai3(who) {
if (!who.inited) {
who.inited = true;
who.sp = 1.5;
who.yvel = 0;
who.xvel = 0;
who.closeenough = false;
who.dead = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 140) {
who.closeenough = true;
}
} else {
who._x += who.xvel;
if (!who.dead) {
who.xvel = -who.sp;
who.xvel *= 0.6;
who.virtx = who._x + bg._x;
if (who.virtx < -10) {
who.removeable = true;
who.dead = true;
who.closeenough = false;
}
doYTest(who);
} else {
if (who._y < 400) {
who.yvel += GRAV;
who._y += who.yvel;
who.xvel *= 0.9;
}
}
}
}
function ai2(who) {
if (!who.inited) {
who.rumcv = 0;
who.risecv = 0;
who.goalrise = random(45);
who.inited = true;
who.sp = random(15) * 0.1 + 0.5;
who.yvel = 0;
who.xvel = 0;
who.closeenough = false;
who.guts.guts2._alpha = 0;
}
if (!who.closeenough) {
var v3 = getClosest(who);
if (v3[1] < 140) {
who.closeenough = true;
}
} else {
if (!who.rising) {
++who.risecv;
var v2 = getClosest(who);
var v4 = v2[0];
if (v4._x < who._x) {
who._xscale = 100;
} else {
who._xscale = -100;
}
if (who.risecv >= who.goalrise) {
who.inground = false;
who.rising = true;
who.guts.gotoAndStop('rumble');
}
} else {
++who.rumcv;
if (who.rumcv >= 39) {
who._x += who.xvel;
if (!who.dead) {
who.xvel *= 0.4;
who.virtx = who._x + bg._x;
if (who.virtx < -10) {
who.removeable = true;
who.dead = true;
who.closeenough = false;
}
} else {
who.xvel *= 0.8;
}
doYTest(who);
if (!who.dead) {
var v2 = getClosest(who);
var v4 = v2[0];
var v5 = Math.abs(v2[1]);
if (v5 < 10 && !who.wander) {
who.wandercv = 0;
who.wander = true;
who.wanderdir = random(2);
if (who.wanderdir == 0) {
who.wanderdir = -1;
}
}
if (!who.wander) {
if (v4._x < who._x) {
who.xvel -= who.sp;
who._xscale = 100;
} else {
who.xvel += who.sp;
who._xscale = -100;
}
} else {
++who.wandercv;
if (who.wandercv >= 20) {
who.wandercv = 0;
who.wander = false;
}
who.xvel += who.sp * who.wanderdir;
who._xscale = who.wanderdir * -100;
}
}
}
}
}
}
function doYTest(who) {
if (!who.fireball) {
who.yvel += GRAV;
} else {
who.yvel += GRAV;
if (who.yvel > 6) {
who.yvel = 6;
}
}
if (who.yvel < 0) {
who._y += who.yvel;
} else {
if (!who.dead) {
who.virtx = who._x + bg._x;
who.virty = who._y;
nexty = who.virty + who.yvel;
var v4 = false;
for (;;) {
if (!(who.virty < nexty && !v4)) break;
++who._y;
++who.virty;
while (shitTest(bg.ground, who.virtx, who.virty)) {
--who.virty;
who.yvel = 0;
--who._y;
v4 = true;
if (who.bullett) {
who.onground = true;
}
}
if (who.virty > 216) {
v4 = true;
who._y = 216;
who.virty = 216;
if (who._x < 1780) {
who._visible = false;
who.removeable = true;
makeSplash(who._x, who._y);
} else {
who._visible = false;
who.removeable = true;
}
who.dead = true;
}
var v3 = 0;
while (v3 < 2) {
var v5 = this['bridge' + v3];
if (shitTest(v5.ground, who.virtx, who.virty)) {
if (who.bullett) {
who.onground = true;
}
v4 = true;
--who._y;
--who.virty;
who.yvel = 0;
}
++v3;
}
}
}
}
if (v4) {
if (who.fireball && !who.sploding) {
fballhit.start();
who.gotoAndPlay('splode');
who.sploding = true;
shakeIt(4);
}
if (who.hig && !who.dead) {
who.guts.gotoAndStop('rest');
}
} else {
if (who.hig && !who.dead) {
who.guts.gotoAndStop('jump');
}
}
}
function makeSplash(x, y) {
var v2 = this.attachMovie('con_watersplash', 'splash' + effcv, effcv + 99112);
++effcv;
v2._x = x;
v2._y = y;
}
function ai1(who) {
if (!who.inited) {
who.inited = true;
who.sp = 4;
who.yvel = 0;
who.xvel = 0;
who.closeenough = false;
}
if (!who.closeenough) {
var v2 = getClosest(who);
if (v2[1] < 140) {
who.closeenough = true;
}
} else {
who._x += who.xvel;
if (!who.dead) {
who.xvel = -who.sp;
who.xvel *= 0.6;
who.virtx = who._x + bg._x;
if (who.virtx < -10) {
who.removeable = true;
who.dead = true;
who.closeenough = false;
}
} else {
who.xvel *= 0.9;
}
doYTest(who);
}
}
function ai0(who) {
if (!who.inited) {
who.inited = true;
who.guts.gotoAndStop('closed');
who.revealcv = 0;
who.positions = new Array(180, 135, 112, 90, 67, 23, 0, -22, -67, -90, -112, -135);
who.maxai = 30;
who.aicv = who.maxai - 10;
who.curpos = 0;
who.trackcv = 0;
who.firecv = 0;
who.shotcount = 0;
who.coolcv = 0;
}
if (!who.dead) {
if (!who.closeenough) {
if (levdir == 0) {
var v7 = Math.abs(who._x - plays[0]._x);
var v2 = 0;
while (v2 < plays.length) {
var v4 = plays[v2];
var v3 = Math.abs(who._x - v4._x);
if (v3 < v7) {
v7 = v3;
}
++v2;
}
if (v7 < 130) {
who.closeenough = true;
}
}
if (levdir == 1) {
v7 = Math.abs(who._y - plays[0]._y);
v2 = 0;
while (v2 < plays.length) {
v4 = plays[v2];
v3 = Math.abs(who._y - v4._y);
if (v3 < v7) {
v7 = v3;
}
++v2;
}
if (v7 < 130) {
who.closeenough = true;
}
}
} else {
if (!who.opened) {
++who.revealcv;
if (who.revealcv >= 5 && who.revealcv < 10) {
who.guts.gotoAndStop('openup');
}
if (who.revealcv >= 10) {
who.guts.gotoAndStop('ready');
who.opened = true;
who.guts.guts2.stop();
}
} else {
++who.aicv;
if (who.aicv >= who.maxai) {
who.aicv = 0;
var v7 = Math.abs(who._x - plays[0]._x);
var v9 = plays[0];
var v2 = 0;
while (v2 < plays.length) {
var v4 = plays[v2];
var v3 = Math.abs(who._x - v4._x);
if (v3 < v7) {
v7 = v3;
v9 = v4;
}
++v2;
}
var v13 = v9._x - who._x;
var v11 = v9._y - who._y;
var v14 = Math.atan2(v11, v13);
var v10 = Math.round(v14 * 180 / Math.PI);
var v8 = 9999;
aimer = 0;
v2 = 0;
while (v2 < who.positions.length) {
var v6 = who.positions[v2];
var v5 = Math.abs(v6 - v10);
if (v5 < v8) {
v8 = v5;
aimer = v2;
}
++v2;
}
who.goalpos = aimer;
if (who.goalpos != who.curpos) {
if (who.goalpos > who.curpos) {
who.dir = 1;
} else {
who.dir = -1;
}
var v12 = Math.abs(who.goalpos - who.curpos);
if (v12 > 5) {
who.dir *= -1;
}
who.tracking = true;
}
}
if (who.tracking) {
++who.trackcv;
if (who.trackcv >= 5) {
who.trackcv = 0;
who.curpos += who.dir;
if (who.curpos >= who.positions.length) {
who.curpos = 0;
}
if (who.curpos < 0) {
who.curpos = who.positions.length - 1;
}
who.guts.guts2.gotoAndStop('p' + who.positions[who.curpos] + '');
if (who.curpos == who.goalpos) {
who.tracking = false;
who.firecv = 0;
who.shotcount = 0;
who.coolcv = 0;
}
}
} else {
++who.firecv;
if (who.firecv >= 15) {
who.firecv = 0;
++who.shotcount;
if (who.shotcount <= 3) {
switch (who.curpos) {
case 0:
makeBadBullet(who._x - 15, who._y + 1, -2, 0, 0);
break;
case 1:
makeBadBullet(who._x - 13, who._y + 10, -1.5, 0.8, 0);
break;
case 2:
makeBadBullet(who._x - 6, who._y + 14, -0.9, 1.8, 0);
break;
case 3:
makeBadBullet(who._x, who._y + 15, 0, 2, 0);
break;
case 4:
makeBadBullet(who._x + 6, who._y + 15, 0.9, 1.8, 0);
break;
case 5:
makeBadBullet(who._x + 13, who._y + 10, 1.5, 0.8, 0);
break;
case 6:
makeBadBullet(who._x + 15, who._y + 1, 2, 0, 0);
break;
case 7:
makeBadBullet(who._x + 14, who._y - 7, 1.5, -0.8, 0);
break;
case 8:
makeBadBullet(who._x + 6, who._y - 15, 0.9, -1.8, 0);
break;
case 9:
makeBadBullet(who._x, who._y - 15, 0, -2, 0);
break;
case 10:
makeBadBullet(who._x - 6, who._y - 14, -0.9, -1.8, 0);
break;
case 11:
makeBadBullet(who._x - 13, who._y - 8, -1.5, -0.8, 0);
}
} else {
++who.coolcv;
if (who.coolcv >= 3) {
who.coolcv = 0;
who.shotcount = 0;
}
}
}
}
}
}
} else {}
}
function moveBads() {
var v5 = 0;
while (v5 < baddies.length) {
var v2 = baddies[v5];
if (v2.maxhp == undefined) {
v2.maxhp = v2.hp;
}
if (v2.activated) {
if (v2.notouchy) {
var v4 = 0;
while (v4 < plays.length) {
var v3 = plays[v4];
if (v2.guts.hitarea.hitTest(v3.guts.hitarea) && !v3.blinking) {
runDeath(v3);
if (v2._x > v3._x) {
v3.xvel = -4;
} else {
v3.xvel = 4;
}
if (v2.typ == 1 || v2.typ == 2) {
if (v3._x < v2._x) {
v2.xvel = 4;
} else {
v2.xvel = -4;
}
v2.yvel = -7;
v2.dead = true;
v2.guts.gotoAndStop('dead');
}
}
++v4;
}
}
switch (v2.typ) {
case 0:
ai0(v2);
break;
case 1:
ai1(v2);
break;
case 2:
ai2(v2);
break;
case 3:
ai3(v2);
break;
case 4:
ai4(v2);
break;
case 5:
ai5(v2);
break;
case 6:
ai6(v2);
break;
case 7:
ai7(v2);
break;
case 8:
ai8(v2);
break;
case 9:
ai9(v2);
break;
case 10:
ai10(v2);
break;
case 11:
ai11(v2);
break;
case 12:
ai12(v2);
break;
case 13:
ai13(v2);
break;
case 14:
ai14(v2);
break;
case 15:
ai15(v2);
break;
case 16:
ai16(v2);
break;
case 17:
ai17(v2);
break;
case 18:
ai18(v2);
break;
case 19:
ai19(v2);
break;
case 20:
ai20(v2);
break;
case 21:
ai21(v2);
break;
case 22:
ai22(v2);
break;
case 23:
ai23(v2);
}
if (v2.removeable) {
v2.unloadMovie();
v2.removeMovieClip();
baddies.splice(v5, 1);
--v5;
}
} else {
v2.virtx = v2._x + this._x;
if (v2.virtx < 280) {
v2.activated = true;
}
}
++v5;
}
}
function chkRespawn() {
var v7 = true;
var v6 = false;
var v3 = 0;
while (v3 < plays.length) {
var v4 = plays[v3];
if (v4.dead) {
if (v4.lives >= 0) {
v7 = false;
}
++v4.deathcv;
if (v4.deathcv >= 50) {
v6 = true;
}
if (v4.deathcv >= 50 && v4.lives >= 0) {
v4.dead = false;
reSpawn(v4);
}
}
++v3;
}
if (v7 && v6) {
if (!gotthirty) {
gotthirty = true;
lev1muse.setVolume(0);
lev2muse.setVolume(0);
pausy = true;
nokeys = true;
this._parent.kcode.gotoAndPlay(2);
this._parent.kcode._visible = true;
} else {
var v5 = true;
v3 = 0;
while (v3 < plays.length) {
v4 = plays[v3];
if (v4.lives >= 0) {
v5 = false;
}
++v3;
}
if (v5) {
pausy = true;
nokeys = true;
_root.contraGameOver();
trace('GAME OVER!');
} else {
if (d.lives < 0) {
two = false;
onlytwo = true;
}
if (g.lives < 0) {
two = false;
}
centerOn();
}
}
}
}
function reSpawn(who) {
who.hitsoundready = true;
var v3 = -bottom + 234;
if (who._y > v3) {
who._y = v3 - 2;
}
who.frozen = false;
who.firerate = ORIGFIRERATE;
who.bultyp = 0;
who.blinking = true;
who.blinkcv = 0;
who.bulpat = 0;
who.hp = 1;
if (vertical) {
var v4 = -this._y + 127;
} else {
var v4 = 15;
}
who._y = v4;
who.yvel = -5;
who.inwater = false;
who.dead = false;
who.jumping = true;
who.guts.gotoAndStop('jumping');
updateHud();
}
function movePlats() {
var v3 = 0;
while (v3 < 3) {
var v2 = this['plat' + v3];
if (!v2.inited) {
v2.inited = true;
v2.sp = 0.5;
v2.xvel = 0;
}
if (v2.dir == 1) {
v2.xvel += v2.sp;
if (v2._x > v2.rlim) {
v2.dir = -1;
v2._x = v2.rlim;
}
} else {
v2.xvel -= v2.sp;
if (v2._x < v2.llim) {
v2.dir = 1;
v2._x = v2.llim;
}
}
v2._x += v2.xvel;
v2.xvel *= 0.5;
++v3;
}
}
function chkPause() {
if (!Key.isDown(71)) {
gup = true;
}
if (Key.isDown(71) && gup) {
gup = false;
makePowerUp(1, d._x, d._y - 50);
}
if (!Key.isDown(P)) {
pup = true;
}
if (Key.isDown(P) && pup) {
pup = false;
if (!pausy) {
psound.start();
pausy = true;
lev1muse.setVolume(0);
lev2muse.setVolume(0);
var v3 = 0;
while (v3 < 2) {
var v4 = this['bridge' + v3];
v4.stop();
++v3;
}
v3 = 0;
while (v3 < baddies.length) {
v4 = baddies[v3];
if (v4.typ == 13) {
v4.stop();
}
++v3;
}
if (kattacks._visible) {
kattacks.stop();
}
pholder = this._parent.attachMovie('con_pholder', 'pholder', this.getNextHighestDepth());
btm = new flash.display.BitmapData(256, 254, true, 16777215);
pholder.guts.attachBitmap(btm, 0);
o = _root;
var v5 = new flash.geom.Matrix();
v5.tx = 0;
v5.ty = 0;
v5.a = 1;
alf = 1;
var v6 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v5, v6);
pholder.guts.filters = new Array(filter);
} else {
lev1muse.setVolume(MAXVOL);
lev2muse.setVolume(MAXVOL);
var v3 = 0;
while (v3 < 2) {
var v4 = this['bridge' + v3];
if (v4.sploded && !v4.donesplode) {
v4.play();
}
++v3;
}
v3 = 0;
while (v3 < baddies.length) {
v4 = baddies[v3];
if (v4.typ == 13) {
v4.play();
}
++v3;
}
if (kattacks._visible) {
kattacks.play();
}
pausy = false;
btm.dispose();
pholder.unloadMovie();
pholder.removeMovieClip();
}
}
}
function moveRockThings() {
var v3 = 0;
while (v3 < rockthings.length) {
var v2 = rockthings[v3];
++v2.cv;
if (!v2.droppit) {
if (v2.cv >= 2) {
v2.cv = 0;
v2._x = v2.homex + v2.dir * 1;
v2.dir *= -1;
}
++v2.mcv;
if (v2.mcv == 20) {
v2.mcv = 0;
v2.cv = 0;
v2.yvel = -1;
v2.droppit = true;
}
} else {
++v2.mcv;
if (v2.mcv > 10) {
chkBadBul(v2, v2.hitarea);
}
if (v2.cv >= 3) {
v2.cv = 0;
v2._yscale *= -1;
}
v2._y += v2.yvel;
v2.yvel += GRAV * 0.7;
}
v2.virty = v2._y + this._y;
if (v2.virty >= 280) {
v2.unloadMovie();
v2.removeMovieClip();
rockthings.splice(v3, 1);
--v3;
}
++v3;
}
}
function moveRocks() {
var v4 = 0;
while (v4 < rockies.length) {
var v3 = rockies[v4];
if (!v3.closeenough) {
var v5 = getClosest(v3);
var v6 = v5[1];
if (v6 < 130) {
v3.closeenough = true;
}
} else {
v3.virty = v3._y + this._y;
if (v3.virty < 270) {
++v3.cv;
if (v3.cv == 40) {
var v2 = this.attachMovie('con_rocker', 'crock' + effcv, effcv + 991127);
++effcv;
v2._x = v3._x + v2._width / 2 + 1;
v2._y = v3._y + v2._height / 2 + 2;
v2.droppit = false;
v2.yvel = 0;
v2.cv = 0;
v2.homex = v2._x;
v2.dir = 1;
v2.mcv = 0;
rockthings.push(v2);
}
if (v3.cv == 80) {
v3.cv = 0;
}
}
}
++v4;
}
}
function enterF() {
if (spitskel) {
++spitskelcv;
if (spitskelcv >= 70) {
spitskelcv = 0;
spitskel = false;
boss2.guts.body.gotoAndStop('idle');
boss2.partner._visible = true;
boss2.partner._y = -1830;
runDeath(boss2.partner);
boss2.partner.yvel = -3;
boss2.swallowed = true;
boss2.sucking = false;
pausy = false;
boss2.aicv = 60;
nokeys = false;
}
}
if (!nokeys) {
if (!pausy) {
if (!onlytwo) {
controls(d);
}
if (two || onlytwo) {
controls(g);
}
}
chkPause();
}
wobble();
if (!pausy) {
if (vertical) {
movePlats();
if (bossbattle2) {
boss2ai(boss2);
}
}
moveRocks();
moveRockThings();
moveFBalls();
movePups();
phys(d);
moveBads();
moveBadBullets();
chkRespawn();
if (two || onlytwo) {
phys(g);
restrain(g);
}
restrain(d);
centerOn();
chkBridges(d);
moveBullets();
if (bossfight1) {
bossai1();
}
}
}
stop();
numdies = 0;
lev2dies = 0;
RAGEAMT = 2;
Color.prototype.setTint = function (r, g, b, amount) {
var v2 = new Object();
v2.ba = 100 - amount;
v2.ga = v2.ba;
v2.ra = v2.ba;
var v3 = amount / 100;
v2.rb = r * v3;
v2.gb = g * v3;
v2.bb = b * v3;
this.setTransform(v2);
};
d.myColor = new Color(d);
d.myColor.setTint(0, 0, 0, 0);
g.myColor = new Color(g);
g.myColor.setTint(0, 0, 0, 0);
MAXVOL = 100;
SVOL = 60;
sfx = this.createEmptyMovieClip('sfx', -992);
bsplodesound = new Sound(sfx);
bsplodesound.attachSound('con_bridgesplodesound');
diesound = new Sound(sfx);
diesound.attachSound('con_diesound');
diesound.setVolume(SVOL);
enemyshoot = new Sound(sfx);
enemyshoot.attachSound('con_enemyshoot');
jumpland = new Sound(sfx);
jumpland.attachSound('con_jumpland');
gunsound0 = new Sound(sfx);
gunsound0.attachSound('con_gunsound0');
gunsound1 = new Sound(sfx);
gunsound1.attachSound('con_gunsound1');
gunsound2 = new Sound(sfx);
gunsound2.attachSound('con_gunsound2');
gunsound3 = new Sound(sfx);
gunsound3.attachSound('con_gunsound3');
gunsound4 = new Sound(sfx);
gunsound4.attachSound('con_gunsound4');
lemsplode = new Sound(sfx);
lemsplode.attachSound('con_lemsplode');
metalhit = new Sound(sfx);
metalhit.attachSound('con_metalhit');
gensplode = new Sound(sfx);
gensplode.attachSound('con_gensplode');
powup = new Sound(sfx);
powup.attachSound('con_powup');
telesound = new Sound(sfx);
telesound.attachSound('con_teleport');
pupspit = new Sound(sfx);
pupspit.attachSound('con_pupspit');
freezesound = new Sound(sfx);
freezesound.attachSound('con_frozen');
fballhit = new Sound(sfx);
fballhit.attachSound('con_fballhit');
psound = new Sound(sfx);
psound.attachSound('con_pausesound');
stingshot = new Sound(sfx);
stingshot.attachSound('con_stingshot');
roboshot = new Sound(sfx);
roboshot.attachSound('con_roboshot');
jthrow = new Sound(sfx);
jthrow.attachSound('con_jthrow');
bglooper = this.createEmptyMovieClip('bglooper', -991);
victorymuse = new Sound(bglooper);
victorymuse.attachSound('con_victorymuse');
introloop = new Sound(bglooper);
introloop2 = new Sound(bglooper);
introloop.attachSound('con_intromuse');
introloop2.attachSound('con_intromuse2');
lev1muse = new Sound(bglooper);
lev1muse.attachSound('con_lev1muse');
lev2muse = new Sound(bglooper);
lev2muse.attachSound('con_lev2muse');
bossmuse = new Sound(bglooper);
bossmuse.attachSound('con_bossmuse');
introloop.start();
introloop.onSoundComplete = function () {
lev1muse.start(0, 999);
lev1muse.setVolume(MAXVOL);
};
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
this._quality = 'LOW';
levdir = 0;
vertical = false;
ORIGFIRERATE = 8;
numdeaths = 0;
bottom = 0;
d.guts.blender._visible = false;
g.guts.blender.blendMode = 'multiply';
g.guts.gotoAndStop('rest0');
FRIC = 0.5;
GRAV = 1;
effcv = 0;
pausy = true;
nokeys = true;
initGuy(d);
_root.dbox.text = 'LIVES: ' + d.lives;
two = false;
onlytwo = false;
dbullets = new Array();
bbullets = new Array();
fballs = new Array();
pups = new Array();
rockies = new Array();
rockthings = new Array();
PART = 0;
tranned = false;
tranning = false;
curleft = 0;
baddies = new Array();
plays = new Array(d);
this.bridge0.ground._visible = false;
this.bridge1.ground._visible = false;
this.bridge0.cv = 0;
this.bridge1.cv = 0;
this.bridge0.pointer = 0;
this.bridge1.pointer = 0;
slocs = new Array(10, 45, 80, 105);
bg.ground._visible = false;
wobbleamt = 0;
wobdir = 1;
wobhome = 0;
bossfight1 = false;
bg.blocker._visible = false;
d.conts = new Array();
P = 80;
d.conts.A = 65;
d.conts.B = 83;
d.conts.L = 37;
d.conts.R = 39;
d.conts.U = 38;
d.conts.D = 40;
g.conts = new Array();
g.conts.A = 73;
g.conts.B = 79;
g.conts.L = 37;
g.conts.R = 39;
g.conts.U = 38;
g.conts.D = 40;
codepointer = 0;
dacode = new Array(d.conts.U, d.conts.U, d.conts.D, d.conts.D, d.conts.L, d.conts.R, d.conts.L, d.conts.R);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (!two && !pausy && !nokeys) {
var v2 = Key.getCode();
if (dacode[codepointer] == v2) {
++codepointer;
if (codepointer >= dacode.length) {
_root.aboboMedal('Double Trouble');
pausy = true;
nokeys = true;
twoPlayerIntro();
}
} else {
codepointer = 0;
}
}
};
Key.addListener(keyListener);
this.onEnterFrame = function () {
enterF();
};
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 4;
}
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 4;
}
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 3;
}
}
instance of movieClip 8076 {
onClipEvent (load) {
this.ptyp = 1;
}
}
instance of movieClip 8076 {
onClipEvent (load) {
this.ptyp = 2;
}
}
frame 2 {
levdir = 1;
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 4;
}
}
instance plat0 of movieClip 8613 {
onClipEvent (load) {
this.rlim = 139;
this.llim = 97;
this.dir = -1;
}
}
instance plat1 of movieClip 8613 {
onClipEvent (load) {
this.rlim = 174;
this.llim = 112;
this.dir = 1;
}
}
instance plat2 of movieClip 8613 {
onClipEvent (load) {
this.rlim = 171;
this.llim = 83;
this.dir = -1;
}
}
instance of movieClip 7581 con_enem14 {
onClipEvent (load) {
this.dir = -1;
}
}
instance of movieClip 7581 con_enem14 {
onClipEvent (load) {
this.dir = 1;
}
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 2;
}
}
instance of movieClip 7597 con_enem12 {
onClipEvent (load) {
this.ptyp = 1;
}
}
instance of movieClip 8625 {
onClipEvent (load) {
dir = 1;
}
}
instance of movieClip 8625 {
onClipEvent (load) {
dir = -1;
}
}
}
movieClip 9308 {
frame 16 {
stop();
this._parent.gam.endIntro();
}
}
movieClip 9310 {
}
movieClip 9313 {
}
movieClip 9314 {
frame 1 {
stop();
this._visible = false;
}
frame 49 {
this._parent.gam.doRageMove();
}
}
movieClip 9319 {
}
movieClip 9352 {
frame 17 {
stop();
}
}
movieClip 9363 {
}
movieClip 9374 {
frame 7 {
stop();
}
}
movieClip 9375 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 29 {
gotoAndStop(1);
}
frame 39 {
gotoAndStop(1);
}
frame 49 {
gotoAndStop(1);
}
frame 59 {
gotoAndStop(1);
}
frame 69 {
gotoAndStop(1);
}
frame 80 {
stop();
this._parent.doneWon();
}
frame 150 {
_parent.runFail();
}
frame 230 {
stop();
}
}
movieClip 9378 {
frame 192 {
stop();
}
}
movieClip 9399 {
frame 240 {
stop();
}
}
movieClip 9408 {
frame 1 {
stop();
}
frame 120 {
stop();
}
}
movieClip 9411 {
frame 1 {
stop();
this._visible = false;
}
frame 2 {
konamimuse = new Sound(this);
konamimuse.attachSound('con_konamimuse');
konamimuse.start(0, 999);
}
frame 30 {
function doneWon() {
_root.aboboMedal('The Code');
wonit = true;
counter._visible = false;
konamimuse.stop();
gotoAndPlay('retract');
}
function runFail() {
wonit = false;
delete this.onEnterFrame;
counter._visible = false;
konamimuse.stop();
gotoAndPlay('retract');
}
function runGoodCode() {
nokeys = true;
counter.cv = 0;
delete this.onEnterFrame;
counter.onEnterFrame = function () {
++this.cv;
if (this.cv >= 10) {
this._parent.hands.gotoAndPlay('start');
delete this.onEnterFrame;
}
};
}
function wrongCode() {
gotoAndPlay('wrong');
cpointer = 0;
}
stop();
if (!this.inited) {
countsound = new Sound(this);
countsound.attachSound('con_countdown');
showcode._visible = false;
this.inited = true;
cv = 0;
count = 10;
dacode = new Array('U', 'U', 'D', 'D', 'L', 'R', 'L', 'R', 'B', 'A');
mycode = new Array();
cpointer = 0;
A = 65;
B = 83;
B2 = 66;
L = 37;
R = 39;
U = 38;
D = 40;
this.onEnterFrame = function () {
if (!nokeys) {
++cv;
if (cv >= 35) {
cv = 0;
if (count > 0) {
--count;
countsound.start();
}
if (count == 4) {
showcode._visible = true;
showcode.gotoAndPlay(2);
}
if (count == 0) {
counter._visible = false;
hands.gotoAndPlay('fail');
}
}
counter.gotoAndStop('t' + count);
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(B)) {
bup = true;
}
if (!Key.isDown(B2)) {
b2up = true;
}
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (!Key.isDown(U)) {
uup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (Key.isDown(U) && uup) {
uup = false;
hands.gotoAndPlay('up');
if (dacode[cpointer] != 'U') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(D) && dup) {
dup = false;
hands.gotoAndPlay('down');
if (dacode[cpointer] != 'D') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(R) && rup) {
rup = false;
hands.gotoAndPlay('right');
if (dacode[cpointer] != 'R') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(L) && lup) {
lup = false;
hands.gotoAndPlay('left');
if (dacode[cpointer] != 'L') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(A) && aup) {
aup = false;
hands.gotoAndPlay('a');
if (dacode[cpointer] != 'A') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(B) && bup) {
bup = false;
hands.gotoAndPlay('b');
if (dacode[cpointer] != 'B') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
if (Key.isDown(B2) && b2up) {
b2up = false;
hands.gotoAndPlay('b');
if (dacode[cpointer] != 'B') {
wrongCode();
} else {
++cpointer;
if (cpointer == dacode.length) {
runGoodCode();
}
}
}
}
};
}
}
frame 59 {
gotoAndStop('stopped');
}
frame 133 {
if (wonit) {
_root.contraLives();
this._parent.LIVES = 30;
this._parent.gam.d.lives = this._parent.LIVES;
this._parent.gam.g.lives = this._parent.LIVES;
_root.lives = this._parent.LIVES;
this._parent.gam.pausy = false;
this._parent.gam.nokeys = false;
this._parent.gam.lev1muse.setVolume(this._parent.gam.MAXVOL);
this._parent.gam.lev2muse.setVolume(this._parent.gam.MAXVOL);
_root.dbox.text = 'LIVES: 30';
var i = 0;
while (i < this._parent.gam.plays.length) {
var p = this._parent.gam.plays[i];
respawn(p);
++i;
}
} else {
trace('GAME OVER!');
_root.badCode();
}
}
}
movieClip 9412 contra_mainclipx {
frame 1 {
gotoAndStop(2);
LIVES = 3;
}
frame 2 {
stop();
}
}
movieClip 9426 po_blood0 {
frame 13 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9439 po_blood1 {
frame 13 {
this.unloadMovie();
this.removeMovieClip();
stop();
}
}
movieClip 9448 po_bloodsplat0 {
frame 38 {
var p = this._parent._parent;
p.burnMe(this);
}
frame 39 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9455 po_bloodsplat1 {
frame 38 {
var p = this._parent._parent;
p.burnMe(this);
}
frame 39 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9462 po_bloodsplat2 {
frame 38 {
var p = this._parent._parent;
p.burnMe(this);
}
frame 39 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9469 po_bloodsplat3 {
frame 38 {
var p = this._parent._parent;
p.burnMe(this);
}
frame 39 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9476 po_bloodsplat4 {
frame 38 {
var p = this._parent._parent;
p.burnMe(this);
}
frame 39 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9477 po_smokewrap {
frame 5 {
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9480 bb1 {
}
movieClip 9485 cf1 {
}
movieClip 9487 cf2 {
}
movieClip 9489 cf3 {
}
movieClip 9491 cf4 {
}
movieClip 9492 cf5 {
}
movieClip 9494 cf6 {
}
movieClip 9497 bb2 {
}
movieClip 9500 bb3 {
}
movieClip 9503 bb4 {
}
movieClip 9506 bb5 {
}
movieClip 9514 {
}
movieClip 9519 {
frame 1 {
stop();
}
}
movieClip 9526 {
frame 1 {
stop();
}
}
movieClip 9531 {
frame 1 {
stop();
}
}
movieClip 9536 {
frame 1 {
stop();
}
}
movieClip 9541 {
frame 1 {
stop();
}
}
movieClip 9542 {
frame 1 {
stop();
}
}
movieClip 9547 {
frame 30 {
gotoAndPlay(1);
}
frame 37 {
gotoAndPlay('fasta');
}
}
movieClip 9572 {
frame 1 {
stop();
}
}
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 9593 {
}
movieClip 9594 {
}
movieClip 9601 {
frame 1 {
stop();
}
}
movieClip 9606 po_round1 {
frame 1 {
function initMe() {
if (roundd == 1) {
guts.abobo.stop();
guts.cover._visible = false;
}
}
function controls() {
if (!Key.isDown(A)) {
aup = true;
}
if (Key.isDown(A) && aup) {
aup = false;
goTime();
}
if (!bonused && this._parent.ROUND != 1) {
if (!Key.isDown(83)) {
sup = true;
}
if (sup && Key.isDown(83)) {
sup = false;
bonused = true;
guts.arm.gotoAndPlay('fasta');
this._parent.rechargeabobo = true;
}
}
}
function goTime() {
asound.stop();
msound.stop();
delete this.onEnterFrame;
gotoAndPlay('slideup');
}
function chkWordage(cur, str, max, resets) {
var v4 = '';
if (str.charAt(cur) == ' ') {
var v1 = cur + 1;
var v2 = str.charAt(v1);
for (;;) {
if (!(v2 != ' ' && v1 < str.length)) break;
++v1;
v4 += v2;
v2 = str.charAt(v1);
}
}
var v6 = cur + v4.length - resets * max;
if (v6 >= max) {
return true;
} else {
return false;
}
}
stop();
var bonused = false;
var msound = new Sound(this);
var asound = new Sound(this);
msound.attachSound('mactalk');
asound.attachSound('abobotalk');
var mms = Math.ceil(this._parent.mknocks / 15);
var dds = Math.ceil(this._parent.dknocks / 5);
trace('mac damage: ' + mms);
trace('abobo damage: ' + dds);
guts.guts.gotoAndStop('d' + dds);
guts.mac.gotoAndStop('d' + mms);
if (this._parent.m.tranned) {
guts.tit.text = 'BIG MAC';
guts.mac.gotoAndStop('bigmac' + mms);
}
var sup = false;
this._parent.rechargeabobo = false;
initMe();
aup = false;
pointer = 0;
A = 65;
timer = 0;
wcv = 0;
typcv = 0;
resets = 0;
paw = false;
pawcv = 0;
guts.cover.mac.text = '';
guts.cover.abobo.text = '';
var macwords = new Array();
macwords[2] = new Array();
macwords[3] = new Array();
macwords[2].push('The bigger they are, the harder they fall!');
macwords[2].push('You are so ugly, Abobo! But, the more I punch you, the better you look! By the end of this fight, I\'ll make you beautiful.');
macwords[2].push('Doc is training you now? Have him fight for you instead... he sure hits harder than you do! Ha, ha, ha!');
macwords[2].push('Prepare for the deadly Mac Attack!');
macwords[2].push('Tonight I dine on Aboboy soup!');
macwords[3].push('My brain doesn\'t know when to quit... Do you?');
macwords[3].push('Even the smallest person can change the course of the future!');
macwords[3].push('How many fingers am I holding up? Trick question! I\'m wearing boxing gloves! You\'re so stupid, Abobo!');
macwords[3].push('They say I can’t lose. I say you can\'t read! Ha, ha, ha... stupid Abobo!');
macwords[3].push('Hey Doc! Shut your yapper and stuff it with some Twinkies before I stuff it with my fists!');
var awords = new Array();
awords[2] = new Array();
awords[3] = new Array();
if (this._parent.m.tranned) {
awords[2].push('Big Mac\'s fire punches can only be dodged in one direction. Watch out for which side he starts out on!');
awords[3].push('Big Mac\'s fire punches can only be dodged in one direction. Watch out for which side he starts out on!');
}
awords[2].push('Mac\'s smart Abobo! Dodge then counter-attack to land your punches!');
awords[2].push('After dodging, stun him with your spin punch to get some extra hits in!');
awords[2].push('I taught that little bastard everything I know! Now it\'s time for you to teach him everything you know... with your fists!');
awords[2].push('We\'ve all heard the tale of David & Goliath. Well this isn\'t a tale, it\'s real life... so take his head off, Abobo!');
awords[2].push('Dance like a fly, bite like a Bobo!');
awords[2].push('Word on the street is that there\'s a secret south wall you can break through somewhere in the Zelda dungeon level! I wonder what\'s in it?');
awords[3].push('Dodge then counter-attack to land your punches Abobo!');
awords[3].push('After dodging, stun him with your spin punch to get some extra hits in!');
awords[3].push('Don\'t give up, Abobo! Remember, he\'s got your son and that ain\'t no fun, so punch his face \'til you have him on the run!');
awords[3].push('Hey Abobo, did you know I once auditioned for the role of Carl Winslow? True story.');
awords[3].push('Hey Abobo, did you happen to find the secret at the end of level 1 before the boss fight? No? Guess you\'ll have to look again after you defeat Little Mac!');
awords[3].push('Think of yourself as a professor and Little Mac as your student. It\'s time to teach him about pain!');
whichmac = macwords[roundd][random(macwords[roundd].length)];
whichabobo = awords[roundd][random(awords[roundd].length)];
this.onEnterFrame = function () {
controls();
if (paw) {
++pawcv;
if (pawcv >= 10) {
pawcv = 0;
paw = false;
if (pointer == 0) {
var v2 = guts.cover.mac;
} else {
var v2 = guts.cover.abobo;
}
v2.text = '';
++resets;
}
}
if (roundd != 1 && !finished && !paw) {
++timer;
if (timer == 20) {
msound.start();
msound.onSoundComplete = function () {
msound.start();
};
}
if (timer > 20) {
++typcv;
if (typcv == 2) {
typcv = 0;
if (pointer == 0) {
v2 = guts.cover.mac;
var v1 = whichmac;
var v3 = chkWordage(wcv, v1, 70, resets);
if (v3) {
paw = true;
}
} else {
v2 = guts.cover.abobo;
var v1 = whichabobo;
var v3 = chkWordage(wcv, v1, 80, resets);
if (v3) {
paw = true;
}
}
v2.text += (v1.charAt(wcv)).toUpperCase();
++wcv;
if (wcv == v1.length) {
if (pointer == 0) {
msound.stop();
} else {
asound.stop();
}
}
if (wcv > v1.length + 10) {
if (pointer == 0) {
pointer = 1;
resets = 0;
wcv = 0;
asound.start();
asound.onSoundComplete = function () {
asound.start();
};
} else {
finished = true;
}
}
}
}
}
};
}
frame 2 {
roundholder.gotoAndStop(roundd);
}
frame 99 {
stop();
this._parent.initRound();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 9608 punch_pholder {
}
movieClip 9624 {
}
movieClip 9630 {
}
movieClip 9631 {
}
movieClip 9634 {
frame 158 {
stop();
this._parent.gotoAndStop('fight');
}
}
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 9642 {
}
movieClip 9644 {
}
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 9651 {
}
movieClip 9656 {
}
movieClip 9659 {
}
movieClip 9663 {
}
movieClip 9664 {
}
movieClip 9671 {
frame 8 {
stop();
}
}
movieClip 9672 {
}
movieClip 9673 {
frame 1 {
stop();
}
frame 46 {
gotoAndPlay('cheer');
}
}
movieClip 9676 {
}
movieClip 9683 {
}
movieClip 9686 {
}
movieClip 9693 {
}
movieClip 9699 {
}
movieClip 9745 {
}
movieClip 9838 {
}
movieClip 9842 {
}
movieClip 9847 {
}
movieClip 9870 {
}
movieClip 9871 {
}
movieClip 9880 {
}
movieClip 9948 {
}
movieClip 9950 {
frame 2 {
}
frame 181 {
_parent.abo.gotoAndPlay('restart');
}
frame 182 {
stop();
}
}
movieClip 9961 {
}
movieClip 9970 {
}
movieClip 9972 {
frame 5 {
this._parent.tar.wobble = 10;
}
frame 11 {
stop();
}
}
movieClip 9974 {
}
movieClip 9980 {
}
movieClip 10176 {
frame 19 {
stop();
}
}
movieClip 10241 {
frame 19 {
stop();
}
}
movieClip 10256 {
frame 13 {
stop();
}
}
movieClip 10294 {
frame 15 {
stop();
}
}
movieClip 10390 {
frame 75 {
_parent.gotoAndPlay(2);
}
}
movieClip 10399 {
}
movieClip 10408 {
frame 15 {
stop();
}
}
movieClip 10417 {
frame 1 {
stopAllSounds();
}
frame 173 {
stop();
}
}
movieClip 10447 {
frame 1 {
stopAllSounds();
}
frame 72 {
stopAllSounds();
}
frame 145 {
stop();
}
}
movieClip 10467 {
}
movieClip 10476 {
}
movieClip 10477 {
frame 1 {
stopAllSounds();
}
frame 177 {
stop();
}
}
movieClip 10489 {
}
movieClip 10490 {
frame 1 {
stopAllSounds();
}
frame 87 {
stop();
}
}
movieClip 10496 {
frame 22 {
stop();
}
frame 27 {
stop();
}
}
movieClip 10500 {
frame 1 {
stopAllSounds();
}
frame 72 {
stop();
}
}
movieClip 10507 {
}
movieClip 10527 {
}
movieClip 10533 {
frame 1 {
stopAllSounds();
}
frame 94 {
stopAllSounds();
}
frame 209 {
stop();
}
}
movieClip 10551 {
frame 1 {
stopAllSounds();
}
frame 137 {
stop();
}
frame 160 {
stop();
}
}
movieClip 10560 {
}
movieClip 10579 {
frame 11 {
stop();
}
}
movieClip 10587 {
}
movieClip 10610 {
frame 254 {
stopAllSounds();
_parent._parent.play();
}
}
movieClip 10611 {
frame 1 {
stop();
}
frame 1053 {
stopAllSounds();
}
frame 1178 {
stopAllSounds();
}
frame 1179 {
stop();
}
}
movieClip 10632 {
frame 9 {
stop();
}
}
movieClip 10642 {
frame 7 {
stop();
}
}
movieClip 10644 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 72 {
stopAllSounds();
}
frame 374 {
_parent.gotoAndPlay('playagain');
}
}
movieClip 10680 {
}
movieClip 10688 {
}
movieClip 10711 {
frame 7 {
stop();
}
}
movieClip 10731 {
frame 1 {
tar = this._parent._parent;
}
frame 46 {
stop();
}
frame 56 {
stop();
}
frame 120 {
stop();
}
frame 208 {
stop();
var p = this._parent._parent;
p.fightReady();
}
frame 221 {
stop();
}
frame 227 {
stop();
}
frame 240 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 5);
}
frame 242 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 5);
}
frame 248 {
stop();
}
frame 249 {
}
frame 278 {
stop();
}
frame 296 {
stop();
}
frame 316 {
stop();
}
frame 350 {
tar.wobble = 5;
tar.aboboDown();
}
frame 367 {
stop();
}
frame 375 {
tar.wobble = 5;
}
frame 383 {
stop();
}
frame 416 {
tar.endRefCount();
}
frame 437 {
tar.reAlign();
}
frame 451 {
stop();
}
frame 460 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 10);
}
frame 462 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 10);
}
frame 477 {
stop();
}
frame 492 {
stop();
}
frame 502 {
tar.chkEndLaugh();
}
frame 514 {
stop();
}
frame 547 {
tar.endRefCount();
}
frame 566 {
tar.reAlign();
}
frame 578 {
stop();
}
frame 619 {
tar.wobble = 5;
tar.aboboDown();
}
frame 646 {
stop();
}
frame 658 {
stop();
}
frame 680 {
stop();
}
frame 693 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 5);
}
frame 695 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 5);
}
frame 703 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 5);
}
frame 703 {
stop();
}
frame 707 {
stop();
}
frame 767 {
stop();
}
frame 774 {
stop();
}
frame 775 {
tar.wobble = 5;
}
frame 784 {
stop();
}
frame 795 {
stop();
}
frame 801 {
stop();
}
frame 810 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 10);
}
frame 812 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 10);
}
frame 827 {
stop();
}
frame 831 {
stop();
}
frame 843 {
stop();
}
frame 863 {
stop();
}
frame 869 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 7);
}
frame 871 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 0, 0, 7);
}
frame 875 {
stop();
}
frame 882 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 7);
}
frame 884 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea1, 1, 0, 7);
}
frame 889 {
stop();
}
frame 937 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 939 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 949 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 951 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 961 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 963 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 972 {
gotoAndPlay('skippy');
}
frame 973 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 975 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 985 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 987 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 996 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 998 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1008 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1010 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1020 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1022 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1032 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1034 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1044 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1046 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 10);
}
frame 1101 {
stop();
tar.endRageMove();
}
frame 1184 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1186 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1194 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1196 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1204 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1206 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1214 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1216 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1224 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1226 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1260 {
tar.endRageMove();
}
frame 1356 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1358 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1362 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1364 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1368 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1370 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1373 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1375 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1379 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1381 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 15);
}
frame 1384 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1386 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 15);
}
frame 1416 {
tar.endRageMove();
}
frame 1564 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1566 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1593 {
tar.endRageMove();
}
frame 1618 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1620 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1626 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 45);
}
frame 1628 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 1, 0, 45);
}
frame 1634 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1636 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1653 {
tar.endRageMove();
}
frame 1797 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1799 {
var tar = this._parent._parent;
tar.chkHit(this.hitarea, 0, 0, 45);
}
frame 1818 {
tar.endRageMove();
}
frame 1897 {
_root.aboboMedal('It\'s So Bad');
}
frame 1912 {
tar._parent.hideHud();
tar.hideMac();
}
frame 2093 {
tar.showMac();
}
frame 2122 {
stop();
var aup = false;
var sup = false;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (!Key.isDown(83)) {
sup = true;
}
if (Key.isDown(65) && sup && Key.isDown(83) && sup) {
sup = false;
aup = false;
_root.unlockStuff();
delete this.onEnterFrame;
play();
}
};
}
frame 2176 {
tar.hideMac();
}
frame 2637 {
stop();
}
frame 2735 {
tar.hideMac();
}
frame 2978 {
stopAllSounds();
}
frame 3093 {
stop();
tar.runEnding();
}
}
movieClip 10732 {
}
movieClip 10743 {
}
// unknown tag 88 length 37
movieClip 10776 {
frame 1 {
stop();
}
frame 80 {
stop();
}
frame 352 {
this._parent.countedTen();
}
frame 384 {
stop();
this._parent.runKnockOut();
}
frame 428 {
stop();
}
frame 479 {
stop();
this._parent.endTko();
}
frame 479 {
stop();
}
frame 515 {
stop();
this._parent.endKnockout();
}
frame 566 {
stop();
}
frame 566 {
stop();
this._parent.endTko2();
}
}
movieClip 10781 {
}
movieClip 10784 {
}
movieClip 10791 {
}
movieClip 10802 {
}
movieClip 10847 {
}
movieClip 10864 {
}
movieClip 10885 {
}
movieClip 10926 {
}
movieClip 11031 {
frame 14 {
stop();
}
}
movieClip 11036 {
}
movieClip 11047 {
}
movieClip 11054 {
}
movieClip 11064 {
}
movieClip 11070 {
}
movieClip 11077 {
}
movieClip 11078 {
frame 1 {
tar = this._parent._parent;
dude = this._parent;
}
frame 7 {
gotoAndPlay('corner');
}
frame 32 {
gotoAndPlay('rest');
}
frame 43 {
gotoAndPlay('tired');
}
frame 54 {
gotoAndPlay('rest');
}
frame 66 {
tar.dodgeRecover(dude);
}
frame 91 {
tar.dodgeRecover(dude);
}
frame 115 {
tar.chkBadPunch(dude, box, 0, 5);
}
frame 123 {
stop();
tar.endAtk(dude);
}
frame 146 {
tar.chkBadPunch(dude, box, 1, 5);
}
frame 152 {
stop();
tar.endAtk(dude);
}
frame 168 {
stop();
}
frame 188 {
stop();
tar.endAtk(dude);
}
frame 306 {
tar.chkQuickRecover();
}
frame 314 {
stop();
}
frame 322 {
tar.chkQuickRecover();
}
frame 329 {
stop();
}
frame 366 {
tar.chkBadPunch(dude, box, 0, 8);
}
frame 368 {
tar.chkBadPunch(dude, box, 0, 8);
}
frame 382 {
stop();
tar.endAtk(dude);
}
frame 463 {
this._parent._parent.endRefCount();
}
frame 505 {
this._parent._parent.reAlign();
}
frame 520 {
stop();
this._parent._parent.runGetUp();
}
frame 522 {
this._parent._parent.endRefCount();
}
frame 625 {
this._parent._parent.reAlign();
}
frame 639 {
stop();
this._parent._parent.runGetUp();
}
frame 658 {
this._parent._parent.endRefCount();
}
frame 818 {
this._parent._parent.reAlign();
}
frame 832 {
stop();
this._parent._parent.runGetUp();
}
frame 888 {
this._parent._parent.wobble = 10;
this._parent._parent.macDown();
stop();
}
frame 944 {
this._parent._parent.wobble = 10;
this._parent._parent.macDown();
stop();
}
frame 957 {
gotoAndPlay('macwins');
}
frame 1206 {
stop();
tar.endAtk(dude);
}
frame 1635 {
this._parent._parent.wobble = 10;
}
frame 1672 {
this._parent._parent.wobble = 10;
}
frame 1727 {
stop();
this._parent._parent.endTransform();
}
frame 1736 {
gotoAndPlay('bigrest');
}
frame 1766 {
tar.chkBadPunch(dude, box, 0, 3);
}
frame 1768 {
tar.chkBadPunch(dude, box, 0, 3);
}
frame 1783 {
tar.chkBadPunch(dude, box, 1, 3);
}
frame 1785 {
tar.chkBadPunch(dude, box, 1, 3);
}
frame 1798 {
stop();
tar.endAtk(dude);
}
frame 1829 {
tar.chkBadPunch(dude, box, 1, 3);
}
frame 1831 {
tar.chkBadPunch(dude, box, 1, 3);
}
frame 1840 {
stop();
tar.endAtk(dude);
}
frame 1869 {
tar.chkBadPunch(dude, box, 0, 3);
}
frame 1871 {
tar.chkBadPunch(dude, box, 0, 3);
}
frame 1879 {
stop();
tar.endAtk(dude);
}
frame 1886 {
tar.dodgeRecover(dude);
}
frame 1893 {
tar.dodgeRecover(dude);
}
frame 1920 {
tar.chkBadPunch(dude, box, 0, 5);
}
frame 1922 {
tar.chkBadPunch(dude, box, 0, 5);
}
frame 1940 {
stop();
tar.endAtk(dude);
}
frame 1966 {
tar.chkQuickRecover();
}
frame 1970 {
stop();
}
frame 1973 {
tar.chkQuickRecover();
}
frame 1977 {
stop();
}
frame 1984 {
gotoAndPlay('bigmacwins');
}
frame 1992 {
gotoAndPlay('bigcorner');
}
frame 2007 {
stop();
gotoAndPlay('bigrest');
}
frame 2042 {
this._parent._parent.wobble = 10;
}
frame 2045 {
this._parent._parent.wobble = 10;
}
frame 2049 {
this._parent._parent.wobble = 10;
}
frame 2063 {
stop();
this._parent._parent.endRevert();
}
frame 2098 {
gotoAndPlay('bigtired');
}
frame 2154 {
this._parent._parent.wobble = 10;
this._parent._parent.macDown();
stop();
}
frame 2213 {
this._parent._parent.wobble = 10;
this._parent._parent.macDown();
stop();
}
frame 2242 {
stop();
}
frame 2244 {
this._parent._parent.endRefCount();
}
frame 2293 {
this._parent._parent.reAlign();
}
frame 2309 {
stop();
this._parent._parent.runGetUp();
}
frame 2408 {
stop();
this._parent._parent.runEnding2();
}
frame 2439 {
tar.chkBadPunch(dude, box, 0, 9);
}
frame 2441 {
tar.chkBadPunch(dude, box, 0, 9);
}
frame 2443 {
tar.chkBadPunch(dude, box, 0, 9);
}
frame 2453 {
stop();
tar.endAtk(dude);
}
}
movieClip 11079 {
}
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 11092 {
}
movieClip 11110 {
}
movieClip 11111 {
}
movieClip 11112 {
}
movieClip 11113 {
}
movieClip 11114 {
}
movieClip 11115 {
}
movieClip 11116 {
}
movieClip 11117 {
}
movieClip 11128 {
}
movieClip 11129 {
}
movieClip 11132 {
}
movieClip 11157 {
frame 23 {
stop();
}
}
movieClip 11195 {
}
movieClip 11206 {
}
movieClip 11216 {
}
movieClip 11223 {
frame 213 {
_root.aboboMedal('Acid Bath');
}
frame 600 {
this._parent.retireScreen();
}
}
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 11232 {
frame 1 {
stopAllSounds();
}
frame 258 {
stop();
var tar = this._parent._parent;
stopAllSounds();
tar.gotoAndStop('intro');
}
}
movieClip 11243 {
}
movieClip 11246 {
frame 1 {
function moveflakes() {
var v1 = 0;
while (v1 < flakes.length) {
var v2 = flakes[v1];
v2._y -= 4;
if (v2._y < -50) {
v2.unloadMovie();
v2.removeMovieClip();
flakes.splice(v1, 1);
--v1;
}
++v1;
}
}
weeer = 0;
counter = 0;
flakes = new Array();
this.onEnterFrame = function () {
moveflakes();
counter = random(10);
if (counter > 8 && !_parent.angry) {
e = this.attachMovie('bb' + (random(5) + 1), 'cloccudaa' + weeer, weeer + 100);
++weeer;
e._x = random(256) + 1;
e._y = 254 + random(30);
flakes.push(e);
}
};
}
}
movieClip 11253 {
}
movieClip 11254 {
frame 1 {
function moveflakes() {
var v2 = 0;
while (v2 < flakes.length) {
var v1 = flakes[v2];
v1._y += 3;
v1._x -= 3 - random(6);
if (v1._y > 260) {
v1.unloadMovie();
v1.removeMovieClip();
flakes.splice(v2, 1);
--v2;
}
++v2;
}
}
weeer = 0;
flakes = new Array();
this.onEnterFrame = function () {
moveflakes();
if (!_parent.angry) {
e = this.attachMovie('cf' + (random(6) + 1), 'cloccudaa' + weeer, weeer + 100);
++weeer;
e._x = random(256) + 1;
e._y = 1 - random(30);
flakes.push(e);
e1 = this.attachMovie('cf' + (random(6) + 1), 'cloccudaa' + weeer, weeer + 100);
++weeer;
e1._x = random(256) + 1;
e1._y = 1 - random(30);
flakes.push(e1);
}
};
}
}
movieClip 11286 {
}
movieClip 11289 {
}
movieClip 11290 {
}
movieClip 11291 {
}
movieClip 11292 {
}
movieClip 11299 {
}
movieClip 11306 {
}
movieClip 11326 {
frame 18 {
_parent.play();
}
}
movieClip 11327 {
}
movieClip 11330 {
frame 19 {
stop();
}
}
movieClip 11333 {
frame 28 {
stop();
}
}
movieClip 11337 {
frame 20 {
stop();
}
}
movieClip 11342 {
}
movieClip 11346 {
frame 26 {
stop();
}
}
movieClip 11350 {
frame 21 {
stop();
}
}
movieClip 11404 {
frame 70 {
stop();
}
}
movieClip 11409 {
frame 3 {
stop();
}
}
movieClip 11416 {
frame 1 {
_parent._parent.killkill._y += 2;
}
frame 2 {
_parent._parent.killkill._y -= 2;
}
}
movieClip 11445 {
}
movieClip 11452 {
}
movieClip 11455 {
}
movieClip 11492 {
}
movieClip 11501 {
}
movieClip 11504 {
}
movieClip 11505 {
frame 1 {
stopAllSounds();
}
frame 1 {
angry = false;
}
frame 543 {
angry = true;
}
frame 546 {
stopAllSounds();
}
frame 649 {
angry = true;
}
frame 687 {
stop();
}
frame 1340 {
stop();
}
frame 1509 {
stop();
}
frame 1659 {
stop();
_parent.gotoAndStop('dream');
}
}
movieClip 11541 {
}
movieClip 11548 {
}
movieClip 11552 {
}
movieClip 11572 {
}
movieClip 11575 {
}
movieClip 11579 {
frame 1 {
var rannnnn = 0;
}
frame 2 {
rannnnn = random(3);
if (rannnnn == 0) {
gotoAndStop(1);
}
if (rannnnn == 1) {
gotoAndStop(10);
}
if (rannnnn == 2) {
gotoAndStop(20);
}
}
frame 10 {
stop();
}
frame 20 {
stop();
}
}
// unknown tag 88 length 37
// unknown tag 88 length 37
// unknown tag 88 length 37
movieClip 11585 {
}
movieClip 11598 {
}
movieClip 11602 {
frame 1 {
stopAllSounds();
}
frame 517 {
stop();
this.onEnterFrame = function () {
dacast._y -= 1;
if (dacast._y < -2600) {
delete this.onEnterFrame;
gotoAndPlay('theend');
}
};
}
frame 518 {
}
frame 646 {
stop();
_root.aboboMedal('Best Ending Evar');
but_backtomenu.onPress = function () {
stopAllSounds();
_root.gotoAndStop('main');
};
but_getaboboy.onPress = function () {
_root.clickEndAboboy();
};
}
frame 709 {
stop();
}
}
movieClip 11603 {
frame 1 {
function startNormalLoop() {
crowdcheer.stop();
ohnoloop.stop();
easyloop.stop();
bgloop.start(0, 999);
}
function getShot() {
var v5 = this._x;
this._x = 0;
var v7 = this.createEmptyMovieClip('endshot', 9987);
var v4 = new flash.display.BitmapData(256, 254, true, 16777215);
v7.attachBitmap(v4, 0);
var v8 = _root;
var v3 = new flash.geom.Matrix();
v3.tx = 0;
v3.ty = 0;
v3.a = 1;
var v6 = 1;
var v9 = new flash.geom.ColorTransform(1, 1, 1, v6, 0, 0, 0, 0);
v4.draw(v8, v3, v9);
this._x = v5;
}
function moveClock() {
if (!m.knockeddown && !d.knockeddown) {
roundcv += 3;
updateClock();
}
}
function updateClock() {
var v3 = Math.floor(roundcv / 24);
var v2 = Math.floor(v3 / 60);
var v1 = Math.floor(v3 - v2 * 60);
if (v1 < 10) {
v1 = '0' + v1;
}
mint.text = v2;
sect.text = v1;
if (v2 == 3 && v1 == '00') {
roundover = true;
roundblink = 0;
stopAllSounds();
introbell.start();
pausy = true;
fighton = false;
nokeys = true;
d.guts.stop();
m.guts.stop();
getShot();
d.attacking = false;
m.attacking = false;
d.throwingstun = false;
m.hit = false;
d.hit = false;
d.onground = false;
d.knockeddown = false;
m.onground = false;
m.knockeddown = false;
if (!m.tranned) {
m.guts.gotoAndPlay('rest');
} else {
m.guts.gotoAndPlay('bigrest');
}
m.starpunching = false;
m.vulnerable = true;
m.vulnamt = 20;
}
}
function hideMac() {
m._visible = false;
}
function showMac() {
m._visible = true;
}
function runEnding() {
gotoAndStop('theend');
}
function runEnding2() {
if (!_root.gotoending) {
if (ROUND == 1) {
_root.aboboMedal('Champ');
}
if (TOTALKNOCKS < 1) {
_root.aboboMedal('I\'m The Greatest');
}
}
d.myColor.setTint(0, 0, 0, 0);
d.raging = false;
bgloop.stop();
mar.gotoAndPlay('retreat');
d.guts.gotoAndPlay('finalmove');
m.guts.gotoAndPlay('revert');
pausy = true;
nokeys = true;
}
function runDecision() {
tcover._visible = false;
tcover.unloadMovie();
tcover.removeMovieClip();
btm.dispose();
pholder.unloadMovie();
pholder.removeMovieClip();
endshot.unloadMovie();
endshot.removeMovieClip();
this._parent.hideHud();
this._parent.fader._visible = false;
gotoAndStop('decision');
trace('decision!');
}
function retireScreen() {
if (this._parent.LIVES > 0) {
--this._parent.LIVES;
this._parent.fader._visible = false;
trace('retire');
gotoAndStop('retire');
} else {
gameOver();
}
}
function gameOver() {
_root.punchoutGameOver();
}
function roundEnding() {
++roundendcv;
++roundblink;
if (roundblink == 4) {
roundblink = 0;
tcover._visible = !tcover._visible;
}
if (roundendcv >= 70 && !showcorner) {
rage = 0;
updateHud();
if (ROUND < 3) {
var v2 = this.attachMovie('po_round1', 'roundoverlay', 9991199);
++ROUND;
ros.text = ROUND;
ro.text = ROUND;
v2.roundd = ROUND;
endshot.unloadMovie();
endshot.removeMovieClip();
} else {
this.lostbydecision = true;
this._parent.fader._visible = true;
this._parent.fader.gotoAndPlay(2);
}
showcorner = true;
}
}
function initRound() {
gupsign._visible = false;
mar.gotoAndStop('still');
rage = 0;
roundendcv = 0;
showcorner = false;
tcover._visible = false;
roundover = false;
roundcv = 0;
updateClock();
pausy = true;
nokeys = true;
fighton = false;
checkingrecharge = true;
d.shocked = false;
d.guts.gotoAndPlay('intro');
var v2 = this.m;
v2.vulncv = 0;
v2.vulnamt = 25;
v2.vulnerable = false;
if (!v2.tranned) {
v2.guts.gotoAndPlay('corner');
} else {
v2.guts.gotoAndPlay('bigcorner');
}
pbellintro.start();
pbellintro.onSoundComplete = function () {
introbell.start();
introbell.onSoundComplete = function () {
if (!roundover) {
initRound2();
d.guts.gotoAndPlay('walkup');
}
};
};
updateHud();
}
function initRound2() {
trace('initRound2 FUNCTION');
if (this.rechargeabobo && this.addedlife) {
_root.aboboMedal('Thanks Doc');
}
this.addedlife = false;
checkingrecharge = false;
this.rechargeabobo = false;
roundendcv = 0;
rintro.start();
rintro.onSoundComplete = function () {
pausy = false;
startNormalLoop();
};
refcv = 0;
shakedir = 1;
rage = 0;
d.hp = 100;
d.maxhp = d.hp;
d.hitcv = 0;
d.stunamt = 0;
d.lastpress = '';
d.hit = false;
d.knockeddown = false;
d.gettingup = false;
d.getupcv = 0;
if (!m.tranned) {
m.guts.gotoAndPlay('corner');
} else {
m.guts.gotoAndPlay('bigcorner');
}
if (ROUND == 1) {
m.hp = 100;
}
m.maxhp = 100;
m.gettingup = false;
m.getupcv = 0;
m.hitcv = 0;
m.aicv = 0;
m.dodging = false;
m.pat = 0;
m.knockeddown = false;
m.hit = false;
m.punchcount = 0;
m.punchdir = 0;
m.vulncv = 0;
m.vulnamt = 25;
m.vulnerable = false;
m.tired = false;
m.tiredcv = 0;
m.starpunching = false;
updateHud();
}
function ref() {
if (!fighton && !roundover) {
++refcv;
if (refcv == 1) {
mar.gotoAndPlay('startfight');
}
var v1 = 45;
if (refcv >= v1) {
d.guts.gotoAndPlay('startfight');
if (!m.tranned) {
m.guts.gotoAndPlay('startfight');
} else {
m.guts.gotoAndPlay('bigstartfight');
}
if (refcv >= v1 + 20) {
fighton = true;
}
}
}
}
function fightReady() {
nokeys = false;
pausy = false;
d.guts.gotoAndPlay('rest');
d.attacking = false;
d.throwingstun = false;
d.stunned = false;
d.atkcv = 0;
d.numknocks = 0;
m.knockeddown = false;
m.groundcv = 0;
m.numknocks = 0;
}
function runCheer() {
crowd.gotoAndPlay('cheer');
crowdcheer.start(0, 999);
}
function endCheer() {
crowd.gotoAndPlay('norm');
}
function dodgeRecover(who) {
who.dodging = false;
who.attacking = false;
if (!who.tranned) {
if (!who.tired) {
who.guts.gotoAndPlay('rest');
} else {
who.guts.gotoAndPlay('tired');
}
} else {
if (!who.tired) {
who.guts.gotoAndPlay('bigrest');
} else {
who.guts.gotoAndPlay('bigtired');
}
}
}
function chkHit(box, dir, ht, pow) {
if (!m.vulnerable && !m.dodging && !m.tired && !ragemoving && !m.starpunching) {
rage -= 5;
m.dodging = true;
var v5 = random(2);
if (v5 == 0) {
var v4 = 'left';
} else {
var v4 = 'right';
}
if (!m.tranned) {
m.guts.gotoAndPlay('dodge' + v4);
} else {
m.guts.gotoAndPlay('bigdodge' + v4);
}
updateHud();
}
if (box.hitTest(m.guts.hitarea) && !m.hit && !pausy && m.vulnerable && !m.dodging) {
m.hp -= pow;
++mknocks;
if (d.throwingstun && !m.tired) {
m.tired = true;
}
if (!m.tranned) {
bloodBurst(128, 150, dir, pow, m);
} else {
bloodBurst(128, 100, dir, pow, m);
}
if (!ragemoving) {
rage += Math.round(pow * 1.5);
} else {
rage = 0;
}
updateHud();
machit.start();
if (m.hp > 0) {
wobble = 3;
if (!m.tranned) {
m.guts.gotoAndPlay('hit' + dir);
} else {
m.guts.gotoAndPlay('bighit' + dir);
}
m.hittime = 14;
m.hit = true;
} else {
++m.numknocks;
if (m.numknocks == 2) {
if (ROUND == 1) {
_root.aboboMedal('Mac Attack');
}
}
m.hit = false;
m.groundcv = 0;
m.aicv = 0;
wobble = 5;
m.hp = 0;
bgloop.stop();
easyloop.start(0, 999);
if (!m.tranned) {
m.guts.gotoAndPlay('knockdown' + dir);
} else {
m.guts.gotoAndPlay('bigknockdown' + dir);
}
m.knockeddown = true;
runCheer();
}
updateHud();
}
}
function updateHud() {
_root.hud.nams.text = 'LITTLE MAC';
_root.hud.bbar._xscale = (m.hp / m.maxhp) * 100;
if (d.hp <= 0) {
d.hp = 0;
}
_root.hud.dbar._xscale = (d.hp / d.maxhp) * 100;
if (rage >= MAXRAGE) {
rage = MAXRAGE;
onRage();
} else {
offRage();
}
if (rage < 0) {
rage = 0;
}
_root.hud.rbar._xscale = (rage / MAXRAGE) * 100;
_root.poRage(rage);
if (!m.tranned) {
m.nam = 'LITTLE MAC';
m.picid = 127;
} else {
m.nam = 'BIG MAC';
m.picid = 128;
}
d.lives = this._parent.LIVES;
_root.hud.updateBad(m, false, true);
_root.hud.updateMe(d);
}
function onRage() {
d.raging = true;
}
function offRage() {
if (d.raging) {
d.raging = false;
d.myColor.setTint(0, 0, 0, 0);
}
}
function macDown() {
trace('running macDown: ' + m.numknocks);
if (m.numknocks < 3) {
startRefCount();
} else {
runTko2();
}
}
function aboboDown() {
if (d.numknocks < 3) {
startRefCount();
} else {
runTko();
}
}
function endRefCount() {
mar.gotoAndStop('backtofight');
}
function reAlign() {
mar.gotoAndPlay('restart');
}
function startRefCount() {
mar.gotoAndPlay('countdown');
}
function countedTen() {
pausy = true;
nokeys = true;
}
function runTko2() {
trace('running tko2');
d.myColor.setTint(0, 0, 0, 0);
d.raging = false;
pausy = true;
nokeys = true;
mar.gotoAndPlay('tko2');
}
function runTko() {
pausy = true;
nokeys = true;
mar.gotoAndPlay('tko');
}
function endTko() {
endKnockout();
}
function endTko2() {
pausy = true;
nokeys = true;
d.guts.stop();
m.guts.gotoAndPlay('biggetup2');
}
function runKnockOut() {
mar.gotoAndPlay('ko');
pausy = true;
nokeys = true;
}
function endKnockout() {
ohnoloop.stop();
overbell.start();
crowdcheer.start(0, 20);
if (!m.tranned) {
m.guts.gotoAndPlay('macwins');
} else {
m.guts.gotoAndPlay('bigmacwins');
}
this.lostbydecision = false;
this._parent.fader._visible = true;
this._parent.fader.gotoAndPlay(2);
}
function controls() {
var v2 = d;
var v3 = -1;
if (v2.knockeddown && v2.getupshow) {
if (!v2.gettingup) {
v2.recovercv -= 3;
if (v2.recovercv < 0) {
v2.recovercv = 0;
}
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(B)) {
bup = true;
}
if (Key.isDown(B) && bup) {
bup = false;
if (v2.lastpress == '' || v2.lastpress == 'a') {
v2.lastpress = 'b';
v2.recovercv += 10;
}
}
if (Key.isDown(A) && aup) {
aup = false;
if (v2.lastpress == '' || v2.lastpress == 'b') {
v2.lastpress = 'a';
v2.recovercv += 10;
}
}
if (v2.recovercv < 30) {
v2.guts.gotoAndStop('down' + v2.falldir);
}
if (v2.recovercv >= 45 && v2.recovercv < 75) {
v2.guts.gotoAndStop('getupmid' + v2.falldir);
}
if (v2.recovercv >= 75) {
v2.guts.gotoAndPlay('getupmid' + v2.falldir);
v2.lastpress = '';
v2.recovercv = 0;
v2.gettingup = true;
v2.getupcv = 0;
gupsign._visible = false;
}
} else {
++v2.getupcv;
if (v2.getupcv >= 54) {
endCheer();
v2.gettingup = false;
v2.getupcv = 0;
v2.hp = 100;
startNormalLoop();
v2.knockeddown = false;
v2.hit = false;
v2.attacking = false;
v2.throwingstun = false;
v2.guts.gotoAndStop('rest');
v2.getupshow = false;
updateHud();
}
}
}
if (!v2.hit && !v2.knockeddown) {
if (!Key.isDown(U)) {
uup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(B)) {
bup = true;
}
if (Key.isDown(U) && uup) {
uup = false;
}
if (Key.isDown(D) && dup) {
dup = false;
}
if (Key.isDown(R) && rup) {
if (!v2.attacking) {
v2.guts.gotoAndPlay('dodgeright');
v2.attacking = true;
v2.atktimer = 7;
}
rup = false;
}
if (Key.isDown(L) && lup) {
if (!v2.attacking) {
v2.guts.gotoAndPlay('dodgeleft');
v2.attacking = true;
v2.atktimer = 7;
}
lup = false;
}
if (Key.isDown(A) && Key.isDown(B) && v2.raging) {
v2.attacking = false;
v2.throwingstun = false;
m.hit = false;
m.attacking = false;
m.tired = false;
m.vulnerable = true;
bup = false;
aup = false;
ragemoving = true;
_root.aboboMedal('Punchy Power');
nokeys = true;
if (!m.tranned) {
m.guts.gotoAndStop('rest');
} else {
m.guts.gotoAndStop('bigrest');
}
if (m.numknocks < 4) {
chooseRageMove();
} else {}
++rmovepointer;
if (rmovepointer >= maxrmoves) {
rmovepointer = 0;
}
bgloop.stop();
rage = 0;
updateHud();
offRage();
}
if (Key.isDown(A) && aup) {
aup = false;
v3 = 0;
}
if (Key.isDown(B) && bup) {
bup = false;
v3 = 1;
}
if (!v2.attacking) {
if (v3 != -1) {
v2.attacking = true;
if (!Key.isDown(U) && !Key.isDown(D)) {
v2.atktimer = 18;
v2.guts.gotoAndPlay('punch' + v3);
v2.throwingstun = true;
}
if (Key.isDown(U) && !Key.isDown(D)) {
v2.atktimer = 19;
v2.guts.gotoAndPlay('slowuppercut' + v3);
}
if (!Key.isDown(U) && Key.isDown(D)) {
v2.atktimer = 16;
v2.guts.gotoAndPlay('cross' + v3);
}
}
} else {
++v2.atkcv;
if (v2.atkcv >= v2.atktimer) {
v2.atkcv = 0;
v2.attacking = false;
v2.throwingstun = false;
if (m.knockeddown) {
v2.guts.gotoAndPlay('laugh');
nokeys = true;
} else {
v2.guts.gotoAndPlay('rest');
}
}
}
}
}
function chooseRageMove() {
var v1 = random(rageys.length);
d.guts.gotoAndPlay('ragemove' + rageys[v1]);
rageys.splice(v1, 1);
if (rageys.length <= 0) {
rageys = new Array(0, 1, 2, 3, 4, 5);
}
}
function endRevert() {
m.tranned = false;
}
function endRageMove() {
ragemoving = false;
d.atkcv = 0;
d.attacking = false;
d.throwingstun = false;
d.atktimer = 0;
endAtk(d);
if (m.knockeddown) {
d.guts.gotoAndPlay('laugh');
nokeys = true;
} else {
nokeys = false;
d.guts.gotoAndPlay('rest');
startNormalLoop();
}
}
function chkQuickRecover() {
if (ragemoving) {
if (!m.tranned) {
if (!m.tired) {
m.guts.gotoAndStop('rest');
} else {
m.guts.gotoAndStop('tired');
}
} else {
if (!m.tired) {
m.guts.gotoAndStop('bigrest');
} else {
m.guts.gotoAndStop('bigtired');
}
}
m.hitcv = 0;
m.hit = false;
}
}
function phys(who) {
if (who.raging) {
++who.ragecv;
var v4 = 0;
while (v4 < 3) {
var v2 = this.attachMovie('po_smokewrap', 'smokepoof' + effcv, effcv + 12930);
++effcv;
v2._x = 128 + random(50) - 25;
v2._y = 160 - random(90);
var v3 = random(2);
if (v3 == 0) {
v3 = -1;
}
v2._xscale = v3 * 100;
++v4;
}
if (who.ragecv >= who.rcolswitch) {
who.ragecv = 0;
var v6 = who.rcols[who.colpointer];
who.myColor.setTint(v6[0], v6[1], v6[2], v6[3]);
++who.colpointer;
if (who.colpointer >= who.rcols.length) {
who.colpointer = 0;
}
}
}
if (who.hit) {
++who.hitcv;
if (who.hitcv >= who.stunamt) {
who.guts.gotoAndPlay('rest');
who.hitcv = 0;
who.hit = false;
}
}
if (who.knockeddown) {
++who.groundcv;
if (who.groundcv == 34) {
who.getupshow = true;
}
}
}
function ai() {
var v1 = m;
if (v1.knockeddown) {
++v1.groundcv;
if (v1.groundcv == 150) {
if (!v1.tranned) {
var v3 = v1.numknocks - 1;
trace('numknockes: ' + v1.numknocks);
v1.guts.gotoAndPlay('getup' + v3);
} else {
v1.guts.gotoAndPlay('biggetup');
}
v1.attacking = false;
v1.tired = false;
v1.vulnerable = false;
v1.gettingup = true;
v1.getupcv = 0;
v1.groundcv = 0;
}
} else {
if (v1.tired) {
++v1.tiredcv;
if (v1.tiredcv >= 100) {
v1.tired = false;
v1.tiredcv = 0;
if (!v1.hit) {
if (!v1.tranned) {
v1.guts.gotoAndPlay('rest');
} else {
v1.guts.gotoAndPlay('bigrest');
}
}
}
}
if (v1.vulnerable && !v1.tired) {
++v1.vulncv;
if (v1.vulncv >= v1.vulnamt) {
v1.vulncv = 0;
v1.vulnerable = false;
}
}
if (v1.hit) {
++v1.hitcv;
if (v1.hitcv >= v1.hittime) {
v1.attacking = false;
v1.hitcv = 0;
v1.hit = false;
m.gettingup = false;
m.getupcv = 0;
m.hitcv = 0;
m.aicv = 0;
m.dodging = false;
m.knockeddown = false;
m.hit = false;
m.starpunching = false;
if (!v1.tranned) {
if (!v1.tired) {
v1.guts.gotoAndPlay('rest');
} else {
v1.guts.gotoAndPlay('tired');
}
} else {
if (!v1.tired) {
v1.guts.gotoAndPlay('bigrest');
} else {
v1.guts.gotoAndPlay('bigtired');
}
}
}
}
}
if (!v1.knockeddown && !v1.hit && !v1.gettingup && !d.knockeddown && !v1.tired) {
if (!v1.dodging) {
if (!v1.attacking) {
if (!v1.tranned) {
if (v1.pat < 2 || v1.pat > 3 && v1.pat < 6) {
++v1.aicv;
if (v1.aicv >= 30) {
v1.aicv = 0;
++v1.pat;
++v1.punchcount;
v1.guts.gotoAndPlay('punchup' + v1.punchdir);
if (v1.punchdir == 0) {
v1.punchdir = 1;
} else {
v1.punchdir = 0;
}
v1.attacking = true;
}
}
if (v1.pat == 2 || v1.pat == 3) {
++v1.aicv;
if (v1.aicv >= 20) {
++v1.pat;
v1.guts.gotoAndPlay('superuppercut');
v1.starpunching = true;
v1.attacking = true;
v1.aicv = 0;
}
}
if (v1.pat >= 6) {
++v1.aicv;
if (v1.aicv >= 20) {
++v1.pat;
v1.guts.gotoAndPlay('swirlpunch');
v1.starpunching = true;
v1.attacking = true;
v1.aicv = 0;
if (v1.pat == 7) {
v1.pat = 0;
}
}
}
} else {
if (v1.pat == 0) {
++v1.aicv;
if (v1.aicv >= 20) {
v1.starpunching = true;
v1.guts.gotoAndPlay('bigflurry');
v1.attacking = true;
v1.aicv = 0;
++v1.pat;
}
}
if (v1.pat == 1) {
++v1.aicv;
if (v1.aicv >= 30) {
var v2 = random(2);
if (v2 == 0) {
var v4 = 'right';
}
if (v2 == 1) {
v4 = 'left';
}
v1.starpunching = true;
v1.guts.gotoAndPlay(v4 + 'fireball');
v1.attacking = true;
v1.aicv = 0;
++v1.pat;
}
}
if (v1.pat == 2) {
++v1.aicv;
if (v1.aicv >= 30) {
v1.starpunching = true;
v1.guts.gotoAndPlay('groundslam');
v1.attacking = true;
v1.aicv = 0;
v1.pat = 0;
}
}
}
}
}
}
}
function bloodBurst(x, y, dir, amt, who) {
if (who == d) {
if (dir == 0) {
dir = 1;
} else {
dir = -1;
}
} else {
if (dir == 0) {
dir = -1;
}
}
var v5 = 0;
if (amt >= 10) {
v5 = 1;
}
var v2 = this.attachMovie('po_blood' + v5, 'bburst' + effcv, effcv + 99871);
++effcv;
v2._x = x;
v2._y = y;
v2._xscale = dir * 100;
var v6 = random(5);
var v3 = burn.attachMovie('po_bloodsplat' + v6, 'bsplat' + effcv, effcv + 990202);
dir = random(2);
if (dir == 0) {
dir == -1;
}
v3._xscale = dir * 100;
++effcv;
v3._x = random(244) + 6;
v3._y = 70 + random(150);
}
function burnMe(who) {
var v1 = who;
var v2 = new flash.geom.Matrix();
v2.tx = v1._x - burn._x;
v2.ty = v1._y - burn._y;
v2.a = v1._xscale / 100;
v2.d = v1._yscale / 100;
alf = 1;
var v3 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm2.draw(v1, v2, v3);
}
function chkBadPunch(who, box, dir, amt) {
if (box.hitTest(d.guts.hitarea) && !d.hit && !pausy) {
++dknocks;
rage -= 35;
m.vulnerable = false;
updateHud();
facehit.start();
d.hit = true;
d.hp -= amt * 5;
d.attacking = false;
d.throwingstun = false;
d.atkcv = 0;
d.atktimer = 0;
d.atkdir = -1;
bloodBurst(128, 80, dir, amt, d);
if (d.hp > 0) {
d.stunamt = 16;
d.guts.gotoAndPlay('hugehit' + dir);
} else {
d.hit = false;
rage = 0;
wobble = 5;
d.hp = 0;
d.guts.gotoAndPlay('knockdown' + dir);
++d.numknocks;
++TOTALKNOCKS;
d.knockeddown = true;
d.falldir = dir;
d.recovercv = 0;
d.groundcv = 0;
if (d.numknocks < 3) {
gupsign._visible = true;
}
bgloop.stop();
ohnoloop.start(0, 999);
runCheer();
}
updateHud();
}
}
function endAtk(who) {
who.attacking = false;
if (who == d) {
who.throwingstun = false;
}
if (!who.tranned) {
who.guts.gotoAndPlay('rest');
} else {
who.guts.gotoAndPlay('bigrest');
}
if (who == m) {
m.starpunching = false;
if (!d.hit) {
m.vulnerable = true;
m.vulnamt = 20;
}
m.gettingup = false;
m.getupcv = 0;
m.hitcv = 0;
m.aicv = 0;
m.dodging = false;
m.knockeddown = false;
m.hit = false;
m.vulncv = 0;
m.tired = false;
m.tiredcv = 0;
}
}
function runGetUp() {
startNormalLoop();
m.gettingup = false;
m.getupcv = 0;
m.hitcv = 0;
m.aicv = 0;
m.dodging = false;
m.pat = 0;
m.knockeddown = false;
m.hit = false;
m.punchcount = 0;
m.punchdir = 0;
m.vulnerable = false;
m.tired = false;
m.tiredcv = 0;
m.starpunching = false;
m.vulncv = 0;
m.vulnamt = 25;
m.vulnerable = false;
m.knockeddown = false;
d.knockeddown = false;
d.hitcv = 0;
d.stunamt = 0;
d.lastpress = '';
nokeys = false;
endAtk(m);
endCheer();
m.gettingup = false;
m.aicv = 0;
if (!m.tranned) {
m.guts.gotoAndStop('rest');
} else {
m.guts.gotoAndStop('bigrest');
}
m.hp = 75 + random(25);
updateHud();
endAtk(d);
d.guts.gotoAndPlay('rest');
trace('m.numknocks: ' + m.numknocks);
if (m.numknocks == 2 && !m.tranned) {
pausy = true;
nokeys = true;
m.guts.gotoAndPlay('transform');
d.myColor.setTint(0, 0, 0, 0);
m.tranned = true;
mknocks = 0;
m.aicv = 0;
m.pat = 0;
d.guts.gotoAndStop('stunned');
d.shocked = true;
}
}
function endTransform() {
d.guts.gotoAndPlay('rest');
d.shocked = false;
pausy = false;
nokeys = false;
m.guts.gotoAndPlay('bigrest');
}
function chkEndLaugh() {
if (m.knockeddown) {
d.guts.gotoAndPlay('laugh');
} else {
d.guts.gotoAndPlay('rest');
}
}
function screenShake() {
if (wobble > 0) {
this._x = shakedir * wobble;
--wobble;
shakedir *= -1;
} else {
this._x = 0;
}
}
function chkPause() {
if (!Key.isDown(P)) {
pup = true;
}
if (Key.isDown(P) && pup) {
pup = false;
var v3 = m;
if (!d.knockeddown && !v3.knockeddown) {
if (!pausy) {
pausy = true;
bgloop.setVolume(0);
pholder = this._parent.attachMovie('punch_pholder', 'pholder', this.getNextHighestDepth());
btm = new flash.display.BitmapData(256, 254, true, 16777215);
pholder.guts.attachBitmap(btm, 0);
o = _root;
var m = new flash.geom.Matrix();
m.tx = 0;
m.ty = 0;
m.a = 1;
alf = 1;
var v4 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, m, v4);
pholder.guts.filters = new Array(filter);
} else {
bgloop.setVolume(100);
pausy = false;
btm.dispose();
pholder.unloadMovie();
pholder.removeMovieClip();
}
}
}
}
stop();
TOTALKNOCKS = 0;
d.hp = 100;
d.maxhp = d.hp;
m.hp = 100;
m.maxhp = 100;
checkingrecharge = false;
Stage.showMenu = false;
this._parent.fader._visible = false;
showcorner = true;
this.lostbydecision = false;
nokeys = true;
pausy = true;
rage = 0;
MAXRAGE = 100;
ragemoving = false;
rmovepointer = 0;
maxrmoves = 6;
burn.setMask(gmask);
gupsign._visible = false;
dknocks = 0;
mknocks = 0;
btm2 = new flash.display.BitmapData(256, 254, true, 16777215);
burn.attachBitmap(btm2, 0);
var rageys = new Array(0, 1, 2, 3, 4, 5);
Color.prototype.setTint = function (r, g, b, amount) {
var v2 = new Object();
v2.ba = 100 - amount;
v2.ga = v2.ba;
v2.ra = v2.ba;
var v3 = amount / 100;
v2.rb = r * v3;
v2.gb = g * v3;
v2.bb = b * v3;
this.setTransform(v2);
};
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
this._quality = 'LOW';
d.ragecv = 0;
d.rcolswitch = 3;
d.rcols = new Array();
d.rcols[0] = new Array(256, 0, 0, 50);
d.rcols[1] = new Array(256, 256, 256, 50);
d.rcols[2] = new Array(256, 256, 0, 50);
d.colpointer = 0;
d.myColor = new Color(d);
d.myColor.setTint(0, 0, 0, 0);
effcv = 0;
ROUND = 1;
ros.text = ROUND;
ro.text = ROUND;
showcorner = false;
U = 38;
D = 40;
L = 37;
R = 39;
A = 65;
B = 83;
P = 80;
if (!_root.gotoending) {
var thing = this.attachMovie('po_round1', 'roundoverlay', 9991199);
thing.roundd = ROUND;
d.guts.gotoAndStop('intro');
} else {
tcover._visible = false;
mar._visible = false;
runEnding2();
}
museholder = this.createEmptyMovieClip('museholder', -99);
soundholder = this.createEmptyMovieClip('soundholder', -98);
var introbell = new Sound(soundholder);
introbell.attachSound('bellstart');
var apsound = new Sound(soundholder);
apsound.attachSound('abobopunchsound');
var machit = new Sound(soundholder);
machit.attachSound('pomachit');
var facehit = new Sound(soundholder);
facehit.attachSound('pofacehit');
var pbellintro = new Sound(museholder);
pbellintro.attachSound('prebellintro');
var rintro = new Sound(museholder);
rintro.attachSound('roundintro');
var bgloop = new Sound(museholder);
bgloop.attachSound('bgloop');
var easyloop = new Sound(museholder);
easyloop.attachSound('easyloop');
var ohnoloop = new Sound(museholder);
ohnoloop.attachSound('ohnoloop');
var crowdcheer = new Sound(museholder);
crowdcheer.attachSound('pcrowdcheer');
var overbell = new Sound(museholder);
overbell.attachSound('overbell');
roundcv = 9999;
tcover.swapDepths(9988);
updateHud();
this.onEnterFrame = function () {
if (d.shocked) {
d.guts.gotoAndStop('shocked');
}
if (checkingrecharge) {
if (this.rechargeabobo) {
this.addedlife = true;
d.hp += 0.5;
if (d.hp > d.maxhp) {
d.hp = d.maxhp;
}
updateHud();
}
}
screenShake();
if (!nokeys) {
chkPause();
controls();
}
if (!pausy) {
ref();
if (fighton) {
if (!ragemoving) {
moveClock();
phys(d);
ai();
}
}
}
if (roundover) {
roundEnding();
}
};
}
frame 3 {
this._parent.hideHud();
}
}
movieClip 11606 {
frame 1 {
stop();
}
frame 67 {
stop();
var tar = this._parent;
if (tar.gam.lostbydecision) {
tar.gam.runDecision();
} else {
tar.gam.retireScreen();
}
}
}
movieClip 11607 punch_mainclipU {
frame 1 {
gotoAndStop(3);
}
frame 3 {
function hideHud() {
_root.hud._visible = false;
}
function showHud() {
_root.hud._visible = true;
}
if (_root.gotoending) {
gotoAndStop('fight');
}
if (!this.inited) {
this.LIVES = _root.getPoLives();
this.inited = true;
}
}
frame 3 {
stop();
hideHud();
}
frame 4 {
stop();
if (_root.gotoending) {
}
showHud();
}
}
movieClip 11675 {
frame 1 {
stop();
}
}
frame 3 {
_root._quality = 'HIGH';
lives = undefined;
realgo = false;
arcadelooprunning = false;
nopress = false;
arcadecv = 0;
onmain = false;
aup = false;
skippy = false;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup && !nopress) {
aup = false;
skippy = true;
runIt();
}
if (onmain && !nopress) {
++arcadecv;
if (arcadecv >= 500) {
arcadecv = 0;
onmain = false;
runIt();
arcadelooprunning = true;
}
}
};
}
movieClip 11677 {
}
movieClip 11678 {
}
movieClip 11681 {
}
movieClip 11682 {
}
movieClip 11684 {
}
movieClip 11688 {
}
movieClip 11689 {
}
movieClip 11692 {
}
movieClip 11696 {
}
movieClip 11699 {
}
movieClip 11700 {
}
movieClip 11702 {
}
movieClip 11703 {
}
movieClip 11704 {
}
movieClip 11706 {
}
button 11708 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 11709 {
}
// unknown tag 88 length 65
movieClip 11721 {
}
movieClip 11724 {
}
movieClip 11725 {
}
movieClip 11726 {
}
movieClip 11729 {
}
movieClip 11742 {
}
movieClip 11749 {
}
movieClip 11752 {
}
movieClip 11755 {
}
movieClip 11772 {
}
movieClip 11773 {
}
movieClip 11774 {
}
button 11777 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 11778 {
}
movieClip 11780 {
}
movieClip 11787 {
}
movieClip 11791 {
}
movieClip 11798 {
}
movieClip 11800 {
}
movieClip 11807 {
}
movieClip 11810 {
}
movieClip 11811 {
}
movieClip 11816 {
}
movieClip 11819 {
}
movieClip 11822 {
}
movieClip 11829 {
}
movieClip 11833 {
frame 31 {
}
frame 40 {
gotoAndPlay('loop');
}
frame 41 {
}
}
movieClip 11837 {
}
movieClip 11840 {
frame 30 {
}
frame 37 {
gotoAndPlay('loop');
}
frame 38 {
}
}
movieClip 11845 {
}
movieClip 11848 {
frame 31 {
}
frame 39 {
gotoAndPlay('loop');
}
frame 40 {
}
}
movieClip 11853 {
frame 30 {
}
frame 38 {
gotoAndPlay('loop');
}
frame 39 {
}
}
movieClip 11860 {
frame 30 {
}
frame 38 {
gotoAndPlay('loop');
}
frame 39 {
stop();
}
}
movieClip 11865 {
}
movieClip 11868 {
frame 30 {
}
frame 37 {
gotoAndPlay('loop');
}
frame 38 {
stop();
}
}
movieClip 11875 {
frame 1 {
stop();
}
}
movieClip 11876 {
}
movieClip 11878 {
frame 1 {
stop();
}
}
movieClip 11883 {
}
movieClip 11888 {
}
movieClip 11893 {
}
movieClip 11898 {
}
movieClip 11909 {
}
movieClip 11914 {
}
movieClip 11919 {
}
movieClip 11924 {
}
movieClip 11929 {
}
movieClip 11936 {
}
movieClip 11941 {
}
movieClip 11948 {
}
movieClip 11961 {
}
movieClip 11964 {
frame 41 {
stop();
}
}
movieClip 11971 {
}
movieClip 11978 {
}
movieClip 11985 {
}
movieClip 11996 {
}
movieClip 11999 {
frame 79 {
stop();
}
}
movieClip 12004 {
}
movieClip 12011 {
}
movieClip 12016 {
}
movieClip 12023 {
}
movieClip 12029 {
}
movieClip 12044 {
}
movieClip 12045 {
frame 43 {
stop();
}
}
movieClip 12076 {
frame 19 {
stop();
}
}
movieClip 12085 {
}
movieClip 12097 {
}
movieClip 12100 {
}
movieClip 12113 {
}
movieClip 12126 {
}
movieClip 12137 {
}
movieClip 12142 {
}
movieClip 12143 {
}
movieClip 12144 {
}
movieClip 12145 {
frame 1 {
stop();
this.wid = 77;
}
}
movieClip 12148 {
}
movieClip 12149 {
}
movieClip 12150 {
frame 1 {
stop();
this.wid = 67;
}
}
movieClip 12153 {
}
movieClip 12154 {
}
movieClip 12155 {
frame 1 {
stop();
this.wid = 67;
}
}
movieClip 12170 {
}
movieClip 12175 {
}
movieClip 12176 {
}
button 12178 {
on (release) {
target = 'blank';
getURL('http://www.bomtoons.com/', 'blank');
}
}
button 12179 {
on (release) {
target = 'blank';
getURL('http://www.thepoxbox.com/', 'blank');
}
}
movieClip 12187 {
}
button 12189 {
on (release) {
target = 'blank';
getURL('http://www.i-mockery.com/', 'blank');
}
}
movieClip 12190 {
}
movieClip 12191 {
frame 30 {
stop();
}
}
movieClip 12196 {
}
movieClip 12197 {
frame 53 {
stop();
}
}
// unknown tag 88 length 73
movieClip 12209 {
}
movieClip 12215 {
frame 219 {
stop();
}
}
movieClip 12216 {
frame 16 {
function hideTip() {
this._parent.tipper.unloadMovie();
this._parent.tipper.removeMovieClip();
}
function showTip(msg, x, y) {
hideTip();
var v2 = this._parent.attachMovie('tipper', 'tipper', 4999);
v2._x = x;
v2._y = y;
v2.box.autoSize = true;
v2.box.text = msg.toUpperCase();
v2.box._width = 64;
v2.guts._width = v2.box._width + 4;
v2.guts._height = v2.box._height + 4;
v2.guts._x = 0;
v2.box._y = -v2.guts._height;
v2.box._x = -v2.box._width / 2;
}
function chkAllRest() {
var v3 = true;
var v1 = 0;
while (v1 < 3) {
var v2 = tars[v1];
if (v2.inmotion) {
v3 = false;
}
++v1;
}
if (v3) {
moveIt(0);
pointer0._visible = true;
pointer1._visible = true;
}
}
function moveIt(num) {
_root.duckthud.start();
var v2 = 0;
while (v2 < tars.length) {
var v3 = tars[v2];
v3.gotoAndStop(1);
++v2;
}
pointer0._y = tars[num]._y;
pointer0._x = tars[num]._x;
pointer1._y = tars[num]._y;
pointer1._x = tars[num]._x + tars[num].wid + pointer1._width;
tars[num].gotoAndStop(2);
sel = num;
}
function runSel(num) {
aup = false;
var v4 = false;
if (num == 0) {
this._parent._parent.runIt();
}
if (num == 1) {
_root.nocount = true;
_root.gotoAndStop('levselect');
}
if (num == 2) {
_root.optList();
}
if (num == 3) {
_root.achList();
}
if (num == 4) {
v4 = true;
_root.aboboMedal('Spiffy Supporter');
_root.tshirtlink();
}
if (num == 5) {
v4 = true;
com.newgrounds.API.loadNewgrounds();
}
if (!v4) {
delete this.onEnterFrame;
}
}
function initMe() {
aup = false;
sup = false;
pup = false;
uup = false;
dup = false;
this.onEnterFrame = function () {
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(P)) {
pup = true;
}
if (!Key.isDown(S)) {
sup = true;
}
if (!Key.isDown(U)) {
uup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (Key.isDown(P) && pup) {
pup = false;
}
if (Key.isDown(A) && aup) {
aup = false;
runSel(sel);
}
if (Key.isDown(S) && sup) {
sup = false;
}
if (Key.isDown(U) && uup) {
uup = false;
sel -= 1;
if (sel < 0) {
sel = tars.length - 1;
}
moveIt(sel);
}
if (Key.isDown(D) && dup) {
dup = false;
sel += 1;
if (sel >= tars.length) {
sel = 0;
}
moveIt(sel);
}
};
}
pointer0._visible = false;
pointer1._visible = false;
var h = 0;
while (h < 3) {
var faw = this['opt' + h];
faw.id = h;
faw.hitarea.onRollOver = function () {
moveIt(this._parent.id);
};
faw.hitarea.onPress = function () {
runSel(this._parent.id);
};
++h;
}
var exes = new Array(60, 134, 173, 224);
var dey = 192;
bogame.onRollOver = function () {
showTip('Get the special bonus game starring Aboboy!', 63, dey);
};
bogame.onRollOut = function () {
hideTip();
};
nglink.onRollOver = function () {
showTip('More games on Newgrounds!', 134, dey);
};
nglink.onRollOut = function () {
hideTip();
};
abalink.onRollOver = function () {
showTip('Visit the official game website!', 173, dey);
};
abalink.onRollOut = function () {
hideTip();
};
inst.onRollOver = function () {
showTip('Learn how to use a gamepad with this game!', 224, dey);
};
inst.onRollOut = function () {
hideTip();
};
abalink.onPress = function () {
com.newgrounds.API.loadCustomLink('abobosite');
};
bogame.onPress = function () {
_root.aboboMedal('Spiffy Supporter');
com.newgrounds.API.loadCustomLink('bonusgame');
};
inst.onPress = function () {
com.newgrounds.API.loadCustomLink('gamepad');
};
nglink.onPress = function () {
com.newgrounds.API.loadNewgrounds();
};
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
var tars = new Array(opt0, opt1, opt2);
this.sel = 0;
uup = false;
dup = false;
aup = false;
pup = false;
U = 38;
D = 40;
A = 65;
S = 83;
P = 80;
var i = 0;
while (i < tars.length) {
var t = tars[i];
t.inmotion();
t.homex = t._x;
t._x = -200;
t.dela = i * 2;
t.cv = 0;
t.onEnterFrame = function () {
++this.cv;
if (this.cv >= this.dela) {
if (this._x < this.homex - 1) {
var v2 = this.homex - this._x;
this._x += v2 / 4;
} else {
this._x = this.homex;
this.inmotion = false;
chkAllRest();
delete this.onEnterFrame;
}
}
};
++i;
}
sel = 0;
initMe();
}
frame 45 {
stop();
linkouts._visible = false;
}
frame 52 {
hideTip();
}
frame 147 {
_root.runIt2();
}
}
movieClip 12217 {
frame 110 {
stop();
}
}
movieClip 12218 {
frame 151 {
stop();
}
}
movieClip 12221 {
frame 17 {
stop();
}
}
movieClip 12222 {
frame 1 {
}
frame 51 {
_root._quality = 'LOW';
}
frame 135 {
var links = new Array();
var k = new Array();
k.tar = 'http://www.thepoxbox.com';
k.id = 1;
links.push(k);
var k = new Array();
k.tar = 'http://www.pestoforce.com';
k.id = 2;
links.push(k);
var k = new Array();
k.tar = 'http://www.i-mockery.com';
k.id = 3;
links.push(k);
var p0 = random(links.length);
var g0 = links[p0].tar;
var id0 = links[p0].id;
links.splice(p0, 1);
var p1 = random(links.length);
var g1 = links[p1].tar;
var id1 = links[p1].id;
links.splice(p1, 1);
var p2 = random(links.length);
var g2 = links[p2].tar;
var id2 = links[p2].id;
links.splice(p2, 1);
}
frame 161 {
var tar = n0;
tar.gotoAndStop(id0);
}
frame 165 {
var tar = n0;
tar.gotoAndStop(id0);
}
frame 169 {
var tar = n0;
tar.gotoAndStop(id0);
}
frame 173 {
var tar = n0;
tar.gotoAndStop(id0);
n0.guts.guts2.onPress = function () {
getURL(g0, '_blank');
};
}
frame 188 {
var tar = n1;
tar.gotoAndStop(id1);
}
frame 192 {
var tar = n1;
tar.gotoAndStop(id1);
}
frame 196 {
var tar = n1;
tar.gotoAndStop(id1);
}
frame 200 {
var tar = n1;
tar.gotoAndStop(id1);
n1.guts.guts2.onPress = function () {
getURL(g1, '_blank');
};
}
frame 210 {
var tar = n2;
tar.gotoAndStop(id2);
}
frame 214 {
var tar = n2;
tar.gotoAndStop(id2);
}
frame 218 {
var tar = n2;
tar.gotoAndStop(id2);
}
frame 222 {
var tar = n2;
tar.gotoAndStop(id2);
n2.guts.guts2.onPress = function () {
getURL(g2, '_blank');
};
}
frame 366 {
but_skip.onPress = function () {
_root.aup = false;
_root.skippy = true;
_root.runIt();
};
var i = 0;
while (i < 6) {
var tar = eval('char' + i);
tar._visible = false;
++i;
}
var ran = random(6);
sho = eval('char' + ran);
sho._visible = true;
sho.stop();
this.shot = new Sound(this);
shot.attachSound('duckshot');
this.msgs = new Array();
msgs[0] = 'In the year 1985, the Nintendo Entertainment System';
msgs[1] = 'was created. It brought\nmuch joy to people';
msgs[2] = 'all around the world.\nBut one NES character';
msgs[3] = 'never got a chance\nto share his story.';
msgs[4] = 'Until now...';
cv = 0;
pointer = 0;
changetime = 130;
block.msg.text = msgs[pointer].toUpperCase();
this.onEnterFrame = function () {
if (pointer < msgs.length - 1) {
++cv;
}
if (cv == changetime - 15) {
block.cover.gotoAndPlay(2);
}
if (cv >= changetime) {
cv = 0;
++pointer;
block.msg.text = msgs[pointer].toUpperCase();
if (pointer == 3) {
sho.gotoAndPlay(2);
}
}
};
}
frame 1006 {
sho.gotoAndStop('fail');
var i = 0;
while (i < 2) {
var tar = this['duck' + i];
tar.id = i;
tar.onPress = function () {
_root.aboboMedal('Duck Hunted');
this._parent.duckflash.gotoAndPlay(2);
shot.start();
var v3 = this._parent.attachMovie('deadduck' + this.id, 'deadduck' + this.id, this.id);
v3._x = this._x;
v3._y = this._y;
v3.yvel = -3;
v3.cv = 0;
v3.flipcv = 0;
v3.onEnterFrame = function () {
++this.cv;
if (this.cv >= 10) {
this.gotoAndStop('fall');
++this.flipcv;
if (this.flipcv >= 5) {
this._xscale *= -1;
this.flipcv = 0;
}
this._y += this.yvel;
this.yvel += 1;
if (this._y > 300) {
_root.duckthud.start();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
}
};
this.unloadMovie();
this.removeMovieClip();
};
++i;
}
}
frame 1348 {
_root.runIt();
}
frame 1348 {
stop();
}
frame 1758 {
stop();
}
}
movieClip 12224 {
frame 1 {
this.cacheAsBitmap = true;
}
}
movieClip 12226 {
frame 1 {
this.cacheAsBitmap = true;
}
}
frame 4 {
function confirmClear() {
nocount = true;
var v2 = this.attachMovie('confirmclear', 'pop', 770);
}
function optList() {
nocount = true;
var v2 = this.attachMovie('options', 'pop', 770);
}
function achList() {
nocount = true;
var v2 = this.attachMovie('achlist', 'pop', 770);
}
function unlockList() {
nocount = true;
var v2 = this.attachMovie('unlocklist', 'pop', 770);
}
function tshirtlink() {}
function runIt2() {
if (!arcadelooprunning) {
realgo = true;
}
gotoAndStop('arcadeloop');
}
function runIt() {
if (!nopress) {
delete mainmenu.guts.onEnterFrame;
stopAllSounds();
_root.ding.start();
mainmenu.guts.gotoAndPlay('gotime');
nopress = true;
}
}
var started = false;
_root.masterlev = 1;
_root.gotoending = false;
nocount = false;
delete this.onEnterFrame;
this.onEnterFrame = function () {
if (onmain && !nopress && !nocount) {
++arcadecv;
if (arcadecv >= 1200) {
arcadecv = 0;
onmain = false;
runIt();
arcadelooprunning = true;
}
}
};
aup = false;
lives = undefined;
if (!skippy) {
aboboMedal('Patience');
}
arcadelooprunning = false;
loo = new Sound(this);
loo.attachSound('menuloop');
loo.start(0, 999);
onmain = true;
realgo = false;
nopress = false;
_root._quality = 'LOW';
}
movieClip 12227 {
frame 48 {
stop();
}
}
frame 5 {
function runIt() {
if (!realgo) {
gotoAndStop('main');
} else {
if (!started) {
started = true;
this.drum = new Sound(this);
drum.attachSound('lev1_drumintro');
drum.start();
var v3 = _root.createEmptyMovieClip('temp', 99911);
v3.cv = 0;
v3.onEnterFrame = function () {
++this.cv;
if (this.cv >= 20) {
_root.lev1MusicStart();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
gotoAndStop('lev1');
}
}
}
_root._quality = 'LOW';
_root.gotoending = false;
onmain = false;
nopress = false;
lives = undefined;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup && !nopress) {
aup = false;
skippy = true;
runIt();
}
};
}
movieClip 12230 {
}
movieClip 12238 {
}
movieClip 12264 {
}
movieClip 12265 {
}
movieClip 12268 {
}
movieClip 12275 {
}
movieClip 12291 {
frame 21 {
stop();
}
}
movieClip 12295 {
}
movieClip 12311 {
frame 11 {
stop();
}
}
movieClip 12336 {
frame 41 {
gotoAndPlay('breathe');
}
frame 44 {
play();
}
frame 67 {
stop();
}
}
movieClip 12367 {
frame 31 {
stop();
}
}
movieClip 12379 {
frame 10 {
stop();
}
}
movieClip 12410 {
}
movieClip 12463 {
frame 27 {
stop();
}
}
movieClip 12464 {
}
movieClip 12473 {
frame 14 {
_parent._parent._parent._x += 2;
}
frame 15 {
_parent._parent._parent._x -= 4;
}
frame 16 {
_parent._parent._parent._x += 2;
}
frame 17 {
stop();
}
}
movieClip 12474 {
}
movieClip 12475 {
frame 26 {
stop();
}
}
movieClip 12476 {
frame 54 {
stop();
}
}
movieClip 12477 {
frame 29 {
stop();
}
}
movieClip 12488 {
frame 21 {
stop();
}
}
movieClip 12494 {
}
movieClip 12504 {
}
movieClip 12526 {
}
movieClip 12540 {
}
movieClip 12541 {
frame 16 {
stop();
}
}
movieClip 12544 {
frame 78 {
this._x += 2;
}
frame 79 {
this._x -= 4;
}
frame 80 {
this._x += 2;
}
frame 93 {
this._x += 2;
}
frame 94 {
this._x -= 4;
}
frame 95 {
this._x += 2;
}
frame 96 {
this._x += 2;
}
frame 97 {
this._x -= 4;
}
frame 98 {
this._x += 2;
}
frame 110 {
this._x += 2;
}
frame 111 {
this._x -= 4;
}
frame 112 {
this._x += 2;
}
frame 113 {
this._x += 2;
}
frame 114 {
this._x -= 4;
}
frame 115 {
this._x += 2;
}
frame 116 {
this._x += 2;
}
frame 117 {
this._x -= 4;
}
frame 118 {
this._x += 2;
}
frame 391 {
this._x += 2;
}
frame 392 {
this._x -= 4;
}
frame 393 {
this._x += 2;
}
frame 394 {
this._y += 2;
}
frame 395 {
this._y -= 4;
}
frame 396 {
this._y += 2;
}
frame 397 {
this._x += 2;
}
frame 398 {
this._x -= 4;
}
frame 399 {
this._x += 2;
}
frame 400 {
this._y += 2;
}
frame 401 {
this._y -= 4;
}
frame 402 {
this._y += 2;
}
frame 563 {
_parent.fallensakda.gotoAndPlay('riseup');
_parent._parent.fallensakda.gotoAndPlay('riseup');
fallensakda.gotoAndPlay('riseup');
_root.fallensakda.gotoAndPlay('riseup');
}
frame 1014 {
_root.aboboMedal('Poor Aboboy');
if (!_root.realgo) {
_root.gotoAndStop('intro');
}
}
frame 1018 {
this._x += 2;
}
frame 1019 {
this._x -= 4;
}
frame 1020 {
this._x += 2;
}
frame 1022 {
this._x += 2;
}
frame 1024 {
this._x -= 4;
}
frame 1027 {
this._x += 2;
}
frame 1213 {
stop();
this.drum = new Sound(this);
drum.attachSound('lev1_drumintro');
drum.start();
var a = _root.createEmptyMovieClip('temp', 99911);
a.cv = 0;
a.onEnterFrame = function () {
++this.cv;
if (this.cv >= 20) {
_root.lev1MusicStart();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
_root.gotoAndStop('lev1');
}
}
frame 6 {
stop();
_root.gotoending = false;
lives = undefined;
pausy = false;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
_root._quality = 'LOW';
}
// unknown tag 88 length 36
movieClip 12561 {
}
movieClip 12566 {
}
movieClip 12569 {
}
movieClip 12586 {
frame 1 {
stop();
}
}
movieClip 12587 {
}
movieClip 12588 {
}
movieClip 12590 {
}
movieClip 12591 {
}
movieClip 12592 {
}
movieClip 12593 {
}
movieClip 12594 {
}
movieClip 12595 {
}
movieClip 12596 {
frame 1 {
function moveSel() {
if (this.inited) {
mov.start();
} else {
this.inited = true;
}
selector._x = xpos[curcol];
selector._y = ypos[currow];
var v2 = currow + '_' + curcol;
eyes.gotoAndStop(v2);
}
function runLevel() {
var v2 = true;
if (currow == 0 && curcol == 0) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 1;
}
if (currow == 0 && curcol == 1 && !this.locks[1]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 2;
}
if (currow == 0 && curcol == 2 && !this.locks[2]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 3;
}
if (currow == 1 && curcol == 0 && !this.locks[3]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 4;
}
if (currow == 1 && curcol == 2 && !this.locks[4]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 5;
}
if (currow == 2 && curcol == 0 && !this.locks[5]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 6;
}
if (currow == 2 && curcol == 1 && !this.locks[6]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 7;
}
if (currow == 2 && curcol == 2 && !this.locks[7]) {
v2 = false;
delete this.onEnterFrame;
this.gotoAndPlay('blink');
this.gotowhich = 8;
}
if (v2) {
badsound.start();
}
}
function goBack() {
stopAllSounds();
_root.gotoAndStop('main');
}
function chkBang() {
if (numbobs >= 10) {
_root.aboboMedal('Headbanger');
}
}
stopAllSounds();
this.gotowhich = 1;
var numbobs = 0;
var bobcv = 0;
this.locks = new Array();
var i = 0;
while (i < _root.levlocks.length) {
this.locks[i] = _root.levlocks[i];
++i;
}
but_back.onPress = function () {
goBack();
};
var i = 0;
while (i < locks.length) {
var box = eval('this.t' + i);
var dalock = eval('this.lockers.lock' + i);
if (locks[i]) {
box.text = '???';
} else {
dalock._visible = false;
}
++i;
}
this.badsound = new Sound(this);
badsound.attachSound('badselect');
this.mov = new Sound(this);
mov.attachSound('movesel');
this.tel = new Sound(this);
tel.attachSound('teleport');
var xpos = new Array(-86, -22, 42);
var ypos = new Array(-94, -30, 34);
currow = 0;
curcol = 0;
moveSel();
L = 37;
R = 39;
U = 38;
D = 40;
S = 83;
A = 65;
lup = false;
rup = false;
dup = false;
uup = false;
aup = false;
sup = false;
this.onEnterFrame = function () {
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(S)) {
sup = true;
}
if (!Key.isDown(L)) {
lup = true;
}
if (!Key.isDown(R)) {
rup = true;
}
if (!Key.isDown(D)) {
dup = true;
}
if (!Key.isDown(U)) {
uup = true;
}
if (Key.isDown(L) && lup) {
numbobs = 0;
bobcv = 0;
lup = false;
curcol -= 1;
if (curcol < 0) {
curcol = 0;
}
if (curcol == 1 && currow == 1) {
curcol = 0;
}
moveSel();
}
if (Key.isDown(R) && rup) {
numbobs = 0;
bobcv = 0;
rup = false;
curcol += 1;
if (curcol > 2) {
curcol = 2;
}
if (curcol == 1 && currow == 1) {
curcol = 2;
}
moveSel();
}
if (Key.isDown(U) && uup) {
uup = false;
currow -= 1;
if (currow < 0) {
currow = 0;
}
if (curcol == 1 && currow == 1) {
currow = 0;
}
moveSel();
if (curcol == 1) {
if (lastpress == 'D') {
++numbobs;
chkBang();
}
lastpress = 'U';
}
}
if (Key.isDown(D) && dup) {
dup = false;
currow += 1;
if (currow > 2) {
currow = 2;
}
if (curcol == 1 && currow == 1) {
currow = 2;
}
moveSel();
if (curcol == 1) {
if (lastpress == 'U') {
++numbobs;
chkBang();
}
lastpress = 'D';
}
}
if (Key.isDown(S) && sup) {
sup = false;
goBack();
}
if (Key.isDown(A) && aup) {
aup = false;
runLevel();
}
if (numbobs > 0) {
++bobcv;
if (bobcv >= 30) {
bobcv = 0;
numbobs = 0;
}
}
};
}
frame 2 {
stop();
_root.aboboMedal('Choices');
var l = new Sound(this);
l.attachSound('mm_selectloop');
l.start(0, 999);
}
frame 3 {
stopAllSounds();
}
frame 4 {
tel.start();
}
frame 25 {
if (this.gotowhich == 1) {
this.drum = new Sound(this);
drum.attachSound('lev1_drumintro');
drum.start();
var a = _root.createEmptyMovieClip('temp', 99911);
a.cv = 0;
a.onEnterFrame = function () {
++this.cv;
if (this.cv >= 20) {
_root.lev1MusicStart();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
}
_root.gotoAndStop('lev' + this.gotowhich);
}
}
frame 7 {
function lev1MusicStart() {
if (!this.gam.mloopgoing) {
delete this.onEnterFrame;
this.gam.mloopgoing = true;
this.gam.mastersound.lloop.start(0, 99);
this.gam.mastersound.lloop.setVolume(this.gam.mastervol);
}
}
function chkMe() {
hud.setHud(0);
hud.updateMe(gam.dude);
}
masterlev = 1;
}
movieClip 12604 {
}
movieClip 12605 {
}
movieClip 12614 {
frame 1 {
stop();
}
frame 96 {
_root.gam.revealBoss();
}
frame 105 {
stop();
}
}
movieClip 12621 {
}
movieClip 12622 {
}
movieClip 12623 {
}
movieClip 12626 {
}
movieClip 12636 {
frame 1 {
stop();
}
frame 70 {
_root.gam.endLevel1();
stop();
}
}
movieClip 12650 {
}
movieClip 12663 {
}
movieClip 12666 {
frame 70 {
stop();
}
}
movieClip 12677 {
}
movieClip 12686 {
}
movieClip 12687 {
}
movieClip 12688 {
}
movieClip 12689 {
}
movieClip 12698 {
}
movieClip 12709 {
}
movieClip 12710 {
}
movieClip 12717 {
}
movieClip 12718 {
}
movieClip 12719 {
}
movieClip 12721 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 90 {
stop();
fall.gotoAndPlay('play');
}
}
movieClip 12723 {
}
movieClip 12726 {
}
movieClip 12729 {
}
movieClip 12730 {
}
movieClip 12735 {
}
movieClip 12738 {
frame 1 {
this.nam = 'DK Jr.';
this.picid = 37;
stop();
}
frame 77 {
stop();
}
}
movieClip 12740 {
}
movieClip 12741 {
frame 1 {
this.cent = 378;
}
}
movieClip 12742 {
frame 1 {
this.cent = 485;
}
}
movieClip 12744 {
}
movieClip 12745 {
}
movieClip 12746 {
frame 1 {
stop();
}
}
movieClip 12747 {
}
movieClip 12750 {
}
movieClip 12757 {
}
movieClip 12764 {
}
movieClip 12765 {
frame 4 {
_root.gam.chkAttack(this.hitarea, 2, 1);
_root.gam.chkdkKick(this.hitarea);
}
frame 8 {
this._parent._parent.endAttack();
}
}
movieClip 12770 {
frame 2 {
_root.gam.chkAttack(this.hitarea, 1, 0);
}
frame 6 {
this._parent._parent.endAttack();
}
}
movieClip 12773 {
frame 2 {
_root.gam.chkAttack(this.hitarea, 1, 0);
}
frame 5 {
this._parent._parent.endAttack();
}
}
movieClip 12778 {
frame 5 {
_root.gam.chkAttack(this.hitarea, 2, 0, true);
}
frame 11 {
this._parent._parent.endAttack();
}
}
movieClip 12783 {
frame 5 {
_root.gam.chkAttack(this.hitarea, 5, 0);
}
frame 13 {
this._parent._parent.endAttack();
}
}
movieClip 12792 {
}
movieClip 12797 {
frame 140 {
stop();
}
}
movieClip 12800 {
frame 6 {
_root.gam.getUp(this._parent._parent);
}
}
movieClip 12803 {
frame 1 {
_root.gam.chkAttack(this.hitarea, 7, 0);
}
frame 2 {
_root.gam.chkAttack(this.hitarea, 7, 0);
}
frame 3 {
_root.gam.chkAttack(this.hitarea, 7, 0);
}
frame 4 {
_root.gam.chkAttack(this.hitarea, 7, 0);
}
frame 5 {
_root.gam.chkAttack(this.hitarea, 7, 0);
}
}
movieClip 12808 {
}
movieClip 12814 {
frame 6 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 7 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 8 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 9 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 10 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 11 {
_root.gam.chkAttack(this.hitarea, 10, 0, false, false, true);
}
frame 17 {
stop();
_root.gam.jumpkickland(this._parent._parent);
}
}
movieClip 12819 {
frame 5 {
_root.gam.aboboRecover(this._parent._parent);
}
}
movieClip 12820 {
frame 5 {
_root.gam.aboboRecover(this._parent._parent);
}
}
movieClip 12829 {
}
movieClip 12853 {
}
movieClip 12869 {
frame 67 {
_root.gam.makeAvalanche();
}
frame 129 {
_root.gam.attachCrack();
}
frame 148 {
_root.gam.rageRecover();
}
frame 171 {
stop();
}
}
movieClip 12876 {
}
movieClip 12878 {
}
movieClip 12879 {
frame 22 {
stop();
}
}
movieClip 12884 {
}
movieClip 12888 {
frame 14 {
stop();
}
}
movieClip 12901 {
frame 21 {
stop();
}
}
movieClip 12904 {
frame 21 {
_root.gam.endRageBurst();
stop();
}
}
movieClip 12915 {
}
movieClip 12918 {
}
movieClip 12919 {
frame 1 {
_root.gam.chkHeads(this);
}
}
movieClip 12929 {
frame 40 {
_root.gam.foodBonus();
}
frame 100 {
_root.gam.endEat(this._parent._parent);
}
}
movieClip 12930 {
frame 2 {
stop();
}
}
movieClip 12931 {
}
movieClip 12932 {
frame 1 {
function endAttack() {
this.attacking = false;
this.superslap = false;
}
stop();
}
frame 9 {
gotoAndPlay('raged');
}
frame 17 {
stop();
}
}
movieClip 12935 {
frame 1 {
stop();
}
}
movieClip 12946 {
}
movieClip 12983 {
frame 1 {
stop();
}
}
movieClip 12984 {
frame 1 {
stop();
}
}
movieClip 12993 {
}
movieClip 12994 {
frame 81 {
stop();
this.unloadMovie();
this.removeMovieClip();
}
}
movieClip 12995 {
frame 1 {
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function trashDump() {
barrel.unloadMovie();
barrel.removeMovieClip();
dude.unloadMovie();
dude.removeMovieClip();
var i = 0;
while (i < burstcv) {
var tar = eval('burst' + burstcv);
tar.unloadMovie();
tar.removeMovieClip();
++i;
}
delete this.onEnterFrame;
bossfg.unloadMovie();
bossfg.removeMovieClip();
muteIt();
mastersound.unloadMovie();
mastersound.removeMovieClip();
ty = 0;
while (ty < _root.gam.curbaddies.length) {
trm = curbaddies[ty];
trm.removeMovieClip();
++ty;
}
clearGame();
}
function clearGame() {
delete this.onEnterFrame;
Key.removeListener(keyListener);
delete keyListener;
delete keyListener.onKeyDown;
for (i in _root.gam) {
if (i != 'clearGame') {
delete i;
}
}
}
function chkMe() {
_root.hud.setHud(0);
_root.hud.updateMe(dude);
}
function bossSkip() {
moveBG();
}
function endRageBurst() {
dude.ragebursting = false;
dude.dead = false;
dude.blinkcv = 0;
clearInterval(dude.fallint);
clearInterval(_root.gam.runint);
dude.falling = false;
dude.attacking = false;
dude.jumpkick = false;
dude.hit = false;
dude.shoulder = false;
dude.runright = 0;
dude.runleft = 0;
dude.runningright = false;
dude.runningleft = false;
dude.fallcv = 0;
dude.guts.gotoAndStop('rest');
}
function rageRecover() {
rageplay = false;
avalanche.unloadMovie();
avalanche.removeMovieClip();
dude.guts.gotoAndStop('rest');
pausy = false;
dude._xscale = -100;
dude.dead = false;
dude.blinkcv = 0;
dude.inv = true;
dude._visible = true;
clearInterval(dude.fallint);
clearInterval(_root.gam.runint);
dude.falling = false;
dude.attacking = false;
dude.jumpkick = false;
dude.hit = false;
dude.shoulder = false;
dude.runright = 0;
dude.runleft = 0;
dude.runningright = false;
dude.runningleft = false;
dude.fallcv = 0;
r = 0;
while (r < curbaddies.length) {
tk = curbaddies[r];
if (tk._visible && !tk.dead && !tk.inv && tk.ai != 13) {
tk.hp -= 35;
tk.numhits = tk.maxhits;
runBadFall(tk);
hud.updateBad(tk);
}
++r;
}
}
function knockAll() {
dude.xvel = 0;
dude.yvel = 0;
dude.guts.gotoAndStop('rageburst');
dude.ragebursting = true;
dude.gotoAndPlay('raged');
r = 0;
while (r < curbaddies.length) {
tk = curbaddies[r];
if (tk.ai != 13 && tk.ai != 17) {
if (tk.ai != 0) {
if (tk._visible && !tk.dead && !tk.inv && !tk.onground) {
tk.hp -= 1;
tk.numhits = tk.maxhits;
runBadFall(tk);
}
} else {
var v1 = tk._xscale * tk.sc / 100;
tk.xvel = v1 * 10;
}
}
++r;
}
}
function killAll() {
r = 0;
while (r < curbaddies.length) {
tk = curbaddies[r];
if (tk._visible && !tk.inv) {
tk.guts.gotoAndStop('pausehit');
}
++r;
}
}
function makeAvalanche() {
this.attachMovie('dd_avalanche', 'avalanche', 87382);
avalanche.dir = 1;
avalanche.cv = 0;
avalanche.home = bg._x;
avalanche.onEnterFrame = function () {
_root.gam.bg._x += this.dir * 5;
this.dir *= -1;
++this.cv;
if (this.cv >= 70) {
_root.gam.bg._x = this.home;
delete this.onEnterFrame;
}
};
}
function attachCrack() {
virtx = dude._x - bg._x;
virty = dude._y - bg._y;
cr = bg.fx.attachMovie('dd_crack', 'crack' + crackcv, 99 + crackcv);
++crackcv;
cr.cacheAsBitmap = true;
cr._x = virtx;
cr._y = virty;
if (!fightingboss) {
mastersound.lloop.setVolume(mastervol);
} else {
mastersound.bossloop.setVolume(mastervol);
}
}
function endRageCutscene() {
cutscene.unloadMovie();
cutscene.removeMovieClip();
dude.guts.gotoAndStop('rageout');
}
function runHuge() {
if (!dude.pitted) {
dude.rage = 0;
chkRage(0);
pausy = true;
rageplay = true;
_root.aboboMedal('Rocky Rage');
this.attachMovie('dd_ragecutscene', 'cutscene', 98215);
mastersound.lloop.setVolume(0);
gosign.gotoAndStop(1);
r = 0;
while (r < curbaddies.length) {
tk = curbaddies[r];
if (!tk.dead && tk._visible && !tk.inv) {
tk.guts.gotoAndStop('rest');
}
++r;
}
}
}
function lowerRage(amt) {
dude.rage -= amt;
chkRage(0);
}
function chkRage(num) {
if (!dude.pitted) {
mult = 1;
if (num > 0) {
counter.rage.gotoAndStop(mult);
}
if (num >= 3) {
counter.gotoAndPlay(2);
counter.hits.gotoAndStop(num + 1);
mult = 2;
}
if (num >= 5) {
mult = 3;
}
if (num >= 7) {
mult = 4;
}
if (num >= 9) {
mult = 5;
}
if (num > 0) {
counter.rage.gotoAndStop(mult);
}
dude.rage += (num / 2) * mult;
if (dude.rage >= 100) {
dude.rage = 100;
if (!this._parent.fullrage.shown) {
knockAll();
flashIt();
this._parent.fullrage.gotoAndPlay(2);
this._parent.fullrage.shown = true;
}
} else {
this._parent.fullrage.shown = false;
dude.gotoAndStop('normal');
}
if (dude.rage <= 0) {
dude.rage = 0;
}
hud.updateRage(dude.rage);
}
}
function chkDoors() {
if (!door0go && stopindex == 2) {
bg.d0_0.virtx = bg._x + bg.d0_0._x;
var v5 = Math.abs(bg.d0_0.virtx - dude._x);
if (v5 < 90) {
sg = this.createEmptyMovieClip('showguys', -100);
sg.cv = 0;
sg.xdest = 215;
sg.ydest = 150;
sg.onEnterFrame = function () {
if (!_root.gam.pausy) {
++this.cv;
}
if (this.cv == 5) {
dude6.inactive = false;
dude6._x = this.xdest;
dude6._y = this.ydest;
}
if (this.cv == 11) {
dude7.inactive = false;
dude7._x = this.xdest;
dude7._y = this.ydest;
}
if (this.cv == 16) {
dude8.inactive = false;
dude8._x = this.xdest;
dude8._y = this.ydest;
}
if (this.cv == 22) {
dude9.inactive = false;
dude9._x = this.xdest;
dude9._y = this.ydest;
}
if (this.cv == 28) {
dude10.inactive = false;
dude10._x = this.xdest;
dude10._y = this.ydest;
}
if (this.cv == 34) {
dude11.inactive = false;
dude11._x = this.xdest;
dude11._y = this.ydest;
}
if (this.cv == 40) {
dude12.inactive = false;
dude12._x = this.xdest;
dude12._y = this.ydest;
}
if (this.cv == 46) {
dude13.inactive = false;
dude13._x = this.xdest;
dude13._y = this.ydest;
}
if (this.cv == 52) {
dude14.inactive = false;
dude14._x = this.xdest;
dude14._y = this.ydest;
}
if (this.cv == 58) {
dude15.inactive = false;
dude15._x = this.xdest;
dude15._y = this.ydest;
}
if (this.cv == 64) {
dude16.inactive = false;
dude16._x = this.xdest;
dude16._y = this.ydest;
}
if (this.cv == 70) {
dude17.inactive = false;
dude17._x = this.xdest;
dude17._y = this.ydest;
}
if (this.cv == 76) {
dude18.inactive = false;
dude18._x = this.xdest;
dude18._y = this.ydest;
}
if (this.cv == 82) {
dude19.inactive = false;
dude19._x = this.xdest;
dude19._y = this.ydest;
}
if (this.cv == 88) {
dude20.inactive = false;
dude20._x = this.xdest;
dude20._y = this.ydest;
}
if (this.cv == 94) {
dude21.inactive = false;
dude21._x = this.xdest;
dude21._y = this.ydest;
this.unloadMovie();
this.removeMovieClip();
delete this.onEnterFrame;
}
};
door0go = true;
openDoors1();
}
}
if (levcleared) {
bg.d1_0.virtx = bg._x + 953;
var v3 = Math.abs(bg.d1_0.virtx - dude._x);
if (v3 < 100) {
if (v3 < 50 && !tran) {
var v4 = Math.abs(155 - dude._y);
if (v3 < 10 && v4 < 3) {
dude._y = 153;
tran = true;
}
openDoors2();
} else {
closeDoors2();
}
}
}
}
function permaOpen() {
bg.d1_0.cv = 0;
bg.d1_0.opened = false;
bg.d1_0.onEnterFrame = function () {
if (!this.opened) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
this.opened = true;
}
}
};
bg.d1_1.cv = 0;
bg.d1_1.opened = false;
bg.d1_1.onEnterFrame = function () {
if (!this.opened) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
this.opened = true;
}
}
};
}
function closeDoors2() {
bg.d1_0.onEnterFrame = function () {
if (!_root.gam.pausy) {
this.dist = this.home - this._x;
this._x += this.dist / 4;
this.absdist = Math.abs(this.dist);
if (this.absdist < 1) {
this._x = this.home;
delete this.onEnterFrame;
}
}
};
bg.d1_1.onEnterFrame = function () {
if (!_root.gam.pausy) {
this.dist = this.home - this._x;
this._x += this.dist / 4;
this.absdist = Math.abs(this.dist);
if (this.absdist < 1) {
this._x = this.home;
delete this.onEnterFrame;
}
}
};
}
function openDoors2() {
bg.d1_0.onEnterFrame = function () {
if (!_root.gam.pausy) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
delete this.onEnterFrame;
}
}
};
bg.d1_1.onEnterFrame = function () {
if (!_root.gam.pausy) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
delete this.onEnterFrame;
}
}
};
}
function openDoors1() {
bg.d0_0.cv = 0;
bg.d0_0.opened = false;
bg.d0_0.onEnterFrame = function () {
if (!_root.gam.pausy) {
if (!this.opened) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
this.opened = true;
}
} else {
if (this.cv >= 90) {
this.dist = this.home - this._x;
this._x += this.dist / 4;
this.absdist = Math.abs(this.dist);
if (this.absdist < 1) {
this._x = this.home;
delete this.onEnterFrame;
}
} else {
++this.cv;
}
}
}
};
bg.d0_1.cv = 0;
bg.d0_1.opened = false;
bg.d0_1.onEnterFrame = function () {
if (!_root.gam.pausy) {
if (!this.opened) {
this.dist = this.goalx - this._x;
this._x += this.dist / 8;
this.absdist = Math.abs(this.dist);
if (this.absdist < 5) {
this._x = this.goalx;
this.opened = true;
}
} else {
if (this.cv >= 90) {
this.dist = this.home - this._x;
this._x += this.dist / 4;
this.absdist = Math.abs(this.dist);
if (this.absdist < 1) {
this._x = this.home;
delete this.onEnterFrame;
}
} else {
++this.cv;
}
}
}
};
}
function runTime() {
if (!_root.gam.pausy) {
_root.gam.dude.runwait += 1;
if (_root.gam.dude.runwait >= _root.gam.dude.maxrunwait) {
_root.gam.dude.runright = 0;
_root.gam.dude.runleft = 0;
clearInterval(_root.gam.runint);
}
}
}
function punchTime() {
if (!_root.gam.pausy) {
dude.punchcv += 1;
if (dude.punchcv >= dude.punchrange) {
dude.punchcv = dude.punchrange;
dude.punchcount = 0;
clearInterval(_root.gam.punchint);
}
}
}
function jumpkickland(who) {
clearInterval(_root.gam.runint);
clearInterval(who.fallint);
who.falling = true;
who.fallint = setInterval(fallCount, 100, who);
who.fallcv = 0;
if (who._xscale == 100) {
dir = -1;
} else {
dir = 1;
}
who.xvel = dir * 1.5;
who.shoulder = false;
who.runningright = false;
who.runningleft = false;
who.runright = 0;
who.runleft = 0;
who.tiredsign._visible = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
}
function runTired() {
noragesound.start();
dude.xvel = 0;
dude.yvel = 0;
dude.tiredsign._visible = true;
dude.tiredsign._xscale = dude._xscale;
clearInterval(_root.gam.runint);
clearInterval(who.fallint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
dude.tired = true;
dude.guts.gotoAndStop('tired');
}
function controls(who) {
if (!who.pitted) {
if (!who.ragebursting) {
if (!who.tired) {
if (who.rage >= 100) {
sm = this.attachMovie('dd_smoke', 'smoke' + smokecv, smokecv + 7621);
++smokecv;
sm.mysc = random(2);
if (sm.mysc == 1) {
sm._xscale = 100;
} else {
sm._xscale = -100;
}
sm.xvel = -dude.xvel / 2;
sm._x = dude._x + random(26) - 13;
sm._y = dude._y - random(50);
sm.onEnterFrame = function () {
this._x += this.xvel;
this.xvel *= 0.8;
this._y -= 1;
};
}
if (!who.eating) {
if (!Key.isDown(65)) {
_root.gam.atkup = true;
}
if (!Key.isDown(83)) {
_root.gam.bup = true;
}
if (!Key.isDown(39)) {
_root.gam.rightup = true;
}
if (!Key.isDown(37)) {
_root.gam.leftup = true;
}
if (!Key.isDown(83) && !Key.isDown(65)) {
who.dblup = true;
}
if (!who.falling && !who.hit && !who.pitted) {
if (!who.runningright && !who.runningleft) {
if (Key.isDown(83) && barrel._x > who._x - 20 && barrel._x < who._x + 20 && barrel._y > who._y - 10 && barrel._y < who._y + 10 && barrel._visible && !barrel.inmotion && !who.onladder && !barrel.occupied) {
who.xvel = 0;
who.yvel = 0;
who.gettingbarrel = true;
who.barrelcv = 0;
atkup = false;
}
if (!who.throwing) {
if (!who.gettingbarrel) {
if (!who.gotbarrel) {
if (Key.isDown(83) && Key.isDown(65) && who.dblup && !who.onladder) {
_root.gam.atkup = false;
if (who.rage < 100) {
who.guts.gotoAndStop('punch2');
who.superslap = true;
who.attacking = true;
who.dblup = false;
} else {
runHuge();
}
}
if (!who.attacking && !pausy) {
if (!shitTest(bg.lad0, who._x, who._y - 25) && !shitTest(bg.lad0, who._x, who._y) && !shitTest(bg.lad1, who._x, who._y - 25) && !shitTest(bg.lad1, who._x, who._y)) {
who.onladder = false;
dude.attacking = false;
dude.runningright = false;
dude.runningleft = false;
dude.runtime = 0;
dude.shoulder = false;
dude.skid = false;
}
if (shitTest(bg.lad0, who._x, who._y - 25) || shitTest(bg.lad0, who._x, who._y)) {
if (this.laddersdown) {
who.onladder = true;
who._x = bg._x + bg.lad0.cent;
who.guts.climber.stop();
}
}
if (shitTest(bg.lad1, who._x, who._y - 25) || shitTest(bg.lad1, who._x, who._y)) {
if (this.laddersdown) {
who.onladder = true;
who._x = bg._x + bg.lad1.cent;
who.guts.climber.stop();
}
}
if (Key.isDown(39)) {
rightup = false;
who.nextx = who._x + who.xspeed;
if (!who.onladder) {
who._xscale = -100;
who.guts.gotoAndStop('walk');
} else {
who.guts.climber.stop();
}
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx < 256) {
who.xvel = who.xspeed;
} else {
who.xvel = 0;
}
}
if (Key.isDown(37)) {
leftup = false;
who.nextx = who._x - who.xspeed;
if (!who.onladder) {
who._xscale = 100;
who.guts.gotoAndStop('walk');
} else {
who.guts.climber.stop();
}
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx > 0) {
who.xvel = who.xspeed * -1;
} else {
who.xvel = 0;
}
}
if (Key.isDown(40)) {
who.nexty = who._y + who.yspeed;
if (!who.onladder) {
who.guts.gotoAndStop('walk');
} else {
if (this.laddersdown) {
who.guts.gotoAndStop('climb');
who.guts.climber.play();
}
}
if (shitTest(bg.walk, who._x, who.nexty)) {
who.yvel = who.yspeed;
} else {
who.yvel = 0;
}
}
if (Key.isDown(38)) {
who.nexty = who._y - who.yspeed;
if (!who.onladder) {
who.guts.gotoAndStop('walk');
} else {
if (this.laddersdown) {
who.guts.climber.play();
who.guts.gotoAndStop('climb');
}
}
if (shitTest(bg.walk, who._x, who.nexty)) {
who.yvel = -who.yspeed;
} else {
who.yvel = 0;
}
}
if (!Key.isDown(39) && !Key.isDown(37)) {
who.xvel = 0;
if (!Key.isDown(38) && !Key.isDown(40)) {
if (!who.onladder) {
who.guts.gotoAndStop('rest');
} else {
who.guts.climber.stop();
}
}
}
if (!Key.isDown(38) && !Key.isDown(40)) {
who.yvel = 0;
}
} else {
who.xvel = 0;
who.yvel = 0;
}
} else {
if (Key.isDown(83)) {
if (!who.hit && !who.onground) {
who.gotbarrel = false;
atkup = false;
who.throwing = true;
++barrel.throwcv;
throwcv = 0;
}
}
if (Key.isDown(39)) {
who.nextx = who._x + who.xspeed;
if (!barrel.body) {
who.guts.gotoAndStop('barrelwalk');
} else {
who.guts.gotoAndStop('barrelwalk2');
}
who._xscale = -100;
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx < 256) {
who.xvel = who.xspeed;
} else {
who.xvel = 0;
}
}
if (Key.isDown(37)) {
who.nextx = who._x - who.xspeed;
if (!barrel.body) {
who.guts.gotoAndStop('barrelwalk');
} else {
who.guts.gotoAndStop('barrelwalk2');
}
who._xscale = 100;
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx > 0) {
who.xvel = who.xspeed * -1;
} else {
who.xvel = 0;
}
}
if (Key.isDown(38)) {
who.nexty = who._y - who.yspeed;
if (!barrel.body) {
who.guts.gotoAndStop('barrelwalk');
} else {
who.guts.gotoAndStop('barrelwalk2');
}
if (shitTest(bg.walk, who._x, who.nexty)) {
who.yvel = -who.yspeed;
} else {
who.yvel = 0;
}
}
if (Key.isDown(40)) {
who.nexty = who._y + who.yspeed;
if (!barrel.body) {
who.guts.gotoAndStop('barrelwalk');
} else {
who.guts.gotoAndStop('barrelwalk2');
}
if (shitTest(bg.walk, who._x, who.nexty)) {
who.yvel = who.yspeed;
} else {
who.yvel = 0;
}
}
if (!Key.isDown(37) && !Key.isDown(39)) {
who.xvel = 0;
if (!Key.isDown(38) && !Key.isDown(40)) {
if (!barrel.body) {
who.guts.gotoAndStop('barrelrest');
} else {
who.guts.gotoAndStop('barrelrest2');
}
}
}
if (!Key.isDown(38) && !Key.isDown(40)) {
who.yvel = 0;
}
}
} else {
++who.barrelcv;
if (who.barrelcv < 3) {
who.guts.gotoAndStop('pickup');
barrel.occupied = true;
}
if (who.barrelcv >= 3 && who.barrelcv < 6) {
barrel._visible = false;
barrel.occupied = false;
if (!barrel.body) {
who.guts.gotoAndStop('barrelpickup');
} else {
who.guts.gotoAndStop('barrelpickup2');
}
}
if (who.barrelcv >= 6) {
who.barrelcv = 0;
who.yvel = 0;
if (barrel.body) {
who.guts.gotoAndStop('barrelrest');
} else {
who.guts.gotoAndStop('barrelrest');
}
who.attacking = false;
who.gettingbarrel = false;
}
who.gotbarrel = true;
who.xvel = 0;
who.yvel = 0;
}
} else {
who.yvel = 0;
who.hit = false;
if (!who.throwburst) {
barrel.inmotion = true;
barrel._visible = true;
barrel._x = who._x;
barrel._y = who._y - 35;
barrel.temprot = 0;
barrel.ground = who._y;
var v4 = 8;
who.throwburst = true;
if (who._xscale == -100) {
who.xvel = 2;
barrel._x += 25;
barrel.xvel = v4;
barrel.dir = 1;
for (;;) {
if (!(!shitTest(bg.walk, barrel._x, barrel.ground) || barrel._x > 256)) break;
barrel._x -= 1;
}
} else {
barrel.dir = -1;
who.xvel = -2;
barrel._x -= 25;
barrel.xvel = -v4;
for (;;) {
if (!(!shitTest(bg.walk, barrel._x, barrel.ground) || barrel._x < 0)) break;
barrel._x += 1;
}
}
}
who.guts.gotoAndStop('throw');
++throwcv;
if (throwcv >= 5) {
clearInterval(_root.gam.runint);
clearInterval(who.fallint);
who.falling = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.throwburst = false;
who.attacking = false;
who.throwing = false;
who.guts.gotoAndStop('rest');
}
}
}
if (who.runningright) {
if (Key.isDown(37)) {
if (!who.skid && !who.shoulder && !who.jumpkick) {
who.skid = true;
makeSkid(1);
who.shoulder = false;
who.jumpkick = false;
who.runtime = 6;
}
}
if (_root.gam.bup && !who.shoulder && !who.jumpkick && !who.skid) {
if (Key.isDown(83)) {
if (dude.rage >= ragemoves) {
_root.gam.lowerRage(ragemoves);
who.shoulder = true;
shouldersound.start();
who.skid = false;
who.runtime = 5;
} else {
runTired();
}
}
}
if (_root.gam.atkup && !who.jumpkick && !who.shoulder && !who.skid) {
if (Key.isDown(65)) {
if (dude.rage >= ragemoves) {
_root.gam.lowerRage(ragemoves);
who.jumpkick = true;
who.skid = false;
who.runtime = 5;
} else {
runTired();
}
}
}
if (!who.shoulder && !who.skid && !who.jumpkick) {
who.guts.gotoAndStop('running');
} else {
if (who.jumpkick) {
who.guts.gotoAndStop('jumpkick');
who.runtime += 5;
}
if (who.shoulder) {
who.guts.gotoAndStop('elbow');
who.runtime += 2;
}
if (who.skid) {
who.runtime += 2;
who._xscale = 100;
who.guts.gotoAndStop('skid');
}
}
who.nextx = who._x + who.runvel;
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx < 246) {
who.xvel = who.runvel;
} else {
who.xvel = 0;
who.runningright = false;
who.jumpkick = false;
who.runright = 0;
who.runleft = 0;
who.shoulder = false;
runFall(who, 0);
}
if (who.runtime >= who.maxrun && who.runningright && !who.jumpkick) {
who.shoulder = false;
who.jumpkick = false;
who.runningright = false;
who.guts.gotoAndStop('rest');
who.runright = 0;
who.runleft = 0;
}
}
if (who.runningleft) {
if (Key.isDown(39)) {
if (!who.skid && !who.shoulder && !who.jumpkick) {
who.skid = true;
makeSkid(-1);
who.shoulder = false;
who.jumpkick = false;
who.runtime = 6;
}
}
if (_root.gam.bup && !who.shoulder && !who.jumpkick && !who.skid) {
if (Key.isDown(83)) {
if (dude.rage >= ragemoves) {
who.jumpkick = false;
who.shoulder = true;
shouldersound.start();
who.skid = false;
who.runtime = 5;
lowerRage(ragemoves);
} else {
runTired();
}
}
}
if (_root.gam.atkup && !who.shoulder && !who.jumpkick && !who.skid) {
if (Key.isDown(65)) {
if (dude.rage >= ragemoves) {
lowerRage(ragemoves);
who.jumpkick = true;
who.skid = false;
who.shoulder = false;
who.runtime = 5;
} else {
runTired();
}
}
}
if (!who.shoulder && !who.skid && !who.jumpkick) {
who.guts.gotoAndStop('running');
} else {
if (who.jumpkick) {
who.guts.gotoAndStop('jumpkick');
who.runtime += 5;
}
if (who.shoulder) {
who.guts.gotoAndStop('elbow');
who.runtime += 2;
}
if (who.skid) {
who.runtime += 2;
who._xscale = -100;
who.guts.gotoAndStop('skid');
}
}
who.nextx = who._x - who.runvel;
if (shitTest(bg.walk, who.nextx, who._y) && who.nextx > 10) {
who.xvel = -who.runvel;
} else {
who.xvel = 0;
who.runningleft = false;
who.runleft = 0;
who.runright = 0;
who.shoulder = false;
who.skid = false;
who.jumpkick = false;
runFall(who, 1);
}
if (who.runtime >= who.maxrun && who.runningleft && !who.jumpkick) {
who.runningleft = false;
who.guts.gotoAndStop('rest');
who.runleft = 0;
who.runright = 0;
who.shoulder = false;
who.jumpkick = false;
who.skid = false;
}
}
}
}
} else {
who.xvel *= 0.8;
if (!who.hit && !who.onground) {
who.guts.gotoAndStop('tired');
}
++who.tiredcv;
who.tiredsign._xscale = who._xscale;
if (who.tiredcv >= 25) {
who.tiredsign._visible = false;
who.tired = false;
who.tiredcv = 0;
clearInterval(_root.gam.runint);
clearInterval(who.fallint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.guts.gotoAndStop('rest');
}
}
}
} else {
who.guts.gotoAndStop('pitfall');
++who.pitcv;
who._visible = true;
who._xscale = 100;
who._x += 2;
who.guts._y += who.yvel;
who.yvel += 0.5;
if (who.pitcv >= 60) {
who.guts._y = who.gutshome;
who.pitcv = 0;
who.pitted = false;
who.hp = 0;
who.dead = true;
who.blinkcv = 3;
who.numblinks = 9;
}
}
if (who.inv && !who.pitted) {
++who.invcv;
++who.subcv;
if (who.subcv >= 3) {
who.subcv = 0;
who.guts._visible = !who.guts._visible;
who.you._visible = true;
}
if (who.invcv >= 60) {
who.subcv = 0;
who.you._visible = false;
who.inv = false;
who.guts._visible = true;
}
}
if (who.dead && !who.pitted) {
++who.blinkcv;
if (who.blinkcv >= 4) {
who.blinkcv = 0;
who._visible = !who._visible;
++who.numblinks;
if (who.numblinks >= 10) {
--who.lives;
_root.lives = who.lives;
if (who.lives >= 0) {
backtolife.start();
who.tired = false;
who.tiredsign._visible = false;
who.tiredcv = 0;
who.rage = 0;
chkRage(0);
who._xscale = -100;
who._x = 128;
who._y = 190;
who.invcv = 0;
who.hp = who.maxhp;
who.dead = false;
who.blinkcv = 0;
who.inv = true;
who._visible = true;
who.guts.gotoAndStop('getup');
clearInterval(who.fallint);
clearInterval(_root.gam.runint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.fallcv = 0;
who.gotbarrel = false;
who.gettingbarrel = false;
} else {
who._visible = false;
if (who.numblinks >= 55) {
trashDump();
_root.gotoAndStop('gameoverscreen');
}
if (!this.gameover) {
muteIt();
this.gameover = true;
gameoversound.start();
}
}
hud.updateMe(_root.gam.dude);
}
}
}
updateBG(who);
if (who.you._visible) {
who.you._xscale = who._xscale;
}
}
function endEat(who) {
eatpause = false;
who.eating = false;
playBaddieAnim();
clearInterval(who.fallint);
clearInterval(_root.gam.runint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.fallcv = 0;
who.guts.gotoAndStop('rest');
}
function makeSkid(dir) {
skidsound.start();
s = this.attachMovie('dd_dust', 'skid', 8730);
s._x = dude._x + 25 * dir;
s._y = dude._y;
s._xscale = 100 * dir;
}
function runFall(who, dir, flamed) {
clearInterval(_root.gam.runint);
if (!who.falling) {
if (dir == 0) {
who.xvel = -2;
} else {
who.xvel = 2;
}
}
who.falling = true;
who.attacking = false;
if (!flamed) {
who.guts.gotoAndStop('fall');
} else {
who.guts.gotoAndStop('flamed');
}
if (dir == 0) {
who._xscale = -100;
} else {
who._xscale = 100;
}
who.fallint = setInterval(fallCount, 100, who);
who.fallcv = 0;
who.jumpkick = false;
who.shoulder = false;
who.runningright = false;
who.runningleft = false;
who.runright = 0;
who.runleft = 0;
}
function fallCount(who) {
if (!_root.gam.pausy) {
who.fallcv += 1;
if (who.fallcv > 2) {
who.xvel = 0;
}
if (who.fallcv > who.maxfall && who.hp > 0) {
who.tiredsign._visible = false;
who.guts.gotoAndStop('getup');
clearInterval(who.fallint);
clearInterval(_root.gam.runint);
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.fallcv = 0;
}
if (who.hp <= 0) {
abobodies.start();
who.xvel = 0;
who.yvel = 0;
clearInterval(who.fallint);
clearInterval(_root.gam.runint);
who.dead = true;
who.blinkcv = 0;
who.numblinks = 0;
}
}
}
function getUp(who) {
who.tiredsign._visible = false;
clearInterval(_root.gam.runint);
clearInterval(who.fallint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.guts.gotoAndStop('rest');
}
function baddieSwap() {
ei = 0;
while (ei < curbaddies.length) {
var v1 = curbaddies[ei];
v1.swapDepths(v1._y);
if (!v1.dead && !v1.onground) {
if (!v1.overridescale) {
if (v1._x > dude._x) {
v1._xscale = -100 * v1.sc;
} else {
v1._xscale = 100 * v1.sc;
}
}
}
++ei;
}
dude.swapDepths(dude._y);
if (!barrel.inmotion) {
barrel.swapDepths(barrel._y);
}
}
function allBrains() {
i = 0;
while (i < curbaddies.length) {
var v1 = curbaddies[i];
if (v1.ai == 0) {
ai0(v1);
}
if (v1.ai == 1) {
ai1(v1);
}
if (v1.ai == 2) {
ai2(v1);
}
if (v1.ai == 3) {
ai3(v1);
}
if (v1.ai == 4) {
ai4(v1);
}
if (v1.ai == 5) {
ai5(v1);
}
if (v1.ai == 6) {
ai6(v1);
}
if (v1.ai == 7) {
ai7(v1);
}
if (v1.ai == 8) {
ai8(v1);
}
if (v1.ai == 9) {
ai9(v1);
}
if (v1.ai == 10) {
ai10(v1);
}
if (v1.ai == 11) {
ai11(v1);
}
if (v1.ai == 12) {
ai12(v1);
}
if (v1.ai == 13) {
ai13(v1);
}
if (v1.ai == 14) {
ai14(v1);
}
if (v1.ai == 17) {
ai17(v1);
}
var v2 = bg._x + 517;
if (v1._x < v2 && v1.ai != 13) {
if (v1._y < 140 && !v1.pitted) {
v1._y = 140;
}
}
if (!v1.offscreenable) {
if (v1._x < 244 && v1._x > 10 && !v1.inactive) {
v1.beenonscreen = true;
}
if (v1.beenonscreen && !v1.dead && !v1.onground) {
if (v1._x < -5 && !v1.pitted) {
v1.dec = 1;
v1._x = -5;
}
if (v1._x > 259 && !v1.pitted) {
v1.dec = 1;
v1._x = 259;
}
}
}
++i;
}
}
function removeDude(who) {
i = 0;
while (i < curbaddies.length) {
b = curbaddies[i];
if (who == b) {
curbaddies[i] = 'DOA';
}
++i;
}
who.unloadMovie();
who.removeMovieClip();
alldead = true;
i = 0;
while (i < curbaddies.length) {
if (curbaddies[i] != 'DOA') {
alldead = false;
}
++i;
}
if (alldead) {
if (stopindex < baddies.length - 1) {
runGo();
} else {
levcleared = true;
}
}
}
function ai0(who) {
if (!who.inactive) {
who._visible = true;
if (!who.dead) {
var havejefe = false;
f = 0;
while (f < curbaddies.length) {
var bn = curbaddies[f];
if (bn.jefe && !bn.dead || bn.leader == 0 && !bn.dead) {
havejefe = true;
}
++f;
}
if (!havejefe) {
foundone = false;
a = 0;
while (a < curbaddies.length) {
var yib = curbaddies[a];
--yib.leader;
if (!foundone) {
if (!yib.jefe) {
yib.jefe = true;
foundone = true;
}
}
++a;
}
}
if (who.leader == 0 && who.leader != undefined || who.jefe) {
who.speedx = 2;
who.speedy = 1;
who.jefe = true;
if (who._x > dude._x) {
who.goalx = dude._x + 14;
} else {
who.goalx = dude._x - 14;
}
who.goaly = dude._y + 1;
} else {
who.speedx = 2;
who.speedy = 1;
who.jefe = false;
g = 0;
while (g < curbaddies.length) {
br = curbaddies[g];
if (br.jefe) {
who.comp = br;
}
++g;
}
var mult = 14;
if (who.comp.clamped) {
mult = 10;
}
if (who.comp._x > dude._x) {
who.goalx = who.comp._x + who.leader * mult;
} else {
who.goalx = who.comp._x - who.leader * mult;
}
who.goaly = who.comp._y;
}
if (who.goalx > who._x) {
who.xvel = who.speedx;
} else {
who.xvel = -who.speedx;
}
if (who.goaly > who._y) {
who.yvel = who.speedy;
} else {
who.yvel = -who.speedy;
}
who.distx = who.goalx - who._x;
who.absx = Math.abs(who.distx);
if (who.absx < 2) {
who.xvel = 0;
}
who.disty = who.goaly - who._y;
who.absy = Math.abs(who.disty);
if (who.absy < 2) {
who.yvel = 0;
}
if (who.yvel == 0 && who.xvel == 0) {
who.guts.gotoAndStop('clamp');
who.clamped = true;
if (!dude.inv && !dude.onground && !dude.dead && !dude.hit && !dude.falling) {
dude.hp -= 0.05;
hud.updateMe(_root.gam.dude);
if (dude.hp <= 0) {
who.clamped = false;
dude.attacking = false;
dude.hit = true;
dude.guts.gotoAndStop('hit' + dude.hitpointer);
++dude.hitpointer;
if (dude.hitpointer == 2) {
dude.hitpointer = 0;
}
dude.runningleft = false;
dude.runningright = false;
dude._xscale = who.sc * who._xscale;
dude.xvel = 0;
dude.yvel = 0;
dude.hitcv = 0;
var dir = who._xscale * who.sc / 100;
if (dir == -1) {
runFall(dude, 0);
} else {
runFall(dude, 1);
}
}
}
} else {
var bex = dude._x - who._x;
var bey = dude._y - who._y;
var hyp = Math.sqrt(bex * bex + bey * bey);
if (hyp > 80) {
who.guts.gotoAndStop('walk');
} else {
who.guts.gotoAndStop('handsup');
}
who.clamped = false;
}
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 8;
who._y += who.yvel;
who.topp = who._y - 20;
if (!shitTest(bg.walk, who._x, who._y) || shitTest(bg.lad0, who._x, who.topp) || shitTest(bg.lad1, who._x, who.topp)) {
who._y -= who.yvel;
}
who.yvel *= 8;
} else {
if (!who.boosted) {
who.guts.yvel = -15;
who.xvel = (who._xscale / 100) * -5;
who.boosted = true;
}
who.guts._y += who.guts.yvel;
who.guts.yvel += 2;
who._x += who.xvel;
who.xvel *= 0.99;
if (who.guts._y > 200) {
removeDude(who);
triggerdude = true;
j = 0;
while (j < 21) {
hib = eval('dude' + j);
if (hib != undefined) {
triggerdude = false;
}
++j;
}
if (triggerdude) {
dude22.inactive = false;
dude22._y = dude._y;
}
}
}
} else {
who._visible = false;
}
}
function ai1(who) {
if (!who.inactive) {
who._visible = true;
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (who.closenessx < 34 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 1) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
if (!who.hit && !who.onground && !who.dead && !who.brawl) {
if (!dude.runningleft && !dude.runningright) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
} else {
who.guts.gotoAndStop('walk');
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 20) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 10) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
if (stopindex == 0) {
if (dude0 == undefined && dude1 == undefined) {
dude2.inactive = false;
dude3.inactive = false;
dude4.inactive = false;
}
}
}
}
}
} else {
who._visible = false;
}
}
function endNikiAttack(who) {
who.pat = 3;
who.gutyvel = -10;
who.gutyhome = who.guts._y;
who.jumping = false;
}
function ai2(who) {
if (!who.inited) {
who.pat = 0;
who.maxpointer = 0;
who.maxarray = new Array(70, 25, 50, 35, 40, 20, 15, 5, 30, 40);
who.inited = true;
who.groundcv = 0;
}
if (who.onground) {
++who.groundcv;
if (who.groundcv >= 35) {
who.onground = false;
who.groundcv = 0;
}
}
if (!who.onground && !who.dead) {
if (who.pat == 0) {
++who.aicv;
if (who.aicv >= who.maxarray[who.maxpointer]) {
who.aicv = 0;
who.pat = 1;
++who.maxpointer;
if (who.maxpointer >= who.maxarray.length) {
who.maxpointer = 0;
}
}
var v2 = dude._y - who._y;
var v3 = Math.abs(v2);
if (dude._x < who._x) {
who.goalx = dude._x + 50;
} else {
who.goalx = dude._x - 50;
}
var v4 = who.goalx - who._x;
var v5 = Math.abs(v4);
if (v5 > 4) {
if (who.goalx < who._x) {
who.xvel = -1;
} else {
who.xvel = 1;
}
}
if (v3 > 4) {
if (dude._y < who._y) {
who.yvel = -2;
} else {
who.yvel = 2;
}
}
if (v3 <= 4 && v5 <= 4) {
who.yvel = 0;
who.xvel = 0;
who.guts.gotoAndStop('rest');
} else {
who.guts.gotoAndStop('walk');
}
}
if (who.pat == 1) {
if (dude._x < who._x) {
who.goalx = dude._x + 24;
} else {
who.goalx = dude._x - 24;
}
who.goaly = dude._y;
who.distx = who.goalx - who._x;
who.disty = who.goaly - who._y;
who.hyp = Math.sqrt(who.distx * who.distx + who.disty * who.disty);
if (who.hyp < 25) {
who.pat = 2;
}
v4 = who.goalx - who._x;
v5 = Math.abs(v4);
if (v5 > 5) {
if (who._x > who.goalx) {
who.xvel = -4;
} else {
who.xvel = 4;
}
}
v3 = Math.abs(who.disty);
if (v3 > 3) {
if (who._y > who.goaly) {
who.yvel = -3;
} else {
who.yvel = 3;
}
}
who.guts.gotoAndStop('walk');
}
if (who.pat == 2) {
who.guts.gotoAndStop('atk0');
}
if (who.pat == 3) {
who.guts.gotoAndStop('jump');
if (!who.jumping) {
who.jumping = true;
if (dude._x < who._x) {
who.xvel = 10;
} else {
who.xvel = -10;
}
}
who.guts._y += who.gutyvel;
who.gutyvel += 1;
if (who.guts._y > who.gutyhome) {
who.guts._y = who.gutyhome;
who.gutyvel = 0;
who.pat = 0;
who.jumping = false;
}
}
}
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
if (!who.jumping) {
who.pat = 0;
who.aicv = 0;
}
}
who.xvel *= 0.8;
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
if (!who.jumping) {
who.pat = 0;
who.aicv = 0;
}
}
who.yvel *= 0.8;
if (who.dead) {
++who.diecv;
if (who.diecv >= 55) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
}
}
}
}
function ai3(who) {
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (who.closenessx < 30 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 3) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
if (!who.hit && !who.onground && !who.dead && !who.brawl) {
if (!dude.runningleft && !dude.runningright) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
} else {
who.guts.gotoAndStop('walk');
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 20) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 10) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
}
}
}
}
function ai4(who) {
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (!who.throwing && !who.dead && !who.onground && who._x > barrel._x - 15 && who._x < barrel._x + 15 && who._y > barrel._y - 10 && who._y < barrel._y + 10 && !barrel.inmotion && barrel._visible && !barrel.occupied || who.gettingbarrel) {
who.barreldec = false;
who.gettingbarrel = true;
++who.barrelcv;
if (who.barrelcv < 4) {
barrel.occupied = true;
who.barrelblast = false;
who.guts.gotoAndStop('squat');
}
if (who.barrelcv >= 4 && who.barrelcv < 8) {
barrel.occupied = false;
who.guts.gotoAndStop('pickupbarrel');
barrel._visible = false;
}
if (who.barrelcv >= 8) {
who.hit = false;
who.barrelcv = 0;
who.ycentered = false;
who.aicv = 0;
who.dec = 1;
who.gettingbarrel = false;
who.gotbarrel = true;
who.guts.gotoAndStop('barrelrest');
}
}
if (who.gotbarrel && !who.hit && !who.onground && !who.dead) {
if (!who.throwing) {
if (who.closenessx < 85 && who.closenessy < 5) {
who.throwing = true;
++barrel.throwcv;
who.aicv = 0;
who.hit = false;
}
++who.aicv;
if (who.aicv >= 50) {
who.dec = random(4);
who.aicv = 0;
}
if (who.dec == 0) {
who.xvel = 0;
who.yvel = 0;
who.ycentered = false;
who.guts.gotoAndStop('barrelrest');
}
if (who.dec > 0) {
who.guts.gotoAndStop('barrelwalk');
if (!who.ycentered) {
if (who._y < dude._y - 2) {
who.yvel = 1;
}
if (who._y > dude._y + 2) {
who.yvel = -1;
}
if (who._y > dude._y - 2 && who._y < dude._y + 2) {
who.ycentered = true;
}
} else {
if (who._x < dude._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
if (who.closenessx < 55) {
who.ycentered = false;
}
}
}
} else {
++who.aicv;
if (who.aicv < 5) {
who.guts.gotoAndStop('barrelcock');
}
if (who.aicv >= 5) {
if (!who.barrelblast) {
who.barrelblast = true;
barrel.inmotion = true;
barrel.evil = true;
barrel._x = who._x;
barrel._y = who._y - 50;
barrel.temprot = 0;
barrel.ground = who._y;
barrel.yvel = 0;
if (who._xscale == 100) {
barrel._x -= 15;
barrel.xvel = -10;
barrel.dir = -1;
} else {
barrel._x += 15;
barrel.xvel = 10;
barrel.dir = 1;
}
}
barrel._visible = true;
who.guts.gotoAndStop('barrelthrow');
}
if (who.aicv >= 14) {
who.barrelblast = false;
who.guts.gotoAndStop('rest');
who.gotbarrel = false;
who.throwing = false;
}
}
}
if (!who.gotbarrel && !who.gettingbarrel) {
if (who.closenessx < 27 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 1) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
}
if (!who.hit && !who.onground && !who.dead && !who.brawl && !who.gettingbarrel && !who.throwing) {
if (!dude.runningleft && !dude.runningright) {
if (!who.gotbarrel) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
if (!who.barreldec) {
var v3 = Math.abs(barrel._x - who._x);
var v2 = Math.abs(barrel._y - who._y);
var v4 = Math.sqrt(v3 * v3 + v2 * v2);
var v5 = Math.sqrt(who.closenessx * who.closenessx + who.closenessy * who.closenessy);
if (v4 < v5 && barrel._visible && !who.gotbarrel && !who.gettingbarrel && !who.throwing) {
who.goafterbarrel = true;
} else {
who.goafterbarrel = false;
}
who.barreldec = true;
}
if (!who.goafterbarrel) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
who.barreldec = false;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
who.barreldec = false;
}
} else {
if (barrel._visible && !who.throwing) {
who.guts.gotoAndStop('walk');
if (barrel._x < who._x) {
who.xvel = -1;
} else {
who.xvel = 1;
}
if (who._y > barrel._y + 3) {
who.yvel = -1;
}
if (who._y < barrel._y - 3) {
who.yvel = 1;
}
} else {
who.barreldec = false;
}
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
}
} else {
if (!who.gotbarrel) {
who.guts.gotoAndStop('walk');
} else {
who.guts.gotoAndStop('barrelwalk');
}
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 20) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.gotbarrel = false;
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.brawl = false;
who.gettingbarrel = false;
who.throwing = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 10) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
if (stopindex == 0) {
if (dude0 == undefined && dude1 == undefined) {
dude2.inactive = false;
dude3.inactive = false;
dude4.inactive = false;
}
}
}
}
}
}
function ai6(who) {
if (!who.inactive) {
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (who.closenessx < 20 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 1) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
if (!who.hit && !who.onground && !who.dead && !who.brawl) {
if (!dude.runningleft && !dude.runningright) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
} else {
who.guts.gotoAndStop('walk');
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 50) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 30) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
}
}
}
} else {
who._visible = false;
}
}
function ai7(who) {
if (!who.inactive) {
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (who.closenessx < 20 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 1) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
if (!who.hit && !who.onground && !who.dead && !who.brawl) {
if (!dude.runningleft && !dude.runningright) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
} else {
who.guts.gotoAndStop('walk');
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 20) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 30) {
who.guts._y -= 3;
if (who.guts._y < -260) {
removeDude(who);
}
}
}
} else {
who._visible = false;
}
}
function ai9(who) {
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who.xvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.yvel *= 0.8;
who.absyvel = Math.abs(who.yvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
if (who.absyvel < 1) {
who.yvel = 0;
}
who.closenessx = Math.abs(dude._x - who._x);
who.closenessy = Math.abs(dude._y - who._y);
if (who.closenessx < 34 && who.closenessy < 4 && !who.hit && !who.onground && !who.dead) {
who.guts.gotoAndStop('atk' + who.attackpointer);
who.brawl = true;
dude.brawl = true;
dude.brawlcv = 0;
v = 0;
while (v < curbaddies.length) {
b = curbaddies[v];
if (b != who && b.ai == 1) {
b.dec = 2;
}
++v;
}
} else {
who.brawl = false;
}
if (!who.hit && !who.onground && !who.dead && !who.brawl) {
if (!dude.runningleft && !dude.runningright) {
who.retreat = undefined;
if (who.dec == 0) {
++who.aicv;
who.xvel = 0;
who.guts.gotoAndStop('rest');
if (who.aicv >= 20) {
who.dec = random(3);
who.sneak = undefined;
who.aicv = 0;
if (dude.brawl) {
who.dec = 2;
}
}
}
if (who.dec == 1) {
++who.aicv;
if (who.aicv >= 145) {
who.aicv = 0;
who.dec = 0;
}
who.guts.gotoAndStop('walk');
who.absx = Math.abs(dude._x - who._x);
if (who.absx > 15) {
if (dude._x > who._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
} else {
who.xvel = 0;
}
who.absy = Math.abs(dude._y - who._y);
if (who.absy > 3) {
if (dude._y > who._y) {
who.yvel = 1;
} else {
who.yvel = -1;
}
} else {
who.yvel = 0;
}
}
if (who.dec == 2) {
++who.aicv;
if (who.aicv >= 250) {
who.aicv = 0;
who.dec = 0;
who.sneak = false;
}
who.guts.gotoAndStop('walk');
if (!who.sneak) {
who.sneak = true;
if (dude._xscale == -100) {
who.sneakx = dude._x - 42;
} else {
who.sneakx = dude._x + 42;
}
who.achievey = false;
who.sneakdir = random(2);
if (who.sneakdir == 0) {
who.sneaky = dude._y - 60;
} else {
who.sneaky = dude._y + 60;
}
} else {
if (!who.achievey) {
who.sneakydist = who.sneaky - who._y;
who.abssneaky = Math.abs(who.sneakydist);
if (who.abssneaky > 3) {
if (who.sneaky > who._y) {
who.yvel = 1.5;
} else {
who.yvel = -1.5;
}
if (shitTest(bg.walk, who._x, who._y + who.yvel)) {
who.achievey = true;
}
} else {
who.achievey = true;
}
} else {
who.sneakxdist = who.sneakx - who._x;
who.abssneakx = Math.abs(who.sneakxdist);
if (who.abssneakx > 3) {
if (who.sneakx > who._x) {
who.xvel = 1.5;
} else {
who.xvel = -1.5;
}
} else {
who.dec = 1;
who.aicv = 0;
who.sneak = false;
}
}
}
}
} else {
who.guts.gotoAndStop('walk');
who.dec = 0;
who.aicv = 0;
if (who.retreat == undefined) {
who.retreat = random(2);
if (who.retreat == 0) {
who.retreatdir = -0.7;
} else {
who.retreatdir = 0.7;
}
} else {
who.yvel = who.retreatdir;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 50) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
if (!who.boosted) {
who.guts.yvel = -15;
who.xvel = (who._xscale / 100) * -5;
who.boosted = true;
}
who.guts._y += who.guts.yvel;
who.guts.yvel += 2;
who._x += who.xvel;
who.xvel *= 0.99;
if (who.guts._y > 200) {
removeDude(who);
}
}
}
function ai10(who) {
who.offscreenable = true;
who.overridescale = true;
if (!who.inactive) {
who._visible = true;
if (!who.dead) {
if (!who.charging) {
if (who._x < 0 || who._x > 256) {
who.skiddir = false;
who.hit = false;
++who.aicv;
if (dude._y > who._y) {
who._y += 1;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= 1;
}
} else {
who._y -= 1;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y += 1;
}
}
if (who.aicv >= 30) {
who.aicv = 0;
who.charging = true;
if (dude._x < who._x) {
who.dir = -1;
} else {
who.dir = 1;
}
}
}
} else {
if (!who.hit) {
who.guts.gotoAndStop('move');
if (who.dir == 1) {
who._xscale = 100;
who._x += 7;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= 10;
}
chkBadHit(who, 5, 1, who.guts.hitarea2, true);
} else {
who._xscale = -100;
who._x -= 7;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x += 10;
}
chkBadHit(who, 5, 1, who.guts.hitarea2, true);
}
if (who._x > 0 && who._x < 254 && !who.inactive && who._visible) {
who.beenonscreen = true;
}
if (who.beenonscreen) {
if (who._x < -20 || who._x > 276) {
who.charging = false;
who.beenonscreen = false;
who.skiddir = false;
who.hit = false;
}
}
} else {
++who.hitcv;
if (who.hitcv < 3) {
if (!who.skiddir) {
who.skiddir = true;
if (who._x < dude._x) {
who.ndir = -1;
} else {
who.ndir = 1;
}
who.ydir = random(2);
if (who.ydir == 0) {
who.ydir = -1;
}
}
who.guts.gotoAndStop('hit0');
} else {
who._x += who.ndir * 5;
who._y += who.ydir * 9;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.ydir * 9;
who.ydir *= -1;
}
who.guts.gotoAndStop('skid');
}
if (who._x < -80 || who._x > 316) {
who.charging = false;
who.beenonscreen = false;
who.skiddir = false;
who.hit = false;
who.ndir = undefined;
who.onground = false;
who.hitcv = 0;
}
}
}
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 30) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 50) {
removeDude(who);
}
}
}
} else {
who._visible = false;
}
}
function ai12(who) {
who.overridescale = true;
who.offscreenable = true;
if (!who.dead) {
if (who._x <= 10) {
who._xscale = -100;
who.dir = -1;
}
if (who._x >= 246) {
who._xscale = 100;
who.dir = 1;
}
who._x -= who.dir * 0.7;
}
if (who.dead) {
++who.diecv;
if (who.diecv >= 5) {
barrel._x = who._x;
barrel._y = who._y;
barrel._visible = true;
barrel.sploded = false;
barrel.firey = true;
barrel.firey2 = true;
barrel.throwcv = 0;
if (stopindex == 5) {
barrel.gotoAndStop('girl');
} else {
barrel.gotoAndStop('boy');
}
barrel.body = true;
barrel._xscale = who._xscale;
removeDude(who);
}
}
}
function ai13(who) {
who.overridescale = true;
if (!who.shakeset) {
who.shakedir = 1;
who.shakecv = 0;
who.home = bg._x;
who.shakeset = true;
}
if (!who.shaken && who.gotime) {
_root.gam.bg._x += who.shakedir * 5;
who.shakedir *= -1;
++who.shakecv;
if (who.shakecv >= 15) {
_root.gam.bg._x = who.shakehome;
who.shaken = true;
}
}
if (who.shaken) {
if (dude23 == undefined && dude24 == undefined && dude26 == undefined && dude27 == undefined && !this.laddersdown) {
bg.guts.ladderoverlay._visible = true;
this.laddersdown = true;
ldsound.start();
la = bg.walk.attachMovie('ladderarea', 'ladderarea', 5);
la._x = this.ladderx;
la._y = this.laddery;
if (dude._y < 144 && dude._x < 516) {
dude._y = 144;
}
}
if (!who.hit && !who.dead) {
if (!who.getbarrel) {
++who.aicv;
who.guts.gotoAndStop('rest');
if (who.aicv >= 55) {
who.aicv = 0;
who.barrelcv = 0;
who.getbarrel = true;
}
} else {
++who.barrelcv;
if (who.barrelcv >= 6) {
who.guts.gotoAndStop('throw');
if (who.barrelcv >= 30) {
who.guts.gotoAndStop('rest');
who.barrelcv = 0;
who.getbarrel = false;
}
} else {
who.guts.gotoAndStop('getbarrel');
}
}
} else {
who.getbarrel = false;
who.barrelcv = 0;
}
if (who.dead) {
++who.diecv;
if (!who.dkjr && who.diecv >= 40) {
bg.dkjr._visible = true;
bg.dkjr.gotoAndPlay(2);
who.dkjr = true;
}
if (who.diecv >= 129) {
++who.blinkcv;
++who.onoffcv;
if (who.onoffcv >= 3) {
who.onoffcv = 0;
who._visible = !who._visible;
}
if (who.blinkcv >= 70) {
removeDude(who);
}
}
}
}
}
function ai14(who) {
if (!who.revealed) {
who.inv = true;
who.overridescale = true;
} else {
who.overridescale = false;
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel;
}
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel;
}
who.xvel *= 0.8;
who.yvel *= 0.8;
who.absxvel = Math.abs(who.xvel);
if (who.absxvel < 1) {
who.xvel = 0;
}
who.absyvel = Math.abs(who.yvel);
if (who.absyvel < 1) {
who.yvel = 0;
}
who.barreldistx = Math.abs(barrel._x - who._x);
who.barreldisty = Math.abs(barrel._y - who._y);
who.barreldist = Math.sqrt(who.barreldistx * who.barreldistx + who.barreldisty * who.barreldisty);
who.distx = Math.abs(dude._x - who._x);
who.disty = Math.abs(dude._y - who._y);
who.dist = Math.sqrt(who.distx * who.distx + who.disty * who.disty);
if (!who.throwing && !who.dead && !who.onground && who._x > barrel._x - 15 && who._x < barrel._x + 15 && who._y > barrel._y - 5 && who._y < barrel._y + 5 && !barrel.inmotion && barrel._visible && !barrel.occupied || who.gettingbarrel) {
who.xvel = 0;
who.yvel = 0;
who.barreldec = false;
who.gettingbarrel = true;
++who.barrelcv;
if (who.barrelcv < 4) {
barrel.occupied = true;
who.barrelblast = false;
who.guts.gotoAndStop('pickupbarrel');
}
if (who.barrelcv >= 4 && who.barrelcv < 10) {
barrel.occupied = false;
who.guts.gotoAndStop('pickupbarrel');
barrel._visible = false;
}
if (who.barrelcv >= 10) {
who.hit = false;
who.barrelcv = 0;
who.ycentered = false;
who.aicv = 0;
who.dec = 1;
who.gettingbarrel = false;
who.gotbarrel = true;
who.guts.gotoAndStop('barrelrest');
}
}
if (who.gotbarrel && !who.hit && !who.onground && !who.dead) {
if (!who.throwing) {
if (who.distx < 85 && who.disty < 5) {
who.throwing = true;
++barrel.throwcv;
who.aicv = 0;
who.hit = false;
}
++who.aicv;
if (who.aicv >= 50) {
who.dec = random(4);
who.aicv = 0;
}
if (who.dec == 0) {
who.xvel = 0;
who.yvel = 0;
who.ycentered = false;
who.guts.gotoAndStop('barrelrest');
}
if (who.dec > 0) {
who.guts.gotoAndStop('barrelwalk');
if (!who.ycentered) {
if (who._y < dude._y - 2) {
who.yvel = 1;
}
if (who._y > dude._y + 2) {
who.yvel = -1;
}
if (who._y > dude._y - 2 && who._y < dude._y + 2) {
who.ycentered = true;
}
} else {
if (who._x < dude._x) {
who.xvel = 1;
} else {
who.xvel = -1;
}
if (who.distx < 55) {
who.ycentered = false;
}
}
}
} else {
++who.aicv;
if (who.aicv < 5) {
who.guts.gotoAndStop('barrelcock');
}
if (who.aicv >= 5) {
if (!who.barrelblast) {
who.barrelblast = true;
barrel.inmotion = true;
barrel.evil = true;
barrel._x = who._x;
barrel._y = who._y - 50;
barrel.temprot = 0;
barrel.ground = who._y;
barrel.yvel = 0;
if (who._xscale == 100) {
barrel._x -= 15;
barrel.xvel = -10;
barrel.dir = -1;
} else {
barrel._x += 15;
barrel.xvel = 10;
barrel.dir = 1;
}
}
barrel._visible = true;
who.guts.gotoAndStop('barrelthrow');
}
if (who.aicv >= 14) {
who.barrelblast = false;
who.guts.gotoAndStop('rest');
who.gotbarrel = false;
who.throwing = false;
}
}
}
if (who.disty <= 5 && who.distx <= 30 && !who.gotbarrel && !who.gettingbarrel) {
if (!who.hit && !who.onground && !who.dead && !dude.onground && !dude.dead) {
who.brawl = true;
who.attacking = true;
who.guts.gotoAndStop('atk1');
}
} else {
if (!who.attacking) {
who.brawl = false;
}
}
if (!who.hit && !who.onground && !who.dead && !who.brawl && !who.gotbarrel && !who.gettingbarrel && !who.attacking) {
++who.aicv;
if (who.aicv >= 30) {
who.aicv = 0;
who.dec = random(6);
who.xvel = 0;
who.yvel = 0;
if (who.barreldist < who.dist && barrel._visible) {
who.dec = 4;
}
}
if (who.dec == 0) {
if (who.distx > 30) {
who.guts.gotoAndStop('move');
if (dude._x > who._x) {
who.xvel = who.speed;
} else {
who.xvel = -who.speed;
}
}
if (who.disty > 5) {
who.guts.gotoAndStop('move');
if (dude._y > who._y) {
who.yvel = who.speed;
} else {
who.yvel = -who.speed;
}
}
}
if (who.dec == 1) {
who.guts.gotoAndStop('rest');
}
if (who.dec >= 3) {
if (who.disty < 3) {
who.xvel = 0;
who.yvel = 0;
who.guts.gotoAndStop('atk0');
who.attacking = true;
who.dec = 0;
} else {
who.guts.gotoAndStop('move');
if (who._x > dude._x) {
if (who.distx < 150) {
who.xvel = who.speed;
}
}
if (who._x < dude._x) {
if (who.distx < 150) {
who.xvel = -who.speed;
}
}
if (who._y < dude._y) {
who.yvel = who.speed;
} else {
who.yvel = -who.speed;
}
}
}
if (who.dec == 2) {
who.guts.gotoAndStop('move');
if (barrel._x > who._x + 2) {
who.xvel = who.speed;
}
if (barrel._x < who._x - 2) {
who.xvel = -who.speed;
}
if (barrel._y > who._y + 3) {
who.yvel = who.speed;
}
if (barrel._y < who._y - 3) {
who.yvel = -who.speed;
}
}
}
if (who.onground && !who.dead) {
++who.groundcv;
if (who.groundcv >= 35) {
++who.squatcv;
who.guts.gotoAndStop('squat');
if (who.squatcv > 7) {
who.squatcv = 0;
who.groundcv = 0;
who.onground = false;
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
}
if (who.dead) {
++who.groundcv;
if (who.groundcv >= 35) {
++who.squatcv;
if (who.squatcv > 7) {
++who.diecv;
who.guts.gotoAndStop('die');
if (who.diecv >= 35) {
_root.aboboMedal('Beardy Basher');
who.hp = 0;
hud.updateBad(who);
makeSplode(who._x, who._y, false, false);
removeDude(who);
}
} else {
who.guts.gotoAndStop('squat');
}
} else {
who.guts.gotoAndStop('fall');
}
}
}
if (dude28 == undefined && dude30 == undefined && dude29 == undefined) {
if (!ransomgo) {
ransomgo = true;
dude34.inactive = false;
dude34._visible = true;
dude33.inactive = false;
dude33._visible = true;
dude32.inactive = false;
dude32._visible = true;
}
if (dude34 == undefined && dude33 == undefined && dude32 == undefined) {
if (!who.revealed) {
who.guts.gotoAndStop('reveal');
who.speed = 1;
who.inv = false;
}
}
}
}
function ai17(who) {
if (who.dirr == undefined) {
if (who._x > 256) {
who.dirr = -1;
} else {
who.dirr = 1;
}
}
if (!who.inactive) {
if (!who.dead) {
who._visible = true;
who._x += who.dirr;
if (who.beenonscreen) {
if (who._x < 10 && who.dirr == -1 || who._x > 244 && who.dirr == 1) {
who.dirr *= -1;
}
}
} else {
if (who.deaddir == undefined) {
who.deaddir = -who._xscale / 100;
}
who._x += who.deaddir * 5;
if (who._x < 10 || who._x > 244) {
if (who._x < 10) {
who._x = 11;
} else {
who._x = 243;
}
who.deaddir *= -1;
bounce.start();
}
who.guts._y -= 7;
if (who.guts._y <= -256) {
removeDude(who);
}
}
} else {
who._visible = false;
}
}
function makeBarrelBall(who) {
ball = this.attachMovie('barrelball', 'bball' + smokecv, smokecv + 7831);
++smokecv;
ball._x = who._x;
ball._y = who._y + 1;
ball._xscale = who._xscale;
if (who._xscale == 100) {
ball.dir = -1;
} else {
ball.dir = 1;
}
ball._x += 25 * ball.dir;
ball.sc = -1;
ball.onEnterFrame = function () {
if (!this._parent.pausy) {
_root.gam.chkBadHit(this, 10, 0, this.hitarea, true, true);
this._x += this.dir * 7;
this.swapDepths(this._y);
}
};
}
function barrelFinishAttack(who) {
who.aicv = 0;
who.attacking = false;
who.brawl = false;
who.guts.gotoAndStop('rest');
}
function dkBarrel() {
bar = this.attachMovie('dd_dkbarrel', 'dkbarrel' + smokecv, smokecv + 6251);
++smokecv;
bar._x = dude._x;
bar._y = dude._y;
if (dude._y <= 140 && dude._x < 200) {
bar._y = 59;
}
bar.onEnterFrame = function () {
if (!this._parent.pausy && !dude.ragebursting) {
this.swapDepths(this._y);
this.guts._y += 8;
if (this.guts._y >= 0) {
_root.gam.makeSplode(this._x, this._y, false, true, true);
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
}
};
}
function clearBarrel() {
dude.throwburst = false;
dude.attacking = false;
dude.throwing = false;
if (!dude.onladder) {
dude.guts.gotoAndStop('rest');
}
dude.gotbarrel = false;
atkup = false;
throwcv = 0;
barrel._visible = false;
barrel.sploded = false;
barrel.firey = false;
barrel.firey2 = false;
barrel.throwcv = 0;
}
function chkBadHit(who, amt, zone, block, autofall, flamed) {
if (!dude.hit && !dude.inv && !pausy) {
if (block.hitTest(dude.guts.hitarea) && who._y > dude._y - 6 && who._y < dude._y + 6) {
lowerRage(ragehit);
dude.attacking = false;
dude.hp -= amt;
hud.updateMe(_root.gam.dude);
dude.hit = true;
dude.guts.gotoAndStop('hit' + dude.hitpointer);
++dude.hitpointer;
if (dude.hitpointer == 2) {
dude.hitpointer = 0;
}
dude.attacking = false;
dude.runningleft = false;
dude.runningright = false;
dude._xscale = who.sc * who._xscale;
dude.xvel = 0;
dude.yvel = 0;
abobohit.start();
var which = eval('hit' + psoundcv);
which.start();
++psoundcv;
if (psoundcv == 2) {
psoundcv = 0;
}
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = who._x + (-who._xscale * who.sc / 100) * -25;
bu._y = who._y - 30;
++burstcv;
if (dude.jumpkick && !autofall) {
lowerRage(ragefall);
var dir = who._xscale * who.sc / 100;
if (dir == -1) {
runFall(dude, 0, flamed);
} else {
runFall(dude, 1, flamed);
}
}
++dude.hitcv;
if (dude.hitcv >= 5 || dude.gotbarrel || dude.hp <= 0 || autofall || flamed) {
dude.tiredsign._visible = false;
dude.tired = false;
lowerRage(ragefall);
if (dude.gotbarrel) {
dude.gotbarrel = false;
barrel.safe = true;
barrel._visible = true;
barrel.inmotion = true;
barrel._x = dude._x;
barrel._y = dude._y - 35;
barrel.temprot = 0;
barrel.ground = dude._y;
barrel.yvel = 0;
if (dude._xscale == -100) {
barrel.dir = 1;
barrel.xvel = 3;
} else {
barrel.dir = -1;
barrel.xvel = -3;
}
}
dude.hitcv = 0;
var dir = who._xscale * who.sc / 100;
if (dir == -1) {
runFall(dude, 0, flamed);
} else {
runFall(dude, 1, flamed);
}
}
}
}
}
function aboboRecover(who) {
if (!pausy) {
who.jumpkick = false;
who.hit = false;
who.guts.gotoAndStop('rest');
}
}
function switchAtk(who) {
if (!pausy) {
++who.attackpointer;
if (who.attackpointer == who.numattacks) {
who.attackpointer = 0;
}
}
}
function hitRecover(who) {
if (!pausy && !dude.ragebursting) {
who.hit = false;
who.dec = 0;
who.aicv = 0;
who.guts.gotoAndStop('rest');
}
}
function chkAttack(box, amt, zone, superslap, splosion, jumpkick) {
if (dude._xscale == -100) {
dex = dude._x + 15;
} else {
dex = dude._x - 15;
}
if (!shitTest(bg.walk, dex, dude._y)) {
starx = dude._x;
found = false;
if (dude._xscale == -100) {
bi = 0;
while (bi < 15) {
if (!shitTest(bg.walk, starx + bi, dude._y) && !found) {
found = true;
res = starx + bi + 5;
}
++bi;
}
} else {
ni = 0;
while (ni < 15) {
if (!shitTest(bg.walk, starx - ni, dude._y) && !found) {
found = true;
res = starx - ni - 5;
}
++ni;
}
}
var which = eval('hit' + psoundcv);
which.start();
++psoundcv;
if (psoundcv == 2) {
psoundcv = 0;
}
if (zone == 0) {
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = res;
bu._y = dude._y - 29;
++burstcv;
}
if (zone == 1) {
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = res;
bu._y = dude._y - 12;
++burstcv;
}
}
wi = 0;
while (wi < curbaddies.length) {
var b = curbaddies[wi];
if (b.ai == 2) {
b.hit = false;
}
if (b.ai == 12 && jumpkick) {
noway = true;
} else {
noway = false;
}
if (!b.dead && !b.onground && !b.hit && !b.jumping && !pausy && !noway && !b.inv && b._visible) {
if (box.hitTest(b.guts.hitarea)) {
if (!Key.isDown(65) || superslap || zone == 1) {
if (b._y > dude._y - 6 && b._y < dude._y + 6 || splosion) {
if (b.ai == 12) {
_root.aboboMedal('Child Chomper');
eatpause = true;
stopBaddieAnim();
dude.eating = true;
dude._xvel = 0;
dude.yvel = 0;
}
if (!b.overridescale) {
b._xscale = dude._xscale * b.sc;
}
if (b.ai != 12 && !splosion && b.ai != 13) {
dude.combo += 1;
dude.combocv = 0;
chkRage(dude.combo);
}
b.hit = true;
b.xvel = -((b._xscale / 100) * b.sc) * 1;
b.hp -= amt;
if (b.ai == 14 && b.hp <= 0) {
var dontdoit = true;
} else {
var dontdoit = false;
}
if (!dontdoit) {
hud.updateBad(b);
} else {
b.hp = 0.1;
hud.updateBad(b);
}
b.numhits += amt;
if (b.ai == 12) {
var ex = dude._x + (dude._xscale / 100) * -25;
var ey = dude._y - 29;
pblood(ex, ey);
}
var which = eval('hit' + psoundcv);
which.start();
++psoundcv;
if (psoundcv == 2) {
psoundcv = 0;
}
if (zone == 0) {
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = dude._x + (dude._xscale / 100) * -25;
bu._y = dude._y - 29;
++burstcv;
}
if (zone == 1) {
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = dude._x + (dude._xscale / 100) * -25;
bu._y = dude._y - 12;
++burstcv;
}
runBadFall(b, zone, splosion);
}
}
}
}
++wi;
}
}
function runBadFall(b, zone, splosion) {
if (b.hp <= 0 || b.hp == 0.1) {
b.dead = true;
b.tiredsign._visible = false;
b.xvel = (b._xscale / 100) * b.sc * -8;
b.diecv = 0;
b.blinkcv = 0;
b.onoffcv = 0;
if (b.ai != 14) {
b.guts.gotoAndStop('die');
} else {
b.hit = true;
b.onground = true;
b.numhits = 0;
b.xvel = (b._xscale / 100) * b.sc * -8;
b.guts.gotoAndStop('fall');
}
if (b.gotbarrel) {
barrel.evil = false;
barrel.safe = true;
barrel._visible = true;
barrel.inmotion = true;
barrel._x = b._x;
barrel._y = b._y - 35;
barrel.temprot = 0;
barrel.ground = b._y;
barrel.yvel = 0;
b.squatcv = 0;
b.groundcv = 0;
b.onground = false;
b.brawl = false;
b.gettingbarrel = false;
b.throwing = false;
b.hit = false;
b.dec = 0;
b.aicv = 0;
b.gotbarrel = false;
if (b._xscale == -100) {
barrel.dir = 1;
barrel.xvel = 3;
} else {
barrel.dir = -1;
barrel.xvel = -3;
}
}
} else {
if (b.numhits >= b.maxhits || b.gotbarrel) {
b.tiredsign._visible = false;
if (b.gotbarrel) {
b.attacking = false;
barrel.evil = false;
b.gotbarrel = false;
b.throwing = false;
b.gettingbarrel = false;
barrel.safe = true;
barrel._visible = true;
barrel.inmotion = true;
barrel._x = b._x;
barrel._y = b._y - 35;
barrel.temprot = 0;
barrel.ground = b._y;
barrel.yvel = 0;
if (b._xscale == -100) {
barrel.dir = 1;
barrel.xvel = 3;
} else {
barrel.dir = -1;
barrel.xvel = -3;
}
}
b.hit = true;
b.onground = true;
b.numhits = 0;
b.xvel = (b._xscale / 100) * b.sc * -8;
b.guts.gotoAndStop('fall');
} else {
if (!dude.ragebursting) {
if (zone == 0) {
b.guts.gotoAndStop('hit0');
b.hit = true;
}
if (zone == 1) {
b.guts.gotoAndStop('hit1');
b.hit = true;
}
}
}
}
}
function attachBaddies(num) {
curbaddies = new Array();
i = 0;
while (i < baddies[num].dudes.length) {
b = this.attachMovie('ddbad' + baddies[num].dudes[i], 'dude' + badcv, i);
++badcv;
if (debug) {
b.onPress = function () {};
}
b._x = bg._x + baddies[num].ex[i];
b._y = baddies[num].ey[i];
b.ai = baddies[num].moves[i];
b.hp = baddies[num].hp[i];
b.maxhp = b.hp;
b.sc = baddies[num].sc[i];
b.inactive = baddies[num].inactive[i];
if (b.inactive) {
b._visible = false;
}
b.numhits = 0;
b.groundcv = 0;
b.maxhits = baddies[num].maxhits[i];
b.aicv = 0;
b.dec = 0;
b.squatcv = 0;
b.hitcv = 0;
b.numattacks = baddies[num].numattacks[i];
b.attackpointer = 0;
b.leader = baddies[num].leader[i];
b.barrelcv = 0;
curbaddies.push(b);
++i;
}
xi = 0;
while (xi < curbaddies.length) {
thim = curbaddies[xi];
if (thim.ai == 7 && thim.dead) {
thim.exempt = true;
}
if (!thim.exempt) {
thim.swapDepths(thim._y);
}
++xi;
}
dude.swapDepths(dude._y);
}
function flashIt() {
bg.flasher.gotoAndPlay(2);
}
function runGo() {
if (stopindex >= 0 && stopindex != 1) {
clearBarrel();
}
if (stopindex == 3) {
barrel.gotoAndStop(1);
barrel._x = 320;
barrel._y = 120;
barrel._visible = true;
barrel.firey = false;
barrel.firey2 = false;
barrel.throwcv = 0;
barrel.body = false;
}
gosign.swapDepths(99991);
if (_root.gam.stopindex < _root.gam.stops.length - 1) {
if (stopindex >= 0) {
gosign.gotoAndPlay(2);
}
++_root.gam.stopindex;
}
_root.gam.stopper = stops[_root.gam.stopindex];
_root.gam.updating = true;
attachBaddies(_root.gam.stopindex);
barrel.inmotion = false;
barrel.xvel = 0;
barrel.yvel = 0;
barrel.gothim = false;
barrel.evil = false;
barrel.swapDepths(who._y);
}
function updateBG(who) {
var v2 = 128 - who._x;
if (v2 < 0) {
if (bg._x > _root.gam.stopper) {
if (!_root.gam.updating) {
if (bg._x < 0 || who._x > 128) {
bg._x += v2;
who._x = 128;
mi = 0;
while (mi < curbaddies.length) {
var v3 = curbaddies[mi];
v3._x += v2;
++mi;
}
barrel._x += v2;
}
} else {
bg._x += v2 / 4;
who._x += v2 / 4;
ti = 0;
while (ti < curbaddies.length) {
var v3 = curbaddies[ti];
v3._x += v2 / 4;
++ti;
}
barrel._x += v2 / 4;
if (v2 > -1) {
_root.gam.updating = false;
}
}
}
}
}
function dudePhys(who) {
++who.combocv;
if (who.combocv >= 10) {
who.combocv = 0;
who.combo = 0;
if (who.rage < 100) {
lowerRage(ragedecay);
}
chkRage(0);
}
if (who.hitcv > 0) {
++who.hitexpire;
if (who.hitexpire >= 70) {
who.hitexpire = 0;
who.hitcv = 0;
}
}
if (who.brawl) {
++who.brawlcv;
if (who.brawlcv >= 40) {
who.brawl = false;
who.brawlcv = 0;
}
}
who._x += who.xvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._x -= who.xvel * 1.1;
}
who._y += who.yvel;
if (!shitTest(bg.walk, who._x, who._y)) {
who._y -= who.yvel * 1.1;
}
if (who._x < 10) {
who._x = 10;
}
if (who._x > 246) {
who._x = 246;
}
}
function chkSecret() {
if (dude._y < 0 && !secreted) {
_root.aboboMedal('Private Party');
pausy = true;
dude._visible = false;
secreted = true;
secretcv = 0;
this.attachMovie('sm', 'cover', 99999997);
cover._x = 125;
cover._y = 120;
dude.gutshome = dude.guts._y;
dude.guts._y = -300;
dude.gvel = 0;
muteIt();
}
if (secreted) {
++secretcv;
if (secretcv >= 336) {
if (!fallsoundplayed) {
fallsoundplayed = true;
bigfall.start();
}
clearInterval(dude.fallint);
clearInterval(_root.gam.runint);
dude._visible = true;
dude.onladder = false;
dude.attacking = false;
dude.runningright = false;
dude.runningleft = false;
dude.runtime = 0;
dude.shoulder = false;
dude.skid = false;
cover.unloadMovie();
cover.removeMovieClip();
dude.xvel = 0;
dude.yvel = 0;
dude._y = 190;
dude._x -= 3;
dude.guts.gotoAndStop('pitfall');
dude.guts._y += dude.gvel;
dude.gvel += 1;
}
if (dude.guts._y >= dude.gutshome) {
fallsoundplayed = false;
dude.guts._y = dude.gutshome;
pausy = false;
secreted = false;
runFall(dude, 0);
if (!fightingboss) {
mastersound.lloop.setVolume(mastervol);
} else {
mastersound.bossloop.setVolume(mastervol);
}
}
}
}
function barrelBrain(who) {
if (!who.sploded) {
bnum = maxbarrelthrows;
if (stopindex == 4) {
bnum = 10;
}
if (who.throwcv >= bnum && !who.firey) {
who.firey = true;
who.gotoAndStop('firey');
}
if (who.inmotion) {
who.swapDepths(who.ground);
if (!who.safe && !who.firey2) {
if (!who.evil) {
wi = 0;
while (wi < curbaddies.length) {
var b = curbaddies[wi];
if (!b.dead && !b.onground && !b.hit && !b.jumping && !who.firey2) {
if (who.guts.hitarea.hitTest(b.guts.hitarea)) {
if (b._y > who.ground - 8 && b._y < who.ground + 8 && b.ai != 12) {
if (b.picid == 33) {
_root.aboboMedal('Ironic');
}
dude.combo += 1;
dude.combocv = 0;
chkRage(dude.combo);
b.hit = true;
b.hp -= 10;
hud.updateBad(b);
b.numhits += amt;
var which = eval('hit' + psoundcv);
which.start();
++psoundcv;
if (psoundcv == 2) {
psoundcv = 0;
}
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = who._x;
bu._y = who.ground - 29;
++burstcv;
if (b.hp <= 0) {
b.dead = true;
b.xvel = (b._xscale / 100) * b.sc * -8;
b.diecv = 0;
b.blinkcv = 0;
b.onoffcv = 0;
b.guts.gotoAndStop('die');
} else {
b.tiredsign._visible = false;
b.onground = true;
b.numhits = 0;
b.xvel = (b._xscale / 100) * b.sc * -8;
b.guts.gotoAndStop('fall');
}
}
}
}
++wi;
}
} else {
if (who.guts.hitarea.hitTest(dude.guts.hitarea) && !who.gothim && dude._y > who.ground - 5 && dude._y < who.ground + 5 && !who.firey2) {
if (!dude.hit && !dude.inv) {
lowerRage(15);
dude.hp -= 10;
hud.updateMe(_root.gam.dude);
who.gothim = true;
dude.attacking = false;
dude.hit = true;
dude.guts.gotoAndStop('hit' + dude.hitpointer);
++dude.hitpointer;
if (dude.hitpointer == 2) {
dude.hitpointer = 0;
}
dude.attacking = false;
dude.runningleft = false;
dude.runningright = false;
dude._xscale = who.sc * who._xscale;
dude.xvel = 0;
dude.yvel = 0;
var which = eval('hit' + psoundcv);
which.start();
++psoundcv;
if (psoundcv == 2) {
psoundcv = 0;
}
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = dude._x;
bu._y = dude._y - 40;
++burstcv;
dude.hitcv = 0;
var dir = who.dir;
if (dir == -1) {
runFall(dude, 0);
} else {
runFall(dude, 1);
}
}
}
}
}
who.yvel += 1;
who._y += who.yvel;
if (who._y >= who.ground) {
who._y = who.ground;
who.yvel *= -0.8;
bounce0.start();
if (who.firey2) {
flashIt();
makeSplode(who._x, who.ground, who.body);
who._visible = false;
who.sploded = true;
}
}
who.temprot += who.dir * 45;
who.guts._rotation = who.temprot;
if (who.temprot >= 330) {
who.guts._rotation = 0;
}
var absy = Math.abs(who.yvel);
var absx = Math.abs(who.xvel);
var absrot = Math.abs(who.temprot);
if (absx < 1 && absy < 1 && absrot >= 330) {
bounce1.start();
who.guts._rotation = 0;
who.inmotion = false;
who._y = who.ground;
who.safe = false;
if (who.firey) {
who.firey2 = true;
}
}
if (!shitTest(bg.walk, who._x, who.ground) || who._x < 0 || who._x > 256) {
who.xvel *= -1.2;
bu = this.attachMovie('dd_burst', 'burst' + burstcv, burstcv + 872);
bu._x = who._x;
bu._y = who.ground - 29;
++burstcv;
}
} else {
who.xvel = 0;
who.yvel = 0;
who.gothim = false;
who.evil = false;
who.swapDepths(who._y);
}
who._x += who.xvel;
who.xvel *= 0.9;
}
}
function makeSplode(x, y, body, bar, evill) {
if (body) {
_root.aboboMedal('Waste Not');
pblood(x, y);
var v3 = barrel.ground;
i = 0;
while (i < 6) {
p = this.attachMovie('dd_bbit' + i, 'bit' + splodecv, splodecv + 391);
++splodecv;
p.ground = v3;
p.rotdir = random(2);
if (p.rotdir <= 1) {
p.rotdir = -1;
}
p._x = x;
p._y = y;
p.rotvel = 45;
p.xvel = random(20) - 10;
p.yvel = -random(10) - 5;
p.onEnterFrame = function () {
if (!_root.gam.pausy) {
this._x += this.xvel;
this.xvel *= 0.9;
this._y += this.yvel;
this.yvel += 1;
this._rotation += this.rotdir * this.rotvel;
this.rotvel -= 1;
if (this.rotvel <= 0) {
this.rotvel = 0;
}
this.swapDepths(this.ground);
if (this._y >= this.ground) {
this._y = this.ground;
this.yvel *= -0.6;
this.absyvel = Math.abs(this.yvel);
if (this.absyvel <= 4) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
}
}
};
++i;
}
}
if (!bar) {
spl = this.attachMovie('dd_splode2', 'sploder' + splodecv, 778 + splodecv);
} else {
spl = this.attachMovie('dd_dksplode', 'sploder' + splodecv, 778 + splodecv);
}
spl._x = x;
spl._y = y;
++splodecv;
if (!barrel.evil && !evill) {
chkAttack(spl.hitarea, 30, 0, false, true, true);
} else {
chkBadHit(spl, 30, 0, spl.hitarea, true, true);
}
spl.dir = 1;
spl.cv = 0;
spl.home = bg.guts._x;
spl.swapDepths(spl._y);
splodesound0.start();
spl.onEnterFrame = function () {
this.swapDepths(this._y);
if (this.cv >= 10) {
_root.gam.bg.guts._x = this.home;
delete this.onEnterFrame;
} else {
newloc = this.home + this.dir * 5;
_root.gam.bg.guts._x = newloc;
this.dir *= -1;
++this.cv;
}
};
}
function initDude(who) {
who.hitexpire = 0;
who.hitcv = 0;
who.brawlcv = 0;
who.hitpointer = 0;
who.runright = 0;
who.runleft = 0;
who.maxrun = 20;
who.maxrunwait = 3;
who.xvel = 0;
who.yvel = 0;
who.xspeed = 3;
who.yspeed = 3;
who.runvel = 7;
who.maxfall = 5;
who.punchrange = 85;
who.punchcv = who.punchrange;
}
function chkCounter() {
if (counter._currentframe > 1) {
counter.play();
}
}
function chkTran() {
if (tran) {
++trancv;
if (!doorwayed) {
dude.gotoAndPlay('doorway');
doorwayed = true;
}
if (trancv >= 10 && !finaldoor) {
finaldoor = true;
closeDoors2();
}
if (trancv >= 30 && !tranned) {
tranned = true;
this._parent.fader.gotoAndPlay(2);
}
}
}
function getShot() {
btm = new flash.display.BitmapData(256, 254, true, 16777215);
this._parent.psign.attachBitmap(btm, 0);
o = this._parent;
var v2 = new flash.geom.Matrix();
v2.tx = 0;
v2.ty = 0;
v2.a = 1;
alf = 1;
var v3 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v2, v3);
this._parent.psign.filters = new Array(filter);
}
function chkPause() {
if (!Key.isDown(80)) {
pup = true;
}
if (Key.isDown(80) && pup) {
pup = false;
if (!rageplay && !secreted && !bossending) {
if (!pausy) {
pausesound.start();
pausy = true;
mastersound.lloop.setVolume(0);
dude.guts.climber.stop();
this._parent.psign._visible = true;
this._parent.psign2._visible = true;
getShot();
bg.dkjr.stop();
gosign.stop();
dude.guts.guts2.stop();
this._parent.fullrage.stop();
counter.stop();
if (dude.rage >= 100) {
dude.stop();
}
stopBaddieAnim();
i = 0;
while (i < splodecv) {
thing1 = eval('sploder' + i);
thing1.stop();
++i;
}
} else {
if (!fightingboss) {
mastersound.lloop.setVolume(mastervol);
} else {
mastersound.bossloop.setVolume(mastervol);
}
pausy = false;
this._parent.psign.filters = [];
btm.dispose();
this._parent.psign._visible = false;
this._parent.psign2._visible = false;
dude.guts.climber.play();
if (bg.dkjr._currentframe < 77) {
bg.dkjr.play();
}
if (this._parent.fullrage._currentframe > 1) {
this._parent.fullrage.play();
}
if (counter._currentframe > 1) {
counter.play();
}
if (gosign._currentframe > 1) {
gosign.play();
}
dude.guts.guts2.play();
if (dude.rage >= 100) {
dude.play();
}
playBaddieAnim();
i = 0;
while (i < splodecv) {
thing1 = eval('sploder' + i);
thing1.play();
++i;
}
}
}
}
}
function stopBaddieAnim() {
i = 0;
while (i < curbaddies.length) {
tar = curbaddies[i];
tar.guts.guts2.stop();
++i;
}
}
function playBaddieAnim() {
i = 0;
while (i < curbaddies.length) {
tar = curbaddies[i];
tar.guts.guts2.play();
++i;
}
}
function pblood(x, y) {
i = 0;
while (i < 40) {
pb = this.attachMovie('dd_pixelblood', 'pblood' + smokecv, smokecv + 3421);
pb.cacheAsBitmap = true;
++smokecv;
pb._x = x;
pb._y = y;
pb._xscale = random(50) + 150;
pb._yscale = pb._xscale;
pb.xvel = random(10) - 5;
pb.yvel = -random(10);
pb.tim = 0;
pb.maxtim = random(10) + 25;
pb.onEnterFrame = function () {
if (!_root.gam.pausy) {
this._x += this.xvel;
this.xvel *= 0.9;
this._y += this.yvel;
this.yvel += 1;
++this.tim;
if (this.tim >= this.maxtim) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
}
};
++i;
}
}
function runLevel2() {
clearGame();
_root.lives = dude.lives;
bossfg.unloadMovie();
bossfg.removeMovieClip();
this._parent.fader.gotoAndStop(1);
_root.gotoAndStop('lev2');
}
function endLevel1() {
level1complete = true;
this._parent.fader.gotoAndPlay(2);
}
function chkConveyer() {
if (!_root.gam.pausy) {
if (this.bossfg._x != undefined) {
if (boss.dead && boss.gotoroll) {
if (!boss.stoppedit) {
boss.stoppedit = true;
bg.conveyer.belt0.stop();
bg.conveyer.belt1.stop();
}
if (!finalscene) {
boss.overridescale = true;
bossending = true;
var v3 = dude;
v3.tiredsign._visible = false;
v3.tired = false;
v3.tiredcv = 0;
v3.dead = false;
v3.blinkcv = 0;
v3.inv = false;
v3._visible = true;
clearInterval(v3.fallint);
clearInterval(_root.gam.runint);
v3.falling = false;
v3.attacking = false;
v3.jumpkick = false;
v3.hit = false;
v3.shoulder = false;
v3.runright = 0;
v3.runleft = 0;
v3.runningright = false;
v3.runningleft = false;
v3.fallcv = 0;
v3.gotbarrel = false;
v3.gettingbarrel = false;
boss.endx = Math.abs(89 - boss._x);
if (boss.endx > 2) {
boss.overridescale = true;
boss.guts.gotoAndStop('roll');
if (boss._x > 100) {
boss._xscale = 100;
}
if (boss._x < 78) {
boss._xscale = -100;
}
if (boss._x > 97) {
boss.xvel = -5;
}
if (boss._x < 81) {
boss.xvel = 5;
}
}
if (boss._y < 115) {
boss._y = 115;
}
boss.endy = Math.abs(125 - boss._y);
if (boss.endy > 2 && boss.endx < 55) {
boss.guts.gotoAndStop('roll');
if (boss._y > 125) {
boss.yvel = -5;
} else {
boss.yvel = 5;
}
}
if (boss.endx <= 10 && boss.endy <= 10) {
boss._xscale = 100;
boss._x = 89;
boss._y = 125;
boss.xvel = 0;
boss.yvel = 0;
boss.guts.gotoAndStop('rest');
}
if (dude.endx > 2) {
dude.guts.gotoAndStop('walk');
if (dude._x > 150) {
dude._xscale = 100;
}
if (dude._x < 130) {
dude._xscale = -100;
}
if (dude._x > 148) {
dude.xvel = -4;
}
if (dude._x < 131) {
dude.xvel = 4;
}
}
dude.endx = Math.abs(140 - dude._x);
if (dude.endy > 2 && dude.endx < 25) {
dude.guts.gotoAndStop('walk');
if (dude._y > 150) {
dude.yvel = -4;
}
if (dude._y < 140) {
dude.yvel = 4;
}
}
dude.endy = Math.abs(145 - dude._y);
if (dude.endx <= 10 && dude.endy <= 10) {
dude._xscale = 100;
dude._x = 140;
dude._y = 145;
dude.xvel = 0;
dude.yvel = 0;
dude.guts.gotoAndStop('rest');
}
if (boss.endx < 4 && boss.endy < 4 && dude.endx < 4 && dude.endy < 4) {
_root.aboboMedal('Forklift Foul');
finalscene = true;
bg.windup._visible = true;
bg.windup.gotoAndPlay(2);
dude.guts.gotoAndStop('rest');
boss.guts.gotoAndStop('rest');
dude._visible = false;
boss._visible = false;
}
}
} else {
if (shitTest(bg.conveyer.hitarea, dude._x, dude._y)) {
dude.xvel += 1;
if (shitTest(bg.conveyerend, dude._x, dude._y) && !dude.pitted) {
conveyerfall.start();
dude.pitted = true;
dude.tiredsign._visible = false;
dude.gutshome = dude.guts._y;
dude.pitcv = 0;
dude.xvel = 0;
dude.yvel = -2;
}
}
if (shitTest(bg.conveyer.hitarea, boss._x, boss._y)) {
if (shitTest(bg.conveyerend, boss._x, boss._y) && !boss.pitted) {
conveyerfall.start();
boss.pitted = true;
boss.gutshome = boss.guts._y;
boss.pitcv = 0;
boss.yvel = -5;
}
++boss.beltcv;
if (boss.beltcv >= 35 && !boss.retreat) {
boss.retreat = true;
boss.aicv = 0;
}
boss.onbelt = true;
if (!boss.hit && !boss.onground && !boss.dead && !boss.pitted) {
if (!boss.retreat) {
boss.xvel = -1.8;
if (boss.disty > 2) {
if (dude._y < boss._y) {
boss.yvel = -2;
} else {
boss.yvel = 2;
}
}
boss.guts.gotoAndStop('walk');
}
} else {
boss.xvel += 0.6;
}
} else {
boss.beltcv = 0;
boss.onbelt = false;
}
}
}
}
}
function moveBG() {
fightingboss = true;
stopAllSounds();
mastervol = 80;
this.mastersound.bossloop.start(0, 99);
this.mastersound.bossloop.setVolume(mastervol);
var i = 0;
while (i < badcv) {
var tar = eval('dude' + i);
tar.unloadMovie();
tar.removeMovieClip();
++i;
}
bg.enddoor.gotoAndPlay(1);
bg._x = -1088;
dude.gotoAndStop(1);
tran = false;
var who = dude;
who.tiredsign._visible = false;
chkRage(0);
who._xscale = -100;
who._x = 28;
who._y = 170;
who.invcv = 0;
who.dead = false;
who.blinkcv = 0;
who.inv = true;
who._visible = true;
clearInterval(who.fallint);
clearInterval(_root.gam.runint);
who.falling = false;
who.attacking = false;
who.jumpkick = false;
who.hit = false;
who.shoulder = false;
who.runright = 0;
who.runleft = 0;
who.runningright = false;
who.runningleft = false;
who.fallcv = 0;
this.attachMovie('dd_bossfg', 'bossfg', 333);
bossfg._x = 145;
bossfg._y = 193;
bossfg.onEnterFrame = function () {
this.swapDepths(this._y);
};
if (!who.gotbarrel) {
clearBarrel();
barrel._visible = false;
barrel.unloadMovie();
barrel.removeMovieClip();
}
}
function chkDKjr() {
if (!dkpunted) {
bg.dkjr.cover._visible = false;
}
}
function chkdkKick(box) {
if (bg.dkjr._currentframe > 1 && bg.dkjr._currentframe < 77 && !dkpunted) {
if (bg.dkjr.hitarea.hitTest(box)) {
foodBonus();
_root.aboboMedal('Kong Punt');
puntsound.start();
dkjrkicksound.start();
hud.updateBad(bg.dkjr, true);
dkpunted = true;
bg.dkjr.cover._visible = true;
dkjr = this.attachMovie('dd_dkjr', 'dkjr' + smokecv, smokecv + 2819);
dkjr._x = dude._x + (dude._xscale / 100) * -10;
dkjr._y = dude._y - 20;
dkjr.dir = dude._xscale / 100;
dkjr.onEnterFrame = function () {
if (!_root.gam.pausy) {
this._x += this.dir * -7;
this._y -= 7;
this._rotation += 30;
}
};
++smokecv;
}
}
}
function foodBonus() {
dude.hp += 15;
if (dude.hp >= dude.maxhp) {
dude.hp = dude.maxhp;
}
hud.updateMe(_root.gam.dude);
}
function chkHeads(who) {
if (stopindex == 5) {
who.h1._visible = true;
who.h0._visible = false;
} else {
who.h0._visible = true;
who.h1._visible = false;
}
}
function endBossAttack(who) {
if (!pausy) {
who.guts.gotoAndStop('rest');
who.brawl = false;
who.dec = 2;
}
}
function bossBullet(who) {
bossgun.start();
bb = this.attachMovie('dd_bossbullet', 'bbullet' + smokecv, smokecv + 37891);
++smokecv;
bb._x = who._x;
bb._y = who._y + 2;
bb._xscale = who._xscale;
bb.dir = -bb._xscale / 100;
bb._x += bb.dir * 20;
bb.sc = -1;
bb.onEnterFrame = function () {
if (!_root.gam.pausy) {
this.swapDepths(this._y);
this._x += this.dir * 7;
if (this.hitarea.hitTest(this._parent.dude.guts.hitarea)) {
chkBadHit(this, 10, 0, this.hitarea, true);
if (this._y > dude._y - 6 && this._y < dude._y + 6) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
}
}
};
}
function revealBoss() {
this.attachMovie('dd_boss', 'boss', 921);
curbaddies.push(boss);
boss.gotoroll = false;
boss._x = 170;
boss._y = 110;
boss.aicv = 45;
boss.dec = 0;
boss.xvel = 0;
boss.yvel = 0;
boss.shootcv = 0;
boss.tar = dude;
boss.sc = -1;
boss.hp = 70;
boss.maxhp = boss.hp;
boss.inactive = false;
boss.numhits = 0;
boss.groundcv = 0;
boss.maxhits = 6;
boss.squatcv = 0;
boss.hitcv = 0;
boss.numattacks = 1;
boss.attackpointer = 0;
boss.blinkcv = 0;
boss.diecv = 0;
boss.onoffcv = 0;
boss.speed = 1.7;
boss.onEnterFrame = function () {
if (!_root.gam.pausy) {
if (this._x < 10 && !this.pitted) {
this._x = 10;
}
if (this._x > 244 && !this.pitted) {
this._x = 244;
}
if (!this.entered) {
this.inv = true;
this._y += 1;
this.guts.gotoAndStop('walk');
if (this._y >= 125) {
this.inv = false;
this.guts.gotoAndStop('rest');
this.entered = true;
}
} else {
this.absxvel = Math.abs(this.xvel);
this.absyvel = Math.abs(this.yvel);
if (this.absxvel < 0.5) {
this.xvel = 0;
}
if (this.absyvel < 0.5) {
this.yvel = 0;
}
this._x += this.xvel;
if (!shitTest(this._parent.bg.walk, this._x, this._y) && !this.pitted) {
this._x -= this.xvel;
}
this.xvel *= 0.8;
this._y += this.yvel;
if (!shitTest(this._parent.bg.walk, this._x, this._y) && !this.pitted) {
this._y -= this.yvel;
}
this.yvel *= 0.8;
if (!this.pitted) {
this.distx = Math.abs(dude._x - this._x);
this.disty = Math.abs(dude._y - this._y);
if (!this.retreat) {
if (!this.hit && !_root.gam.dude.pitted && !this.dead && !this.onground && !_root.gam.dude.inv && !this.onbelt) {
if (this.disty < 6) {
if (this.distx <= 40) {
this.yvel = 0;
this.brawl = true;
}
}
if (this.disty < 3) {
if (this.distx > 40) {
this.dec = 99;
}
}
if (this.brawl) {
this.guts.gotoAndStop('atk1');
}
if (!this.brawl) {
++this.aicv;
if (this.aicv >= 50) {
this.aicv = 0;
this.dec = random(5);
}
if (this.dec == 0) {
this.guts.gotoAndStop('rest');
}
if (this.dec == 1) {
this.guts.gotoAndStop('walk');
if (!this.ycentered) {
if (this._y > dude._y + 2) {
this.yvel = -this.speed;
}
if (this._y < dude._y - 2) {
this.yvel = this.speed;
}
if (this._y >= dude._y - 2 && this._y < dude._y + 2) {
this.ycentered = true;
}
} else {
this.dec = 99;
}
}
if (this.dec == 99) {
++this.shootcv;
this.aicv = 0;
this.guts.gotoAndStop('atk0');
if (this.shootcv >= 35) {
this.aicv = 0;
this.shootcv = 0;
this.dec = 2;
this.ycentered = false;
}
}
if (this.dec >= 2 && this.dec < 99) {
this.guts.gotoAndStop('walk');
if (this._y > dude._y + 2) {
this.yvel = -this.speed;
}
if (this._y < dude._y - 2) {
this.yvel = this.speed;
}
if (this._x > dude._x + 15) {
this.xvel = -this.speed;
}
if (this._x < dude._x - 15) {
this.xvel = this.speed;
}
}
}
}
} else {
if (!this.hit && !this.dead && !this.onground && !_root.gam.dude.inv && !this.pitted) {
if (this.aicv < 10) {
++this.aicv;
this.xvel += 1;
this.guts.gotoAndStop('atk0');
} else {
this.goalx = 125;
this.goaly = 175;
this.guts.gotoAndStop('walk');
if (this._y > this.goaly + 2) {
this.yvel = -this.speed;
}
if (this._y < this.goaly - 2) {
this.yvel = this.speed;
}
if (this._x > this.goalx + 15) {
this.xvel = -this.speed;
}
if (this._x < this.goalx - 15) {
this.xvel = this.speed;
}
this.edistx = this.goalx - this._x;
this.edisty = this.goaly - this._y;
this.edist = Math.sqrt(this.edistx * this.edistx + this.edisty * this.edisty);
if (this.edist < 18) {
this.guts.gotoAndStop('rest');
this.retreat = false;
this.onbelt = false;
this.aicv = 0;
this.dec = 2;
}
}
}
}
} else {
if (this.donefall) {
if (this.swappy) {
this.swapDepths(210);
}
this.xvel = 0;
this.yvel = 0;
this._x = 180;
this._y = 210;
this.guts._y = this.gutshome;
this.guts.gotoAndStop('comeback');
} else {
bg.conveyer.belt0.stop();
bg.conveyer.belt1.stop();
_root.gam.dude.guts.gotoAndStop('rest');
_root.gam.dude.guts.attacking = false;
_root.gam.eatpause = true;
this.guts.gotoAndStop('pitfall');
this.xvel += 1;
this.swapDepths(50);
this.guts._y += this.yvel;
this.yvel += 0.6;
if (this.guts._y > 60) {
if (_root.gam.boss.hp > 20) {
_root.gam.boss.hp -= 15;
hud.updateBad(_root.gam.boss);
}
this.donefall = true;
}
}
}
var v3 = this;
if (v3.onground && !v3.pitted) {
v3.retreat = false;
v3.dec = 2;
v3.brawl = false;
v3.aicv = 0;
++v3.groundcv;
if (v3.groundcv >= 18) {
if (!v3.dead) {
++v3.squatcv;
if (v3.squatcv < 10) {
v3.guts.gotoAndStop('roll');
if (v3.rolldir == undefined) {
v3.rolly = random(2);
if (v3.rolly == 0) {
v3.rolly = -1;
}
if (v3._x > 70) {
v3.rolldir = -1;
} else {
v3.rolldir = 1;
}
}
v3.yvel += v3.rolly;
v3.xvel += v3.rolldir * (random(4) + 0.5);
}
if (v3.squatcv >= 10) {
v3.guts.gotoAndStop('squat');
}
if (v3.squatcv > 15) {
v3.rolldir = undefined;
v3.squatcv = 0;
v3.groundcv = 0;
v3.onground = false;
v3.hit = false;
v3.dec = 0;
v3.aicv = 0;
v3.guts.gotoAndStop('rest');
}
}
}
}
if (v3.dead) {
++v3.groundcv;
if (v3.groundcv >= 18) {
v3.gotoroll = true;
}
}
}
}
};
}
function muteIt() {
if (!fightingboss) {
mastersound.lloop.setVolume(0);
} else {
mastersound.bossloop.setVolume(0);
}
}
function showBossAgain() {
mastersound.bossloop.setVolume(mastervol);
dude.guts.gotoAndStop('rest');
dude.attacking = false;
bg.conveyer.belt0.play();
bg.conveyer.belt1.play();
boss.donefall = false;
boss.swappy = false;
boss.pitted = false;
_root.gam.eatpause = false;
boss.guts.gotoAndStop('rest');
}
function bossYSwitch() {
boss.swappy = true;
}
this.hud = this._parent.hud;
_root._quality = 'LOW';
nokeys = false;
pausy = false;
this.gameover = false;
this.mastervol = 40;
this.createEmptyMovieClip('mastersound', -999);
this.mastersound.lloop = new Sound(this.mastersound);
this.mastersound.lloop.attachSound('lev1loop');
this.mastersound.bossloop = new Sound(this.mastersound);
this.mastersound.bossloop.attachSound('bossfightlev1');
doorsound = new Sound(this);
doorsound.attachSound('doorsound');
gameoversound = new Sound(this);
gameoversound.attachSound('gameoversound');
backtolife = new Sound(this);
backtolife.attachSound('backtolife');
abobodies = new Sound(this);
abobodies.attachSound('abobodies');
dkjrkicksound = new Sound(this);
dkjrkicksound.attachSound('dkjrkick');
puntsound = new Sound(this);
puntsound.attachSound('punt');
ldsound = new Sound(this);
ldsound.attachSound('ladderdrop');
bounce = new Sound(this);
bounce.attachSound('bounce');
bounce0 = new Sound(this);
bounce0.attachSound('bounce0');
bounce1 = new Sound(this);
bounce1.attachSound('bounce1');
conveyerfall = new Sound(this);
conveyerfall.attachSound('conveyerfall');
bossgun = new Sound(this);
bossgun.attachSound('bossgun');
skidsound = new Sound(this);
skidsound.attachSound('skid');
swing = new Sound(this);
swing.attachSound('swing');
bigswing = new Sound(this);
bigswing.attachSound('bigswing');
hit0 = new Sound(this);
hit0.attachSound('hit0');
hit1 = new Sound(this);
hit1.attachSound('hit1');
abobohit = new Sound(this);
abobohit.attachSound('abobohit');
noragesound = new Sound(this);
noragesound.attachSound('norage');
shouldersound = new Sound(this);
shouldersound.attachSound('shoulder');
splodesound0 = new Sound(this);
splodesound0.attachSound('splode0');
pausesound = new Sound(this);
pausesound.attachSound('pausesound');
psoundcv = 0;
fallsoundplayed = false;
fightingboss = false;
coverer.swapDepths(93939393);
coverer.cacheAsBitmap = true;
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
level1complete = false;
finalscene = false;
bossending = false;
bg.windup._visible = false;
bossskip = true;
dkpunted = false;
counter.stop();
counter.rage.stop();
counter.swapDepths(88329);
this._parent.psign._visible = false;
this._parent.psign2._visible = false;
ransomgo = false;
eatpause = false;
rageplay = false;
bg.dkjr.cover._visible = false;
bg.dkjr._visible = false;
bg.guts.ladderoverlay._visible = false;
this.laddersdown = false;
this.ladderx = bg.walk.ladderarea._x;
this.laddery = bg.walk.ladderarea._y;
bg.walk.ladderarea.unloadMovie();
bg.walk.ladderarea.removeMovieClip();
ragemoves = 15;
ragedecay = 0;
ragehit = 0;
ragefall = 10;
smokecv = 0;
splodecv = 0;
barrel.throwcv = 0;
maxbarrelthrows = 3;
crackcv = 0;
levcleared = false;
dude.tiredsign._visible = false;
dude.rage = 0;
dude.tiredcv = 0;
dude.combo = 0;
dude.invcv = 0;
dude.subcv = 0;
dude.inv = true;
dude.hp = 100;
dude.lives = 5;
_root.lives = 5;
dude.maxhp = dude.hp;
dude._xscale = -100;
badcv = 0;
bg.lad1._alpha = 0;
bg.lad0._alpha = 0;
burstcv = 0;
hud.updateMe(dude);
door0go = false;
door1go = false;
bg.d0_0.home = bg.d0_0._x;
bg.d0_1.home = bg.d0_1._x;
bg.d1_0.home = bg.d1_0._x;
bg.d1_1.home = bg.d1_1._x;
bg.d0_0.goalx = bg.d0_0._x - 20;
bg.d0_1.goalx = bg.d0_1._x + 20;
bg.d1_0.goalx = bg.d1_0._x - 20;
bg.d1_1.goalx = bg.d1_1._x + 20;
curbaddies = new Array();
baddies = new Array();
baddies[0] = new Array();
baddies[0].dudes = new Array(4, 1, 5, 8, 17);
baddies[0].ex = new Array(375, 310, 3, 350, 350);
baddies[0].ey = new Array(170, 210, 195, 165, 210);
baddies[0].moves = new Array(4, 1, 1, 1, 17);
baddies[0].hp = new Array(18, 15, 15, 15, 1);
baddies[0].sc = new Array(-1, -1, -1, -1, 1);
baddies[0].maxhits = new Array(6, 6, 6, 6, 1);
baddies[0].numattacks = new Array(2, 2, 2, 1, 0);
baddies[0].inactive = new Array(false, false, true, true, true);
baddies[1] = new Array();
baddies[1].dudes = new Array();
baddies[1].dudes[0] = 12;
baddies[1].ex = new Array();
baddies[1].ex[0] = 375;
baddies[1].ey = new Array();
baddies[1].ey[0] = 195;
baddies[1].moves = new Array();
baddies[1].moves[0] = 12;
baddies[1].hp = new Array();
baddies[1].hp[0] = 1;
baddies[1].sc = new Array();
baddies[1].sc[0] = -1;
baddies[1].maxhits = new Array();
baddies[1].maxhits[0] = 1;
baddies[1].leader = new Array();
baddies[1].leader[0] = 0;
baddies[1].inactive = new Array();
baddies[1].inactive[0] = false;
baddies[2] = new Array();
baddies[2].dudes = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10);
baddies[2].ex = new Array(600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 580);
baddies[2].ey = new Array(172, 175, 180, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 165);
baddies[2].moves = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10);
baddies[2].hp = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2);
baddies[2].sc = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
baddies[2].maxhits = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
baddies[2].leader = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
baddies[2].inactive = new Array(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true);
baddies[3] = new Array();
baddies[3].dudes = new Array(2, 3, 13, 17, 17);
baddies[3].ex = new Array(650, 610, 433, 200, 680);
baddies[3].ey = new Array(170, 180, 59, 175, 210);
baddies[3].moves = new Array(2, 3, 13, 17, 17);
baddies[3].hp = new Array(5, 30, 10, 1, 1);
baddies[3].sc = new Array(1, 1, -1, 1, 1);
baddies[3].maxhits = new Array(1, 6, 10, 1, 1);
baddies[3].numattacks = new Array(1, 3, 2, 1, 1);
baddies[4] = new Array();
baddies[4].dudes = new Array(4, 1, 5, 14, 6, 7, 11);
baddies[4].ex = new Array(685, 630, 300, 630, 820, 450, 490);
baddies[4].ey = new Array(115, 180, 190, 110, 185, 180, 195);
baddies[4].moves = new Array(4, 1, 1, 14, 6, 7, 7);
baddies[4].hp = new Array(25, 15, 20, 40, 20, 15, 15);
baddies[4].sc = new Array(-1, -1, -1, -1, 1, 1, 1);
baddies[4].maxhits = new Array(6, 6, 6, 6, 6, 6, 6);
baddies[4].numattacks = new Array(2, 2, 2, 3, 2, 2, 2);
baddies[4].inactive = new Array(false, false, false, false, true, true, true);
baddies[5] = new Array();
baddies[5].dudes = new Array(16, 9, 15, 17);
baddies[5].ex = new Array(935, 890, 985, 440);
baddies[5].ey = new Array(170, 180, 210, 185);
baddies[5].moves = new Array(1, 9, 12, 17);
baddies[5].hp = new Array(35, 20, 1, 1);
baddies[5].sc = new Array(1, 1, -1, 1);
baddies[5].maxhits = new Array(6, 6, 1, 1);
baddies[5].numattacks = new Array(2, 2, 0, 1);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (!_root.gam.pausy) {
var dakey = Key.getCode();
if (dakey == 50) {
var i = 0;
while (i < badcv) {
var tar = eval('dude' + i);
tar.unloadMovie();
tar.removeMovieClip();
++i;
}
dude._visible = false;
runLevel2();
}
if (dakey == 51) {
stopAllSounds();
var i = 0;
while (i < badcv) {
var tar = eval('dude' + i);
tar.unloadMovie();
tar.removeMovieClip();
++i;
}
dude._visible = false;
clearGame();
bossfg.unloadMovie();
bossfg.removeMovieClip();
this._parent.fader.gotoAndStop(1);
_root.gam.gotoAndStop('lev3');
}
if (dakey == 13) {
}
if (!dude.gettingbarrel && !dude.gotbarrel && !dude.throwing && !_root.gam.pausy && !dude.tired) {
if (!dude.runningright && !dude.runningleft && !dude.falling) {
if (dakey == 65) {
if (!_root.gam.dude.attacking && _root.gam.atkup && !dude.hit && !dude.onladder) {
_root.gam.atkup = false;
swing.start();
_root.gam.dude.guts.gotoAndStop('kick');
_root.gam.dude.attacking = true;
}
}
if (dakey == 83) {
if (!_root.gam.dude.attacking && !dude.onladder && _root.gam.bup && _root.gam.dude.punchcv >= _root.gam.dude.punchrange && !dude.hit) {
_root.gam.bup = false;
swing.start();
_root.gam.dude.guts.gotoAndStop('punch0');
_root.gam.dude.attacking = true;
_root.gam.dude.punchcv = 0;
_root.gam.dude.punchcount = 0;
_root.gam.punchint = setInterval(_root.gam.punchTime, 10);
} else {
if (!_root.gam.dude.attacking && !dude.onladder && _root.gam.bup && _root.gam.dude.punchcv < _root.gam.dude.punchrange && !dude.hit) {
_root.gam.dude.punchcount += 1;
if (_root.gam.dude.punchcount == 1 || _root.gam.dude.punchcount == 3) {
_root.gam.bup = false;
swing.start();
_root.gam.dude.guts.gotoAndStop('punch1');
_root.gam.dude.attacking = true;
}
if (_root.gam.dude.punchcount == 2) {
_root.gam.bup = false;
swing.start();
_root.gam.dude.guts.gotoAndStop('punch0');
_root.gam.dude.attacking = true;
}
if (_root.gam.dude.punchcount >= 4) {
_root.gam.bup = false;
bigswing.start();
_root.gam.dude.guts.gotoAndStop('punch3');
_root.gam.dude.attacking = true;
}
}
}
}
}
if (dakey == 39 && !dude.onladder && _root.gam.rightup && !Key.isDown(37) && !dude.falling && !dude.runningright && !dude.runningleft && !dude.attacking && !dude.hit) {
_root.gam.rightup = false;
if (dude.runright == 0) {
dude.runright = 1;
dude.runwait = 0;
clearInterval(_root.gam.runint);
_root.gam.runint = setInterval(_root.gam.runTime, 100);
} else {
clearInterval(_root.gam.runint);
dude.nextx = dude._x + dude.runvel;
if (shitTest(bg.walk, dude.nextx, dude._y) && dude.nextx < 256) {
if (!dude.runningright) {
dude._xscale = -100;
dude.attacking = false;
_root.aboboMedal('Run Abobo, Run!');
dude.runningright = true;
dude.runtime = 0;
dude.shoulder = false;
dude.skid = false;
dude.yvel = 0;
}
}
}
}
if (dakey == 37 && !dude.onladder && !Key.isDown(39) && _root.gam.leftup && !dude.falling && !dude.runningright && !dude.runningleft && !dude.attacking && !dude.hit) {
_root.gam.leftup = false;
if (dude.runleft == 0) {
dude.runleft = 1;
dude.runwait = 0;
clearInterval(_root.gam.runint);
_root.gam.runint = setInterval(_root.gam.runTime, 100);
} else {
clearInterval(_root.gam.runint);
dude.nextx = dude._x - dude.runvel;
if (shitTest(bg.walk, dude.nextx, dude._y) && dude.nextx > 0) {
if (!dude.runningleft) {
dude._xscale = 100;
dude.attacking = false;
dude.runningleft = true;
_root.aboboMedal('Run Abobo, Run!');
dude.runtime = 0;
dude.shoulder = false;
dude.skid = false;
dude.yvel = 0;
}
}
}
}
}
}
};
Key.addListener(keyListener);
_root.gam.stopindex = -1;
_root.gam.stops = new Array(-50, -134, -220, -310, -520, -785);
runGo();
trancv = 0;
tranned = false;
doorwayed = false;
finaldoor = false;
bg.walk._alpha = 0;
initDude(this.dude);
this.onEnterFrame = function () {
_root.gam.chkReset();
if (!tran) {
if (!_root.gam.pausy) {
if (!eatpause) {
chkConveyer();
barrelBrain(barrel);
chkDoors();
allBrains();
baddieSwap();
dudePhys(this.dude);
if (!bossending) {
controls(this.dude);
}
chkCounter();
chkDKjr();
}
if (dude.eating) {
dude.xvel = 0;
dude.yvel = 0;
dude.guts.gotoAndStop('eat');
}
}
chkPause();
chkSecret();
}
chkTran();
};
}
}
movieClip 12996 {
}
movieClip 12999 {
}
movieClip 13022 {
frame 1 {
stop();
}
}
movieClip 13027 {
}
movieClip 13105 {
}
movieClip 13276 {
frame 1 {
stop();
}
}
movieClip 13287 {
frame 1 {
stop();
}
}
movieClip 13288 {
}
movieClip 13292 {
}
movieClip 13293 {
}
movieClip 13296 {
}
movieClip 13301 {
}
movieClip 13302 {
}
movieClip 13303 {
}
movieClip 13306 {
}
movieClip 13309 {
}
movieClip 13310 {
}
movieClip 13312 {
frame 1 {
function setHud(lev) {
ragebar._xscale = 0;
flasher._visible = false;
i = 0;
while (i < 10) {
var tar = eval('overlays.bg' + i);
tar._visible = false;
var tar1 = eval('bars0.bar' + i);
tar1._visible = false;
var tar2 = eval('bars.bar' + i);
tar2._visible = false;
++i;
}
sho = eval('overlays.bg' + lev);
sho._visible = true;
sho1 = eval('bars0.bar' + lev);
sho1._visible = true;
sho2 = eval('bars.bar' + lev);
sho2._visible = true;
enemies._visible = false;
badlife._xscale = 0;
this.nam = '';
}
function updateRage(val) {
if (val == undefined) {
if (_root.dude.rage >= 100) {
flasher._visible = true;
} else {
flasher._visible = false;
}
ragebar._xscale = _root.dude.rage;
if (_root.bg.dude.rage >= 100) {
flasher._visible = true;
} else {
flasher._visible = false;
}
ragebar._xscale = _root.bg.dude.rage;
} else {
ragebar._visible = true;
if (val >= 100) {
flasher._visible = true;
} else {
flasher._visible = false;
}
ragebar._xscale = val;
}
}
function updateBad(who, oride, nodie) {
this.nam = who.nam.toUpperCase();
delete enemies.onEnterFrame;
enemies.ex._visible = false;
badlife._xscale = (who.hp / who.maxhp) * 100;
enemies._visible = true;
enemies.gotoAndStop(who.picid);
if (!nodie) {
if (badlife._xscale <= 0 || oride) {
if (oride) {
badlife._xscale = 0;
}
enemies.cv = 0;
enemies.onEnterFrame = function () {
++this.cv;
this.ex._visible = !this.ex._visible;
if (this.cv >= 60) {
this.ex._visible = false;
this._visible = false;
this._parent.nam = '';
delete this.onEnterFrame;
}
};
}
}
}
function updateMe(tar) {
this.lives.gotoAndStop(tar.lives + 1);
this.goalsc = (tar.hp / tar.maxhp) * 100;
perc = (tar.hp / tar.maxhp) * 100;
if (perc >= 80) {
abobo.gotoAndStop(1);
}
if (perc < 80) {
abobo.gotoAndStop(2);
}
if (perc <= 60) {
abobo.gotoAndStop(3);
}
if (perc <= 40) {
abobo.gotoAndStop(4);
}
if (perc <= 20) {
abobo.gotoAndStop(5);
}
this.onEnterFrame = function () {
var v2 = this.goalsc - this.life._xscale;
this.life._xscale += v2 / 8;
var v3 = Math.abs(v2);
if (v3 < 1) {
this.life._xscale = this.goalsc;
delete this.onEnterFrame;
}
};
}
_root.chkMe();
}
}
movieClip 13316 {
frame 1 {
stop();
}
frame 19 {
if (!_root.gam.level1complete) {
_root.gam.moveBG();
}
}
frame 25 {
if (_root.gam.level1complete) {
_root.gam.runLevel2();
stop();
}
}
}
movieClip 13323 {
}
movieClip 13326 {
}
movieClip 13327 {
}
movieClip 13328 {
frame 1 {
stop();
}
}
frame 8 {
stop();
levlocks[1] = false;
saveStuff();
masterlev = 2;
}
movieClip 13335 {
}
movieClip 13338 {
}
movieClip 13339 {
frame 70 {
stop();
_root.bg.endWaterLevel();
}
}
movieClip 13340 {
frame 1 {
stop();
}
}
movieClip 13343 {
}
movieClip 13347 {
}
movieClip 13348 {
}
movieClip 13349 {
}
movieClip 13351 {
}
movieClip 13353 {
}
movieClip 13354 {
frame 1 {
}
}
movieClip 13357 {
}
movieClip 13360 {
}
movieClip 13361 {
frame 1 {
stop();
if (!this.inited) {
this.inited = true;
_root.bg.addShocker(this);
}
}
}
movieClip 13364 {
}
movieClip 13367 {
}
movieClip 13368 {
frame 1 {
stop();
if (!this.inited) {
this.inited = true;
_root.bg.addShocker(this);
}
}
}
movieClip 13371 {
}
movieClip 13403 {
frame 13 {
stop();
}
}
movieClip 13404 {
frame 1 {
gotoAndStop(27);
}
frame 27 {
stop();
this._parent.chkBigDoor();
}
frame 63 {
stop();
}
}
movieClip 13417 {
}
movieClip 13418 {
frame 7 {
stop();
}
}
movieClip 13419 {
frame 1 {
stop();
}
}
movieClip 13420 {
}
movieClip 13423 {
}
movieClip 13426 {
}
movieClip 13427 {
}
movieClip 13428 {
}
movieClip 13429 {
}
movieClip 13430 {
}
movieClip 13431 {
}
movieClip 13432 {
}
movieClip 13433 {
}
movieClip 13434 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 14 {
stop();
}
}
movieClip 13441 {
}
movieClip 13442 {
}
movieClip 13447 {
}
movieClip 13452 {
frame 2 {
stop();
}
}
movieClip 13465 {
}
movieClip 13472 {
frame 7 {
_root.bg.endSpit();
stop();
}
}
movieClip 13473 {
frame 1 {
stop();
}
}
movieClip 13491 {
frame 1 {
stop();
}
}
movieClip 13496 {
frame 1 {
stop();
}
frame 5 {
play();
}
}
movieClip 13501 {
frame 1 {
stop();
}
frame 5 {
play();
}
}
movieClip 13506 {
frame 1 {
stop();
}
frame 5 {
play();
}
}
movieClip 13507 {
}
movieClip 13512 {
frame 1 {
stop();
}
frame 6 {
play();
}
}
movieClip 13517 {
frame 1 {
stop();
}
frame 7 {
play();
}
}
movieClip 13518 {
}
movieClip 13523 {
frame 1 {
stop();
}
frame 5 {
play();
}
}
movieClip 13528 {
frame 1 {
play();
}
frame 6 {
play();
}
}
movieClip 13529 {
}
movieClip 13530 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 14 {
stop();
}
}
movieClip 13531 {
}
movieClip 13546 {
}
movieClip 13551 {
}
movieClip 13560 {
frame 5 {
stop();
}
}
movieClip 13570 {
}
movieClip 13579 {
frame 10 {
stop();
}
}
movieClip 13606 {
}
movieClip 13610 {
}
movieClip 13611 {
}
movieClip 13614 {
}
movieClip 13617 {
}
movieClip 13618 {
}
movieClip 13629 {
frame 40 {
stop();
}
}
movieClip 13631 {
frame 97 {
stop();
_root.bg.endDie();
}
}
movieClip 13667 {
frame 27 {
stop();
}
}
movieClip 13676 {
frame 6 {
stop();
}
}
movieClip 13687 {
frame 40 {
stop();
}
}
movieClip 13690 {
frame 40 {
stop();
}
}
movieClip 13699 {
frame 40 {
stop();
}
}
movieClip 13702 {
frame 40 {
stop();
}
}
movieClip 13706 {
}
movieClip 13707 {
frame 40 {
stop();
}
}
movieClip 13716 {
}
movieClip 13717 {
}
movieClip 13723 {
}
movieClip 13742 {
frame 24 {
stop();
}
}
movieClip 13745 {
}
movieClip 13746 {
frame 41 {
stop();
}
}
movieClip 13757 {
frame 40 {
stop();
}
}
movieClip 13780 {
frame 59 {
stop();
_root.bg.endDie();
}
}
movieClip 13793 {
}
movieClip 13794 {
frame 1 {
stop();
}
}
movieClip 13795 {
frame 1 {
stop();
}
frame 9 {
gotoAndPlay('raged');
}
}
movieClip 13800 {
}
movieClip 13801 {
}
movieClip 13806 {
}
movieClip 13811 {
frame 1 {
stop();
}
}
movieClip 13812 {
frame 1 {
this._parent.registerMe(this);
this.xvel = 0;
this.ai = 12;
this.aicv = 0;
this.typ = -1;
this.dmg = 10;
this.hp = 3;
this.dir = -1;
this.showhit = true;
this.hitcv = 0;
this.karnov = true;
this.maxhp = this.hp;
this.nam = 'KARNOV';
this.picid = 21;
}
}
movieClip 13821 {
}
movieClip 13823 {
}
movieClip 13834 {
}
movieClip 13835 {
frame 28 {
stop();
_root.bg.bigSharkEnter();
}
}
movieClip 13846 {
frame 10 {
stop();
}
}
movieClip 13873 {
}
movieClip 13877 {
}
movieClip 13878 {
}
movieClip 13881 {
}
movieClip 13884 {
}
movieClip 13885 {
frame 45 {
stop();
}
}
movieClip 13886 {
frame 1 {
stop();
}
}
movieClip 13887 {
frame 1 {
if (!this.inited) {
this.inited = true;
this._parent.registerMe(this);
this.ai = 9;
this.typ = -1;
this.dmg = 10;
this.hp = 3;
this.showhit = true;
this.xvel = 0;
this.yvel = 0;
this.hitcv = 0;
this.dir = -1;
this.aicv = 0;
this.maxhp = this.hp;
this.picid = 20;
this.nam = 'JAWS';
}
stop();
}
}
movieClip 13900 {
}
movieClip 13903 {
frame 1 {
stop();
}
}
movieClip 13908 {
}
movieClip 13912 {
}
movieClip 13926 {
}
movieClip 13933 {
}
movieClip 13936 {
}
movieClip 13953 {
}
movieClip 13974 {
}
movieClip 13989 {
}
movieClip 14006 {
}
movieClip 14029 {
frame 21 {
stop();
}
}
movieClip 14049 {
frame 9 {
stop();
}
}
movieClip 14050 {
frame 10 {
stop();
}
}
movieClip 14051 {
frame 31 {
stop();
}
}
movieClip 14052 {
}
movieClip 14053 {
}
movieClip 14072 {
frame 30 {
stop();
}
}
movieClip 14073 {
frame 32 {
stop();
}
}
movieClip 14076 {
frame 40 {
stop();
}
}
movieClip 14097 {
frame 24 {
stop();
}
}
movieClip 14106 {
frame 6 {
stop();
}
}
movieClip 14175 {
frame 63 {
stop();
}
}
movieClip 14176 {
frame 63 {
stop();
}
}
movieClip 14177 {
frame 40 {
stop();
}
}
movieClip 14180 {
frame 40 {
stop();
}
}
movieClip 14183 {
frame 40 {
stop();
}
}
movieClip 14186 {
frame 40 {
stop();
}
}
movieClip 14190 {
}
movieClip 14191 {
frame 40 {
stop();
}
}
movieClip 14218 {
frame 14 {
stop();
}
}
movieClip 14233 {
frame 126 {
stop();
}
}
movieClip 14236 {
frame 129 {
stop();
}
}
movieClip 14239 {
frame 115 {
stop();
}
}
movieClip 14242 {
frame 131 {
stop();
}
}
movieClip 14245 {
frame 130 {
stop();
}
}
movieClip 14248 {
frame 130 {
stop();
}
}
movieClip 14251 {
frame 131 {
stop();
}
}
movieClip 14260 {
}
movieClip 14261 {
frame 50 {
stop();
}
}
movieClip 14272 {
frame 102 {
stop();
}
}
movieClip 14273 {
frame 286 {
stop();
}
}
movieClip 14310 {
frame 27 {
stop();
}
}
movieClip 14325 {
frame 105 {
stop();
}
}
movieClip 14400 {
frame 51 {
stop();
}
}
movieClip 14401 {
frame 176 {
stop();
}
}
movieClip 14402 {
frame 52 {
stop();
}
}
movieClip 14403 {
frame 250 {
stop();
_root.bg.sharkOver();
}
}
movieClip 14406 {
frame 15 {
gotoAndPlay('normal');
}
frame 27 {
_root.bg.sharkLaser();
}
frame 30 {
gotoAndPlay('normal');
}
frame 42 {
stop();
}
frame 60 {
gotoAndPlay('normal');
}
frame 67 {
_root.bg.sharkLaser();
}
frame 76 {
gotoAndPlay('normal');
}
}
movieClip 14407 {
frame 1 {
this.hp = 7;
this.hitcv = 0;
this.dmg = 25;
this.typ = -1;
this.maxhp = this.hp;
this.picid = 23;
this.nam = 'BIGDADDY';
}
}
movieClip 14408 {
}
movieClip 14409 {
}
movieClip 14410 {
frame 1 {
function getShot() {
btm = new flash.display.BitmapData(256, 254, true, 16777215);
_root.psign.attachBitmap(btm, 0);
o = _root;
var v2 = new flash.geom.Matrix();
v2.tx = 0;
v2.ty = 0;
v2.a = 1;
alf = 1;
var v3 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v2, v3);
_root.psign.filters = new Array(filter);
}
function checkTube() {
if (this.dude.guts.hitarea.hitTest(this.endtube)) {
downpipe.start();
pausy = true;
nokeys = true;
this.dude._visible = false;
this.endtube.gotoAndStop(2);
}
}
function endWaterLevel() {
_root.lives = this.dude.lives;
stopAllSounds();
clearGame();
_root.gotoAndStop('lev3');
}
function updateShield() {
if (!this.dude.shielded) {
this.dude.guts.merbobos._visible = false;
this.dude.guts.shieldbg._visible = false;
} else {
this.dude.guts.merbobos._visible = true;
this.dude.guts.shieldbg._visible = true;
if (this.dude.shieldhp <= 6 && this.dude.shieldhp > 3) {
this.dude.guts.merbobos.gotoAndStop('medium');
this.dude.guts.shieldbg.gotoAndStop('medium');
}
if (this.dude.shieldhp <= 3 && this.dude.shieldhp > 0) {
this.dude.guts.merbobos.gotoAndStop('danger');
this.dude.guts.shieldbg.gotoAndStop('danger');
}
if (this.dude.shieldhp <= 0) {
this.dude.shielded = false;
this.dude.guts.merbobos._visible = false;
this.dude.guts.shieldbg._visible = false;
}
}
}
function endMermaid() {
pausy = false;
this.dude.xvel = 7;
this.dude.yvel = -3;
this.bigdoor.gotoAndPlay('poof');
this.dude._visible = true;
nokeys = false;
if (!nomorebgmusic) {
this.mastersound.lloop.setVolume(mastervol);
}
}
function chkBigDoor() {
if (demoover) {
} else {}
}
function chkPause() {
if (!Key.isDown(80)) {
pup = true;
}
if (Key.isDown(80) && pup) {
pup = false;
if (!nokeys) {
pausesound.start();
if (!pausy) {
pausy = true;
mastersound.lloop.setVolume(0);
_root.psign._visible = true;
_root.psign2._visible = true;
getShot();
} else {
if (!nomorebgmusic) {
mastersound.lloop.setVolume(mastervol);
}
_root.psign.filters = [];
btm.dispose();
pausy = false;
_root.psign._visible = false;
_root.psign2._visible = false;
}
}
}
}
function registerMe(who) {
baddies.push(who);
}
function chkSkip() {
if (!this.skipped) {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
_root.overlay.gotoAndPlay('skipper');
aup = false;
this.skipped = true;
}
}
if (this.skipped && !pipeinited) {
pipeinited = true;
numstrugs = 0;
}
if (this.skipped && !this.shotout && this.stuckinpipe) {
var v3 = _root.overlay.tuber;
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
aup = false;
++numstrugs;
if (numstrugs >= 10) {
_root.bg.overlay.helpertext._visible = false;
v3.gotoAndPlay('shoothim');
_root.aboboMedal('Call A Plumber');
this.shotout = true;
this.stuckinpipe = false;
} else {
v3.gotoAndPlay('struggle');
}
}
}
}
function chkStruggle() {
var v2 = _root.overlay.tuber;
v2.gotoAndStop('stuck');
}
function muteIt() {
mastersound.lloop.setVolume(0);
}
function lev2MusicStart() {
this.mastersound.lloop.start(0, 99);
this.mastersound.lloop.setVolume(mastervol);
}
function poom() {
stuckinpipe = false;
shotout = true;
nokeys = false;
lev2MusicStart();
this.dude._visible = true;
this.dude.xvel = 30;
this.dude.yvel = 0;
this.dude.speed = 1;
this.dude.shockcv = 0;
this.dude.shocked = false;
this.dude.tcv = 0;
this.dude.stuncv = 0;
this.dude.blinking = true;
this.dude.you._visible = true;
this.dude.blinkcv = 0;
this.dude.numblinks = 0;
this.dude.inv = true;
moveit = true;
this.dude.raging = false;
this.dude.shielded = false;
this.dude.shieldhp = 9;
this.dude.rage = 0;
_root.hud.updateRage();
updateShield();
}
function phys(who) {
if (who.blinking) {
who.inv = true;
++who.blinkcv;
who.you._xscale = who._xscale;
if (who.blinkcv >= 3) {
++who.numblinks;
who.blinkcv = 0;
who.guts._visible = !who.guts._visible;
if (who.numblinks > 15) {
who.blinking = false;
who.numblinks = 0;
who.inv = false;
who.guts._visible = true;
who.you._visible = false;
}
}
}
var v5 = who._x;
var v4 = who._y;
var v6 = Math.abs(who.xvel);
if (v6 < 0.5) {
who.xvel = 0;
}
who.xvel *= 0.8;
v5 += who.xvel;
who.yvel += 0.21;
if (who.yvel < -5) {
who.yvel = -5;
}
v4 += who.yvel;
who.wid = 15;
who.bht = 15;
who.tht = 10;
if (!who.dead) {
while (_root.shitTest(this.antiwalk, v5 + this._x - who.wid, v4)) {
v5 += 1;
who.xvel = 0;
}
while (_root.shitTest(this.antiwalk, v5 + this._x + who.wid, v4)) {
v5 -= 1;
who.xvel = 0;
}
for (;;) {
if (!(_root.shitTest(this.antiwalk, v5 + this._x, v4 + who.bht) || _root.shitTest(this.antiwalk, v5 + this._x + 5, v4 + who.bht) || _root.shitTest(this.antiwalk, v5 + this._x - 5, v4 + who.bht))) break;
v4 -= 1;
who.yvel = 0;
}
for (;;) {
if (!(_root.shitTest(this.antiwalk, v5 + this._x, v4 - who.tht) || _root.shitTest(this.antiwalk, v5 + this._x + 5, v4 - who.tht) || _root.shitTest(this.antiwalk, v5 + this._x - 5, v4 - who.tht))) break;
v4 += 1;
who.yvel = 1;
}
}
who._x = v5;
who._y = v4;
}
function centerOn(who) {
var v4 = this._x;
var v5 = -who._x + 128 - (who._xscale / 100) * 50;
var v3 = v5 - v4;
this._x += v3 / 16;
if (who._x < 0) {
who._x = 0;
who.xvel = 0;
}
if (who._x > this._width) {
who._x = this._width;
who.xvel = 0;
}
if (who._y < 35) {
who._y = 35;
who.yvel = 0;
}
if (rumbleamt > 0) {
this._x += rumbleamt * rumbledir;
rumbledir *= -1;
--rumbleamt;
}
}
function breakSharkWall() {
var v5 = new Sound(this);
v5.attachSound('splode0');
v5.start();
v5 = new Sound(this);
v5.attachSound('duckshot');
v5.start();
var v3 = 0;
while (v3 < 25) {
var v4 = random(3);
var v2 = this.attachMovie('lev1_wallpiece' + v4, 'wallpiece' + effcv, 81192 + effcv);
++effcv;
v2._x = 3835 + random(50);
v2._y = 40 + random(170);
v2.yvel = -1 - random(2);
v2.xvel = random(3) - 1.5;
v2.onEnterFrame = function () {
this._x += this.xvel;
this._y += this.yvel;
this.yvel += 0.15;
if (this._y > 255) {
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
++v3;
}
this.antiwalk.blockage0.unloadMovie();
this.antiwalk.blockage0.removeMovieClip();
this.wallcover0._visible = true;
sharkwallbroken = true;
}
function bigSharkEnter() {
gobiggy = true;
}
function jetFish() {
var v3 = new Array('lev1_bad11', 'lev1_bad10');
var v4 = v3[random(v3.length)];
var v2 = this.attachMovie(v4, 'jet' + effcv, effcv + 991112);
++effcv;
v2._x = jetplace;
v2._y = random(140) + 40;
v2.jetted = true;
v2._xscale = -100;
v2.xvel = -2;
jetarray.push(v2);
}
function restrain() {
if (!bosslock) {
if (this._x > 0) {
this._x = 0;
}
} else {
if (!superbosslock) {
if (this._x > -3500) {
this._x = -3500;
}
if (this.dude._x < 3500) {
this.dude._x = 3500;
}
if (this.dude._x > 4060) {
superbosslock = true;
}
} else {
if (this._x > -3950) {
this._x = -3950;
}
if (this.dude._x < 3950) {
this.dude._x = 3950;
}
}
++fishtimer;
if (fishtimer >= 90 && !thislevelover) {
jetFish();
fishtimer = 0;
}
}
var v2 = -4438;
if (this._x < v2) {
this._x = v2;
}
if (this.dude._x > 3690 && !bosslock) {
muteIt();
bosslock = true;
this.mastersound.lloop.stop();
this.mastersound.lloop = new Sound(this.mastersound);
this.mastersound.lloop.attachSound('littlesharkloop');
this.mastersound.lloop.start(0, 999);
this.mastersound.lloop.setVolume(mastervol);
}
}
function chkTHit(t) {
if (!t.gotone) {
var v3 = 0;
while (v3 < baddies.length) {
var v2 = baddies[v3];
if (v2.typ != -1 && !v2.dead) {
if (t.hitTest(v2.guts.hitarea)) {
hit0.start();
++totaleats;
if (totaleats >= 50) {
_root.aboboMedal('Abobo Appetizers');
}
v2.grabbed = true;
t.gotone = true;
t.partner = v2;
}
}
++v3;
}
}
}
function runTongue(who) {
var v4 = this.createEmptyMovieClip('ton', 998);
v4.attachMovie('lev1_tonguetip', 'ttip', 1);
v4._x = who._x + (who._xscale / 100) * 9 + who.xvel;
v4._y = who._y - 1 + who.yvel;
v4.dir = who._xscale / 100;
v4.cv = 0;
v4.offx = 0;
tongueout.start();
var v6 = new flash.filters.GlowFilter(0, 1, 3, 3, 700);
v4.filters = [v6];
v4.onEnterFrame = function () {
if (!_root.bg.pausy) {
++this.cv;
var v3 = _root.bg.dude;
this.dir = v3._xscale / 100;
if (this.cv < 9) {
this.offx += 6;
}
if (this.cv > 12) {
this.offx -= 6;
}
this._y = v3._y - 3 + v3.yvel;
this._x = v3._x + this.dir * 9 + v3.xvel;
this.ttip._x = this.offx * this.dir;
if (this.cv >= 21) {
_root.bg.endTongue(_root.bg.dude);
delete this.onEnterFrame;
}
this.createEmptyMovieClip('guts', 0);
this.guts.lineStyle(2, 16616086);
this.guts.lineTo(this.offx * this.dir, 0);
_root.bg.chkTHit(this.ttip);
var v4 = this.ttip;
if (v4.gotone) {
v4.partner._x = this._x + v4._x;
v4.partner._y = this._y + v4._y;
}
}
};
}
function endTongue(who) {
who.tcv = 0;
who.tongueout = false;
sup = false;
if (!_root.bg.ton.ttip.gotone || who.dead) {
who.guts.head.gotoAndStop('rest');
} else {
var v3 = 0;
while (v3 < this.ton.ttip.partner.parts.length) {
var v4 = this.ton.ttip.partner.parts[v3];
removeBad(v4);
++v3;
}
who.mouthful = true;
who.guts.head.gotoAndStop('full');
who.spittyp = _root.bg.ton.ttip.partner.typ;
removeBad(_root.bg.ton.ttip.partner);
}
this.ton.unloadMovie();
this.ton.removeMovieClip();
}
function chkHit(who) {
if (!who.hit && !who.dead) {
if (!who.inv) {
var v5 = 0;
while (v5 < baddies.length) {
var v4 = baddies[v5];
var v7 = false;
if (v4.guts.hitarea.hitTest(who.guts.hitarea) || v4.guts.hitarea.hitTest(who.guts.hitarea2)) {
v7 = true;
}
if (v7 && v4 != this.ton.ttip.partner && v4.proj != true && !v4.dead) {
if (!who.shielded) {
who.rage -= 5;
_root.fullrage.gotoAndStop(1);
who.raging = false;
_root.hud.updateRage();
who.gotoAndStop('normal');
who.guts.gotoAndStop('hit');
who.blinking = true;
hit1.start();
who.hit = true;
who.hp -= v4.dmg;
_root.hud.updateMe(who);
var v6 = 8;
if (v4.spearfish) {
v6 = 30;
}
if (who._x < v4._x) {
who.xvel = -v6;
who._xscale = 100;
} else {
who.xvel = v6;
who._xscale = -100;
}
if (who.hp <= 0) {
pausy = true;
muteIt();
runDeath(who, 2);
endTongue(who);
who.tongueout = false;
who.mouthful = false;
}
} else {
who.guts.gotoAndStop('hit');
who.blinking = true;
--who.shieldhp;
hit1.start();
who.hit = true;
if (who._x < v4._x) {
who.xvel = -8;
who._xscale = 100;
} else {
who.xvel = 8;
who._xscale = -100;
}
updateShield();
_root.hud.updateMe(who);
}
}
++v5;
}
}
} else {
++who.stuncv;
if (who.stuncv >= 10) {
who.stuncv = 0;
who.hit = false;
}
}
}
function controls(who) {
if (!who.hit && !who.dead && !nokeys && !who.shocked) {
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
if (who.yvel > 2.5) {
who.yvel = 2.5;
}
who.yvel -= 3 - who.slowdown * 5;
aup = false;
swimstroke.start();
}
if (Key.isDown(39)) {
if (who._xscale == -100) {
var v6 = 0;
while (v6 < who.latchers.length) {
var v5 = who.latchers[v6];
++v5.shakecv;
if (v5.shakecv >= 5 && !v5.dead) {
v5.dead = true;
who.slowdown -= 0.1;
var v4 = 0;
while (v4 < who.latchers.length) {
if (v5 == who.latchers[v4]) {
who.latchers.splice(v4, 1);
}
++v4;
}
}
++v6;
}
}
who._xscale = 100;
who.xvel += who.speed - who.slowdown;
}
if (Key.isDown(37)) {
who._xscale = -100;
who.xvel -= who.speed - who.slowdown;
}
who.absxvel = Math.abs(who.xvel);
if (who.absxvel > 3 || who.yvel < 0) {
who.guts.gotoAndStop('swim0');
if (who.mouthful) {
who.guts.head.gotoAndStop('full');
}
} else {
who.guts.gotoAndStop('rest0');
if (who.mouthful) {
who.guts.head.gotoAndStop('full');
}
}
if (!Key.isDown(83)) {
sup = true;
}
if (Key.isDown(83) && sup) {
if (!who.tongueout) {
if (!who.mouthful) {
who.tongueout = true;
who.guts.head.gotoAndStop('open');
runTongue(who);
} else {
who.guts.head.gotoAndStop('spit');
runSpit();
who.mouthful = false;
}
}
sup = false;
}
if (who.rage >= 100) {
if (Key.isDown(83) && Key.isDown(65)) {
_root.aboboMedal('Typhoon Time');
who._visible = false;
var v8 = _root.attachMovie('cutsceneunderwater', 'cutscene', 998);
muteIt();
pausy = true;
nokeys = true;
runningrage = true;
var v9 = this.attachMovie('lev1_spinner', 'spinner', 991101);
v9.xvel = 0;
v9.yvel = 0;
v9._x = who._x;
v9._y = who._y;
v9 = this.attachMovie('lev1_whirly', 'whirly', 991100);
v9._alpha = 0;
v9._x = who._x;
this.ton._visible = false;
who.rage = 0;
_root.fullrage.gotoAndStop(1);
who.raging = false;
who.gotoAndStop('normal');
_root.hud.updateRage();
v8._x = Stage.width / 2;
v8._y = Stage.height / 2;
}
var v7 = this.attachMovie('dd_smoke', 'smoke' + smokecv, smokecv + 7621);
++smokecv;
v7.mysc = random(2);
if (v7.mysc == 1) {
v7._xscale = 100;
} else {
v7._xscale = -100;
}
v7.xvel = -who.xvel / 2;
v7._x = who._x + random(60) - 30;
v7._y = who._y - random(20) + 10;
v7.onEnterFrame = function () {
this._x += this.xvel;
this.xvel *= 0.8;
this._y -= 0.5;
};
}
}
}
function runSpit() {
var v3 = this.dude;
var v4 = this.dude.spittyp;
var v2 = this.attachMovie('lev1_bad' + v4, 'proj' + effcv, effcv);
spitout.start();
++effcv;
v2._xscale = v3._xscale;
v2._x = v3._x + (v3._xscale / 100) * 15;
v2._y = v3._y - 5;
v2.grabbed = true;
v2.yvel = 0;
v2.xvel = (v3._xscale / 100) * 15;
v2.proj = true;
projarray.push(v2);
}
function removeProj(p) {
var v1 = 0;
while (v1 < projarray.length) {
if (projarray[v1] == p) {
projarray.splice(v1, 1);
}
++v1;
}
p.unloadMovie();
p.removeMovieClip();
}
function removeBad(p) {
var v1 = 0;
while (v1 < baddies.length) {
if (baddies[v1] == p) {
baddies.splice(v1, 1);
}
++v1;
}
p.unloadMovie();
p.removeMovieClip();
}
function badRecover(who) {
who.guts.gotoAndStop('rest');
}
function chkProjs() {
var v8 = 0;
while (v8 < jetarray.length) {
var v7 = jetarray[v8];
if (!v7.grabbed && !v7.dead) {
v7._x += v7.xvel;
var v9 = this._x + v7._x;
if (v9 < -50) {
removeBad(v7);
}
}
++v8;
}
v8 = 0;
while (v8 < projarray.length) {
var v4 = projarray[v8];
v4._x += v4.xvel;
v4.virtx = this._x + v4._x;
v4._rotation += v4.xvel;
var v5 = 0;
while (v5 < baddies.length) {
var v3 = baddies[v5];
if (v3.guts.hitarea.hitTest(v4.guts.hitarea) && v3 != v4 && !v3.jetted) {
knockenemy.start();
var v6 = this.attachMovie('dd_burst', 'burst' + effcv, effcv);
v6._x = v3._x;
v6._y = v3._y;
++effcv;
v3.hp -= 1;
if (v3 != this.boss) {
if (v3.hp <= 0) {
if (v3.bubbleman) {
bubbleWallBreak();
}
if (v3.karnov) {
crumbleWallBreak();
}
v3.dead = true;
v3.yvel = -1.5;
} else {
v3.guts.gotoAndStop('hit');
if (v3.showhit) {
v3.hit = true;
}
}
} else {
if (v3.hp <= 0) {
v3.dead = true;
v3.guts.gotoAndStop('death');
} else {
v3.guts.head.gotoAndPlay('hit');
v3.hit = true;
}
}
this.dude.rage += 10;
_root.hud.updateBad(v3);
removeProj(v4);
if (this.dude.rage >= 100) {
this.dude.rage = 100;
if (!this.dude.raging) {
fullragesound.start();
this.dude.raging = true;
this.dude.gotoAndPlay('raged');
_root.fullrage.gotoAndPlay(2);
}
}
_root.hud.updateRage();
}
++v5;
}
if (v4.virtx > 286 || v4.virtx < -30) {
removeProj(v4);
}
++v8;
}
}
function endSpit() {
this.dude.guts.head.gotoAndStop('rest');
}
function bubbleMaker() {
if (!this.dude.dead) {
++bcv;
if (bcv >= 50) {
bcv = 0;
var v6 = random(3) + 1;
var v4 = 0;
while (v4 < v6) {
var v5 = random(3);
var v3 = this.attachMovie('lev1_bubble' + v5, 'bub' + effcv, effcv);
++effcv;
v3._x = this.dude._x + (15 + (random(20) - 10)) * this.dude._xscale / 100;
v3._y = this.dude._y - random(10);
v3.speed = random(3) + 1;
bubarray.push(v3);
++v4;
}
}
}
v4 = 0;
while (v4 < bubarray.length) {
var v2 = bubarray[v4];
v2._y -= v2.speed;
if (v2._y < 36) {
bubarray.splice(v4, 1);
v2.unloadMovie();
v2.removeMovieClip();
}
++v4;
}
}
function mIt() {
if (_root.overlay._x > -500) {
_root.overlay._x -= 15;
} else {
_root.overlay.unloadMovie();
_root.overlay.removeMovieClip();
}
}
function runShrimp(who) {
var v2 = this.attachMovie('lev1_bad4', 'shrimp' + effcv, effcv);
this.registerMe(v2);
v2._x = who._x + (who._xscale / 100) * -30;
v2._y = who._y - 20;
v2._xscale = -who._xscale;
v2.xvel = (v2._xscale / 100) * (random(3) + 2);
v2.yvel = -random(2) - 4;
++effcv;
}
function ai8(who) {
if (!who.grabbed && !who.dead) {
var v4 = Math.abs(who._x - this.dude._x);
if (v4 < 125) {
who.activated = true;
}
if (who.activated) {
++who.aicv;
if (who.aicv >= who.aigoal) {
who._x += who.xvel;
who.xvel -= 0.5;
var v3 = this._x + who._x;
if (v3 < -100) {
removeBad(who);
}
who.guts.gotoAndStop('rest');
} else {
if (who.aicv > 5) {
who.guts.gotoAndStop('hit');
} else {
who.guts.gotoAndStop('rest');
}
}
}
}
if (who.dead) {
who.guts.gotoAndStop('rest');
who._yscale = -100;
who.yvel += 0.15;
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function moveWallBubs() {
if (!bosslock) {
var v3 = 0;
while (v3 < 14) {
var v2 = this.bubline['b' + v3];
v2._x += v2.xvel;
v2.xvel *= 0.95;
v2._y += v2.yvel;
v2.yvel += 0.15;
if (v2._y > 290) {
removeBad(v2);
}
++v3;
}
}
}
function bubbleWallBreak() {
conveyerfall.start();
this.antiwalk.bubwall.unloadMovie();
this.antiwalk.bubwall.removeMovieClip();
var v3 = 0;
while (v3 < 14) {
var v2 = this.bubline['b' + v3];
wallbubs.push(v2);
v2.xvel = random(20) - 10;
v2.yvel = -random(5);
++v3;
}
}
function bubbleManShoot(who) {
who.attacking = false;
var v2 = this.attachMovie('lev1_bad13', 'manbub' + effcv, effcv + 991102);
++effcv;
v2._x = who._x;
v2._y = who._y;
if (who.dir == 0) {
v2.xvel = -(3 + random(2));
v2.yvel = -4;
}
if (who.dir == 1) {
v2.xvel = -(3 + random(3));
v2.yvel = -2;
}
if (who.dir == 2) {
v2.xvel = -(1 + random(2));
v2.yvel = -1;
}
++who.dir;
if (who.dir > 2) {
who.dir = 0;
}
}
function shootBlast(who) {
var v2 = this.attachMovie('lev1_blast', 'blast' + effcv, effcv + 81910);
++effcv;
v2._x = who._x;
v2._y = who._y;
v2.xvel = -4;
v2.yvel = 0;
}
function shootJumpy(who) {
var v2 = this.attachMovie('lev1_bad14', 'jumpy' + effcv, effcv + 81910);
++effcv;
v2._x = who._x;
v2._y = who._y;
v2.xvel = -2;
v2.yvel = -1 - random(3);
}
function ai13(who) {
who._x += who.xvel;
who._y += who.yvel;
}
function moveCrumbs() {
if (!bosslock) {
var v2 = 0;
while (v2 < crumbarray.length) {
var v1 = crumbarray[v2];
v1._x += v1.xvel;
v1._y += v1.yvel;
v1.yvel += 0.15;
if (v1._y > 280) {
crumbarray.splice(v2, 1);
v1.unloadMovie();
v1.removeMovieClip();
}
++v2;
}
}
}
function crumbleWallBreak() {
splode0.start();
this.crumblewall.unloadMovie();
this.crumblewall.removeMovieClip();
this.antiwalk.crumblewall.unloadMovie();
this.antiwalk.crumblewall.removeMovieClip();
var v3 = 0;
while (v3 < 15) {
var v4 = random(5);
var v2 = this.attachMovie('lev1crumb' + v4, 'crumb' + effcv, effcv + 8192);
++effcv;
v2._x = 3260 + random(15);
v2._y = 90 + random(50);
v2.xvel = random(10) - 5;
v2.yvel = -random(3) - 1;
crumbarray.push(v2);
++v3;
}
}
function ai12(who) {
if (!who.dead) {
if (who.activated) {
if (who.hit) {
++who.hitcv;
if (who.hitcv >= 5) {
who.hitcv = 0;
who.hit = false;
}
} else {
++who.aicv;
if (who.aicv >= 25) {
who.attacking = true;
who.guts.gotoAndStop('shoot');
if (who.aicv == 25) {
if (who.dir == -1) {
shootBlast(who);
} else {
shootJumpy(who);
}
}
if (who.aicv >= 30) {
who.attacking = false;
who.aicv = 0;
}
}
if (!who.attacking) {
if (who.dir == -1) {
who.guts.gotoAndStop('up');
who._y -= 2;
if (who._y <= 50) {
who.dir = 1;
}
}
if (who.dir == 1) {
who.guts.gotoAndStop('down');
who._y += 2;
if (who._y >= 150) {
who.dir = -1;
}
}
}
}
} else {
var v3 = Math.abs(who._x - this.dude._x);
if (v3 < 150) {
who.activated = true;
}
}
}
if (who.dead) {
who.yvel += 0.15;
who.guts.gotoAndStop('die');
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function ai11(who) {
if (who.hit) {
++who.hitcv;
if (who.hitcv >= 5) {
who.hitcv = 0;
who.hit = false;
who.guts.gotoAndStop('rest');
}
}
who._x += who.xvel;
who.xvel *= 0.999;
who._y += who.yvel;
who.yvel += 0.15;
if (who._y >= 280) {
removeBad(who);
}
}
function ai10(who) {
if (!who.dead) {
if (who.activated) {
if (who.hit) {
++who.hitcv;
if (who.hitcv >= 5) {
who.hit = false;
who.hitcv = 0;
who.guts.gotoAndStop('rest');
who.aicv = 0;
who.attacking = false;
}
} else {
if (!who.attacking) {
++who.aicv;
if (who.aicv >= 20) {
who.aicv = 0;
who.guts.gotoAndStop('shoot');
who.attacking = true;
}
}
}
} else {
var v3 = Math.abs(who._x - this.dude._x);
if (v3 < 150) {
who.activated = true;
}
}
}
if (who.dead) {
who.yvel += 0.15;
who.guts.gotoAndStop('die');
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function ai9(who) {
if (!who.dead) {
if (who.hit) {
if (!who.hitplay) {
who.gotoAndPlay('hit');
who.hitplay = true;
}
++who.hitcv;
if (who.hitcv >= 10) {
who.hit = false;
who.hitplay = false;
}
}
if (!who.activated) {
if (bosslock) {
who.activated = true;
}
} else {
if (!who.charging) {
who._y = this.dude._y;
++who.aicv;
if (who.aicv >= 40) {
who.charging = true;
if (who._x > this.dude._x) {
who._xscale = 100;
who.dir = -1;
} else {
who._xscale = -100;
who.dir = 1;
}
}
} else {
who._x += 5 * who.dir;
if (who.dir == -1) {
if (who._x < 3400) {
who.charging = false;
who.aicv = 0;
}
} else {
if (who._x > 4100) {
who.charging = false;
who.aicv = 0;
}
}
}
}
} else {
if (!who.sinkme) {
_root.aboboMedal('Bigger Boat');
who._xscale = 100;
who.guts.gotoAndStop('die');
pausy = true;
nokeys = true;
sharktran = true;
this.boss._y = who._y;
this.boss.xvel = 0;
this.boss.yvel = 0;
this.boss.guts.gotoAndPlay('open');
} else {
who._y += who.yvel;
who.yvel += 0.15;
if (who._y >= 300) {
removeBad(who);
}
}
}
}
function ai7(who) {
if (!who.dead) {
var v3 = this.dude;
who.distx = who.goalx - who._x;
who.disty = who.goaly - who._y;
who._x += who.distx / who.offs * 2.5;
who._y += who.disty / who.offs * 2.5;
if (who.guts.latcharea.hitTest(v3.guts.hitarea) && !who.latched) {
who.latched = true;
who.offx = v3._x - who._x;
who.offy = v3._y - who._y;
v3.slowdown += 0.1;
who.shakecv = 0;
v3.latchers.push(who);
}
if (who.latched) {
who.guts.gotoAndStop('latching');
who._x = v3._x + who.offx / 2;
who._y = v3._y + who.offy / 2;
}
}
if (who.dead) {
who._rotation = 180;
who.guts.gotoAndStop('closed');
if (who.yvel == undefined) {
who.yvel = -0.5;
}
who._y += who.yvel;
who.yvel += 0.15;
if (who._y >= 300) {
removeBad(who);
}
}
}
function ai6(who) {
if (who.grabbed) {
var v4 = 0;
while (v4 < who.parts.length) {
var v3 = who.parts[v4];
if (!v3.latched) {
v3.goalx = who._x;
v3.goaly = who._y;
v3.offs = (v4 + 1) * 2;
}
++v4;
}
}
if (!who.dead && !who.grabbed) {
var v5 = this.dude;
if (who.act) {
v4 = 0;
while (v4 < who.parts.length) {
v3 = who.parts[v4];
if (!v3.latched) {
v3.goalx = who._x;
v3.goaly = who._y;
v3.offs = (v4 + 1) * 2;
}
++v4;
}
who._y += who.yvel;
who._x += who.xvel;
who.xvel *= 0.9;
who.yvel += 0.05;
if (who.yvel > 0) {
++who.tim;
if (!who.hit) {
if (who.tim >= 20) {
who.guts.gotoAndStop('closed');
v4 = 0;
while (v4 < who.parts.length) {
v3 = who.parts[v4];
if (!v3.latched) {
v3.guts.gotoAndStop('closed');
}
++v4;
}
}
}
}
if (who.tim >= 30) {
who.guts.gotoAndStop('open');
v4 = 0;
while (v4 < who.parts.length) {
v3 = who.parts[v4];
if (!v3.latched) {
v3.guts.gotoAndStop('open');
}
++v4;
}
who.tim = 0;
if (v5._y < who._y) {
who.yvel -= 4;
} else {
who.yvel -= 2;
}
if (v5._x < who._x) {
who.xvel = -who.sp;
} else {
who.xvel = who.sp;
}
}
if (who._y < 50) {
who._y = 50;
}
} else {
who.dist = Math.abs(who._x - v5._x);
if (who.dist < 200) {
who.yvel = -2;
who.tim = 0;
who.act = true;
who.xvel = 0;
who.yvel = 0;
who.sp = 3;
}
}
}
if (who.dead) {
v4 = 0;
while (v4 < who.parts.length) {
v3 = who.parts[v4];
if (!v3.latched && !v3.dead) {
v3.dead = true;
}
++v4;
}
who.guts.gotoAndStop('closed');
who._rotation = 180;
who._y += who.yvel;
who.yvel += 0.15;
if (who._y >= 300) {
removeBad(who);
}
}
}
function ai5(who) {
if (who.home == undefined) {
who.home = who._x;
who.cv = 0;
}
if (!who.dead) {
who.absdist = Math.abs(who._x - this.dude._x);
if (who.absdist < 295) {
++who.cv;
if (who.cv == 75) {
runShrimp(who);
}
if (who.cv == 85) {
runShrimp(who);
}
if (who.cv == 95) {
runShrimp(who);
who.cv = 0;
}
}
}
if (who.dead) {
who.guts.gotoAndStop('die');
if (!who.wallgone) {
who.wallgone = true;
var i = 0;
while (i < 6) {
var tar = eval('this.bubblewall.j' + i);
tar.cv = 0;
tar.goalcv = i * 8 + 1;
tar.onEnterFrame = function () {
++this.cv;
if (this.cv == this.goalcv) {
this.gotoAndStop('splode');
delete this.onEnterFrame;
}
};
++i;
}
}
this.antiwalk.blocker.unloadMovie();
this.antiwalk.blocker.removeMovieClip();
if (who.yvel == undefined) {
who.yvel = -3;
}
who._y += who.yvel;
who.yvel += 0.15;
if (who._y >= 300) {
removeBad(who);
}
}
}
function ai4(who) {
if (!who.removed) {
if (who.dead) {
who._yscale = -100;
}
if (who._y < 40) {
who._y = 40;
}
who._x += who.xvel;
who._y += who.yvel;
who.yvel += 0.15;
who.xvel *= 0.95;
if (who._y > 260) {
who.removed = true;
removeBad(who);
}
}
}
function ai2(who) {
if (who.home == undefined) {
who.home = who._x;
who.dir = random(2);
who.yvel = 0;
if (who.dir == 0) {
who.dir = -1;
}
who.cv = 0;
who.dcv = 0;
}
if (!who.grabbed && !who.dead) {
if (who.dir == 1) {
who._xscale = 100;
} else {
who._xscale = -100;
}
if (who._y < 40) {
who._y = 40;
}
if (who._y > 205) {
who._y = 205;
}
who._x += 1 * who.dir;
who._y += 1 * who.ydir;
++who.cv;
++who.dcv;
if (who.dcv >= 15) {
who.ydir = random(2);
if (who.ydir == 0) {
who.ydir = -1;
}
who.dcv = 0;
}
if (who.cv >= 80) {
who.cv = 0;
if (who.dir == 1) {
who.dir = -1;
} else {
who.dir = 1;
}
}
}
if (who.dead) {
who._yscale = -100;
who.yvel += 0.15;
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function ai1(who) {
if (who.home == undefined) {
who.jumping = true;
who.home = who._x;
who.dir = random(2);
who.yvel = 0;
if (who.dir == 0) {
who.dir = -1;
}
who.cv = 0;
}
if (!who.grabbed && !who.dead) {
if (this.dude._x > who._x) {
who._xscale = 100;
} else {
who._xscale = -100;
}
if (!who.jumping) {
++who.cv;
}
if (who.cv > who.gotime - 5) {
who.guts.gotoAndStop('flash');
}
if (who.cv >= who.gotime) {
who.cv = 0;
who.yvel = -who.jumpht;
who.jumping = true;
}
who._y += who.yvel;
who.yvel += 0.2;
who.virtx = this._x + who._x;
if (_root.shitTest(this.antiwalk, who.virtx, who._y + 7)) {
who.yvel = 0;
who.jumping = false;
while (_root.shitTest(this.antiwalk, who.virtx, who._y + 7)) {
who._y -= 0.15;
}
}
}
if (who.dead) {
who._yscale = -100;
who.yvel += 0.15;
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function ai0(who) {
if (who.home == undefined) {
who.home = who._x;
who.dir = random(2);
who.yvel = 0;
if (who.dir == 0) {
who.dir = -1;
}
who.cv = 0;
}
if (!who.grabbed && !who.dead) {
if (who.dir == 1) {
who._xscale = 100;
} else {
who._xscale = -100;
}
who._x += 1 * who.dir;
++who.cv;
if (who.cv >= 50) {
who.cv = 0;
if (who.dir == 1) {
who.dir = -1;
} else {
who.dir = 1;
}
}
}
if (who.dead) {
who._yscale = -100;
who.yvel += 0.15;
who._y += who.yvel;
if (who._y > 300) {
removeBad(who);
}
}
}
function chkBads() {
var v3 = 0;
while (v3 < baddies.length) {
var v2 = baddies[v3];
if (thislevelover) {
removeBad(v2);
}
if (bosslock) {
var v4 = this._x + v2._x;
if (v4 < -370) {
removeBad(v2);
}
}
if (!v2.jetted) {
if (v2.ai == 0) {
ai0(v2);
}
if (v2.ai == 1) {
ai1(v2);
}
if (v2.ai == 2) {
ai2(v2);
}
if (v2.ai == 3) {
ai3(v2);
}
if (v2.ai == 4) {
ai4(v2);
}
if (v2.ai == 5) {
ai5(v2);
}
if (v2.ai == 6) {
ai6(v2);
}
if (v2.ai == 7) {
ai7(v2);
}
if (v2.ai == 8) {
ai8(v2);
}
if (v2.ai == 9) {
ai9(v2);
}
if (v2.ai == 10) {
ai10(v2);
}
if (v2.ai == 11) {
ai11(v2);
}
if (v2.ai == 12) {
ai12(v2);
}
if (v2.ai == 13) {
ai13(v2);
}
}
++v3;
}
if (sharkwallbroken) {
moveBoss(this.boss);
}
}
function sharkOver() {
nomorebgmusic = true;
this.boss.showending = false;
this.boss.dead = false;
victory.start();
pausy = false;
nokeys = false;
thislevelover = true;
this.wallcover1._visible = true;
this.antiwalk.blockage1.unloadMovie();
this.antiwalk.blockage1.removeMovieClip();
this.boss.unloadMovie();
this.boss.removeMovieClip();
var v2 = 0;
while (v2 < baddies.length) {
removeBad(baddies[v2]);
++v2;
}
v2 = 0;
while (v2 < jetarray.length) {
var v3 = jetarray[v2];
v3.unloadMovie();
v3.removeMovieClip();
jetarray.splice(v2, 1);
++v2;
}
}
function moveLasers() {
var v4 = 0;
while (v4 < chunkarray.length) {
var v3 = chunkarray[v4];
if (v3._y > 45) {
v3._y += v3.yvel;
v3.yvel += 0.15;
if (v3._y >= 280) {
removeBad(v3);
v3.unloadMovie();
v3.removeMovieClip();
chunkarray.splice(v4, 1);
}
} else {
v3._y += 5;
}
++v4;
}
v4 = 0;
while (v4 < laserarray.length) {
var v2 = laserarray[v4];
v2._x += v2.xvel;
v2._y += v2.yvel;
var v5 = v2._x + this._x;
if (v5 < -70) {
removeBad(v2);
v2.unloadMovie();
v2.removeMovieClip();
laserarray.splice(v4, 1);
}
if (v2._y < -5) {
splode0.start();
makeChunk(v2._x, v2._y);
removeBad(v2);
v2.unloadMovie();
v2.removeMovieClip();
laserarray.splice(v4, 1);
}
++v4;
}
}
function makeChunk(x, y) {
rumbleamt = 10;
var v2 = this.attachMovie('sharkchunk', 'sharkchunk' + effcv, effcv + 8911);
var v3 = random(4) + 1;
v2.guts.gotoAndStop(v3);
v2.yvel = 0.5;
++effcv;
v2._x = x;
v2._y = y;
baddies.push(v2);
v2.typ = -1;
v2.dmg = 15;
v2.hp = 100;
chunkarray.push(v2);
}
function sharkLaser() {
laser.start();
var v2 = this.attachMovie('lasershot', 'lasershot' + effcv, effcv + 8911);
++effcv;
v2._x = this.boss._x;
v2._y = this.boss._y - 20;
v2.xvel = 0;
v2.yvel = 0;
if (this.boss.dec == 0) {
v2.xvel = -7;
laserarray.push(v2);
}
if (this.boss.dec == 1) {
laserarray.push(v2);
if (this.boss.inplace) {
v2.xvel = -2 - random(3);
v2.yvel = -5 + random(3);
v2._x += v2.xvel;
v2._y += v2.yvel;
} else {
v2.xvel = -7;
}
}
var v4 = Math.atan2(v2.yvel, v2.xvel);
var v3 = Math.round(v4 * 180 / Math.PI);
v2._rotation = v3;
v2._x += v2.xvel;
v2._y += v2.yvel;
v2.typ = -1;
v2.dmg = 15;
v2.hp = 100;
baddies.push(v2);
}
function moveBoss(who) {
if (!who.dead) {
if (who.hit) {
++who.hitcv;
if (who.hitcv >= 5) {
who.hitcv = 0;
who.hit = false;
}
}
if (who.dec == 1) {
if (who._y < 122) {
who._y += 3;
}
if (who._y > 128) {
who._y -= 3;
}
var v4 = 125 - who._y;
var v3 = Math.abs(v4);
if (v3 <= 3) {
who.inplace = true;
++who.aicv;
if (who.aicv >= 30) {
if (who.shotcount > 3) {
if (who.aicv >= 55) {
who.dec = 0;
who.shotcount = 0;
who.aicv = 0;
who.inplace = false;
}
} else {
who.aicv = 0;
who.guts.gotoAndPlay('fireup');
++who.shotcount;
}
}
}
}
if (who.dec == 0) {
++who.aicv;
if (who.aicv >= 30) {
who.aicv = 0;
who.guts.gotoAndPlay('fire');
}
if (!who.waiting) {
if (who.dir == -1) {
who._y -= 2;
if (who._y <= 60) {
who._y = 60;
who.dir = 1;
who.waiting = true;
who.waitcv = 0;
++who.bouncecv;
}
}
if (who.dir == 1) {
who._y += 2;
if (who._y >= 195) {
who.dir = -1;
who.waiting = true;
who.waitcv = 0;
++who.bouncecv;
}
}
} else {
++who.waitcv;
if (who.waitcv >= 25) {
who.waitcv = 0;
who.waiting = false;
if (who.bouncecv >= 3) {
who.bouncecv = 0;
who.dec = 1;
who.aicv = 0;
who.shotcount = 0;
}
}
}
}
} else {
if (!who.showending) {
_root.aboboMedal('Bloody Chum');
muteIt();
who.showending = true;
pausy = true;
nokeys = true;
}
}
}
function endDie() {
var v3 = this.dude;
if (v3.lives >= 0) {
pausy = false;
if (!nomorebgmusic) {
mastersound.lloop.setVolume(mastervol);
}
v3.hp = v3.maxhp;
v3.blinking = true;
v3.guts.gotoAndStop('rest');
v3.guts.head.gotoAndStop('rest');
v3.mouthful = false;
_root.hud.updateMe(v3);
v3._y = 125;
v3.you._visible = true;
v3.dead = false;
v3.inv = true;
v3.xvel = 0;
v3.yvel = 0;
backtolife.start();
} else {
trashDump();
_root.gotoAndStop('gameoverscreen');
}
}
function runDeath(who, typ) {
--who.lives;
who.dead = true;
if (typ == 2) {
who.guts.gotoAndStop('die2');
} else {
who.guts.gotoAndStop('die');
}
who.hp = 0;
var v3 = 0;
while (v3 < this.ton.ttip.partner.parts.length) {
var v4 = this.ton.ttip.partner.parts[v3];
removeBad(v4);
++v3;
}
who.mouthful = false;
who.tongueout = false;
removeBad(_root.bg.ton.ttip.partner);
this.ton.unloadMovie();
this.ton.removeMovieClip();
_root.hud.updateMe(who);
}
function chkDrown(who) {
who.virtx = who._x + this._x;
if (_root.shitTest(this.antiwalk.dieblock0, who.virtx, who._y + 17) && !who.dead && !who.inv || _root.shitTest(this.antiwalk.dieblock1, who.virtx, who._y + 17) && !who.dead && !who.inv) {
muteIt();
who.shieldhp = 0;
updateShield();
pausy = true;
who._y = 224;
_root.aboboMedal('Fish Food');
runDeath(who);
}
if (who.dead) {
who.xvel = 0;
who.yvel = 0;
}
}
function bigDoor() {
if (this.bigdoor.hitarea.hitTest(this.dude.guts.hitarea)) {
if (!demoover) {
muteIt();
demoover = true;
this.dude.xvel = 0;
this.bigdoor.gotoAndPlay('goin');
this.dude._visible = false;
nokeys = true;
endcv = 0;
}
++endcv;
if (endcv >= 35 && !mermaidgame) {
mermaidgame = true;
pausy = true;
var v2 = this.attachMovie('mermaidgame', 'mermaidgame', this.getNextHighestDepth());
v2._x = -this._x;
}
}
}
function addShocker(who) {
shockers.push(who);
}
function chkShockers() {
var v3 = this.dude;
if (!v3.shocked && !v3.blinking && !v3.dead && !bosslock && this.dude._x > 1500 && this.dude._x < 2300) {
var v5 = 0;
while (v5 < shockers.length) {
var v4 = shockers[v5];
v4.gotoAndStop('normal');
if (v4.hitarea.hitTest(v3.guts.hitarea)) {
v3.shocked = true;
shocksound.start();
v4.gotoAndStop('shock');
v3.guts.gotoAndStop('shocked');
}
++v5;
}
}
if (v3.shocked) {
++v3.shockcv;
if (v3.shockcv >= 20) {
v3.shockcv = 0;
v3.shocked = false;
if (!v3.shielded) {
v3.rage -= 10;
v3.raging = false;
_root.hud.updateRage();
v3.gotoAndStop('normal');
v3.blinking = true;
v3.hit = true;
v3.hp -= 10;
_root.hud.updateMe(v3);
if (v3.hp <= 0) {
pausy = true;
muteIt();
runDeath(v3, 2);
endTongue(v3);
v3.tongueout = false;
v3.mouthful = false;
}
} else {
v3.blinking = true;
--v3.shieldhp;
updateShield();
_root.hud.updateMe(v3);
}
}
}
}
stop();
totaleats = 0;
this._x = 0;
this._y = 0;
bad11.parts = new Array(bad12, bad13, bad14);
bad34.parts = new Array(bad35, bad36, bad37);
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
_root.psign.filters = [];
_root.btm.dispose();
_root.psign._visible = false;
_root.psign2._visible = false;
_root.hud.setHud(0);
_root.hud.updateMe(this.dude);
bounce1 = new Sound(this);
bounce1.attachSound('bigswing');
pausesound = new Sound(this);
pausesound.attachSound('lev01_pausesound');
splode0 = new Sound(this);
splode0.attachSound('splode0');
laser = new Sound(this);
laser.attachSound('laser');
whirlpoolsound = new Sound(this);
whirlpoolsound.attachSound('whirlpoolsound');
conveyerfall = new Sound(this);
conveyerfall.attachSound('conveyerfall');
fullragesound = new Sound(this);
fullragesound.attachSound('fullrage');
shocksound = new Sound(this);
shocksound.attachSound('shocksound');
_root._quality = 'LOW';
smokecv = 0;
showzombies = false;
mermaidgame = false;
endcv = 0;
demoover = false;
bosslock = false;
fishtimer = 0;
jetarray = new Array();
this.wallcover0._visible = false;
this.wallcover1._visible = false;
jetplace = 4100;
sharktran = false;
gobiggy = false;
sharkbitecv = 0;
sharkwallbroken = false;
rumbleamt = 0;
rumbledir = 1;
laserarray = new Array();
chunkarray = new Array();
thislevelover = false;
superbosslock = false;
nomorebgmusic = false;
wallbubs = new Array();
crumbarray = new Array();
runningrage = false;
runragecv = 0;
shockers = new Array();
updateShield();
this.zombies._visible = false;
tongueout = new Sound(this);
tongueout.attachSound('tongueout');
downpipe = new Sound(this);
downpipe.attachSound('downpipe');
knockenemy = new Sound(this);
knockenemy.attachSound('knockenemy');
spitout = new Sound(this);
spitout.attachSound('spitout');
victory = new Sound(this);
victory.attachSound('victory');
swimstroke = new Sound(this);
swimstroke.attachSound('swimstroke');
hit0 = new Sound(this);
hit0.attachSound('hit0');
hit1 = new Sound(this);
hit1.attachSound('hit1');
var i = 0;
while (i < burstcv) {
var tar = eval('burst' + burstcv);
tar.unloadMovie();
tar.removeMovieClip();
++i;
}
stopAllSounds();
nokeys = false;
barrel.unloadMovie();
barrel.removeMovieClip();
this.mastervol = 40;
mastersound.lloop.stop();
this.createEmptyMovieClip('mastersound', -999);
this.mastersound.lloop = new Sound(this.mastersound);
this.mastersound.lloop.attachSound('swimmingloop');
this.dude._visible = false;
this.antiwalk._alpha = 0;
moveit = false;
aup = false;
this.skipped = false;
effcv = 0;
bubarray = new Array();
bcv = 0;
projarray = new Array();
baddies = new Array();
if (_root.lives == undefined) {
this.dude.lives = 5;
_root.lives = 5;
} else {
this.dude.lives = _root.lives;
}
lives = this.dude.lives;
this.dude.hp = 100;
this.dude.maxhp = this.dude.hp;
this.dude.slowdown = 0;
this.dude.latchers = new Array();
_root.hud.updateMe(this.dude);
this.dude.tiredsign._visible = false;
nokeys = true;
this.onEnterFrame = function () {
chkReset();
if (runningrage) {
++runragecv;
if (runragecv == 25) {
whirlpoolsound.start();
}
if (runragecv >= 35) {
if (runragecv < 200) {
if (this.whirly._alpha < 100) {
this.whirly._alpha += 2;
this.whirly.hitarray = new Array();
this.spinner.dir = 1;
} else {
this.whirly._x = this.spinner._x;
this.spinner._x += this.spinner.xvel;
this.spinner.virtx = this._x + this.spinner._x;
if (this.spinner.dir == 1) {
this.spinner.xvel += 1.4;
if (this.spinner.virtx > Stage.width / 2 + 5) {
this.spinner.dir = -1;
}
} else {
this.spinner.xvel -= 1.4;
if (this.spinner.virtx < Stage.width / 2 - 5) {
this.spinner.dir = 1;
}
}
var v6 = 0;
while (v6 < baddies.length) {
var v4 = baddies[v6];
var v5 = true;
var v3 = 0;
while (v3 < this.whirly.hitarray.length) {
if (this.whirly.hitarray[v3] == v4) {
v5 = false;
}
++v3;
}
if (v4.guts.hitarea.hitTest(this.whirly.hitarea) && v5 && !v4.jetted) {
this.whirly.hitarray.push(v4);
thing = v4;
knockenemy.start();
var v7 = this.attachMovie('dd_burst', 'burst' + effcv, effcv);
v7._x = thing._x;
v7._y = thing._y;
++effcv;
thing.hp -= 3;
if (thing != this.boss) {
if (thing.hp <= 0) {
if (thing.bubbleman) {
bubbleWallBreak();
}
if (thing.karnov) {
crumbleWallBreak();
}
thing.dead = true;
thing.yvel = -1.5;
} else {
thing.guts.gotoAndStop('hit');
if (thing.showhit) {
thing.hit = true;
}
}
} else {
if (thing.hp <= 0) {
thing.dead = true;
} else {
thing.guts.head.gotoAndPlay('hit');
thing.hit = true;
}
}
_root.hud.updateBad(thing);
}
++v6;
}
}
}
if (runragecv == 200) {
bounce1.start();
flasher.gotoAndPlay(2);
this.whirly.unloadMovie();
this.whirly.removeMovieClip();
this.spinner._x = this.dude._x;
this.spinner._y = this.dude._y;
this.spinner.guts.gotoAndPlay('release');
}
}
if (runragecv >= 255) {
if (this.boss.dead) {
this.boss.guts.gotoAndStop('death');
}
if (!nomorebgmusic) {
mastersound.lloop.setVolume(mastervol);
}
this.spinner.unloadMovie();
this.spinner.removeMovieClip();
this.dude.xvel = 0;
this.dude.yvel = 0;
this.ton._visible = true;
this.dude._visible = true;
runragecv = 0;
runningrage = false;
pausy = false;
nokeys = false;
_root.setHud(0);
}
}
chkSkip();
chkPause();
bigDoor();
if (this.boss.showending) {
var v8 = this.boss;
var v11 = 100;
var v12 = 133 - v8._y;
v8._y += v12 / 25;
var v10 = Math.abs(v12);
if (v10 < 1) {
v8._y = v11;
}
var v13 = this._x;
var v14 = -v8._x + 55;
v12 = v14 - v13;
this._x += v12 / 25;
}
if (sharktran) {
centerOn(this.bad19);
if (gobiggy) {
if (this.boss._x > this.bad19._x + 15 && !this.boss.chompedit) {
this.boss._x -= 15;
if (!sharkwallbroken) {
if (this.boss._x < 3850) {
breakSharkWall();
}
}
} else {
this.boss.guts.gotoAndStop('close');
if (sharkbitecv == 0) {
if (!sharkwallbroken) {
breakSharkWall();
}
var v9 = new Sound(this);
v9.attachSound('ladderdrop');
v9.start();
jetplace = 4690;
this.boss.chompedit = true;
this.boss.xvel = 0;
this.bad19.guts.gotoAndStop('sink');
this.bad19.sinkme = true;
this.bad19.yvel = -1;
this.boss.aicv = 0;
}
++sharkbitecv;
if (sharkbitecv >= 10) {
this.mastersound.lloop.stop();
this.mastersound.lloop = new Sound(this.mastersound);
this.mastersound.lloop.attachSound('bigsharkloop');
this.mastersound.lloop.start(0, 999);
this.mastersound.lloop.setVolume(mastervol);
this.boss.guts.gotoAndPlay('normal');
this.boss._x += this.boss.xvel;
this.boss.xvel += 2;
if (this.boss._x > 4217) {
this.boss.dec = 0;
baddies.push(this.boss);
this.boss.dir = -1;
sharktran = false;
nokeys = false;
pausy = false;
}
}
}
}
}
if (!this.pausy) {
if (moveit) {
if (this._x < -250 && !showzombies) {
this.zombies._visible = true;
showzombies = true;
}
if (this._x > -100 && showzombies) {
_root.aboboMedal('Thriller');
}
chkProjs();
chkBads();
chkDrown(this.dude);
phys(this.dude);
controls(this.dude);
centerOn(this.dude);
chkHit(this.dude);
restrain();
bubbleMaker();
mIt();
checkTube();
rumble();
moveLasers();
moveWallBubs();
moveCrumbs();
chkShockers();
}
}
};
}
instance bad6 of movieClip 2941 lev1_bad1 {
onClipEvent (load) {
this.gotime = 30;
this.jumpht = 8;
}
}
instance bad7 of movieClip 2941 lev1_bad1 {
onClipEvent (load) {
this.gotime = 50;
this.jumpht = 8;
}
}
instance bad15 of movieClip 2941 lev1_bad1 {
onClipEvent (load) {
this.gotime = 50;
this.jumpht = 8;
}
}
instance bad16 of movieClip 2941 lev1_bad1 {
onClipEvent (load) {
this.gotime = 50;
this.jumpht = 8;
}
}
instance bad18 of movieClip 2941 lev1_bad1 {
onClipEvent (load) {
this.gotime = 50;
this.jumpht = 8;
}
}
}
movieClip 14425 {
}
movieClip 14433 {
}
movieClip 14443 {
}
movieClip 14453 {
}
movieClip 14458 {
}
movieClip 14471 {
}
movieClip 14528 {
frame 113 {
stop();
_root.bg.stuckinpipe = true;
}
frame 129 {
_root.bg.chkStruggle();
}
frame 249 {
stop();
_root.bg.poom();
}
}
movieClip 14530 {
}
movieClip 14531 {
frame 844 {
stopAllSounds();
_root.bg.skipped = true;
}
frame 957 {
stop();
}
frame 1092 {
_root.bg.poom();
stop();
}
}
movieClip 14533 {
frame 1 {
stop();
}
}
frame 9 {
function pauseUCmusic() {
damuse.stop();
}
function restartUCmusic() {
damuse.start(0, 99);
}
function UCbadHit() {}
function UCroundEnd() {
faker.hp -= 33.34;
hud.updateBad(faker);
}
function UCgameOver() {
clearGame();
gotoAndStop('lev4');
}
levlocks[2] = false;
saveStuff();
psign.filters = [];
masterlev = 3;
btm.dispose();
psign._visible = false;
psign2._visible = false;
damuse = new Sound(this);
damuse.attachSound('ucbgmusic');
hud.setHud(0);
var newob = new Object();
if (_root.lives == undefined) {
_root.lives = 5;
}
newob.lives = _root.lives;
newob.hp = 100;
newob.maxhp = 100;
hud.updateMe(newob);
hud.swapDepths(99999999);
this.createEmptyMovieClip('faker', 9912);
faker.hp = 100;
faker.maxhp = faker.hp;
faker.nam = 'URBAN CHAMP';
faker.picid = 43;
hud.updateBad(faker);
}
movieClip 14576 {
}
movieClip 14593 {
frame 15 {
stop();
}
}
movieClip 14612 {
frame 45 {
stop();
}
}
movieClip 14621 {
frame 15 {
stop();
}
}
movieClip 14633 {
frame 15 {
stop();
}
}
movieClip 14644 {
}
movieClip 14652 {
}
movieClip 14653 {
frame 138 {
_parent.champscene._x -= 2;
}
frame 139 {
_parent.champscene._x += 2;
}
frame 147 {
_parent.champscene._x += 2;
}
frame 148 {
_parent.champscene._x -= 2;
}
frame 158 {
_parent.champscene._x -= 2;
}
frame 159 {
_parent.champscene._x += 2;
}
frame 166 {
_parent.champscene._x += 2;
}
frame 167 {
_parent.champscene._x -= 2;
}
frame 177 {
_parent.champscene._x -= 2;
}
frame 178 {
_parent.champscene._x += 2;
}
frame 190 {
_parent.champscene._x -= 2;
}
frame 191 {
_parent.champscene._x += 2;
}
frame 192 {
_parent.champscene._x += 2;
}
frame 193 {
_parent.champscene._x -= 2;
}
frame 194 {
_parent.champscene._x -= 2;
}
frame 195 {
_parent.champscene._x += 2;
}
frame 196 {
_parent.champscene._x += 2;
}
frame 197 {
_parent.champscene._x -= 2;
}
frame 229 {
_parent.champscene._x -= 2;
}
frame 230 {
_parent.champscene._x += 2;
}
frame 231 {
_parent.champscene._x += 2;
}
frame 232 {
_parent.champscene._x -= 2;
}
frame 358 {
_root.restartUCmusic();
_parent.gotoAndStop('game');
}
}
button 14655 {
on (press) {
gotoAndStop('game');
}
}
button 14656 {
on (press) {
gotoAndStop('ending');
}
}
movieClip 14658 {
}
movieClip 14660 {
}
movieClip 14665 {
}
movieClip 14680 {
}
movieClip 14693 {
}
movieClip 14701 {
frame 1 {
play();
}
frame 35 {
stop();
}
}
movieClip 14710 {
frame 12 {
stop();
}
}
movieClip 14712 {
frame 29 {
stop();
}
}
movieClip 14714 {
}
movieClip 14715 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 21 {
play();
}
frame 73 {
gotoAndStop('stance');
}
frame 74 {
play();
}
frame 93 {
gotoAndStop('stance');
}
frame 94 {
play();
}
frame 123 {
gotoAndStop('stance');
}
frame 124 {
play();
}
instance of movieClip 14680 {
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.abobo.abohit)) {
_parent._parent._parent.uchamptink.start();
_root.aboboMedal('Fighting Chance');
}
}
}
frame 140 {
gotoAndStop('stance');
}
frame 141 {
play();
}
instance of movieClip 14680 {
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.abobo.abohit)) {
_parent._parent._parent.uchamptink.start();
_root.aboboMedal('Fighting Chance');
}
}
}
frame 154 {
gotoAndStop('stance');
}
frame 155 {
play();
}
frame 162 {
gotoAndStop('stance');
}
frame 165 {
if (_parent.champ._x < 214) {
_parent.champ._x += 1;
}
}
frame 167 {
if (_parent.champ._x < 214) {
_parent.champ._x += 1;
}
}
frame 169 {
if (_parent.champ._x < 214) {
_parent.champ._x += 1;
}
}
frame 171 {
if (_parent.champ._x < 214) {
_parent.champ._x += 1;
}
}
frame 173 {
if (_parent.champ._x < 214) {
_parent.champ._x += 1;
}
}
frame 174 {
gotoAndStop('stance');
}
frame 175 {
stop();
}
frame 186 {
play();
}
frame 194 {
_parent.random12345893421 = random(10) + 1;
if (_parent.random12345893421 == 1) {
gotoAndPlay('taunt');
}
if (_parent.random12345893421 == 2) {
gotoAndPlay('defendhigh');
}
if (_parent.random12345893421 == 3) {
gotoAndPlay('defendlow');
}
if (_parent.random12345893421 == 4) {
gotoAndPlay('dodge');
}
if (_parent.random12345893421 == 5) {
if (_parent.champ._x < 214) {
gotoAndPlay('backup');
} else {
gotoAndPlay('highpunch');
}
}
if (_parent.random12345893421 == 6) {
gotoAndPlay('stance');
}
if (_parent.random12345893421 >= 7 && _parent.random12345893421 < 9) {
gotoAndPlay('lowpunch');
}
if (_parent.random12345893421 >= 9) {
gotoAndPlay('highpunch');
}
}
frame 195 {
play();
_parent.champhit = true;
}
frame 196 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 198 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 200 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 202 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 204 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 206 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 208 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 210 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 212 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 214 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 216 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 218 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 220 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 224 {
_parent.champhit = false;
gotoAndPlay('stance');
}
frame 225 {
_parent.transition = true;
_parent.attackmode = false;
play();
}
frame 261 {
stop();
_parent.lost += 1;
_parent.attackmode = false;
_parent.screenmove.gotoAndPlay('move');
}
frame 274 {
play();
_parent.champhit = true;
}
frame 275 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 277 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 279 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 281 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 283 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 285 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 287 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 289 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 291 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 293 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 295 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 297 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 299 {
if (_parent.champ._x < 214) {
_parent.champ._x += 2;
}
if (_parent.champ._x > 213.9) {
pwned.gotoAndStop('wall');
}
}
frame 307 {
_parent.champhit = false;
gotoAndPlay('stance');
}
}
movieClip 14720 {
}
movieClip 14729 {
}
movieClip 14730 {
frame 1 {
stop();
_parent.kickkey = 65;
_parent.punchkey = 83;
}
frame 8 {
stop();
}
frame 15 {
play();
}
instance of movieClip 14680 {
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.champ.champhit)) {
if (_parent._parent.champ._x > 210) {
_parent._parent.transition = true;
if (_parent._parent.lost > 1) {
_parent._parent._parent.punchfinale = true;
_parent._parent._parent.gotoAndStop('ending');
} else {
_parent._parent.champ.gotoAndPlay('lose');
}
} else {
_parent._parent.champ.gotoAndPlay('hit');
}
}
}
}
frame 24 {
_parent.attack = false;
_parent.punchkey = 83;
gotoAndPlay('idle');
}
frame 25 {
play();
}
instance of movieClip 14680 {
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent.champ.champhit)) {
if (_parent._parent.champ._x > 210) {
_parent._parent.transition = true;
if (_parent._parent.lost > 1) {
_parent._parent._parent.kickfinale = true;
_parent._parent._parent.gotoAndStop('ending');
} else {
_parent._parent.champ.gotoAndPlay('lose');
}
} else {
_parent._parent.champ.gotoAndPlay('kicked');
}
}
}
}
frame 34 {
_parent.attack = false;
_parent.kickkey = 65;
gotoAndPlay('idle');
}
frame 35 {
stop();
}
}
movieClip 14735 {
}
movieClip 14737 {
}
movieClip 14739 {
frame 1 {
stop();
}
instance of movieClip 14737 {
onClipEvent (enterFrame) {
_parent._parent.random1234 = random(10000) + 1;
if (_parent._parent.random1234 > 9998 && !_parent._parent.transition && !_parent._parent.champhit) {
_parent._parent.random1234 = 0;
_parent._parent.transition = true;
_parent.gotoAndPlay('cops');
}
}
}
frame 2 {
stop();
stop();
}
frame 8 {
_parent.transition = true;
_parent.abobo.gotoAndStop('whistle');
_parent.champ.gotoAndStop('whistle');
}
frame 221 {
_root.aboboMedal('Police Patrol');
}
frame 296 {
_root.restartUCmusic();
_parent.transition = false;
_parent.attack = false;
_parent.champhit = false;
_parent.punchkey = 83;
_parent.kickkey = 65;
_parent.attackmode = false;
}
frame 297 {
_parent.transition = false;
_parent.attack = false;
_parent.champhit = false;
_parent.punchkey = 83;
_parent.kickkey = 65;
_parent.attackmode = false;
}
}
movieClip 14741 {
}
movieClip 14743 {
}
movieClip 14746 {
frame 1 {
stop();
}
frame 5 {
play();
}
frame 10 {
stop();
_root.UCroundEnd();
_root.pauseUCmusic();
_parent.champ._x += 254;
_parent.abobo.gotoAndStop('walk');
}
instance of movieClip 14743 {
onClipEvent (enterFrame) {
if (_parent._parent.abobo._x < 210) {
_parent._parent.abobo._x += 2;
}
if (_parent._parent.abobo._x > 209.9) {
_parent._parent.abobo._x = 210;
}
if (_parent._parent.abobo._x == 210 && _parent._parent.background3._x > _parent._parent.bgpos - 113) {
_parent._parent.champ._x -= 2;
_parent._parent.background3._x -= 2;
}
if (_parent._parent.abobo._x == 210 && _parent._parent.background3._x < _parent._parent.bgpos - 112.4) {
_parent._parent.background3._x = _parent._parent.bgpos - 113;
_parent._parent.abobo.gotoAndStop('idle');
_parent.gotoAndStop('phase2');
}
}
}
frame 17 {
stop();
}
instance of movieClip 14743 {
onClipEvent (enterFrame) {
_parent._parent.champ.gotoAndStop('stand');
if (_parent._parent.abobo._x > 64) {
_parent._parent.abobo._x -= 3;
_parent._parent.champ._x -= 3;
_parent._parent.background3._x -= 3;
}
if (_parent._parent.abobo._x < 64.09999999999999) {
_parent._parent.abobo._x = 63.5;
_parent._parent.bgpos = _parent._parent.background3._x;
_parent.gotoAndStop('phase3');
}
}
}
frame 27 {
play();
}
frame 107 {
_root.restartUCmusic();
_parent.transition = false;
_parent.attackmode = false;
_parent.champhit = false;
gotoAndStop('idle');
}
}
movieClip 14747 {
frame 1 {
stop();
var goingleft = false;
var attackmode = false;
var attack = false;
var punchkey = 83;
var punchdown = false;
var kickkey = 65;
var kickdown = false;
var leftarrow = 37;
var rightarrow = 39;
var random12345893421 = 0;
var random1234 = 0;
var champhit = false;
var transition = false;
var bgpos = 394;
var lost = 0;
}
instance of movieClip 14741 {
onClipEvent (enterFrame) {
if (!_parent.transition) {
if (!_parent.attack) {
if (!Key.isDown(_parent.leftarrow) && !Key.isDown(_parent.rightarrow)) {
_parent.abobo.gotoAndStop('idle');
}
if (Key.isDown(_parent.leftarrow)) {
_parent.abobo.gotoAndStop('walk');
_parent.abobo._x -= 2;
if (!_parent.goingleft) {
_parent.abobo._xscale *= -1;
_parent.goingleft = true;
}
}
if (Key.isDown(_parent.rightarrow)) {
_parent.abobo.gotoAndStop('walk');
_parent.abobo._x += 2;
if (_parent.goingleft) {
_parent.abobo._xscale *= -1;
_parent.goingleft = false;
}
}
if (_parent.abobo._x < 60) {
_parent.abobo._x = 60;
}
if (_parent.abobo._x > _parent.champ._x - 24) {
_parent.abobo._x = _parent.champ._x - 24;
}
if (!Key.isDown(_parent.punchkey)) {
_parent.punchdown = false;
}
if (Key.isDown(_parent.punchkey) && !_parent.punchdown) {
_parent.abobo.gotoAndPlay('punch');
_parent.attack = true;
_parent.punchdown = true;
_parent.punchkey = 234141;
}
if (!Key.isDown(_parent.kickkey)) {
_parent.kickdown = false;
}
if (Key.isDown(_parent.kickkey) && !_parent.kickdown) {
_parent.abobo.gotoAndPlay('kick');
_parent.attack = true;
_parent.kickkey = 234141;
_parent.kickdown = true;
}
}
if (_parent.abobo._x > _parent.champ._x - 25 && !_parent.attackmode) {
_parent.champ.gotoAndPlay('stance');
_parent.attackmode = true;
}
if (!_parent.attackmode && !_parent.champhit) {
_parent.champ.gotoAndStop('walk');
_parent.champ._x -= 1;
}
if (_parent.abobo._x < _parent.champ._x - 30) {
_parent.attackmode = false;
}
}
}
}
}
movieClip 14750 {
}
movieClip 14751 {
}
movieClip 14755 {
}
movieClip 14761 {
}
movieClip 14762 {
}
movieClip 14765 {
}
movieClip 14766 {
frame 1 {
stop();
}
instance of movieClip 14765 {
onClipEvent (keyPress '<Left>') {
_parent.gotoAndPlay('codestarts');
}
}
frame 16 {
play();
}
instance of movieClip 14765 {
onClipEvent (keyPress '<Right>') {
_parent.gotoAndPlay('correct1');
}
onClipEvent (keyPress '<Left>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Up>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Down>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'A') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'a') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 's') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'S') {
_parent.gotoAndPlay('1');
}
}
frame 29 {
gotoAndStop(1);
}
instance of movieClip 14765 {
onClipEvent (keyPress '<Left>') {
_parent.gotoAndPlay('correct2');
}
onClipEvent (keyPress '<Right>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Up>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Down>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'A') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'a') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 's') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'S') {
_parent.gotoAndPlay('1');
}
}
frame 44 {
gotoAndStop(1);
}
instance of movieClip 14765 {
onClipEvent (keyPress '<Right>') {
_parent.gotoAndPlay('correct3');
}
onClipEvent (keyPress '<Left>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Up>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Down>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'A') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'a') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 's') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'S') {
_parent.gotoAndPlay('1');
}
}
frame 59 {
gotoAndStop(1);
}
instance of movieClip 14765 {
onClipEvent (keyPress 'a') {
_parent.gotoAndPlay('correct4');
}
onClipEvent (keyPress 'A') {
_parent.gotoAndPlay('correct4');
}
onClipEvent (keyPress '<Left>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Right>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Up>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress '<Down>') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 's') {
_parent.gotoAndPlay('1');
}
onClipEvent (keyPress 'S') {
_parent.gotoAndPlay('1');
}
}
frame 75 {
gotoAndStop(1);
}
frame 76 {
stop();
_parent._parent.friendship = true;
}
}
movieClip 14771 {
}
movieClip 14773 {
frame 150 {
stop();
}
}
movieClip 14791 {
frame 11 {
stop();
}
}
movieClip 14804 {
frame 16 {
stop();
}
}
movieClip 14809 {
frame 85 {
gotoAndPlay('drop');
}
}
movieClip 14818 {
}
movieClip 14819 {
}
movieClip 14820 {
}
movieClip 14821 {
}
movieClip 14822 {
frame 47 {
stop();
}
}
movieClip 14823 {
frame 60 {
stop();
}
}
movieClip 14832 {
}
movieClip 14867 {
}
movieClip 14872 {
}
movieClip 14881 {
frame 42 {
stop();
}
}
movieClip 14893 {
frame 1 {
stop();
}
frame 6 {
play();
}
frame 7 {
play();
}
frame 8 {
play();
}
frame 9 {
play();
}
frame 10 {
stop();
}
}
movieClip 14894 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop3._y += 5;
}
if (_parent._parent.drop3._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop3._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14895 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop2._y += 5;
}
if (_parent._parent.drop2._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop2._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14896 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop33._y += 5;
}
if (_parent._parent.drop33._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop33._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14897 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop1._y += 5;
}
if (_parent._parent.drop1._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop1._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14898 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop4._y += 5;
}
if (_parent._parent.drop4._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop4._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14899 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop5._y += 5;
}
if (_parent._parent.drop5._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop5._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14900 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop6._y += 5;
}
if (_parent._parent.drop6._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop6._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14901 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop7._y += 5;
}
if (_parent._parent.drop7._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop7._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14902 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop8._y += 5;
}
if (_parent._parent.drop8._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop8._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14903 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop9._y += 5;
}
if (_parent._parent.drop9._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop9._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14904 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop10._y += 5;
}
if (_parent._parent.drop10._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop10._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14907 {
frame 45 {
stop();
}
}
movieClip 14908 {
frame 1 {
stop();
}
}
movieClip 14911 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop12._y += 5;
}
if (_parent._parent.drop12._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop12._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14912 {
frame 1 {
var dropped = false;
}
instance droplet of movieClip 14893 {
onClipEvent (enterFrame) {
if (!_parent.dropped) {
_parent._parent.drop13._y += 5;
}
if (_parent._parent.drop13._y >= -90) {
_parent._parent._parent.random12345678 = random(5) + 1;
if (_parent._parent._parent.random12345678 > 4 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
if (_parent._parent.drop13._y >= -82 && !_parent.dropped) {
this.gotoAndPlay('drop');
_parent.dropped = true;
_parent.stop();
}
}
}
}
movieClip 14936 {
frame 19 {
stop();
}
}
movieClip 14945 {
}
movieClip 14948 {
}
movieClip 14959 {
frame 22 {
stop();
}
}
movieClip 14962 {
frame 19 {
stop();
}
}
movieClip 14967 {
}
movieClip 14974 {
frame 38 {
stop();
}
}
movieClip 14983 {
}
movieClip 14999 {
}
movieClip 15004 {
frame 10 {
stop();
}
}
movieClip 15005 {
}
movieClip 15034 {
frame 16 {
stop();
}
}
movieClip 15036 {
frame 244 {
stop();
}
}
movieClip 15043 {
}
movieClip 15045 {
frame 45 {
stop();
}
}
movieClip 15047 {
frame 1 {
stopAllSounds();
}
frame 130 {
_root.aboboMedal('Friendly Foes');
}
frame 587 {
_parent._parent.fader.gotoAndPlay('fade');
}
frame 618 {
stop();
}
}
movieClip 15048 {
frame 1 {
_root.UCroundEnd();
if (_parent.kickfinale) {
punch._alpha = 0;
}
if (_parent.punchfinale) {
kick._alpha = 0;
}
var friendship = false;
}
frame 34 {
stop();
}
instance of movieClip 14773 {
onClipEvent (enterFrame) {
if (!_parent.friendship) {
if (Key.isDown(83) or Key.isDown(65)) {
_parent.play();
}
}
if (_parent.friendship) {
if (Key.isDown(83)) {
_parent.play();
}
if (Key.isDown(65)) {
_parent.gotoAndStop('friendship2');
}
}
}
}
frame 35 {
stopAllSounds();
}
frame 99 {
_parent.endingmovies._x += 2;
}
frame 101 {
_root.aboboMedal('No Mercy');
}
frame 101 {
_parent.endingmovies._x -= 2;
}
frame 103 {
_parent.endingmovies._x -= 2;
}
frame 105 {
_parent.endingmovies._x += 2;
}
frame 333 {
_parent.endingmovies._x += 2;
}
frame 335 {
_parent.endingmovies._x -= 2;
}
frame 337 {
_parent.endingmovies._x -= 2;
}
frame 339 {
_parent.endingmovies._x += 2;
}
frame 358 {
_root.pauseUCmusic();
}
frame 670 {
_parent.fader.gotoAndPlay('fade');
}
frame 701 {
stop();
}
frame 710 {
stop();
}
}
movieClip 15049 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 39 {
stop();
_root.UCgameOver();
}
}
movieClip 15050 {
frame 1 {
var uchamptink = new Sound(this);
uchamptink.attachSound('uctink');
stop();
}
frame 10 {
stop();
var kickfinale = false;
var punchfinale = false;
}
frame 28 {
stop();
_root.pauseUCmusic();
var random12345678 = 0;
}
}
frame 10 {
levlocks[3] = false;
saveStuff();
if (lives == undefined) {
lives = 5;
}
masterlev = 4;
psign.filters = [];
btm.dispose();
psign._visible = false;
psign2._visible = false;
hud.setHud(0);
hud.updateMe();
}
movieClip 15053 {
}
movieClip 15058 {
frame 22 {
stop();
}
}
movieClip 15060 {
}
movieClip 15061 {
}
movieClip 15062 {
}
movieClip 15065 {
}
movieClip 15068 {
}
movieClip 15070 {
}
movieClip 15073 {
}
movieClip 15074 {
frame 1 {
stop();
}
}
movieClip 15075 {
frame 1 {
stop();
}
}
movieClip 15077 {
}
movieClip 15078 {
}
movieClip 15089 {
frame 5 {
stop();
}
}
movieClip 15092 {
}
movieClip 15095 {
}
movieClip 15100 {
}
movieClip 15101 {
frame 49 {
stop();
this._visible = false;
var tar = this._parent;
tar.rageShow();
}
}
movieClip 15171 {
}
movieClip 15182 {
}
movieClip 15185 {
}
movieClip 15196 {
}
movieClip 15248 {
}
movieClip 15255 {
}
movieClip 15260 {
}
movieClip 15265 {
}
movieClip 15275 {
}
movieClip 15278 {
}
movieClip 15309 {
frame 26 {
stop();
}
}
movieClip 15324 {
}
movieClip 15329 {
}
movieClip 15330 {
frame 1 {
var tar = this._parent._parent;
if (tar.gotmeat) {
pointer2._visible = false;
meatalt._visible = false;
} else {
pointer1._visible = false;
meatalt._visible = true;
pointer2._visible = true;
}
}
frame 693 {
_parent.zeldacutscene._x += 1;
}
frame 694 {
_parent.zeldacutscene._x -= 2;
}
frame 695 {
_parent.zeldacutscene._x += 2;
}
frame 696 {
_parent.zeldacutscene._x -= 2;
}
frame 697 {
_parent.zeldacutscene._x += 2;
}
frame 698 {
_parent.zeldacutscene._x -= 2;
}
frame 699 {
_parent.zeldacutscene._x += 2;
}
frame 700 {
_parent.zeldacutscene._x -= 2;
}
frame 701 {
_parent.zeldacutscene._x += 2;
}
frame 702 {
_parent.zeldacutscene._x -= 2;
}
frame 703 {
_parent.zeldacutscene._x += 2;
}
frame 704 {
_parent.zeldacutscene._x -= 2;
}
frame 705 {
_parent.zeldacutscene._x += 2;
}
frame 706 {
_parent.zeldacutscene._x -= 2;
}
frame 707 {
_parent.zeldacutscene._x += 2;
}
frame 708 {
_parent.zeldacutscene._x -= 2;
}
frame 709 {
_parent.zeldacutscene._x += 2;
}
frame 710 {
_parent.zeldacutscene._x -= 2;
}
frame 711 {
_parent.zeldacutscene._x += 2;
}
frame 712 {
_parent.zeldacutscene._x -= 2;
}
frame 713 {
_parent.zeldacutscene._x += 2;
}
frame 714 {
_parent.zeldacutscene._x -= 2;
}
frame 715 {
_parent.zeldacutscene._x += 2;
}
frame 716 {
_parent.zeldacutscene._x -= 2;
}
frame 717 {
_parent.zeldacutscene._x += 2;
}
frame 718 {
_parent.zeldacutscene._x -= 1;
}
frame 924 {
stop();
_parent.gotoAndPlay('kungfoo');
}
}
movieClip 15337 {
}
movieClip 15342 {
}
movieClip 15350 {
}
movieClip 15360 {
}
movieClip 15381 {
}
movieClip 15396 {
}
movieClip 15397 {
}
movieClip 15398 {
}
movieClip 15399 {
}
movieClip 15400 {
}
movieClip 15401 {
}
movieClip 15402 {
}
movieClip 15413 {
}
movieClip 15414 {
}
movieClip 15415 {
}
movieClip 15416 {
}
movieClip 15417 {
}
movieClip 15453 {
}
movieClip 15469 {
}
movieClip 15482 {
}
movieClip 15503 {
}
movieClip 15504 {
}
movieClip 15515 {
}
movieClip 15565 {
frame 1 {
_parent._parent._parent.everythang._x += 2;
}
frame 2 {
_parent._parent._parent.everythang._x -= 4;
}
frame 3 {
_parent._parent._parent.everythang._x += 2;
}
frame 4 {
_parent._parent._parent.everythang._y += 2;
}
frame 5 {
_parent._parent._parent.everythang._y -= 4;
}
frame 6 {
_parent._parent._parent.everythang._y += 2;
}
}
movieClip 15566 {
frame 16 {
stop();
}
}
movieClip 15569 {
frame 16 {
stop();
}
}
movieClip 15580 {
}
movieClip 15590 {
frame 23 {
stop();
}
}
movieClip 15628 {
frame 33 {
stop();
}
}
movieClip 15629 {
frame 281 {
stop();
}
}
movieClip 15682 {
}
movieClip 15702 {
}
movieClip 15705 {
}
movieClip 15722 {
frame 58 {
_parent.kungfuscene._y += 1;
}
frame 59 {
_parent.kungfuscene._y -= 2;
}
frame 60 {
_parent.kungfuscene._y += 2;
}
frame 61 {
_parent.kungfuscene._y -= 2;
}
frame 62 {
_parent.kungfuscene._y += 2;
}
frame 63 {
_parent.kungfuscene._y -= 2;
}
frame 64 {
_parent.kungfuscene._y += 2;
}
frame 65 {
_parent.kungfuscene._y -= 2;
}
frame 66 {
_parent.kungfuscene._y += 2;
}
frame 67 {
_parent.kungfuscene._y -= 2;
}
frame 68 {
_parent.kungfuscene._y += 1;
}
frame 673 {
_parent.kungfuscene._y += 1;
}
frame 674 {
_parent.kungfuscene._y -= 2;
}
frame 675 {
_parent.kungfuscene._y += 2;
}
frame 676 {
_parent.kungfuscene._y -= 2;
}
frame 677 {
_parent.kungfuscene._y += 2;
}
frame 678 {
_parent.kungfuscene._y -= 2;
}
frame 679 {
_parent.kungfuscene._y += 2;
}
frame 680 {
_parent.kungfuscene._y -= 2;
}
frame 681 {
_parent.kungfuscene._y += 2;
}
frame 682 {
_parent.kungfuscene._y -= 2;
}
frame 683 {
_parent.kungfuscene._y += 1;
}
frame 804 {
_parent.kungfuscene._y += 1;
}
frame 805 {
_parent.kungfuscene._y -= 2;
}
frame 806 {
_parent.kungfuscene._y += 2;
}
frame 807 {
_parent.kungfuscene._y -= 2;
}
frame 808 {
_parent.kungfuscene._y += 2;
}
frame 809 {
_parent.kungfuscene._y -= 2;
}
frame 810 {
_parent.kungfuscene._y += 2;
}
frame 811 {
_parent.kungfuscene._y -= 2;
}
frame 812 {
_parent.kungfuscene._y += 2;
}
frame 813 {
_parent.kungfuscene._y -= 2;
}
frame 814 {
_parent.kungfuscene._y += 1;
}
frame 815 {
_parent.kungfuscene._y += 1;
}
frame 816 {
_parent.kungfuscene._y -= 2;
}
frame 817 {
_parent.kungfuscene._y += 2;
}
frame 818 {
_parent.kungfuscene._y -= 2;
}
frame 819 {
_parent.kungfuscene._y += 2;
}
frame 820 {
_parent.kungfuscene._y -= 2;
}
frame 821 {
_parent.kungfuscene._y += 2;
}
frame 822 {
_parent.kungfuscene._y -= 2;
}
frame 823 {
_parent.kungfuscene._y += 2;
}
frame 824 {
_parent.kungfuscene._y -= 2;
}
frame 825 {
_parent.kungfuscene._y += 1;
}
frame 1966 {
stop();
_root.gotoAndStop('lev5');
}
}
movieClip 15723 {
frame 1 {
stop();
}
frame 23 {
stop();
}
}
movieClip 15724 {
frame 1 {
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function initData() {
finaldooropen = false;
map0_0 = new Array();
map0_0.baddies = new Array();
var v1 = new Array(4, 32, 80);
map0_0.baddies.push(v1);
v1 = new Array(4, 64, 56);
map0_0.baddies.push(v1);
v1 = new Array(4, 178, 56);
map0_0.baddies.push(v1);
v1 = new Array(4, 40, 120);
map0_0.baddies.push(v1);
v1 = new Array(4, 80, 76);
map0_0.baddies.push(v1);
v1 = new Array(4, 178, 56);
map0_0.baddies.push(v1);
v1 = new Array(4, 34, 96);
map0_0.baddies.push(v1);
v1 = new Array(4, 138, 116);
map0_0.baddies.push(v1);
map0_0.locks = new Array(false, false, false, false);
map0_1 = new Array();
map0_1.baddies = new Array();
v1 = new Array(5, 32, 40);
map0_1.baddies.push(v1);
v1 = new Array(5, 200, 75);
map0_1.baddies.push(v1);
map0_1.locks = new Array(false, false, false, false);
map0_2 = new Array();
map0_2.baddies = new Array();
v1 = new Array(0, 200, 65);
map0_2.baddies.push(v1);
v1 = new Array(0, 70, 95);
map0_2.baddies.push(v1);
map0_2.stairs = new Array();
map0_2.stairs.dest = new Array(2, 0);
map0_2.stairs.pos = new Array(48, 25);
map0_2.locks = new Array(false, false, false, false);
map0_4 = new Array();
map0_4.baddies = new Array();
v1 = new Array(1, 208, 45);
map0_4.baddies.push(v1);
v1 = new Array(1, 30, 115);
map0_4.baddies.push(v1);
v1 = new Array(1, 120, 75);
map0_4.baddies.push(v1);
map0_4.locks = new Array(false, false, false, false);
map0_5 = new Array();
map0_5.baddies = new Array();
v1 = new Array(5, 200, 65);
map0_5.baddies.push(v1);
v1 = new Array(15, 50, 80);
map0_5.baddies.push(v1);
map0_5.gotkey = false;
map0_5.slides = new Array(false, false, false, false);
map0_6 = new Array();
map0_6.baddies = new Array();
v1 = new Array(12, 150, 110);
map0_6.baddies.push(v1);
map0_6.locks = new Array(false, false, false, false);
map0_6.slides = new Array(false, false, false, false);
map1_0 = new Array();
map1_0.baddies = new Array();
v1 = new Array(3, 32, 40);
map1_0.baddies.push(v1);
v1 = new Array(3, 64, 56);
map1_0.baddies.push(v1);
v1 = new Array(3, 178, 56);
map1_0.baddies.push(v1);
v1 = new Array(3, 198, 96);
map1_0.baddies.push(v1);
map1_0.locks = new Array(false, false, false, false);
map1_1 = new Array();
map1_1.baddies = new Array();
var v2 = new Array(0, 190, 40);
map1_1.baddies.push(v2);
v2 = new Array(0, 40, 90);
map1_1.baddies.push(v2);
v2 = new Array(0, 170, 110);
map1_1.baddies.push(v2);
map1_1.locks = new Array(false, false, false, false);
map1_2 = new Array();
map1_2.baddies = new Array();
v1 = new Array(4, 125, 40);
map1_2.baddies.push(v1);
v1 = new Array(4, 64, 136);
map1_2.baddies.push(v1);
v1 = new Array(4, 209, 96);
map1_2.baddies.push(v1);
map1_2.locks = new Array(false, false, false, false);
map1_3 = new Array();
map1_3.baddies = new Array();
map1_3.locks = new Array(false, true, false, false);
map1_4 = new Array();
map1_4.baddies = new Array();
v1 = new Array(5, 64, 130);
map1_4.baddies.push(v1);
v1 = new Array(4, 64, 75);
map1_4.baddies.push(v1);
v1 = new Array(4, 176, 72);
map1_4.baddies.push(v1);
v1 = new Array(4, 128, 125);
map1_4.baddies.push(v1);
map1_4.locks = new Array(false, false, false, false);
map1_5 = new Array();
map1_5.baddies = new Array();
v1 = new Array(1, 64, 130);
map1_5.baddies.push(v1);
v1 = new Array(1, 64, 75);
map1_5.baddies.push(v1);
v1 = new Array(3, 176, 72);
map1_5.baddies.push(v1);
v1 = new Array(3, 128, 35);
map1_5.baddies.push(v1);
map1_5.locks = new Array(false, false, false, false);
map1_6 = new Array();
map1_6.baddies = new Array();
v1 = new Array(0, 94, 110);
map1_6.baddies.push(v1);
v1 = new Array(0, 99, 95);
map1_6.baddies.push(v1);
v1 = new Array(0, 126, 82);
map1_6.baddies.push(v1);
v1 = new Array(0, 128, 125);
map1_6.baddies.push(v1);
map1_6.locks = new Array(false, false, false, false);
map1_6.breakaways = new Array(false, false, false, false);
map1_7 = new Array();
map1_7.baddies = new Array();
map1_7.stairs = new Array();
map1_7.stairs.dest = new Array(1, 8);
map1_7.stairs.pos = new Array(48, 25);
map1_7.locks = new Array(false, false, false, false);
map1_7.breakaways = new Array(true, false, false, false);
map1_8 = new Array();
map1_8.baddies = new Array();
map1_8.stairs = new Array();
map1_8.stairs.dest = new Array(1, 7);
map1_8.stairs.pos = new Array(120, 80);
map1_8.locks = new Array(false, false, false, false);
map1_8.breakaways = new Array(true, false, false, false);
map1_8.secrets = new Array(false, false);
map1_8.specialmessage = 'SORRY ABOBO BUT OUR PRINCESS IS IN ANOTHER DUNGEON.';
map1_8.specialmessage2 = '';
map2_0 = new Array();
map2_0.baddies = new Array();
v1 = new Array(14, 175, 85);
map2_0.baddies.push(v1);
v1 = new Array(13, 105, 134);
map2_0.baddies.push(v1);
map2_0.stairs = new Array();
map2_0.stairs.dest = new Array(0, 2);
map2_0.stairs.pos = new Array(120, 80);
map2_0.locks = new Array(false, false, false, false);
map2_2 = new Array();
map2_2.baddies = new Array();
v1 = new Array(7, 48, 60);
map2_2.baddies.push(v1);
v1 = new Array(7, 176, 34);
map2_2.baddies.push(v1);
v1 = new Array(9, 48, 110);
map2_2.baddies.push(v1);
v1 = new Array(9, 176, 114);
map2_2.baddies.push(v1);
map2_2.locks = new Array(false, false, false, false);
map2_2.slides = new Array(false, false, false, false);
map2_3 = new Array();
map2_3.baddies = new Array();
v1 = new Array(3, 195, 50);
map2_3.baddies.push(v1);
v1 = new Array(3, 125, 50);
map2_3.baddies.push(v1);
v1 = new Array(3, 115, 85);
map2_3.baddies.push(v1);
v1 = new Array(3, 45, 85);
map2_3.baddies.push(v1);
map2_3.locks = new Array(false, false, false, false);
map2_3.gotkey = false;
map2_4 = new Array();
map2_4.baddies = new Array();
v1 = new Array(9, 195, 110);
map2_4.baddies.push(v1);
v1 = new Array(1, 125, 70);
map2_4.baddies.push(v1);
v1 = new Array(9, 175, 85);
map2_4.baddies.push(v1);
v1 = new Array(9, 45, 85);
map2_4.baddies.push(v1);
v1 = new Array(9, 55, 105);
map2_4.baddies.push(v1);
v1 = new Array(1, 155, 125);
map2_4.baddies.push(v1);
map2_4.locks = new Array(false, false, false, false);
map2_4.gotkey = false;
map3_2 = new Array();
map3_2.baddies = new Array();
v1 = new Array(15, 85, 115);
map3_2.baddies.push(v1);
v1 = new Array(15, 85, 50);
map3_2.baddies.push(v1);
v1 = new Array(15, 155, 112);
map3_2.baddies.push(v1);
v1 = new Array(15, 155, 49);
map3_2.baddies.push(v1);
map3_2.locks = new Array(false, true, false, false);
map3_4 = new Array();
map3_4.baddies = new Array();
v1 = new Array(5, 125, 70);
map3_4.baddies.push(v1);
v1 = new Array(5, 175, 85);
map3_4.baddies.push(v1);
map3_4.locks = new Array(false, true, false, false);
map4_0 = new Array();
map4_0.baddies = new Array();
v1 = new Array(13, 175, 85);
map4_0.baddies.push(v1);
v1 = new Array(14, 105, 134);
map4_0.baddies.push(v1);
map4_0.stairs = new Array();
map4_0.stairs.dest = new Array(4, 2);
map4_0.stairs.pos = new Array(120, 80);
map4_0.locks = new Array(false, false, false, false);
map4_2 = new Array();
map4_2.baddies = new Array();
v1 = new Array(11, 125, 85);
map4_2.baddies.push(v1);
map4_2.stairs = new Array();
map4_2.stairs.dest = new Array(4, 0);
map4_2.stairs.pos = new Array(48, 25);
map4_2.stairs.hidden = true;
map4_2.locks = new Array(false, false, false, false);
map4_3 = new Array();
map4_3.baddies = new Array();
v1 = new Array(1, 25, 45);
map4_3.baddies.push(v1);
v1 = new Array(0, 25, 135);
map4_3.baddies.push(v1);
v1 = new Array(0, 215, 35);
map4_3.baddies.push(v1);
v1 = new Array(1, 215, 135);
map4_3.baddies.push(v1);
v1 = new Array(8, 85, 115);
map4_3.baddies.push(v1);
map4_3.locks = new Array(false, false, false, false);
map5_2 = new Array();
map5_2.baddies = new Array();
v1 = new Array(1, 205, 135);
map5_2.baddies.push(v1);
v1 = new Array(1, 85, 115);
map5_2.baddies.push(v1);
v1 = new Array(3, 25, 45);
map5_2.baddies.push(v1);
v1 = new Array(3, 25, 135);
map5_2.baddies.push(v1);
v1 = new Array(8, 45, 95);
map5_2.baddies.push(v1);
map5_2.locks = new Array(false, false, false, false);
map5_2.slides = new Array(false, false, false, false);
map5_3 = new Array();
map5_3.baddies = new Array();
v1 = new Array(4, 45, 35);
map5_3.baddies.push(v1);
v1 = new Array(4, 185, 35);
map5_3.baddies.push(v1);
v1 = new Array(4, 45, 115);
map5_3.baddies.push(v1);
v1 = new Array(4, 185, 115);
map5_3.baddies.push(v1);
v1 = new Array(13, 105, 70);
map5_3.baddies.push(v1);
v1 = new Array(13, 105, 103);
map5_3.baddies.push(v1);
map5_3.locks = new Array(false, false, false, false);
map5_3.slides = new Array(false, false, false, false);
map5_4 = new Array();
map5_4.baddies = new Array();
v1 = new Array(9, 45, 35);
map5_4.baddies.push(v1);
v1 = new Array(9, 185, 35);
map5_4.baddies.push(v1);
v1 = new Array(9, 45, 115);
map5_4.baddies.push(v1);
v1 = new Array(9, 185, 115);
map5_4.baddies.push(v1);
v1 = new Array(9, 105, 70);
map5_4.baddies.push(v1);
map5_4.locks = new Array(false, false, false, false);
map5_4.slides = new Array(false, false, false, false);
map6_1 = new Array();
map6_1.baddies = new Array();
v1 = new Array(2, 105, 100);
map6_1.baddies.push(v1);
v1 = new Array(2, 75, 130);
map6_1.baddies.push(v1);
v1 = new Array(2, 105, 40);
map6_1.baddies.push(v1);
v1 = new Array(2, 35, 100);
map6_1.baddies.push(v1);
v1 = new Array(2, 225, 100);
map6_1.baddies.push(v1);
map6_1.locks = new Array(false, false, false, false);
map6_1.gotkey = false;
map6_2 = new Array();
map6_2.baddies = new Array();
v1 = new Array(4, 125, 100);
map6_2.baddies.push(v1);
v1 = new Array(4, 125, 30);
map6_2.baddies.push(v1);
v1 = new Array(4, 125, 130);
map6_2.baddies.push(v1);
v1 = new Array(3, 65, 80);
map6_2.baddies.push(v1);
v1 = new Array(3, 170, 115);
map6_2.baddies.push(v1);
map6_2.locks = new Array(false, false, false, false);
map6_2.slides = new Array(false, false, false, false);
map6_3 = new Array();
map6_3.baddies = new Array();
v1 = new Array(4, 85, 100);
map6_3.baddies.push(v1);
v1 = new Array(4, 125, 30);
map6_3.baddies.push(v1);
v1 = new Array(4, 95, 130);
map6_3.baddies.push(v1);
v1 = new Array(4, 85, 100);
map6_3.baddies.push(v1);
v1 = new Array(4, 125, 30);
map6_3.baddies.push(v1);
v1 = new Array(4, 125, 80);
map6_3.baddies.push(v1);
v1 = new Array(7, 205, 110);
map6_3.baddies.push(v1);
v1 = new Array(7, 50, 65);
map6_3.baddies.push(v1);
map6_3.locks = new Array(false, false, true, false);
map6_3.slides = new Array(false, false, false, false);
map6_4 = new Array();
map6_4.baddies = new Array();
v1 = new Array(13, 80, 70);
map6_4.baddies.push(v1);
v1 = new Array(13, 80, 102);
map6_4.baddies.push(v1);
v1 = new Array(14, 32, 132);
map6_4.baddies.push(v1);
v1 = new Array(14, 132, 39);
map6_4.baddies.push(v1);
v1 = new Array(1, 132, 90);
map6_4.baddies.push(v1);
v1 = new Array(1, 205, 120);
map6_4.baddies.push(v1);
map6_4.locks = new Array(false, false, true, false);
map6_4.slides = new Array(false, false, false, false);
map6_5 = new Array();
map6_5.baddies = new Array();
v1 = new Array(6, 80, 70);
map6_5.baddies.push(v1);
v1 = new Array(6, 140, 75);
map6_5.baddies.push(v1);
v1 = new Array(6, 200, 40);
map6_5.baddies.push(v1);
v1 = new Array(6, 30, 120);
map6_5.baddies.push(v1);
v1 = new Array(6, 80, 100);
map6_5.baddies.push(v1);
map6_5.locks = new Array(false, false, true, false);
map6_5.slides = new Array(false, false, false, false);
map7_2 = new Array();
map7_2.baddies = new Array();
v1 = new Array(5, 30, 70);
map7_2.baddies.push(v1);
v1 = new Array(5, 30, 70);
map7_2.baddies.push(v1);
map7_2.locks = new Array(false, false, true, false);
map7_2.slides = new Array(false, false, false, false);
map7_3 = new Array();
map7_3.baddies = new Array();
v1 = new Array(10, 190, 75);
map7_3.baddies.push(v1);
map7_3.locks = new Array(false, false, true, false);
map7_3.slides = new Array(false, false, false, false);
map7_4 = new Array();
map7_4.baddies = new Array();
v1 = new Array(2, 35, 135);
map7_4.baddies.push(v1);
v1 = new Array(2, 70, 135);
map7_4.baddies.push(v1);
v1 = new Array(2, 200, 135);
map7_4.baddies.push(v1);
map7_4.locks = new Array(false, false, true, false);
map7_4.slides = new Array(false, false, false, false);
map8_3 = new Array();
map8_3.baddies = new Array();
v1 = new Array(16, 120, 51);
map8_3.baddies.push(v1);
map8_3.locks = new Array(false, false, true, false);
map8_3.slides = new Array(false, false, false, false);
}
function switchTiles(x, y, dudex, dudey, dir, vis) {
var rig = x + 1;
var dwn = y + 1;
var upp = y - 1;
var lef = x - 1;
var b = bgholder;
var t = b.attachMovie('zeldatile' + x + '_' + y, 'center', 0);
t._x = 128 - t._width / 2;
t._y = 127 - t._height / 2;
t.myx = x;
t.myy = y;
t.antiwalk._alpha = 0;
var t = b.attachMovie('zeldatile' + rig + '_' + y, 'rig', 1);
t._x = b.center._x + b.center._width;
t._y = b.center._y;
t.antiwalk._alpha = 0;
t.myx = x + 1;
t.myy = y;
var t = b.attachMovie('zeldatile' + lef + '_' + y, 'lef', 2);
t._x = b.center._x - t._width;
t._y = b.center._y;
t.myx = x - 1;
t.myy = y;
t.antiwalk._alpha = 0;
var t = b.attachMovie('zeldatile' + x + '_' + upp, 'upp', 3);
t._x = b.center._x;
t._y = b.center._y - t._height;
t.myx = x;
t.myy = y - 1;
t.antiwalk._alpha = 0;
var t = b.attachMovie('zeldatile' + x + '_' + dwn, 'dwn', 4);
t._x = b.center._x;
t._y = b.center._y + t._height;
t.myx = x;
t.myy = y + 1;
t.antiwalk._alpha = 0;
var d = b.center.aboboholder.attachMovie('zeldadude', 'dude', 0);
d._x = dudex;
d._y = dudey;
d.guts.gotoAndStop('rest' + dir);
d.dir = dir;
d._visible = vis;
tar = eval('map' + rig + '_' + y);
if (tar.stairs.hidden) {
var aa = bgholder.rig;
aa.stairs._visible = false;
}
if (tar.gotkey) {
var aa = bgholder.rig;
aa.key._visible = false;
}
var i = 0;
while (i < 4) {
if (!tar.locks[i]) {
var aa = bgholder.rig['lockeddoor' + i];
aa._visible = false;
var aa = bgholder.rig.antiwalk['lockeddoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
}
if (tar.breakaways[i]) {
var aa = bgholder.rig['breakaway' + i];
aa.gotoAndStop('broken');
var r = bgholder.rig.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
var i = 0;
while (i < 4) {
if (tar.slides[i]) {
var aa = bgholder.rig;
aa['specdoor' + i]._visible = false;
aa.antiwalk['specdoor' + i].unloadMovie();
aa.antiwalk['specdoor' + i].removeMovieClip();
}
++i;
}
tar = eval('map' + lef + '_' + y);
if (tar.stairs.hidden) {
var aa = bgholder.lef;
aa.stairs._visible = false;
}
if (tar.gotkey) {
var aa = bgholder.lef;
aa.key._visible = false;
}
var i = 0;
while (i < 4) {
if (!tar.locks[i]) {
var aa = bgholder.lef['lockeddoor' + i];
aa._visible = false;
var aa = bgholder.lef.antiwalk['lockeddoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
}
if (tar.breakaways[i]) {
var aa = bgholder.lef['breakaway' + i];
aa.gotoAndStop('broken');
var r = bgholder.lef.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
var i = 0;
while (i < 4) {
if (tar.slides[i]) {
var aa = bgholder.lef;
aa['specdoor' + i]._visible = false;
aa.antiwalk['specdoor' + i].unloadMovie();
aa.antiwalk['specdoor' + i].removeMovieClip();
}
++i;
}
tar = eval('map' + x + '_' + upp);
if (tar.stairs.hidden) {
var aa = bgholder.upp;
aa.stairs._visible = false;
}
if (tar.gotkey) {
var aa = bgholder.upp;
aa.key._visible = false;
}
var i = 0;
while (i < 4) {
if (!tar.locks[i]) {
var aa = bgholder.upp['lockeddoor' + i];
aa._visible = false;
var aa = bgholder.upp.antiwalk['lockeddoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
}
if (tar.breakaways[i]) {
var aa = bgholder.upp['breakaway' + i];
aa.gotoAndStop('broken');
var r = bgholder.upp.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
var i = 0;
while (i < 4) {
if (tar.slides[i]) {
var aa = bgholder.upp;
aa['specdoor' + i]._visible = false;
aa.antiwalk['specdoor' + i].unloadMovie();
aa.antiwalk['specdoor' + i].removeMovieClip();
}
++i;
}
tar = eval('map' + x + '_' + dwn);
if (tar.stairs.hidden) {
var aa = bgholder.dwn;
aa.stairs._visible = false;
}
if (tar.gotkey) {
var aa = bgholder.dwn;
aa.key._visible = false;
}
var i = 0;
while (i < 4) {
if (!tar.locks[i]) {
var aa = bgholder.dwn['lockeddoor' + i];
aa._visible = false;
var aa = bgholder.dwn.antiwalk['lockeddoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
}
if (tar.breakaways[i]) {
var aa = bgholder.dwn['breakaway' + i];
aa.gotoAndStop('broken');
var r = bgholder.dwn.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
var i = 0;
while (i < 4) {
if (tar.slides[i]) {
var aa = bgholder.dwn;
aa['specdoor' + i]._visible = false;
aa.antiwalk['specdoor' + i].unloadMovie();
aa.antiwalk['specdoor' + i].removeMovieClip();
}
++i;
}
tar = eval('map' + x + '_' + y);
if (tar.specialmessage == undefined) {
textwrap._visible = false;
} else {
textwrap._visible = true;
textwrap.datxt.text = '';
var t = textwrap;
t.count = 0;
t.cv = 0;
t.del = 3;
if (!tar.secrets[0]) {
t.dawords = tar.specialmessage;
} else {
t.dawords = tar.specialmessage2;
bgholder.center.secret.guts.gotoAndStop('unlocked');
}
t.onEnterFrame = function () {
if (!this._parent.pausy) {
if (this.count < this.dawords.length) {
++this.cv;
if (this.cv >= this.del) {
this._parent.textsound.start();
this.cv = 0;
this.datxt.text += this.dawords.charAt(this.count);
++this.count;
}
} else {
delete this.onEnterFrame;
}
}
};
}
if (tar.stairs.hidden) {
var aa = bgholder.center;
aa.stairs._visible = false;
}
if (tar.gotkey) {
var aa = bgholder.center;
aa.key._visible = false;
}
var i = 0;
while (i < 4) {
if (!tar.locks[i]) {
var aa = bgholder.center['lockeddoor' + i];
aa._visible = false;
var aa = bgholder.center.antiwalk['lockeddoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
}
if (tar.breakaways[i]) {
var aa = bgholder.center['breakaway' + i];
aa.gotoAndStop('broken');
var r = bgholder.center.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
var i = 0;
while (i < 4) {
if (tar.slides[i]) {
var aa = bgholder.center;
aa['specdoor' + i]._visible = false;
aa.antiwalk['specdoor' + i].unloadMovie();
aa.antiwalk['specdoor' + i].removeMovieClip();
}
++i;
}
if (tar.baddies.length == 0) {
var i = 0;
while (i < 4) {
var aa = bgholder.center.antiwalk['slidedoor' + i];
aa.unloadMovie();
aa.removeMovieClip();
++i;
}
}
var t = bgholder.lef;
if (gotmap) {
t.mappy._visible = false;
}
if (gotcompass) {
t.compass._visible = false;
}
if (gotsuperkey) {
t.superkey._visible = false;
}
if (finaldooropen) {
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
}
var t = bgholder.rig;
if (gotsuperkey) {
t.superkey._visible = false;
}
if (gotmap) {
t.mappy._visible = false;
}
if (gotcompass) {
t.compass._visible = false;
}
if (finaldooropen) {
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
}
var t = bgholder.dwn;
if (gotsuperkey) {
t.superkey._visible = false;
}
if (gotmap) {
t.mappy._visible = false;
}
if (gotcompass) {
t.compass._visible = false;
}
if (finaldooropen) {
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
}
var t = bgholder.upp;
if (gotsuperkey) {
t.superkey._visible = false;
}
if (gotmap) {
t.mappy._visible = false;
}
if (gotcompass) {
t.compass._visible = false;
}
if (finaldooropen) {
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
}
var t = bgholder.center;
bgholder.center.home = bgholder.center._x;
if (gotsuperkey) {
t.superkey._visible = false;
}
if (gotmap) {
t.mappy._visible = false;
}
if (gotcompass) {
t.compass._visible = false;
}
if (finaldooropen) {
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
}
updateFlasher();
this.dabads = new Array();
this.rocks = new Array();
var t = eval('map' + x + '_' + y);
var i = 0;
while (i < t.baddies.length) {
addBad(t.baddies[i][0], t.baddies[i][1], t.baddies[i][2], t, i);
++i;
}
}
function addBad(id, x, y, papa, i) {
var v1 = bgholder.center.baddies.attachMovie('zelda_baddie' + id, 'bad' + i, i + 99);
v1._x = x;
v1._y = y;
v1.dir = random(4);
v1.ai = id;
dabads.push(v1);
v1.aicv = 0;
v1.papa = papa;
v1.id = id;
v1.hitcv = 0;
v1.blinkcv = 0;
v1.xvel = 0;
v1.yvel = 0;
}
function updateFlasher() {
var v1 = bgholder.center;
var v2 = minimap.guts.flasher;
v2._x = v1.myx * 7 + v1.myx * 1 + 2;
v2._y = v1.myy * 3 + v1.myy * 1 + 2;
}
hud = this._parent.hud;
hud._visible = false;
ragemeter = this._parent.fullrage;
ragescene.stop();
ragescene._visible = false;
initData();
switchTiles(1, 3, 120, 80, 2, false);
}
frame 149 {
bgholder.center.aboboholder.dude._visible = true;
}
frame 167 {
function playFanfare() {
if (!mysteryplaying) {
mysteryplaying = true;
bgloop.setVolume(0);
fansound.start();
fansound.onSoundComplete = function () {
bgloop.setVolume(davolume);
mysteryplaying = false;
};
}
}
function playMystery() {
if (!mysteryplaying) {
mysteryplaying = true;
secretsound.start();
secretsound.onSoundComplete = function () {
mysteryplaying = false;
};
}
}
function updateHud(who) {
if (rage < 0) {
rage = 0;
}
if (rage >= 100) {
rage = 100;
dude.raging = true;
dude.gotoAndPlay('raging');
if (!rageup) {
ragegotsound.start();
rageup = true;
ragemeter.gotoAndPlay(2);
}
}
if (rage != 100) {
ragemeter.gotoAndStop(1);
rageup = false;
}
_root.hud.updateRage(rage);
if (hp > maxhp) {
hp = maxhp;
}
if (hp < 0) {
hp = 0;
}
_root.hud.updateMe(this);
if (who != undefined) {
if (who.hp < 0) {
who.hp = 0;
}
hud.updateBad(who);
}
}
function init() {
hearts = new Array();
hud.nam1.text = '';
hud.bar1._xscale = 0;
this.dude = bgholder.center.aboboholder.dude;
dude._visible = true;
updateHud();
dude.xvel = 0;
dude.yvel = 0;
dude.attacking = false;
dude.speed = 1.83;
dude.atkcv = 0;
dude.hitcv = 0;
dude.blinkcv = 0;
dude.gotoAndStop(1);
if (dude.raging) {
dude.gotoAndPlay('raging');
}
dude.counter.text = '';
waters = new Array();
traps = new Array();
stomps = new Array();
stomppointer = 0;
var v3 = 'map' + bgholder.center.myx + '_' + bgholder.center.myy;
if (v3 != 'map1_8') {
delete textwrap.onEnterFrame;
} else {
_root.aboboMedal('Another Castle');
}
}
function registerTrap(who) {
traps.push(who);
who.homex = who._x;
who.homey = who._y;
who.powa = 5;
var v3 = 0;
while (v3 < who.comps.length) {
if (who.comps[v3] != '') {
var v2 = bgholder.center['trap' + who.comps[v3]];
if (v2._y == who._y) {
var v4 = Math.abs(v2._x - who._x);
if (v2._x > who._x) {
who.goalx = who._x + v4 / 2 - 8;
} else {
who.goalx = who._x - v4 / 2 + 8;
}
}
if (v2._x == who._x) {
v4 = Math.abs(v2._y - who._y);
if (v2._y > who._y) {
who.goaly = who._y + v4 / 2 - 8;
} else {
who.goaly = who._y - v4 / 2 + 8;
}
}
}
++v3;
}
who.registered = true;
}
function registerWater(who) {
if (who._parent._parent == bgholder.center) {
waters.push(who);
}
}
function phys(who) {
if (who.raging) {
if (who._currentframe > 1) {
who.play();
}
}
var v11 = bgholder.center.prize;
if (who.hit) {
++who.hitcv;
++who.blinkcv;
if (who.blinkcv >= 3) {
who.blinkcv = 0;
who._visible = !who._visible;
}
if (who.hitcv >= 25) {
who.hitcv = 0;
who._visible = true;
who.hit = false;
}
}
if (v11.hitTest(who.guts.hitarea) && v11._visible) {
playFanfare();
v11._visible = false;
who.guts.gotoAndStop('prize0');
who.guts.prizewrap.attachMovie(v11.typ, 'guts', 0);
gotprize = true;
pausy = true;
nokeys = true;
if (v11.typ == 'zelda_ladder') {
gotraft = true;
_root.aboboMedal('Walk On Water');
}
if (v11.typ == 'zelda_meatprize') {
_root.aboboMedal('Mmm Beefy');
gotmeat = true;
hp = 100;
updateHud();
}
}
var v6 = bgholder.center.antiwalk;
var v3 = bgholder.center.water;
who._x += who.xvel;
var v14 = screenshake * shakedir;
who.virtx = bgholder.center._x + who._x + v14;
who.virty = bgholder.center._y + who._y;
if (gotraft) {
who.bridgecomp = undefined;
var v5 = 0;
while (v5 < waters.length) {
var v4 = waters[v5];
var v10 = who.virtx;
var v9 = who.virty;
if (shitTest(v4, v10, v9)) {
var v8 = bgholder.center.aboboholder.attachMovie('zelda_bridge', 'bridge', who.getDepth() - 1);
v8._x = v4._x + v3._x;
v8._y = v4._y + v3._y;
who.bridgecomp = v4;
}
++v5;
}
if (!shitTest(bgholder.center.aboboholder.bridge, who.virtx, who.virty)) {
bgholder.center.aboboholder.bridge.unloadMovie();
bgholder.center.aboboholder.bridge.removeMovieClip();
}
}
var v7 = bgholder.center.specblock.guts;
for (;;) {
if (!(shitTest(v6, who.virtx + 5, who.virty) || shitTest(v3, who.virtx + 5, who.virty) && !gotraft || shitTest(v7, who.virtx + 5, who.virty))) break;
who._x -= 1;
who.virtx -= 1;
who.xvel = 0;
}
for (;;) {
if (!(shitTest(v6, who.virtx - 5, who.virty) || shitTest(v3, who.virtx - 5, who.virty) && !gotraft || shitTest(v7, who.virtx - 5, who.virty))) break;
who._x += 1;
who.virtx += 1;
who.xvel = 0;
}
if (who.inflated) {
++who.countcv;
who.counter._x = who._x;
who.counter._y = who._y;
if (who.countcv >= 24) {
who.countcv = 0;
--who.countdown;
who.counter.msg.text = who.countdown;
who.counter.msg2.text = who.countdown;
if (who.countdown < 0) {
_root.aboboMedal('No Fatty Pop');
who.inflated = false;
who.counter.unloadMovie();
who.counter.removeMovieClip();
who.speed = 1.83;
dude.waitcv = 0;
minigamerunning = false;
who.xgoal = undefined;
textwrap._visible = false;
bgloop.setVolume(davolume);
}
}
if (who._x > 204) {
who._x = 204;
}
if (who._x < 32) {
who._x = 32;
}
}
who._y += who.yvel;
who.virty = bgholder.center._y + who._y;
for (;;) {
if (!(shitTest(v6, who.virtx, who.virty + 3) || shitTest(v3, who.virtx, who.virty + 3) && !gotraft || shitTest(v7, who.virtx, who.virty + 3))) break;
who._y -= 1;
who.virty -= 1;
who.yvel = 0;
}
for (;;) {
if (!(shitTest(v6, who.virtx, who.virty - 5) || shitTest(v3, who.virtx, who.virty - 5) && !gotraft || shitTest(v7, who.virtx, who.virty - 5))) break;
who._y += 1;
who.virty += 1;
who.yvel = 0;
}
if (who.inflated) {
if (who._y > 132) {
who._y = 132;
}
if (who._y < 32) {
who._y = 32;
}
}
who.xvel *= FRIC;
who.yvel *= FRIC;
var v13 = Math.abs(who.xvel);
if (v13 < 1) {
who.xvel = 0;
}
var v12 = Math.abs(who.yvel);
if (v12 < 1) {
who.yvel = 0;
}
if (who.hit || infinalbattle && !bigfinale || screenshake != 0) {
if (who._x < 32) {
who._x = 32;
}
if (who._y < 32) {
who._y = 32;
}
if (who._x > 232) {
who._x = 232;
}
if (who._y > 160) {
who._y = 160;
}
}
}
function throwSword(who) {
if (!swordon) {
shootsound.start();
swordon = true;
if (!gotmeat) {
var v1 = bgholder.center.attachMovie('zelda_swordproj', 'sword' + effcv, effcv + 999);
} else {
var v1 = bgholder.center.attachMovie('zelda_meatproj', 'sword' + effcv, effcv + 999);
}
++effcv;
dasword = v1;
v1._x = who._x;
v1._y = who._y - 2;
v1.xvel = 0;
v1.yvel = 0;
v1.sp = 6;
v1.dir = who.dir;
if (who.dir == 0) {
v1._rotation = -90;
v1.yvel = -v1.sp;
}
if (who.dir == 1) {
v1.xvel = v1.sp;
}
if (who.dir == 2) {
v1._rotation = 90;
v1.yvel = v1.sp;
}
if (who.dir == 3) {
v1._rotation = 180;
v1.xvel = -v1.sp;
}
v1._x += v1.xvel * 2;
v1._y += v1.yvel * 2;
}
}
function moveSwordProj() {
if (swordon) {
var v2 = false;
var v1 = dasword;
v1._x += v1.xvel;
v1._y += v1.yvel;
if (v1._x >= 220) {
v2 = true;
v1._x = 220;
}
if (v1._x <= 20) {
v2 = true;
v1._x = 20;
}
if (v1._y >= 140) {
v1._y = 140;
v2 = true;
}
if (v1._y <= 20) {
v1._y = 20;
v2 = true;
}
if (v2) {
makeSwordSplode(v1);
} else {
chkSlash(v1, v1.hitarea, true);
}
}
}
function makeSwordSplode(who) {
var v1 = bgholder.center.attachMovie('zelda_swordsplode', 'splode' + effcv, effcv + 7122);
++effcv;
v1._x = who._x;
v1._y = who._y;
swordon = false;
who.unloadMovie();
who.removeMovieClip();
}
function rageDestroy() {
screenshake = 5;
var v2 = 0;
while (v2 < dabads.length) {
var v1 = dabads[v2];
v1.hit = false;
if (v1.form != 0 && v1.hp > 0) {
chkSlash(dude, bgholder.center, false, true);
}
++v2;
}
v2 = 0;
while (v2 < dabads.length) {
v1 = dabads[v2];
v1.hit = false;
if (v1.form != 0 && v1.hp > 0) {
chkSlash(dude, bgholder.center, false, true);
}
++v2;
}
}
function endRageMove() {
this.dude = bgholder.center.aboboholder.dude;
dude.guts.gotoAndStop('rest2');
dude.dir = 2;
if (!bigfinale) {
pausy = false;
nokeys = false;
}
dude.raging = false;
dude.attacking = false;
bgholder.center.aboboholder.swapDepths(returnswap);
bgloop.setVolume(davolume);
}
function rageShow() {
this.dude = bgholder.center.aboboholder.dude;
dude.guts.gotoAndStop('ragemove');
bgholder.center.aboboholder.swapDepths(bgholder.center.getNextHighestDepth());
}
function runRageMove() {
this.dude = bgholder.center.aboboholder.dude;
this.returnswap = bgholder.center.aboboholder.getDepth();
pausy = true;
nokeys = true;
dude.guts.gotoAndStop('rest2');
bgloop.setVolume(0);
who.attacking = false;
ragescene._visible = true;
ragescene.gotoAndPlay(1);
_root.aboboMedal('Super Slash');
var v4 = 0;
while (v4 < dabads.length) {
var v3 = dabads[v4];
if (v3.nam == 'Old Giant' && v3.hp > 0) {
v3.guts.gotoAndStop('rest2');
v3.attacking = false;
v3.dir = 2;
v3.resting = true;
v3.hit = false;
}
++v4;
}
}
function controls(who) {
var v6 = false;
if (!who.inflated) {
if (!who.snail) {
animthing = 'rest';
} else {
animthing = 'snailrest';
++who.snailcv;
if (who.snailcv >= 24) {
who.snailcv = 0;
--who.countdown;
if (who.countdown < 0) {
who.snail = false;
animthing = 'rest';
who.speed = 1.83;
who.counter.unloadMovie();
who.counter.removeMovieClip();
}
}
who.counter._x = who._x;
who.counter._y = who._y;
who.counter.msg.text = who.countdown;
who.counter.msg2.text = who.countdown;
}
} else {
animthing = 'inflatedrest';
}
if (!Key.isDown(A)) {
aup = true;
}
if (!Key.isDown(S)) {
bup = true;
}
if (who.raging) {
++ragepoofcv;
if (ragepoofcv >= 4) {
rafepoofcv = 0;
var v7 = bgholder.center.aboboholder.attachMovie('zelda_smokewrap', 'poof' + effcv, effcv + 99912);
++effcv;
v7._x = who._x + (random(12) - 6);
v7._y = who._y - random(12);
var v8 = random(2);
if (v8 == 0) {
v8 = -1;
}
v7._xscale = 100 * v8;
v8 = random(2);
if (v8 == 0) {
v8 = -1;
}
v7._yscale = 100 * v8;
}
if (Key.isDown(S) && Key.isDown(A)) {
runRageMove();
bup = false;
aup = false;
who.raging = false;
who.gotoAndStop(1);
rage = 0;
updateHud();
}
}
if (bup && Key.isDown(S)) {
bup = false;
}
if (Key.isDown(A) && aup) {
aup = false;
if (!who.inflated && !who.snail) {
if (!who.attacking) {
slashsound.start();
if (!gotmeat) {
animthing = 'attack';
} else {
animthing = 'meat';
}
who.attacking = true;
}
}
}
if (who.attacking) {
if (!gotmeat) {
animthing = 'attack';
} else {
animthing = 'meat';
}
++who.atkcv;
if (who.atkcv == 4) {
if (hp >= 100) {
throwSword(who);
}
}
if (who.atkcv >= 6) {
who.atkcv = 0;
who.attacking = false;
who.guts.gotoAndStop('rest' + who.dir);
}
}
if (!who.attacking) {
if (Key.isDown(R)) {
who.xvel += who.speed;
v6 = true;
who.dir = 1;
}
if (Key.isDown(L)) {
who.xvel -= who.speed;
v6 = true;
who.dir = 3;
}
if (Key.isDown(U)) {
who.yvel -= who.speed;
v6 = true;
who.dir = 0;
}
if (Key.isDown(D)) {
who.yvel += who.speed;
v6 = true;
who.dir = 2;
}
if (who.bridgecomp != undefined) {
var v5 = false;
var v2 = 0;
while (v2 < who.bridgecomp.allowable.length) {
var v4 = who.bridgecomp.allowable[v2];
if (v4 == who.dir) {
v5 = true;
}
++v2;
}
if (!v5) {
who.xvel = 0;
who.yvel = 0;
if (who.dir == 1 || who.dir == 3) {
who._x = who.bridgecomp._x + who.bridgecomp._width / 2 + bgholder.center.water._x;
}
if (who.dir == 0 || who.dir == 2) {
who._y = who.bridgecomp._y + who.bridgecomp._height / 2 + bgholder.center.water._y;
}
}
}
if (who.dir == 1 || who.dir == 3) {
who.yvel = 0;
}
if (who.dir == 0 || who.dir == 2) {
who.xvel = 0;
}
}
if (who._x > 240) {
if (bgholder.center.myx == 8 && bgholder.center.myy == 3) {
bgholder.center.fader.play();
pausy = true;
nokeys = true;
return undefined;
}
who._x = 240;
tranny = true;
trandir = 1;
}
if (who._x < 0 && !infinalbattle) {
who._x = 0;
tranny = true;
trandir = -1;
}
if (who._y < 0) {
who._y = 0;
tranny = true;
trandir = 2;
}
if (who._y > 160) {
who._y = 160;
tranny = true;
trandir = 3;
}
if (tranny) {
waters = new Array();
v2 = 0;
while (v2 < dabads.length) {
var v3 = dabads[v2];
v3.unloadMovie();
v3.removeMovieClip();
++v2;
}
}
if (v6) {
if (!who.inflated) {
if (!who.snail) {
animthing = 'walk';
} else {
animthing = 'snailmove';
}
} else {
animthing = 'inflatedwalk';
}
}
if (who.dir == undefined) {
who.dir = 2;
}
who.guts.gotoAndStop(animthing + who.dir);
who.animthing = animthing;
}
function finalScene() {
pausy = true;
nokeys = true;
delete this.onEnterFrame;
hud._visible = false;
gotoAndStop('endcut');
}
function runTran() {
var v2 = dude._x;
var v1 = dude._y;
if (trandir == 1) {
bgholder._x -= transpeed;
if (bgholder._x < -240) {
var v4 = bgholder.center.myx + 1;
var v3 = bgholder.center.myy;
bgholder._x = 0;
bgholder._y = 0;
switchTiles(v4, v3, 10, v1, dude.dir);
tranny = false;
trandir = 0;
init();
}
}
if (trandir == -1) {
bgholder._x += transpeed;
if (bgholder._x > 240) {
v4 = bgholder.center.myx - 1;
v3 = bgholder.center.myy;
bgholder._x = 0;
bgholder._y = 0;
switchTiles(v4, v3, 230, v1, dude.dir);
tranny = false;
trandir = 0;
init();
}
}
if (trandir == 2) {
bgholder._y += transpeed;
if (bgholder._y > 160) {
v4 = bgholder.center.myx;
v3 = bgholder.center.myy - 1;
bgholder._x = 0;
bgholder._y = 0;
switchTiles(v4, v3, v2, 150, dude.dir);
tranny = false;
trandir = 0;
init();
}
}
if (trandir == 3) {
bgholder._y -= transpeed;
if (bgholder._y < -160) {
v4 = bgholder.center.myx;
v3 = bgholder.center.myy + 1;
bgholder._x = 0;
bgholder._y = 0;
switchTiles(v4, v3, v2, 10, dude.dir);
tranny = false;
trandir = 0;
init();
}
}
}
function chkSliders() {
if (dabads.length == 0 && !infinalbattle) {
var gounlock = false;
var i = 0;
while (i < 4) {
var s = bgholder.center['slidedoor' + i];
if (s._visible) {
gounlock = true;
s._visible = false;
var bl = bgholder.center.antiwalk['slidedoor' + i];
bl.unloadMovie();
bl.removeMovieClip();
}
var a = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
a.baddies = new Array();
++i;
}
if (gounlock) {
unlocksound.start();
}
}
}
function chkStairs(who) {
var tar = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
if (!stairtran) {
if (tar.stairs != undefined && bgholder.center.stairs._visible) {
var s = bgholder.center.stairs;
if (s.hitTest(who.guts.hitarea)) {
who._x = s._x + s._width / 2;
who._y = s._y + s._height / 2;
pausy = true;
nokeys = true;
stairtran = true;
who._visible = false;
who.guts.gotoAndStop('rest2');
fader.gotoAndPlay(2);
stairsound.start();
}
}
} else {
++staircv;
if (staircv == 17) {
switchTiles(tar.stairs.dest[0], tar.stairs.dest[1], tar.stairs.pos[0], tar.stairs.pos[1], 2);
who._visible = true;
}
if (staircv >= 39) {
staircv = 0;
stairtran = false;
pausy = false;
nokeys = false;
init();
}
}
}
function chkPrize() {
if (gotprize) {
++prizecv;
if (prizecv >= 50) {
prizecv = 0;
gotprize = false;
pausy = false;
nokeys = false;
dude.dir = 2;
dude.guts.gotoAndStop('rest2');
}
}
}
function blockSlid(who) {
var tar = bgholder.center['specdoor' + who.comp];
tar._visible = false;
var tar = bgholder.center.antiwalk['specdoor' + who.comp];
tar.unloadMovie();
tar.removeMovieClip();
_root.aboboMedal('Pushy');
var dax = bgholder.center.myx;
var day = bgholder.center.myy;
var thing = eval('map' + dax + '_' + day);
thing.slides[who.comp] = true;
}
function chkSpecBlock() {
var v1 = bgholder.center.specblock;
var v3 = v1.dir;
var v2 = v1['pad' + v3];
if (shitTest(v2, dude.virtx, dude.virty) && !v2.triggered) {
if (dude.dir == v3 && dude.animthing == 'walk') {
++specpush;
if (specpush >= 7) {
specpush = 0;
v2.triggered = true;
v1.gotoAndPlay('slide' + v3);
playMystery();
}
} else {
specpush = 0;
}
}
}
function chkKey() {
var t = bgholder.center;
var dat = eval('map' + t.myx + '_' + t.myy);
if (!gotsuperkey) {
if (t.superkey.hitTest(dude.guts.hitarea)) {
itemsound.start();
gotsuperkey = true;
t.superkey._visible = false;
}
}
if (gotsuperkey && !finaldooropen) {
var h = t.superdoor;
if (h.hitTest(dude.guts.hitarea) && h._visible) {
unlocksound.start();
t.superdoor._visible = false;
t.antiwalk.superdoor.unloadMovie();
t.antiwalk.superdoor.removeMovieClip();
finaldooropen = true;
var agua = false;
var i = 0;
while (i < dabads.length) {
var a = dabads[i];
if (a.ai == 10) {
agua = true;
}
++i;
}
if (agua) {
_root.aboboMedal('Sneaky');
}
}
}
if (dude.guts.hitarea.hitTest(t.key) && t.key._visible) {
t.key._visible = false;
dat.gotkey = true;
++keys;
heartsound.start();
}
if (keys > 0) {
var i = 0;
while (i < 4) {
var d = t['lockeddoor' + i];
if (d.hitTest(dude.guts.hitarea) && d._visible) {
unlocksound.start();
dat.locks[i] = false;
--keys;
d._visible = false;
t.antiwalk['lockeddoor' + i].unloadMovie();
t.antiwalk['lockeddoor' + i].removeMovieClip();
}
++i;
}
}
}
function chkCompass() {
var v4 = bgholder.center;
var v2 = v4.compass;
var v3 = v4.mappy;
if (v3.hitTest(dude.guts.hitarea) && v3._visible) {
v3._visible = false;
gotmap = true;
_root.aboboMedal('Familiar Shape');
itemsound.start();
minimap.gotoAndStop('normmap');
if (gotcompass) {
minimap.gotoAndStop('blinkmap');
}
updateFlasher();
}
if (v2.hitTest(dude.guts.hitarea) && v2._visible) {
v2._visible = false;
minimap._visible = true;
gotcompass = true;
_root.aboboMedal('Where To?');
itemsound.start();
if (!gotmap) {
minimap.gotoAndStop('blink');
} else {
minimap.gotoAndStop('blinkmap');
}
updateFlasher();
}
}
function moveBads() {
var v3 = 0;
while (v3 < dabads.length) {
var v2 = dabads[v3];
if (v2.revealed && v2._parent._parent == this.bgholder.center) {
switch (v2.ai) {
case 0:
ai0(v2);
break;
case 1:
ai1(v2);
break;
case 2:
ai2(v2);
break;
case 3:
ai3(v2);
break;
case 4:
ai4(v2);
break;
case 5:
ai5(v2);
break;
case 6:
ai6(v2);
break;
case 7:
ai7(v2);
break;
case 8:
ai8(v2);
break;
case 9:
ai9(v2);
break;
case 10:
ai10(v2);
break;
case 11:
ai11(v2);
break;
case 12:
ai12(v2);
break;
case 13:
ai13(v2);
break;
case 14:
ai14(v2);
break;
case 15:
ai15(v2);
break;
case 16:
ai16(v2);
break;
case 17:
ai17(v2);
break;
case 18:
ai18(v2);
}
}
++v3;
}
}
function restrain(who) {
var v14 = bgholder.center.antiwalk;
var v4 = bgholder.center.water;
who.virtx = who._x + bgholder.center._x;
who.virty = who._y + bgholder.center._y;
var v10 = who.virty - 16;
var v11 = who.virtx - 8;
var v8 = who.virty;
var v9 = who.virtx + 8;
var v2 = new Array();
var v7 = bgholder.center.specblock.guts;
for (;;) {
if (!(shitTest(c, who.virtx + 5, who.virty) || shitTest(v4, who.virtx + 5, who.virty) && !gotraft || shitTest(v7, who.virtx + 5, who.virty))) break;
v2.push(3);
who._x -= 1;
who.virtx -= 1;
who.xvel = 0;
}
for (;;) {
if (!(shitTest(c, who.virtx - 5, who.virty) || shitTest(v4, who.virtx - 5, who.virty) && !gotraft || shitTest(v7, who.virtx - 5, who.virty))) break;
v2.push(1);
who._x += 1;
who.virtx += 1;
who.xvel = 0;
}
for (;;) {
if (!(shitTest(c, who.virtx, who.virty + 3) || shitTest(v4, who.virtx, who.virty + 3) && !gotraft || shitTest(v7, who.virtx, who.virty + 3))) break;
v2.push(0);
who._y -= 1;
who.virty -= 1;
who.yvel = 0;
}
for (;;) {
if (!(shitTest(c, who.virtx, who.virty - 5) || shitTest(v4, who.virtx, who.virty - 5) && !gotraft || shitTest(v7, who.virtx, who.virty - 5))) break;
v2.push(2);
who._y += 1;
who.virty += 1;
who.yvel = 0;
}
if (shitTest(v14, who.virtx, v10) || shitTest(v4, who.virtx, v10 + 1)) {
if (who.bouncy) {
who.yvel *= -0.7;
}
if (!who.hit) {
for (;;) {
if (!(shitTest(v14, who.virtx, v10) || shitTest(v4, who.virtx, v10 + 1))) break;
who._y += 1;
who.virty += 1;
v10 += 1;
}
}
v2.push(0);
}
if (shitTest(v14, who.virtx, v8) || shitTest(v4, who.virtx, v8 - 1)) {
if (who.bouncy) {
who.yvel *= -0.7;
}
if (!who.hit) {
for (;;) {
if (!(shitTest(v14, who.virtx, v8) || shitTest(v4, who.virtx, v8 - 1))) break;
who._y -= 1;
who.virty -= 1;
v8 -= 1;
}
}
v2.push(2);
}
if (shitTest(v14, v11, who.virty - 8) || shitTest(v4, v11 + 1, who.virty - 8)) {
if (who.bouncy) {
who.xvel *= -0.7;
}
if (!who.hit) {
for (;;) {
if (!(shitTest(v14, v11, who.virty - 8) || shitTest(v4, v11 + 1, who.virty - 8))) break;
who._x += 1;
who.virtx += 1;
v11 += 1;
}
}
v2.push(3);
}
if (shitTest(v14, v9, who.virty - 8) || shitTest(v4, v9 - 1, who.virty - 8)) {
if (who.bouncy) {
who.xvel *= -0.7;
}
if (!who.hit) {
for (;;) {
if (!(shitTest(v14, v9, who.virty - 8) || shitTest(v4, v9 - 1, who.virty - 8))) break;
who._x -= 1;
who.virtx -= 1;
v9 -= 1;
}
}
v2.push(1);
}
var v12 = new Array();
var v5 = 0;
while (v5 < 4) {
var v6 = true;
var v3 = 0;
while (v3 < v2.length) {
if (v2[v3] == v5) {
v6 = false;
}
++v3;
}
if (v6) {
v12.push(v5);
}
++v5;
}
if (v2.length > 0) {
who.dir = v12[random(v12.length)];
if (!who.bouncy) {
who.xvel = 0;
who.yvel = 0;
}
}
v2 = new Array();
var v13 = 24;
var v16 = 24;
var v15 = 216;
v14 = 136;
if (who._x > v15 - 8) {
if (who.bouncy) {
who.xvel *= -0.7;
}
who._x = v15 - 8;
v2.push(1);
}
if (who._x < v16 + 8) {
if (who.bouncy) {
who.xvel *= -0.7;
}
who._x = v16 + 8;
v2.push(3);
}
if (who._y < v13 + 16) {
if (who.bouncy) {
who.yvel *= -0.7;
}
who._y = v13 + 16;
v2.push(0);
}
if (who._y > v14) {
if (who.bouncy) {
who.yvel *= -0.7;
}
who._y = v14;
v2.push(2);
}
v12 = new Array();
v5 = 0;
while (v5 < 4) {
v6 = true;
v3 = 0;
while (v3 < v2.length) {
if (v2[v3] == v5) {
v6 = false;
}
++v3;
}
if (v6) {
v12.push(v5);
}
++v5;
}
if (v2.length > 0) {
who.dir = v12[random(v12.length)];
if (!who.bouncy) {
who.xvel = 0;
who.yvel = 0;
}
}
}
function ai0(who) {
if (who.hp == undefined) {
who.hp = 3;
who.maxhp = who.hp;
who.powa = 5;
}
var v2 = 0.6;
++who.aicv;
if (who.aicv >= 90) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai1(who) {
if (who.hp == undefined) {
who.hp = 1;
who.maxhp = who.hp;
who.powa = 5;
}
var v2 = 0.4;
++who.aicv;
if (who.aicv >= 90) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
who._xscale = -100;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
who._xscale = 100;
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai2(who) {
if (who.hp == undefined) {
who.hp = 4;
who.maxhp = who.hp;
who.powa = 5;
}
var v2 = 0.8;
++who.aicv;
if (who.aicv >= 90) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
who._xscale = -100;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
who._xscale = 100;
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai5(who) {
if (who.hp == undefined) {
who.hp = 2;
who.maxhp = who.hp;
who.powa = 5;
who.waittime = 10;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
++who.aicv;
if (who.aicv >= who.waittime) {
if (who.aicv == who.waittime) {
var v2 = waters[random(waters.length)];
who._x = v2._x + bgholder.center.water._x + v2._width / 2;
who._y = v2._y + bgholder.center.water._y + v2._height / 2;
who.guts.gotoAndStop('warn');
}
if (who.aicv == who.waittime + 40) {
who.guts.gotoAndStop('up');
}
if (who.aicv == who.waittime + 60) {
shootStone(who);
}
if (who.aicv == who.waittime + 90) {
who.guts.gotoAndStop('down');
who.aicv = 0;
}
}
}
function ai6(who) {
if (who.hp == undefined) {
who.bouncy = true;
who.hp = 3;
who.maxhp = who.hp;
who.powa = 5;
who.xvel = 0;
who.yvel = 0;
who.sp = 0.15;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
if (who.dir == 1) {
who.xvel += who.sp;
}
if (who.dir == 3) {
who.xvel -= who.sp;
}
if (who.dir == 0) {
who.yvel -= who.sp;
}
if (who.dir == 2) {
who.yvel += who.sp;
}
if (who.dir == 1) {
who._xscale = 100;
}
if (who.dir == 3) {
who._xscale = -100;
}
who._x += who.xvel;
who._y += who.yvel;
badHit(who);
who.xvel *= 0.99;
who.yvel *= 0.99;
restrain(who);
}
function ai7(who) {
if (who.hp == undefined) {
who.swapDepths(bg.holder.baddies.getNextHighestDepth());
who.hp = 2;
who.maxhp = who.hp;
who.powa = 5;
who.xvel = 0;
who.yvel = 0;
who.sp = 2;
who.fpointer = 1;
who.flapcv = 0;
who.flapgoal = 7;
who.goalmove = 3 + random(80);
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
++who.aicv;
if (who.aicv >= who.goalmove) {
who.guts.gotoAndStop('flap');
who.guts.guts2.stop();
++who.flapcv;
if (!who.gotdir) {
who.inv = true;
who.gotdir = true;
who.xdir = random(3);
if (who.xdir == 2) {
who.xdir = -1;
}
who.ydir = random(3);
if (who.ydir == 2) {
who.ydir = -1;
}
if (who.ydir == 0 && who.xdir == 0) {
who.ydir = random(2);
if (who.ydir == 0) {
who.ydir = -1;
}
who.xdir = random(2);
if (who.xdir == 0) {
who.xdir = -1;
}
}
who.flightlength = 85 + random(45);
}
if (who.flapcv >= who.flapgoal) {
who.flapcv = 0;
if (who.flapgoal > -who.flightlength && !who.rev) {
--who.flapgoal;
if (who.flapgoal <= -who.flightlength) {
who.rev = true;
}
}
if (who.rev) {
++who.flapgoal;
if (who.flapgoal >= 9) {
who.flapgoal = 7;
who.rev = false;
who.aicv = 0;
who.guts.gotoAndStop('rest');
who.flapcv = 0;
who.goalmove = 20 + random(50);
who.gotdir = false;
who.inv = false;
}
}
who.guts.guts2.gotoAndStop('f' + who.fpointer);
if (who.fpointer == 0) {
who.fpointer = 1;
who._x += who.xdir * who.sp;
who._y += who.ydir * who.sp;
restrain2(who);
} else {
who.fpointer = 0;
}
}
}
badHit(who);
}
function restrain2(who) {
if (who._x > 208) {
who.xdir *= -1;
who._x = 208;
}
if (who._x < 32) {
who.xdir *= -1;
who._x = 32;
}
if (who._y > 136) {
who.ydir *= -1;
who._y = 136;
}
if (who._y < 40) {
who.ydir *= -1;
who._y = 40;
}
}
function restrain3(who) {
if (who._x > 232) {
who.xdir *= -1;
who._x = 232;
}
if (who._x < 8) {
who.xdir *= -1;
who._x = 8;
}
if (who._y > 160) {
who.ydir *= -1;
who._y = 160;
}
if (who._y < 24) {
who.ydir *= -1;
who._y = 24;
}
}
function restrain4(who) {
if (who._x > 208) {
who.xdir *= -1;
who._x = 208;
}
if (who._x < 32) {
who.xdir *= -1;
who._x = 32;
}
if (who._y > 136) {
who.ydir *= -1;
who._y = 136;
}
if (who._y < 24) {
who.ydir *= -1;
who._y = 24;
}
}
function ai8(who) {
if (who.hp == undefined) {
who.volatile = true;
who.hp = 3;
who.maxhp = who.hp;
who.powa = 5;
who.fuse = 20 + random(550);
}
var v2 = 0.8;
if (who.dir == 1) {
who._xscale = 100;
}
if (who.dir == 3) {
who._xscale = -100;
}
--who.fuse;
if (who.fuse <= 0) {
who.xvel = 0;
who.yvel = 0;
who._xscale = 100;
if (who.fuse > -30) {
who.guts.gotoAndStop('warn');
} else {
who.hp = 0;
who.inv = true;
who.powa = 25;
who.guts.gotoAndStop('splode');
if (!who.soundplayed) {
who.soundplayed = true;
screenshake = 5;
bombsound.start();
updateHud(who);
}
if (who.fuse < -45) {
removeBad(who);
}
}
}
++who.aicv;
if (who.aicv >= 90) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.fuse > 0) {
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai9(who) {
if (who.hp == undefined) {
who.hp = 1;
who.maxhp = who.hp;
who.powa = 5;
who.jumpcv = 0;
who.jumptime = 20 + random(120);
}
++who.aicv;
if (who.aicv >= who.jumptime && !who.jumping) {
who.jumping = true;
who.yvel = -6 - random(8);
who.xvel = random(14) - 7;
who.guts.gotoAndStop('jump');
who.jumplength = 9 + random(10);
}
if (who.jumping) {
++who.jumpcv;
if (who.jumpcv >= who.jumplength) {
who.jumpcv = 0;
who.jumping = false;
who.guts.gotoAndStop('bounce');
who.xvel = 0;
who.yvel = 0;
who.aicv = 0;
who.jumptime = 15 + random(50);
}
}
who._y += who.yvel;
who._x += who.xvel;
if (who.jumping) {
who.yvel += 1.5;
}
who.xvel *= 0.8;
badHit(who);
if (who.jumping) {
restrain2(who);
} else {
restrain2(who);
}
}
function ai10(who) {
if (who.hp == undefined) {
who.hp = 14;
who.maxhp = who.hp;
who.powa = 5;
who.dirr = -1;
who.shootcv = 0;
who.yellcv = 0;
who.miniboss = true;
}
++who.yellcv;
if (who.yellcv >= 100) {
who.yellcv = 0;
yellsound.start();
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
if (who.hitcv == 0) {
bosshitsound.start();
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
++who.aicv;
++who.shootcv;
if (who.shootcv >= 80) {
who.shootcv = 0;
shootStone(who, undefined, undefined, who._x - 10, who._y - 22, 20);
shootStone(who, undefined, undefined, who._x - 10, who._y - 10, 20);
shootStone(who, undefined, undefined, who._x - 10, who._y + 2, 20);
}
if (who.aicv >= 30) {
who.aicv = 0;
if (who.dirr == 1) {
who.dirr = -1;
} else {
who.dirr = 1;
}
}
who._x += who.dirr * 1;
badHit(who);
restrain(who);
}
function ai11(who) {
if (who.hp == undefined) {
who.miniboss = true;
who.hp = 3;
who.yellcv = 0;
who.maxhp = who.hp;
who.powa = 5;
who.sp = 0.5;
who.shootcv = 0;
who.shootmax = 70;
who.dirx = random(2);
if (who.dirx == 0) {
who.dirx = -1;
}
who.diry = random(2);
if (who.diry == 0) {
who.diry = -1;
}
}
++who.yellcv;
if (who.yellcv >= 100) {
who.yellcv = 0;
yellsound.start();
}
var v3 = 0;
while (v3 < 5) {
var v1 = who.guts['tar' + v3];
if (!v1.dead) {
badHit(v1);
if (v1.hit) {
++v1.blinkcv;
if (v1.blinkcv >= 2) {
v1.blinkcv = 0;
v1._visible = !v1._visible;
}
++v1.hitcv;
if (v1.hitcv >= 15) {
v1.hitcv = 0;
v1.hit = false;
v1._visible = true;
}
}
}
++v3;
}
++who.shootcv;
if (who.shootcv >= who.shootmax) {
who.shootcv = 0;
shootStone(who, undefined, undefined, undefined, undefined, 15);
}
++who.aicv;
if (who.aicv >= 30) {
who.aicv = 0;
who.dirx = random(3);
if (who.dirx == 2) {
who.dirx = -1;
}
who.diry = random(3);
if (who.diry == 2) {
who.diry = -1;
}
if (who.diry == 0 && who.dirx == 0) {
who.dirx = random(2);
if (who.dirx == 0) {
who.dirx = -1;
}
}
}
who._x += who.dirx * who.sp;
who._y += who.diry * who.sp;
if (who._x > 200) {
who._x = 200;
who.dirx = -1;
}
if (who._x < 50) {
who._x = 50;
who.dirx = 1;
}
if (who._y > 100) {
who._y = 100;
who.diry = -1;
}
if (who._y < 50) {
who._y = 50;
who.diry = 1;
}
}
function ai12(who) {
if (who.hp == undefined) {
who.hp = 3;
who.maxhp = who.hp;
who.powa = 5;
who.pumpcv = 0;
}
var v5 = 0.5;
if (!who.attacking) {
++who.aicv;
}
if (who.aicv >= 90) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
if (who.attacking) {
nokeys = true;
pausy = true;
rage = 0;
dude.raging = false;
dude.gotoAndStop(1);
updateHud();
dude.guts.gotoAndStop('dugsplode');
dude._visible = true;
dude.gamepart = who;
dude.waitcv = 0;
who.guts.gotoAndStop('shoot');
who._visible = true;
}
if (!who.attacking) {
switch (who.dir) {
case 0:
who.yvel -= v5;
who.guts.gotoAndStop('move');
break;
case 1:
who.xvel += v5;
who.guts.gotoAndStop('move');
who._xscale = -100;
break;
case 2:
who.yvel += v5;
who.guts.gotoAndStop('move');
break;
case 3:
who.xvel -= v5;
who.guts.gotoAndStop('move');
who._xscale = 100;
}
}
var v4 = dude._x - who._x;
var v2 = dude._y + 7 - who._y;
var v3 = 4;
if (!dude.inflated) {
if (who._xscale == -100) {
if (v2 > -v3 && v2 < v3 && v4 < 40 && v4 > 0) {
dude.xgoal = who._x + 40;
who.attacking = true;
dude._visible = true;
who._visible = true;
}
} else {
if (v2 > -v3 && v2 < v3 && v4 > -40 && v4 < 0) {
dude.xgoal = who._x - 40;
who.attacking = true;
dude._visible = true;
who._visible = true;
}
}
}
if (!who.attacking) {
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
}
restrain(who);
badHit(who);
}
function ai13(who) {
if (who.hp == undefined) {
who.hp = 1;
who.maxhp = who.hp;
who.powa = 5;
who.dir = random(2);
who.sp = 2 + random(2) / 2;
if (who.dir == 0) {
who.dir = -1;
}
who.waittime = 50 + random(40);
}
who._x += who.dir * who.sp;
who._xscale = -who.dir * 100;
var v2 = bgholder.center.antiwalk;
var v3 = bgholder.center.water;
who.virtx = bgholder.center._x + who._x;
who.virty = bgholder.center._y + who._y;
if (shitTest(v2, who.virtx + 8, who.virty - 8) || shitTest(v2, who.virtx - 8, who.virty - 8) || shitTest(v3, who.virtx + 8, who.virty - 8) || shitTest(v3, who.virtx - 8, who.virty - 8)) {
who.dir *= -1;
}
badHit(who, true);
}
function ai14(who) {
ai13(who);
}
function ai15(who) {
if (who.hp == undefined) {
who.hp = 9999;
who.maxhp = who.hp;
who.powa = 5;
who.waittime = 15;
shootStone(who);
}
++who.aicv;
if (who.aicv >= who.waittime) {
if (who.aicv == who.waittime + 25) {
shootStone(who);
who.aicv = 0;
}
}
}
function ai16(who) {
if (oldmanbeaten) {
removeBad(who);
}
if (who.hp == undefined && !oldmanbeaten) {
who.soundok = true;
who.projpointer = 0;
who.castcv = 0;
who.inv = true;
who.powa = 10;
who.hp = 50;
who.maxhp = who.hp;
pausy = true;
nokeys = true;
oldmanintro = true;
bgloop.setVolume(0);
dude.guts.gotoAndStop('rest1');
dude.xvel = 0;
dude.yvel = 0;
who.dec = 0;
who.form = 0;
who.guts.shield._alpha = 0;
orbrisesound.start();
var v2 = 0;
while (v2 < 4) {
var v3 = bgholder.center.orbs['o' + v2];
v3.gotoAndPlay(2);
++v2;
}
who.act = false;
}
if (who.inv) {
if (who.hp == who.maxhp - 4) {
var v4 = bgholder.center.attachMovie('zelda_shieldbreak', 'sbreak' + effcv, effcv + 9661922);
v4._x = who._x;
v4._y = who._y - 8;
pillarsgonesound.start();
who.inv = false;
++effcv;
screenshake = 5;
}
}
if (who.hp == 4) {
who.form = 1;
who.inv = true;
who.guts.gotoAndStop('split');
who.hit = false;
who._visible = true;
who.blinkcv = 0;
who.hitcv = 0;
nokeys = true;
pausy = true;
oldmanwait2 = true;
bgholder.center.antiwalk.extra.unloadMovie();
bgholder.center.antiwalk.extra.removeMovieClip();
screenshake = 5;
v4 = bgholder.center.attachMovie('zelda_shieldbreak', 'sbreak' + effcv, effcv + 7661922);
v4._x = who._x;
v4._y = who._y - 8;
++effcv;
--who.hp;
updateHud(who);
who.clonedeaths = 0;
who.guts.shield._alpha = 0;
who.guts.shield.unloadMovie();
who.guts.shield.removeMovieClip();
}
if (who.guts.shield._alpha > 0) {
who.guts.shield._alpha -= 5;
}
++who.aicv;
if (who.aicv > 3 && !who.act) {
who.act = true;
}
if (who.act) {
if (who.form == 0) {
if (!who.recover) {
who.guts.gotoAndStop('cast' + who.dec);
++who.castcv;
if (who.soundok) {
who.soundok = false;
raiseitemsound.start();
}
if (who.dec == 0) {
if (who.castcv == 35) {
who.castcv = 0;
summonsound.start();
summonBad(who);
}
}
if (who.dec == 1) {
if (who.castcv > 50) {
who.castcv = 0;
++who.projpointer;
if (who.projpointer >= projarray[who.dec].length) {
who.projpointer = 0;
}
castsnailsound.start();
shootTranBall(who, who.projpointer, who.dec);
}
}
if (who.dec == 2) {
++who.aicv;
if (who.castcv > 2) {
who.castcv = 0;
++who.projpointer;
if (who.projpointer >= projarray[who.dec].length) {
who.projpointer = 0;
}
lasershotsound.start();
shootLaser(who, who.projpointer, who.dec);
}
}
if (who.dec == 3) {
if (who.castcv > 7) {
who.castcv = 0;
++who.projpointer;
if (who.projpointer >= projarray[who.dec].length) {
who.projpointer = 0;
}
fireballsound.start();
shootFireball(who, who.projpointer, who.dec);
}
}
if (who.aicv >= 120) {
++who.dec;
if (who.dec > 3) {
who.dec = 0;
}
who.castcv = 0;
who.projpointer = 0;
who.recover = true;
}
} else {
who.guts.gotoAndStop('rest');
who.soundok = true;
if (who.aicv >= 220) {
who.aicv = 0;
who.recover = false;
}
}
}
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 10) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
}
function lazerPoof(x, y, rot) {
var v2 = bgholder.center;
var v1 = v2.attachMovie('zelda_laserpoof', 'poof' + effcv, effcv + 4199127);
++effcv;
v1._x = x;
v1._y = y;
v1.guts._rotation = rot;
}
function fireballPoof(x, y) {
var v2 = bgholder.center;
var v1 = v2.attachMovie('zelda_orbsplode', 'poof' + effcv, effcv + 4199127);
++effcv;
v1._x = x;
v1._y = y;
}
function shootFireball(who, pointer, num) {
var v5 = bgholder.center;
var v1 = v5.attachMovie('zelda_oldman_fireball', 'fball' + effcv, effcv + 5199127);
++effcv;
v1._x = who._x - 11;
v1._y = who._y - 23;
var v7 = dude._x + 12 - who._x;
var v6 = dude._y - who._y;
var v3 = Math.atan2(v6, v7);
var v4 = 3.5;
v1.xvel = Math.cos(v3) * v4;
v1.yvel = Math.sin(v3) * v4;
v1.stone = true;
v1.powa = 8;
v1.fireball = true;
rocks.push(v1);
}
function shootLaser(who, pointer, num) {
var v5 = bgholder.center;
var v1 = v5.attachMovie('zelda_laser', 'laze' + effcv, effcv + 5199127);
++effcv;
v1._x = who._x - 11;
v1._y = who._y - 23;
var v3 = projarray[num][pointer];
var v2 = v3 * Math.PI / 180;
var v4 = 5;
v1.xvel = Math.cos(v2) * v4;
v1.yvel = Math.sin(v2) * v4;
v1._rotation = v3;
v1.stone = true;
v1._x += v1.xvel * 3;
v1._y += v1.yvel * 3;
v1.powa = 5;
v1.laza = true;
rocks.push(v1);
}
function snailSwitch(who) {
_root.aboboMedal('Slowpoke');
who.snail = true;
who.attacking = false;
who.speed = 0.5;
who.guts.gotoAndStop('snailrest2');
pausy = false;
nokeys = false;
who.counter = bgholder.center.attachMovie('zelda_counter', 'counter', effcv + 99123);
++effcv;
who.snailcv = 0;
who.countdown = 10;
who.counter.msg.text = who.countdown;
who.counter.msg2.text = who.countdown;
who.counter._x = who._x;
who.counter._y = who._y;
}
function chkTBallHit(who) {
if (dude.guts.hitarea.hitTest(who.guts.hitarea)) {
snailturnsound.start();
dude.guts.gotoAndStop('snailtran');
pausy = true;
nokeys = true;
removeRock(who);
}
}
function shootTranBall(who, pointer, num) {
var v5 = bgholder.center;
var v1 = v5.attachMovie('zelda_transformer', 'tball' + effcv, effcv + 5199127);
++effcv;
v1._x = who._x - 11;
v1._y = who._y - 23;
var v7 = dude._x - who._x;
var v6 = dude._y - who._y;
var v3 = Math.atan2(v6, v7);
var v4 = 2;
v1.xvel = Math.cos(v3) * v4;
v1.yvel = Math.sin(v3) * v4;
v1.stone = true;
v1.powa = 8;
v1.tball = true;
rocks.push(v1);
v1.cv = 0;
v1.timer = 0;
}
function summonBad(who) {
var v4 = new Array(0, 1, 2, 3, 4, 6, 8, 9);
var v2 = 50 + random(150);
var v1 = 50 + random(50);
addBad(v4[random(v4.length)], v2, v1, bgholder.center, effcv + 491003);
++effcv;
var v5 = bgholder.center;
var v3 = v5.attachMovie('zelda_summoncloud', 'cloud' + effcv, effcv + 5199127);
++effcv;
v3._x = v2;
v3._y = v1;
}
function ai17(who) {
if (who.hp == undefined) {
who.hp = 10;
who.maxhp = who.hp;
who.powa = 10;
who.dir = random(4);
who.aicv = random(50);
}
var v2 = 0.8;
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
++who.aicv;
if (who.aicv >= 120) {
who.attacking = true;
who.aicv = -60;
}
if (!who.attacking) {
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
who.guts.gotoAndStop('dir' + who.dir);
} else {
who.guts.gotoAndStop('atk');
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai18(who) {
if (who.hp == undefined) {
who.hp = 125;
who.maxhp = who.hp;
who.dir = random(4);
}
var v2 = 0.5;
if (!who.attacking && !who.resting) {
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
who.guts.gotoAndStop('walk' + who.dir);
}
++who.aicv;
if (who.aicv >= 70) {
who.resting = false;
who.aicv = 0;
var v5 = who.dir;
who.dir = random(13);
if (who.dir >= 4 && who.dir < 6) {
who.dir = v5;
who.resting = true;
who.xvel = 0;
who.yvel = 0;
who.aicv = random(20);
}
if (who.dir >= 6) {
who.attacking = true;
}
}
if (who.attacking) {
who.guts.gotoAndStop('atk');
}
if (who.resting) {
var v4 = Math.abs(who.xvel);
if (v4 < 2) {
who.xvel = 0;
}
var v3 = Math.abs(who.yvel);
if (v3 < 2) {
who.yvel = 0;
}
who.guts.gotoAndStop('rest' + who.dir);
}
if (who.moving) {
who._y += who.yvel;
who._x += who.xvel;
}
who.yvel *= FRIC;
who.xvel *= FRIC;
if (who._y > dude._y) {
var v6 = bgholder.center.baddies.getDepth();
var v7 = bgholder.center.aboboholder.getDepth();
if (v6 != 97) {
bgholder.center.baddies.swapDepths(97);
bgholder.center.aboboholder.swapDepths(96);
}
}
if (who._y < dude._y) {
v6 = bgholder.center.baddies.getDepth();
v7 = bgholder.center.aboboholder.getDepth();
if (v6 != 96) {
bgholder.center.baddies.swapDepths(96);
bgholder.center.aboboholder.swapDepths(97);
}
}
if (who._y < 50) {
who._y = 50;
if (who.dir == 0) {
who.dir = 2;
}
}
if (who._y > 120) {
who._y = 120;
if (who.dir == 2) {
who.dir = 0;
}
}
if (who._x < 50) {
who._x = 50;
if (who.dir == 3) {
who.dir = 1;
}
}
if (who._x > 185) {
who._x = 185;
if (who.dir == 1) {
who.dir = 3;
}
}
if (who.hit) {
if (who.hitcv == 0) {
who.gotoAndPlay('hit');
}
++who.hitcv;
if (who.hitcv >= 6) {
who.hit = false;
who.hitcv = 0;
}
}
if (who._currentframe > 1) {
who.play();
}
}
function releaseEnd() {
pausy = false;
nokeys = false;
}
function finalHeadHit() {
var v2 = bgholder.center.attachMovie('zelda_oldmanhead', 'head' + effcv, effcv + 9988);
v2._x = dude._x;
v2._y = dude._y - 20;
v2.tarx = 220;
v2.tary = 75;
var v5 = v2.tarx - v2._x;
var v4 = v2.tary - v2._y;
var v3 = Math.atan2(v4, v5);
v2.xvel = Math.cos(v3);
v2.yvel = Math.sin(v3);
v2._x += v2.xvel * 10;
v2._y += v2.yvel * 10;
v2.par = this;
v2.onEnterFrame = function () {
this._x += this.xvel * 8;
this._y += this.yvel * 8;
var v3 = Math.abs(this.tarx - this._x);
var v2 = Math.abs(this.tary - this._y);
if (v3 < 5 && v2 < 5) {
this._parent._parent._parent.screenshake = 10;
this._parent.blowWall();
stopAllSounds();
bombsound.start();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
}
function chkShake() {
if (screenshake > 0) {
this._parent._x = this._parent.home + screenshake * shakedir;
shakedir *= -1;
screenshake -= 0.5;
} else {
this._parent._x = this._parent.home;
}
}
function runOldManStomp(who) {
if (stomppointer == 0) {
var v11 = 'zelda_stompblue';
}
if (stomppointer == 1) {
v11 = 'zelda_stompgreen';
}
screenshake = 5;
if (stomppointer < 2) {
var v5 = 5;
var v12 = who._x + 16;
var v10 = who._y + 5;
var v7 = bgholder.center.groundeffects.attachMovie(v11, 'stomp' + effcv, effcv + 81132);
++effcv;
v7._x = v12;
v7._y = v10;
var v6 = bgholder.center.groundeffects.attachMovie(v11, 'stomp' + effcv, effcv + 11822);
++effcv;
v6._x = v12;
v6._y = v10;
var v9 = bgholder.center.groundeffects.attachMovie(v11, 'stomp' + effcv, effcv + 18122);
++effcv;
v9._x = v12;
v9._y = v10;
var v8 = bgholder.center.groundeffects.attachMovie(v11, 'stomp' + effcv, effcv + 71192);
++effcv;
v8._x = v12;
v8._y = v10;
}
if (stomppointer == 0) {
v7._rotation = -45;
var v13 = v7._rotation * Math.PI / 180;
v7.xvel = Math.cos(v13) * v5;
v7.yvel = Math.sin(v13) * v5;
stomps.push(v7);
v6._rotation = 45;
v13 = v6._rotation * Math.PI / 180;
v6.xvel = Math.cos(v13) * v5;
v6.yvel = Math.sin(v13) * v5;
stomps.push(v6);
v9._rotation = 135;
v13 = v9._rotation * Math.PI / 180;
v9.xvel = Math.cos(v13) * v5;
v9.yvel = Math.sin(v13) * v5;
stomps.push(v9);
v8._rotation = 225;
v13 = v8._rotation * Math.PI / 180;
v8.xvel = Math.cos(v13) * v5;
v8.yvel = Math.sin(v13) * v5;
stomps.push(v8);
}
if (stomppointer == 1) {
v7._rotation = 0;
v13 = v7._rotation * Math.PI / 180;
v7.xvel = Math.cos(v13) * v5;
v7.yvel = Math.sin(v13) * v5;
stomps.push(v7);
v6._rotation = 90;
v13 = v6._rotation * Math.PI / 180;
v6.xvel = Math.cos(v13) * v5;
v6.yvel = Math.sin(v13) * v5;
stomps.push(v6);
v9._rotation = 180;
v13 = v9._rotation * Math.PI / 180;
v9.xvel = Math.cos(v13) * v5;
v9.yvel = Math.sin(v13) * v5;
stomps.push(v9);
v8._rotation = 270;
v13 = v8._rotation * Math.PI / 180;
v8.xvel = Math.cos(v13) * v5;
v8.yvel = Math.sin(v13) * v5;
stomps.push(v8);
}
if (stomppointer == 2) {
var v4 = 0;
while (v4 < 4) {
var v2 = bgholder.center.groundeffects.attachMovie('zelda_target', 'tar' + effcv, effcv + 9911);
++effcv;
v2._x = random(140) + 40;
v2._y = random(90) + 40;
v2.guts.stop();
v2.cv = 0;
v2.powa = 20;
v2.goal = random(35);
v2.par = bgholder.center;
v2.sum = this;
v2.onEnterFrame = function () {
if (!this.sum.pausy) {
++this.cv;
if (this.cv >= this.goal) {
var v2 = this.par.attachMovie('zelda_boulder', 'bould' + this.sum.effcv, this.sum.effcv + 999887);
v2._x = this._x;
v2._y = this._y;
++this.sum.effcv;
this.guts.play();
delete this.onEnterFrame;
}
}
};
++v4;
}
}
++stomppointer;
if (stomppointer > 2) {
stomppointer = 0;
}
}
function chkBoulderHit(who) {
who.powa = 25;
badHit(who);
}
function removeBoulder(who) {
who.unloadMovie();
who.removeMovieClip();
}
function moveStomps() {
var v3 = 0;
while (v3 < stomps.length) {
var v1 = stomps[v3];
if (!v1.expired) {
v1._x += v1.xvel;
v1._y += v1.yvel;
v1.powa = 10;
badHit(v1, true);
var v2 = 25;
if (v1._x < +v2 || v1._y < +v2 || v1._y > 160 - v2 || v1._x > 240 - v2) {
v1.expired = true;
v1.guts.guts2.gotoAndPlay('burst');
}
}
++v3;
}
}
function removeStomp(s) {
var v1 = 0;
while (v1 < stomps.length) {
if (s == stomps[v1]) {
stomps.splice(v1, 1);
}
++v1;
}
s.unloadMovie();
s.removeMovieClip();
}
function endOldManStomp(who) {
who.attacking = false;
who.resting = false;
who.dir = random(4);
}
function endOldManAtk(who) {
who.aicv = random(30);
who.attacking = false;
}
function splitOldMan(who) {
who.guts.gotoAndStop('rest');
who._visible = false;
addBad(17, 120, 51, bgholder.center, effcv);
++effcv;
addBad(17, 100, 51, bgholder.center, effcv);
++effcv;
addBad(17, 140, 51, bgholder.center, effcv);
++effcv;
}
function oldManIntro() {
if (oldmanintro) {
infinalbattle = true;
bgholder.center.antiwalk.door3._y = bgholder.center.antiwalk.door3.home;
++oldmancv;
dude._x = 30;
if (!bgholder.center.slidedoor3._visible) {
bgholder.center.slidedoor3._visible = true;
unlocksound.start();
}
if (oldmancv == 50) {
electricitysound.start();
bgholder.center.lightning._visible = true;
bgholder.center.lightning.gotoAndPlay(2);
}
if (oldmancv >= 120) {
oldmancv = 0;
oldmanintro = false;
pausy = false;
nokeys = false;
bgloop.stop();
var bgloop = new Sound(museholder);
bgloop.attachSound('zelda_bossloop');
bgloop.start(0, 9999);
davolume = 40;
bgloop.setVolume(davolume);
}
}
if (oldmanwait2) {
++oldmancv;
if (oldmancv >= 100) {
oldmancv = 0;
nokeys = false;
pausy = false;
oldmanwait2 = false;
}
}
}
function runMiniGame() {
++dude.waitcv;
if (dude.waitcv >= 145) {
nokeys = false;
pausy = false;
}
}
function startMiniGame() {
if (dabads.length < 4) {
++effcv;
addBad(1, 32, 42, bgholder.center, effcv);
++effcv;
}
if (dabads.length < 4) {
addBad(2, 206, 42, bgholder.center, effcv);
++effcv;
}
if (dabads.length < 4) {
addBad(8, 32, 132, bgholder.center, effcv);
++effcv;
}
minigamerunning = true;
dude.xgoal = undefined;
dude.guts.gotoAndStop('inflaterest2');
dude.inflated = true;
dude.countdown = 15;
dude.countcv = 0;
dude.counter = bgholder.center.attachMovie('zelda_counter', 'counter', effcv + 99123);
++effcv;
dude.counter._x = dude._x;
dude.counter._y = dude._y;
dude.counter.msg.text = dude.countdown;
dude.counter.msg2.text = dude.countdown;
dude.speed = 1;
dude.gamepart.attacking = false;
textwrap._visible = true;
textwrap.datxt.text = '';
var v2 = textwrap;
v2.count = 0;
v2.cv = 0;
v2.del = 3;
v2.par = this;
v2.dawords = 'YOU\'RE FAT! DON\'T LET THE BAD GUYS POP YOU!';
v2.onEnterFrame = function () {
if (this.count < this.dawords.length) {
++this.cv;
if (this.cv >= this.del) {
textsound.start();
this.cv = 0;
this.datxt.text += this.dawords.charAt(this.count);
++this.count;
}
} else {
delete this.onEnterFrame;
}
};
}
function shootStone(who, xvel, yvel, x, y, powa) {
var v4 = bgholder.center;
var v1 = v4.attachMovie('zelda_stone', 'rock' + effcv, effcv + 9911);
++effcv;
if (x == undefined && y == undefined) {
v1._x = who._x;
v1._y = who._y;
} else {
v1._x = x;
v1._y = y;
}
v1.stone = true;
rocks.push(v1);
var v2 = 5;
if (powa != undefined) {
v2 = powa;
}
v1.powa = v2;
v1.cv = 0;
if (xvel == undefined && yvel == undefined) {
var v6 = dude._x + random(60) - 30 - v1._x;
var v5 = dude._y + random(60) - 30 - v1._y;
var v3 = Math.atan2(v5, v6);
v1.xvel = Math.cos(v3) * 4;
v1.yvel = Math.sin(v3) * 4;
} else {
v1.xvel = xvel;
v1.yvel = yvel;
}
}
function octoRock(who) {
var v2 = bgholder.center;
var v1 = v2.attachMovie('zelda_rockproj', 'rock' + effcv, effcv + 9911);
++effcv;
v1._x = who._x;
v1._y = who._y;
v1.dir = who.dir;
rocks.push(v1);
v1.powa = 5;
switch (v1.dir) {
case 0:
v1._y -= 16;
break;
case 1:
v1._x += 8;
v1._y -= 8;
break;
break;
case 2:
case 3:
v1._x -= 8;
v1._y -= 8;
}
}
function moveRocks() {
var v3 = 5;
var v2 = 0;
while (v2 < rocks.length) {
var v1 = rocks[v2];
if (v1.cv != undefined) {
++v1.cv;
if (v1.cv >= 10) {
v1.goahead = true;
}
} else {
v1.goahead = true;
}
if (v1.goahead) {
if (v1.xvel == undefined) {
switch (v1.dir) {
case 0:
v1._y -= v3;
break;
case 1:
v1._x += v3;
break;
case 2:
v1._y += v3;
break;
case 3:
v1._x -= v3;
}
badHit(v1, true, true);
} else {
if (v1.tball) {
++v1.cv;
++v1.timer;
if (v1.timer >= 75) {
v1._visible = !v1._visible;
}
if (v1.timer >= 130) {
removeRock(v1);
}
if (v1.cv >= 15) {
v1.cv = 0;
var v6 = dude._x - v1._x;
var v5 = dude._y - v1._y;
var v4 = Math.atan2(v5, v6);
v1.xvel = Math.cos(v4) * 1.5;
v1.yvel = Math.sin(v4) * 1.5;
}
if (!dude.snail) {
chkTBallHit(v1);
}
}
v1._x += v1.xvel;
v1._y += v1.yvel;
if (v1.stone && !v1.tball || v1.stone && dude.snail) {
badHit(v1, true);
}
}
if (v1._x > 224 || v1._x < 16 || v1._y < 16 || v1._y > 144) {
if (v1.laza) {
lazerPoof(v1._x, v1._y, v1._rotation);
}
if (v1.fireball) {
fireballPoof(v1._x, v1._y);
}
removeRock(v1);
}
}
++v2;
}
}
function removeRock(who) {
var v1 = 0;
while (v1 < rocks.length) {
var v2 = rocks[v1];
if (v2 == who) {
rocks.splice(v1, 1);
who.unloadMovie();
who.removeMovieClip();
}
++v1;
}
}
function ai3(who) {
if (who.hp == undefined) {
who.hp = 1;
who.maxhp = who.hp;
who.powa = 5;
who.shootcv = random(25);
}
var v2 = 0.55;
++who.shootcv;
if (who.shootcv >= 120) {
who.shootcv = random(60);
octoRock(who);
}
++who.aicv;
if (who.aicv >= 130) {
who.aicv = 0;
who.dir = random(4);
who.xvel = 0;
who.yvel = 0;
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
who.gotoAndStop('dir' + who.dir);
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= FRIC;
who.xvel *= FRIC;
restrain(who);
badHit(who);
}
function ai4(who) {
if (who.hp == undefined) {
who.hp = 1;
who.maxhp = who.hp;
who.powa = 3;
who.movecv = random(5) + 35;
}
var v2 = 2.5;
++who.movecv;
if (who.movecv >= 50) {
who.movecv = random(25);
switch (who.dir) {
case 0:
who.yvel -= v2;
break;
case 1:
who.xvel += v2;
break;
case 2:
who.yvel += v2;
break;
case 3:
who.xvel -= v2;
}
}
if (who.hit) {
++who.blinkcv;
if (who.blinkcv >= 2) {
who.blinkcv = 0;
who._visible = !who._visible;
}
++who.hitcv;
if (who.hitcv >= 15) {
who.hitcv = 0;
who.hit = false;
who._visible = true;
}
}
who._y += who.yvel;
who._x += who.xvel;
who.yvel *= 0.85;
who.xvel *= 0.85;
restrain(who);
badHit(who);
}
function chkOldManSwing(who, box) {
badHit(box, true, false);
}
function badHit(who, mydir, blockable) {
if (who.guts.hitarea.hitTest(dude.guts.hitarea) && !dude.hit) {
var v3 = false;
if (blockable) {
if (!dude.attacking) {
tinksound.start();
_root.aboboMedal('Blocktorock');
switch (who.dir) {
case 0:
if (dude.dir == 2) {
v3 = true;
who.xvel = -7;
who.yvel = 7;
}
break;
case 1:
if (dude.dir == 3) {
v3 = true;
who.xvel = -7;
who.yvel = -7;
}
break;
case 2:
if (dude.dir == 0) {
v3 = true;
who.xvel = -7;
who.yvel = -7;
}
break;
case 3:
if (dude.dir == 1) {
v3 = true;
who.xvel = 7;
who.yvel = -7;
}
}
}
}
if (!v3) {
if (!dude.inflated) {
dude.hit = true;
if (!mydir) {
switch (dude.dir) {
case 0:
dude.yvel += 10;
break;
case 1:
dude.xvel -= 10;
break;
case 2:
dude.yvel -= 10;
break;
case 3:
dude.xvel += 10;
}
}
if (dude.raging) {
dude.raging = false;
dude.gotoAndStop(1);
}
hurtsound.start();
hp -= who.powa;
rage -= 30;
updateHud();
if (hp <= 0) {
pausy = true;
nokeys = true;
runDeath();
}
if (blockable || who.stone) {
if (who.laza) {
lazerPoof(who._x, who._y, who._rotation);
}
if (who.fireball) {
fireballPoof(who._x, who._y);
}
removeRock(who);
}
} else {
killsound.start();
textwrap.datxt.text = '*POP*';
dude.counter.unloadMovie();
dude.counter.removeMovieClip();
minigamerunning = false;
dude.hit = true;
dude.guts.gotoAndStop('sploded');
pausy = true;
nokeys = true;
dude.hp = 0;
updateHud();
fatDeath();
}
}
}
}
function fatDeath() {
bgloop.setVolume(0);
var v2 = this.createEmptyMovieClip('fatdeath', 72211);
v2.cv = 0;
v2.par = this;
v2.onEnterFrame = function () {
++this.cv;
if (this.cv >= 55) {
delete this.onEnterFrame;
runDeath();
}
};
}
function endSecret() {
nokeys = false;
pausy = false;
}
function beginFade() {
ffadecv = 3;
ffadecount = 4;
var t = this.createEmptyMovieClip('tempcounter', 81288);
t.onEnterFrame = function () {
var h = this._parent;
++h.ffadecount;
if (h.ffadecount >= 5) {
h.ffadecount = 0;
var tar = eval('h.filter' + h.ffadecv);
h.bgholder.center.filters = new Array(tar);
if (h.ffadecv < 6) {
++h.ffadecv;
} else {
delete this.onEnterFrame;
}
}
};
}
function restartDungeon() {
--lives;
if (lives < 0) {
delete this.onEnterFrame;
_root.gotoAndStop('gameoverscreen');
} else {
pausy = false;
nokeys = false;
hp = 100;
updateHud();
dude._visible = true;
bgloop.stop();
var bgloop = new Sound(museholder);
bgloop.attachSound('zelda_testloop');
bgloop.start(0, 9999);
bgloop.setVolume(davolume);
temp.unloadMovie();
temp.removeMovieClip();
if (!infinalbattle) {
switchTiles(1, 3, 120, 80, 2, false);
} else {
switchTiles(7, 3, 120, 80, 2, false);
infinalbattle = false;
}
init();
storyopen.gotoAndPlay(1);
}
}
function runDeath() {
hud.setHud(0);
dude.raging = false;
rage = 0;
updateHud();
bgholder.center.filters = new Array(filter2);
dude._visible = false;
bgloop.setVolume(0);
temp = this.attachMovie('zeldadude', 'temp', 991121);
temp._x = dude._x + bgholder.center._x;
temp._y = dude._y + bgholder.center._y;
temp.guts.gotoAndStop('die');
}
function chkSlash(who, box, proj, bigtime) {
var a = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
var i = 0;
while (i < a.secrets.length) {
if (!a.secrets[i]) {
var h = bgholder.center.secret.guts.hitarea;
if (box.hitTest(h)) {
enemySplat(bgholder.center.guy);
bgholder.center.secret.guts.gotoAndPlay('start');
pausy = true;
nokeys = true;
dude.attacking = false;
a.secrets[0] = true;
a.secrets[1] = true;
box.unloadMovie();
box.removeMovieClip();
if (proj) {
makeSwordSplode(who);
}
return undefined;
}
}
++i;
}
if (!proj) {
var i = 0;
while (i < hearts.length) {
var h = hearts[i];
if (h.hitarea.hitTest(box)) {
heartsound.start();
gomedal = false;
if (hp < maxhp) {
gomedal = true;
}
hp += 5;
if (hp >= maxhp && gomedal) {
_root.aboboMedal('Projectile Power');
}
updateHud();
h.unloadMovie();
h.removeMovieClip();
}
++i;
}
}
if (box.hitTest(bgholder.center.guy.hitarea)) {
bgholder.center.guy.gotoAndStop('die');
_root.aboboMedal('Kill The Messenger');
guyslain = true;
bgholder.center.guy.hp = 0;
bgholder.center.gut.maxhp = 1;
enemySplat(bgholder.center.guy);
updateHud(bgholder.center.guy);
if (proj) {
makeSwordSplode(who);
}
}
var hitit = false;
var i = 0;
while (i < 4) {
var tar = bgholder.center['breakaway' + i];
var a = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
if (box.hitTest(tar) && !a.breakaways[i]) {
hitit = true;
a.breakaways[i] = true;
tar.gotoAndStop('break');
var r = bgholder.center.antiwalk['wall' + i];
r.unloadMovie();
r.removeMovieClip();
}
++i;
}
if (hitit) {
screenshake = 5;
bombsound.start();
playMystery();
}
var i = 0;
while (i < dabads.length) {
var b = dabads[i];
if (b.nesty) {
var w = 0;
while (w < b.nestnum) {
var t = b.guts['tar' + w];
if (!t.hit && !t.inv && t._visible) {
if (box.hitTest(t.guts.hitarea)) {
hitsound.start();
t.hit = true;
bosshitsound.start();
if (!bigtime) {
if (!gotmeat) {
--t.hp;
} else {
t.hp -= 2;
}
rage += 5;
} else {
t.hp -= 6;
}
updateHud(t);
if (t.hp <= 0) {
t._visible = false;
t.dead = true;
++b.numkilled;
if (b.numkilled == b.nestnum - 1) {
var less = b.nestnum - 1;
var g = b.guts['tar' + less];
enemySplat(b);
removeBad(b);
_root.aboboMedal('Manhandled');
chkClearedRoom();
}
if (w == b.nestnum - 1) {
enemySplat(b);
removeBad(b);
} else {
enemySplat(t, t._x + t._parent._x + t._parent._parent._x + 10, t._y + t._parent._y + t._parent._parent._y + 20);
}
b.sp += 0.8;
b.shootmax -= 5;
}
if (proj) {
makeSwordSplode(who);
}
}
}
++w;
}
}
if (b.ai == 16) {
if (b.inv && box.hitTest(b.guts.hitarea) && b._visible) {
b.guts.shield._alpha = 100;
shieldedsound.start();
if (proj) {
makeSwordSplode(who);
}
}
var f = 0;
while (f < 4) {
var p = bgholder.center.orbs['o' + f];
if (p.hitarea.hitTest(box) && !p.hit) {
var locs = new Array();
locs[0] = new Array(22, 20);
locs[1] = new Array(220, 20);
locs[2] = new Array(22, 140);
locs[3] = new Array(220, 140);
if (p.breakone) {
if (!p.broken) {
pillarhitsound.start();
p.broken = true;
--b.hp;
var j = bgholder.center.attachMovie('zelda_orbsplode', 'osplode' + effcv, effcv + 961022);
++effcv;
j._x = locs[f][0];
j._y = locs[f][1];
p.gotoAndStop('dead');
}
} else {
pillarhitsound.start();
p.hit = true;
p.hitcv = 0;
p.onEnterFrame = function () {
++this.hitcv;
if (this.hitcv >= 5) {
delete this.onEnterFrame;
this.hit = false;
}
};
p.gotoAndStop('cracked');
p.breakone = true;
var j = bgholder.center.attachMovie('zelda_orbsplode', 'osplode' + effcv, effcv + 961022);
++effcv;
j._x = locs[f][0];
j._y = locs[f][1];
}
if (proj) {
makeSwordSplode(who);
}
}
++f;
}
}
if (!b.hit && !b.inv && b.hp != undefined) {
if (box.hitTest(b.guts.hitarea)) {
if (b.volatile) {
b.fuse = -30;
b.hit = true;
if (b.ai == 8) {
if (!proj) {
_root.aboboMedal('Idiot');
}
}
chkClearedRoom();
}
if (!b.volatile) {
b.hit = true;
hitsound.start();
if (!bigtime) {
if (!gotmeat) {
--b.hp;
} else {
b.hp -= 2;
}
rage += 5;
} else {
b.hp -= 6;
}
if (b.ai == 16) {
if (b.hp < 4) {
b.hp = 4;
}
}
updateHud(b);
if (b.hp <= 0) {
var noshow = false;
if (b.miniboss) {
bosshitsound.start();
}
if (b.ai == 18) {
stopAllSounds();
bigfinale = true;
pausy = true;
nokeys = true;
b.guts.gotoAndStop('die');
}
if (b.ai == 17) {
++dabads[0].clonedeaths;
dabads[0].hp -= 2;
if (dabads[0].clonedeaths == 3) {
noshow = true;
}
}
if (b.ai != 18) {
if (!noshow) {
if (b.ai == 10) {
_root.aboboMedal('Die Dragon Die');
}
enemySplat(b);
removeBad(b);
chkClearedRoom();
} else {
bgloop.setVolume(0);
dude.blinking = false;
dude._visible = true;
dude.guts.gotoAndStop('rest' + dude.dir);
dude.attacking = false;
nokeys = true;
pausy = true;
b.hit = false;
b._visible = true;
b.guts.gotoAndStop('die');
}
}
} else {
var kamt = 15;
if (b.ai == 18) {
kamt = 3;
}
switch (who.dir) {
case 0:
b.yvel -= kamt;
b.dir = 2;
break;
case 1:
b.xvel += kamt;
b.dir = 3;
break;
case 2:
b.yvel += kamt;
b.dir = 0;
break;
case 3:
b.xvel -= kamt;
b.dir = 1;
}
}
}
if (proj) {
makeSwordSplode(who);
}
chkClearedRoom();
}
}
++i;
}
}
function chkClearedRoom() {
if (dabads.length == 0 && !infinalbattle) {
++clearedrooms;
if (clearedrooms >= 50) {
_root.aboboMedal('Anger Issues');
}
if (bgholder.center.myx == 6 && bgholder.center.myy == 5) {
_root.aboboMedal('Flurry Frag');
}
}
}
function oldManDone(who) {
rage = 0;
dude.raging = false;
updateHud();
removeBad(who);
who.raging = false;
rage = 0;
dude.gotoAndStop(1);
updateHud();
if (gotmeat) {
dude.guts.gotoAndStop('meatspin');
_root.aboboMedal('Meatspin');
} else {
dude.guts.gotoAndStop('swordspin');
_root.aboboMedal('Elderly Execution');
}
}
function oldManBiggen(who) {
var v3 = who._x;
var v2 = who._y;
var v1 = 0;
while (v1 < dabads.length) {
removeBad(dabads[v1]);
dabads[v1].unloadMovie();
dabads[v1].removeMovieClip();
++v1;
}
addBad(18, v3, v2, bgholder.center, effcv);
++effcv;
bgloop.setVolume(davolume);
nokeys = false;
pausy = false;
}
function enemySplat(who, x, y) {
var v2 = bgholder.center.baddies;
var v1 = v2.attachMovie('zelda_enemysplat', 'splat' + effcv, effcv + 99881);
++effcv;
if (x == undefined && y == undefined) {
v1._x = who._x;
v1._y = who._y;
} else {
v1._x = x;
v1._y = y;
}
}
function removeBad(who) {
var i = 0;
while (i < dabads.length) {
var t = dabads[i];
if (t == who) {
if (who.ai == 11) {
var a = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
a.stairs.hidden = false;
bgholder.center.stairs._visible = true;
var a = eval('map' + bgholder.center.myx + '_' + bgholder.center.myy);
a.baddies = new Array();
playMystery();
}
if (!who.volatile) {
killsound.start();
}
dabads.splice(i, 1);
var ran = random(8);
if (ran == 1) {
var h = bgholder.center.attachMovie('zelda_heart', 'heart' + effcv, effcv);
++effcv;
h._x = who._x;
h._y = who._y - 8;
hearts.push(h);
}
who.unloadMovie();
who.removeMovieClip();
}
++i;
}
}
function chkTraps() {
if (traps.length <= 0) {
var v1 = bgholder.center;
var v2 = 0;
while (v2 < 20) {
var v5 = v1['trap' + v2];
if (!v5.registered) {
registerTrap(v5);
}
++v2;
}
}
v2 = 0;
while (v2 < traps.length) {
v1 = traps[v2];
badHit(v1, true);
if (!v1.moving) {
var v10 = Math.abs(v1._x - dude._x);
if (v10 < 8) {
v1.moving = true;
v1.dir = 'y';
}
var v8 = Math.abs(v1._y - dude._y);
if (v8 < 8) {
v1.moving = true;
v1.dir = 'x';
}
} else {
if (v1.dir == 'y') {
if (!v1.goalachieved) {
var v6 = v1.goaly - v1._y;
var v7 = isNaN(v6);
if (!v7) {
if (v6 > 0) {
v1._y += v1.closespeedy;
} else {
v1._y -= v1.closespeedy;
}
var v9 = Math.abs(v6);
if (v9 < 5) {
v1.goalachieved = true;
}
} else {
v1.goalachieved = true;
}
} else {
var v6 = v1.homey - v1._y;
if (v6 > 0) {
v1._y += v1.closespeedy / 2.5;
} else {
v1._y -= v1.closespeedy / 2.5;
}
var v9 = Math.abs(v6);
if (v9 < 3) {
v1._y = v1.homey;
v1.goalachieved = false;
v1.moving = false;
}
}
}
if (v1.dir == 'x') {
if (!v1.goalachieved) {
v6 = v1.goalx - v1._x;
var v7 = isNaN(v6);
var v4 = Math.abs(dude._x - v1._x);
var v3 = false;
if (v1.xdir == 1 && dude._x > v1._x && v4 < 150) {
v3 = true;
}
if (v1.xdir == -1 && dude._x < v1._x && v4 < 150) {
v3 = true;
}
if (!v7 && v3) {
if (v6 > 0) {
v1._x += v1.closespeedx;
} else {
v1._x -= v1.closespeedx;
}
v9 = Math.abs(v6);
if (v9 < 8) {
v1.goalachieved = true;
}
} else {
v1.goalachieved = true;
}
} else {
v6 = v1.homex - v1._x;
if (v6 > 0) {
v1._x += v1.closespeedx / 2.5;
} else {
v1._x -= v1.closespeedx / 2.5;
}
v9 = Math.abs(v6);
if (v9 < 3) {
v1._x = v1.homex;
v1.goalachieved = false;
v1.moving = false;
}
}
}
}
++v2;
}
}
function chkPause() {
if (!Key.isDown(P)) {
pup = true;
}
if (pup && Key.isDown(P)) {
psound.start();
pup = false;
if (!pausy) {
this._parent.psign2._visible = true;
var v3 = 0;
while (v3 < dabads.length) {
var v4 = dabads[v3];
if (v4.nam == 'Old Giant') {
v4.guts.guts2.stop();
}
++v3;
}
pausy = true;
pholder._visible = true;
pholder.createEmptyMovieClip('guts', 0);
btm = new flash.display.BitmapData(256, 254, true, 16777215);
pholder.guts.attachBitmap(btm, 0);
o = _root;
var v5 = new flash.geom.Matrix();
v5.tx = 0;
v5.ty = 0;
v5.a = 1;
alf = 1;
var v6 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v5, v6);
pholder.guts.filters = new Array(filter);
bgloop.setVolume(0);
} else {
this._parent.psign2._visible = false;
var v3 = 0;
while (v3 < dabads.length) {
var v4 = dabads[v3];
if (v4.nam == 'Old Giant') {
v4.guts.guts2.play();
}
++v3;
}
pausy = false;
pholder._visible = false;
bgloop.setVolume(davolume);
}
}
}
function chkHearts() {
var v2 = 0;
while (v2 < hearts.length) {
var v3 = hearts[v2];
if (v3.hitarea.hitTest(dude.guts.hitarea)) {
heartsound.start();
gomedal = false;
if (hp < maxhp) {
gomedal = true;
}
hp += 5;
if (hp >= maxhp && gomedal) {
_root.aboboMedal('Projectile Power');
}
updateHud();
v3.unloadMovie();
v3.removeMovieClip();
}
++v2;
}
}
stop();
clearedrooms = 0;
this._parent.home = this._x;
_root.hud._visible = true;
this.heartsound = new Sound(this);
heartsound.attachSound('zelda_heartget');
this.slashsound = new Sound(this);
slashsound.attachSound('zelda_swordslash');
this.shootsound = new Sound(this);
shootsound.attachSound('zelda_swordshoot');
this.tinksound = new Sound(this);
tinksound.attachSound('zelda_shieldtink');
this.bombsound = new Sound(this);
bombsound.attachSound('zelda_bombsplode');
this.secretsound = new Sound(this);
secretsound.attachSound('zelda_secret');
this.killsound = new Sound(this);
killsound.attachSound('zelda_kill');
this.hitsound = new Sound(this);
hitsound.attachSound('zelda_hit');
this.hurtsound = new Sound(this);
hurtsound.attachSound('zelda_hurt');
this.fansound = new Sound(this);
fansound.attachSound('zelda_fanfare');
this.itemsound = new Sound(this);
itemsound.attachSound('zelda_getitem');
this.unlocksound = new Sound(this);
unlocksound.attachSound('zelda_unlock');
this.textsound = new Sound(this);
textsound.attachSound('zelda_text');
this.stairsound = new Sound(this);
stairsound.attachSound('zelda_stairs');
this.yellsound = new Sound(this);
yellsound.attachSound('zelda_bossyell');
this.bosshitsound = new Sound(this);
bosshitsound.attachSound('zelda_bosshit');
this.orbrisesound = new Sound(this);
orbrisesound.attachSound('zelda_orbrise');
this.raiseitemsound = new Sound(this);
raiseitemsound.attachSound('zelda_raiseitem');
this.electricitysound = new Sound(this);
electricitysound.attachSound('zelda_electricity');
this.pillarhitsound = new Sound(this);
pillarhitsound.attachSound('zelda_pillarhit');
this.pillarsgonesound = new Sound(this);
pillarsgonesound.attachSound('zelda_pillarsgone');
this.summonsound = new Sound(this);
summonsound.attachSound('zelda_summon');
this.shieldedsound = new Sound(this);
shieldedsound.attachSound('zelda_shielded');
this.castsnailsound = new Sound(this);
castsnailsound.attachSound('zelda_castsnail');
this.snailturnsound = new Sound(this);
snailturnsound.attachSound('zelda_snailturn');
this.lasershotsound = new Sound(this);
lasershotsound.attachSound('zelda_lasershot');
this.fireballsound = new Sound(this);
fireballsound.attachSound('zelda_fireball');
this.psound = new Sound(this);
psound.attachSound('pausesound');
this.ragegotsound = new Sound(this);
ragegotsound.attachSound('fullrage');
this.createEmptyMovieClip('museholder', 989911);
var bgloop = new Sound(museholder);
bgloop.attachSound('zelda_testloop');
bgloop.start(0, 9999);
var davolume = 100;
bgloop.setVolume(davolume);
pholder = this.createEmptyMovieClip('pholder', 993997);
pholder._visible = false;
bigfinale = false;
infinalbattle = false;
oldmanbeaten = false;
gotmap = false;
gotcompass = false;
keys = 0;
specpush = 0;
gotraft = false;
gotmeat = false;
gotsuperkey = false;
guyslain = false;
minigamerunning = false;
oldmancv = 0;
screenshake = 0;
shakedir = 1;
ragepoofcv = 0;
hearts = new Array();
gotprize = false;
prizecv = 0;
swordon = false;
effcv = 0;
hp = 100;
maxhp = hp;
lives = _root.lives;
rage = 0;
staircv = 0;
stairtran = false;
this.dude = bgholder.center.aboboholder.dude;
dude.lives = _root.lives;
dude.hp = hp;
dude.maxhp = maxhp;
_root.hud.updateMe(this.dude);
dude._visible = true;
transpeed = 8;
trandir = 0;
tranny = false;
A = 65;
S = 83;
U = 38;
D = 40;
R = 39;
L = 37;
P = 80;
FRIC = 0.55;
init();
projarray = new Array();
projarray[0] = new Array(180, 135, 90, 45, 0);
projarray[1] = new Array(-180, -135, -90, -45, 0);
projarray[2] = new Array(230, 200, 170, 140, 110, 80, 50, 20, -10, -40, -70);
projarray[3] = new Array(-180, -135, -90, -45, 0);
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var matrix2 = new Array();
matrix2 = matrix2.concat([0.5, 1.2, 0, 0, 0]);
matrix2 = matrix2.concat([0, 0, 0, 0, 0]);
matrix2 = matrix2.concat([0, 0, 0, 0, 0]);
matrix2 = matrix2.concat([0, 0, 0, 1, 0]);
var matrix3 = new Array();
matrix3 = matrix3.concat([0.4, 0.6, 0, 0, 0]);
matrix3 = matrix3.concat([0, 0, 0, 0, 0]);
matrix3 = matrix3.concat([0, 0, 0, 0, 0]);
matrix3 = matrix3.concat([0, 0, 0, 1, 0]);
var matrix4 = new Array();
matrix4 = matrix4.concat([0.3, 0.5, 0, 0, 0]);
matrix4 = matrix4.concat([0, 0, 0, 0, 0]);
matrix4 = matrix4.concat([0, 0, 0, 0, 0]);
matrix4 = matrix4.concat([0, 0, 0, 1, 0]);
var matrix5 = new Array();
matrix5 = matrix5.concat([0.1, 0.3, 0, 0, 0]);
matrix5 = matrix5.concat([0, 0, 0, 0, 0]);
matrix5 = matrix5.concat([0, 0, 0, 0, 0]);
matrix5 = matrix5.concat([0, 0, 0, 1, 0]);
var matrix6 = new Array();
matrix6 = matrix6.concat([0, 0, 0, 0, 0]);
matrix6 = matrix6.concat([0, 0, 0, 0, 0]);
matrix6 = matrix6.concat([0, 0, 0, 0, 0]);
matrix6 = matrix6.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
var filter2 = new flash.filters.ColorMatrixFilter(matrix2);
var filter3 = new flash.filters.ColorMatrixFilter(matrix3);
var filter4 = new flash.filters.ColorMatrixFilter(matrix4);
var filter5 = new flash.filters.ColorMatrixFilter(matrix5);
var filter6 = new flash.filters.ColorMatrixFilter(matrix6);
this.onEnterFrame = function () {
_root.chkReset();
this.dude = bgholder.center.aboboholder.dude;
if (!tranny) {
chkShake();
oldManIntro();
chkStairs(dude);
chkPrize();
if (minigamerunning) {
runMiniGame();
}
if (!pausy) {
if (!nokeys) {
controls(dude);
}
moveBads();
phys(dude);
chkSliders();
moveSwordProj();
chkSpecBlock();
chkKey();
chkCompass();
moveRocks();
chkTraps();
moveStomps();
chkHearts();
}
if (!nokeys && !minigamerunning) {
chkPause();
}
if (dude.xgoal != undefined) {
var v3 = dude.xgoal - dude._x;
dude._x += v3 / 3;
}
} else {
runTran();
}
};
}
}
frame 11 {
function goMegaman() {
gotoAndStop('lev6');
}
function endBF() {
gotoAndStop('gameoverscreen');
}
function setRageNotify(r) {
if (r < 100) {
this.ragefull = false;
fullrage.gotoAndStop(1);
}
if (r >= 100 && !this.ragefull) {
this.ragefull = true;
if (fullrage._currentframe == 1) {
fullragesound.start();
fullrage.gotoAndPlay(2);
}
}
}
levlocks[4] = false;
saveStuff();
fullragesound = new Sound(this);
fullragesound.attachSound('fullrage');
hud._visible = true;
masterlev = 5;
if (lives == undefined) {
lives = 5;
}
psign.filters = [];
btm.dispose();
psign._visible = false;
psign2._visible = false;
hud.setHud(0);
hud.updateMe();
this.ragefull = false;
}
frame 12 {
function getShot() {
btm = new flash.display.BitmapData(256, 254, true, 16777215);
var v3 = _root.createEmptyMovieClip('psign', 888111);
v3.attachBitmap(btm, 0);
o = _root;
var v2 = new flash.geom.Matrix();
v2.tx = 0;
v2.ty = 0;
v2.a = 1;
alf = 1;
var v4 = new flash.geom.ColorTransform(1, 1, 1, alf, 0, 0, 0, 0);
btm.draw(o, v2, v4);
v3.filters = new Array(filter);
}
function mmUnPauseMe() {
btm.dispose();
psign2._visible = false;
psign.unloadMovie();
psign.removeMovieClip();
}
function mmPauseMe() {
getShot();
psign2._visible = true;
psign2.swapDepths(_root.getNextHighestDepth());
}
function setRageNotify(r) {
if (r < 100) {
this.ragefull = false;
fullrage.gotoAndStop(1);
}
if (r >= 100 && !this.ragefull) {
this.ragefull = true;
if (fullrage._currentframe == 1) {
fullragesound.start();
fullrage.gotoAndPlay(2);
}
}
}
function goContra() {
stopAllSounds();
con_cutscene.unloadMovie();
con_custscene.removeMovieClip();
gotoAndStop('lev7');
hud._visible = true;
}
function megamanOver() {
stopAllSounds();
hud._visible = false;
mmgame.unloadMovie();
mmgame.removeMovieClip();
var v3 = this.createEmptyMovieClip('con_cutscene', this.getNextHighestDepth());
var v4 = v3.createEmptyMovieClip('guts', 0);
v4.attachMovie('mmcut_dbottombarA', 'guts2', 0);
v3.cv = 0;
v3.onEnterFrame = function () {
++this.cv;
if (cv == 1) {
stopAllSounds();
}
if (this.cv >= 1390) {
_root.goContra();
delete this.onEnterFrame;
}
};
}
function megamanGameOver() {
if (lives <= 0) {
gotoAndStop('gameoverscreen');
}
}
function megamanExtraLife() {
++lives;
hud.updateMe();
_root.aboboMedal('Extra Abobo');
}
function mmBadHit(obj) {
hud.updateBad(obj);
}
function mmRageUpdate(cur, max) {
var v1 = (cur / max) * 100;
setRageNotify(v1);
hud.updateRage(v1);
}
function mmHudUpdate(cur, max) {
mmguy.hp = cur;
mmguy.maxhp = max;
mmguy.lives = lives;
hud.updateMe(mmguy);
}
stop();
levlocks[5] = false;
saveStuff();
masterlev = 6;
fullragesound = new Sound(this);
fullragesound.attachSound('fullrage');
hud._visible = true;
psign.filters = [];
btm.dispose();
psign._visible = false;
psign2._visible = false;
hud.setHud(0);
hud.updateMe();
this.createEmptyMovieClip('mmguy', -8873);
mmguy.hp = 28;
mmguy.maxhp = 28;
if (lives == undefined) {
lives = 5;
}
mmguy.lives = lives;
hud.updateMe(mmguy);
this.ragefull = false;
var matrix = new Array();
matrix = matrix.concat([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0]);
matrix = matrix.concat([0.308600008487701, 0.609399974346161, 0.08200002461671831, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var filter = new flash.filters.ColorMatrixFilter(matrix);
}
frame 13 {
function contraRage(r) {
if (r < 100) {
this.ragefull = false;
fullrage.gotoAndStop(1);
}
if (r >= 100 && !this.ragefull) {
this.ragefull = true;
if (fullrage._currentframe == 1) {
fullragesound.start();
fullrage.gotoAndPlay(2);
}
}
hud.updateRage(r);
}
function badCode() {
contraGameOver();
}
function contraLives() {
lives = 30;
}
function contraGameOver() {
gotoAndStop('gameoverscreen');
}
function goPunchout() {
stopAllSounds();
gotoAndStop('lev8');
}
levlocks[6] = false;
saveStuff();
psign.filters = [];
masterlev = 7;
btm.dispose();
psign._visible = false;
psign2._visible = false;
hud._visible = true;
hud.setHud(0);
this.createEmptyMovieClip('cguy', -8873);
cguy.hp = 28;
cguy.maxhp = 28;
_root.contradocmsg = 'ABOBO SO CRAY-ZAY!';
this.ragefull = false;
if (lives == undefined) {
lives = 5;
}
cguy.lives = lives;
hud.updateMe(cguy);
fullragesound = new Sound(this);
fullragesound.attachSound('fullrage');
}
frame 14 {
function unlockStuff() {
lockies[0] = false;
lockies[1] = false;
lockies[2] = false;
saveStuff();
}
function clickEndAboboy() {
com.newgrounds.API.loadCustomLink('bonusgame');
}
function poRage(r) {
if (r < 100) {
this.ragefull = false;
fullrage.gotoAndStop(1);
}
if (r >= 100 && !this.ragefull) {
this.ragefull = true;
if (fullrage._currentframe == 1) {
fullragesound.start();
fullrage.gotoAndPlay(2);
}
}
hud.updateRage(r);
}
function getPoLives() {
if (lives == undefined) {
lives = 3;
}
return lives;
}
function punchoutGameOver() {
gotoAndStop('gameoverscreen');
}
levlocks[7] = false;
saveStuff();
psign.filters = [];
btm.dispose();
psign._visible = false;
psign2._visible = false;
hud._visible = true;
hud.setHud(0);
this.ragefull = false;
masterlev = 8;
this.createEmptyMovieClip('cguy', -8873);
cguy.hp = 28;
cguy.maxhp = 28;
cguy.lives = lives;
hud.updateMe(cguy);
fullragesound = new Sound(this);
fullragesound.attachSound('fullrage');
}
frame 21 {
lives = undefined;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
}
// unknown tag 88 length 27
movieClip 15735 {
}
movieClip 15740 {
}
movieClip 15745 {
}
movieClip 15773 {
}
movieClip 15776 {
}
movieClip 15819 {
frame 21 {
stop();
}
}
movieClip 15824 {
}
movieClip 15829 {
frame 25 {
_parent.gglol._x += 2;
}
frame 26 {
_parent.gglol._x -= 4;
}
frame 27 {
_parent.gglol._x += 3;
}
frame 28 {
_parent.gglol._x -= 2;
}
frame 29 {
_parent.gglol._x += 1;
}
frame 47 {
_parent.gglol._x += 2;
}
frame 48 {
_parent.gglol._x -= 4;
}
frame 49 {
_parent.gglol._x += 3;
}
frame 50 {
_parent.gglol._x -= 2;
}
frame 51 {
_parent.gglol._x += 1;
}
frame 70 {
_parent.gglol._x += 2;
}
frame 71 {
_parent.gglol._x -= 4;
}
frame 72 {
_parent.gglol._x += 3;
}
frame 73 {
_parent.gglol._x -= 2;
}
frame 74 {
_parent.gglol._x += 1;
}
frame 93 {
_parent.gglol._x += 2;
}
frame 94 {
_parent.gglol._x -= 4;
}
frame 95 {
_parent.gglol._x += 3;
}
frame 96 {
_parent.gglol._x -= 2;
}
frame 97 {
_parent.gglol._x += 1;
}
frame 117 {
_parent.gglol._x += 2;
}
frame 118 {
_parent.gglol._x -= 4;
}
frame 119 {
_parent.gglol._x += 3;
}
frame 120 {
_parent.gglol._x -= 2;
}
frame 121 {
_parent.gglol._x += 1;
}
frame 145 {
_parent.gglol._x += 2;
}
frame 146 {
_parent.gglol._x -= 4;
}
frame 147 {
_parent.gglol._x += 3;
}
frame 148 {
_parent.gglol._x -= 2;
}
frame 149 {
_parent.gglol._x += 1;
}
frame 167 {
_parent.gglol._x += 2;
}
frame 168 {
_parent.gglol._x -= 4;
}
frame 169 {
_parent.gglol._x += 3;
}
frame 170 {
_parent.gglol._x -= 2;
}
frame 171 {
_parent.gglol._x += 1;
}
frame 187 {
_parent.gglol._x += 2;
}
frame 188 {
_parent.gglol._x -= 4;
}
frame 189 {
_parent.gglol._x += 3;
}
frame 190 {
_parent.gglol._x -= 2;
}
frame 191 {
_parent.gglol._x += 1;
}
frame 212 {
_parent.gglol._x += 2;
}
frame 213 {
_parent.gglol._x -= 4;
}
frame 214 {
_parent.gglol._x += 3;
}
frame 215 {
_parent.gglol._x -= 2;
}
frame 216 {
_parent.gglol._x += 1;
}
frame 239 {
this._parent.toolate = true;
_root.aboboMedal('Bloody Bobo');
}
frame 239 {
_parent.gglol._x += 2;
}
frame 240 {
_parent.gglol._x -= 4;
}
frame 241 {
_parent.gglol._x += 3;
}
frame 242 {
_parent.gglol._x -= 2;
}
frame 243 {
_parent.gglol._x += 1;
}
frame 244 {
_parent.gglol._x += 2;
}
frame 245 {
_parent.gglol._x -= 4;
}
frame 246 {
_parent.gglol._x += 3;
}
frame 247 {
_parent.gglol._x -= 2;
}
frame 248 {
_parent.gglol._x += 1;
}
frame 249 {
_parent.gglol._x += 2;
}
frame 250 {
_parent.gglol._x -= 4;
}
frame 251 {
_parent.gglol._x += 3;
}
frame 252 {
_parent.gglol._x -= 2;
}
frame 253 {
_parent.gglol._x += 1;
}
frame 254 {
_parent.gglol._x += 2;
}
frame 255 {
_parent.gglol._x -= 4;
}
frame 256 {
_parent.gglol._x += 3;
}
frame 257 {
_parent.gglol._x -= 2;
}
frame 258 {
_parent.gglol._x += 1;
}
frame 259 {
_parent.gglol._x += 2;
}
frame 260 {
_parent.gglol._x -= 4;
}
frame 261 {
_parent.gglol._x += 3;
}
frame 262 {
_parent.gglol._x -= 2;
}
frame 263 {
_parent.gglol._x += 1;
}
frame 264 {
_parent.gglol._x += 2;
}
frame 265 {
_parent.gglol._x -= 4;
}
frame 266 {
_parent.gglol._x += 3;
}
frame 267 {
_parent.gglol._x -= 2;
}
frame 268 {
_parent.gglol._x += 1;
}
frame 269 {
_parent.gglol._x += 2;
}
frame 270 {
_parent.gglol._x -= 4;
}
frame 271 {
_parent.gglol._x += 3;
}
frame 272 {
_parent.gglol._x -= 2;
}
frame 273 {
_parent.gglol._x += 1;
}
frame 274 {
_parent.gglol._x += 2;
}
frame 275 {
_parent.gglol._x -= 4;
}
frame 276 {
_parent.gglol._x += 3;
}
frame 277 {
_parent.gglol._x -= 2;
}
frame 278 {
_parent.gglol._x += 1;
}
frame 279 {
_parent.gglol._x += 2;
}
frame 280 {
_parent.gglol._x -= 4;
}
frame 281 {
_parent.gglol._x += 3;
}
frame 282 {
_parent.gglol._x -= 2;
}
frame 283 {
_parent.gglol._x += 1;
}
frame 427 {
stop();
}
}
movieClip 15830 {
frame 1 {
A = 65;
this.toolate = false;
aup = false;
this.mt = 30;
this.tim = 20;
stopAllSounds();
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
this._parent.psign.unloadMovie();
this._parent.psign.removeMovieClip();
this._parent.psign2.unloadMovie();
this._parent.psign2.removeMovieClip();
this.onEnterFrame = function () {
if (!Key.isDown(A)) {
aup = true;
}
if (Key.isDown(A) && aup) {
aup = false;
if (!this.toolate) {
stopAllSounds();
_root.aboboMedal('Never Give Up');
delete this.onEnterFrame;
_root.trashDump();
if (_root.masterlev == 1) {
this.drum = new Sound(this);
drum.attachSound('lev1_drumintro');
drum.start();
var v3 = _root.createEmptyMovieClip('temp', 99911);
v3.cv = 0;
v3.onEnterFrame = function () {
++this.cv;
if (this.cv >= 20) {
_root.lev1MusicStart();
delete this.onEnterFrame;
this.unloadMovie();
this.removeMovieClip();
}
};
}
_root.gotoAndStop('lev' + _root.masterlev);
}
}
--this.mt;
if (this.mt <= 0) {
this.mt = 30;
--this.tim;
if (this.tim <= 0) {
delete this.onEnterFrame;
_root.trashDump();
_root.gotoAndStop('main');
}
this.num.text = this.tim;
}
};
}
frame 2 {
stop();
}
}
frame 22 {
stop();
}
movieClip 15834 {
frame 17 {
stop();
}
}
movieClip 15853 {
}
movieClip 15854 {
frame 165 {
this._parent.goahead = true;
}
frame 1214 {
this._parent.goBack();
}
}
movieClip 15855 {
frame 1 {
function goBack() {
delete this.onEnterFrame;
_root.trashDump();
_root.gotoAndStop('intro');
}
this.mt = 30;
this.tim = 10;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
aup = false;
this.goahead = false;
stopAllSounds();
}
}
frame 23 {
stop();
stopAllSounds();
lives = undefined;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
}
movieClip 15858 {
}
// unknown tag 88 length 27
movieClip 15871 {
}
movieClip 15872 {
}
// unknown tag 88 length 27
movieClip 15885 {
}
movieClip 15886 {
}
movieClip 15897 {
}
movieClip 15898 {
}
movieClip 15899 {
frame 16 {
stop();
}
}
movieClip 15901 {
frame 1 {
stop();
}
}
movieClip 15912 {
}
movieClip 15913 {
}
// unknown tag 88 length 34
// unknown tag 88 length 27
movieClip 15923 {
}
movieClip 15926 {
frame 37 {
picwrap.guts.gotoAndStop('chosen');
stop();
}
}
movieClip 15927 {
frame 1 {
function shitTest(b, x, y) {
var v2 = {'x': x, 'y': y};
this.localToGlobal(v2);
if (b.hitTest(v2.x, v2.y, true)) {
return true;
} else {
return false;
}
}
function goBack() {
_root.gotoAndStop('main');
}
this._quality = 'LOW';
Stage.showMenu = false;
_root.aboboMedal('Bobo Battle');
stop();
aup = false;
bup = false;
guts.onEnterFrame = function () {
if (!Key.isDown(83)) {
bup = true;
}
if (Key.isDown(83) && bup) {
bup = false;
goBack();
}
if (!Key.isDown(65)) {
aup = true;
}
if (Key.isDown(65) && aup) {
aup = false;
delete guts.onEnterFrame;
gotoAndStop('charselect');
}
};
}
frame 2 {
function endIt() {
player1 = pointer1.curpos;
player2 = pointer2.curpos;
delete this.onEnterFrame;
var tim = 0;
this.onEnterFrame = function () {
++tim;
if (tim > 45) {
tim = 0;
delete this.onEnterFrame;
gotoAndStop('arenaselect');
}
};
}
function init() {
doneonce = false;
donner = 0;
this.bgm = this.createEmptyMovieClip('bgmusicholder', 199919);
bgm.bgloop = new Sound(bgm);
bgm.bgloop.attachSound('2pcharselmusic');
bgm.bgloop.start(0, 99);
bgm.bgloop.setVolume(50);
fader.swapDepths(99999);
fader.gotoAndPlay(1);
player1 = 0;
player2 = 1;
c0 = new Array();
c0.lef = 65;
c0.rig = 68;
c0.upp = 87;
c0.dwn = 83;
c0.b = 67;
c0.a = 86;
c0.which = pointer1;
c0.lockedin = false;
c1 = new Array();
c1.lef = 37;
c1.rig = 39;
c1.upp = 38;
c1.dwn = 40;
c1.b = 79;
c1.a = 80;
c1.which = pointer2;
c1.lockedin = false;
var i = 0;
while (i < 4) {
var tar = this['sel' + i];
tar.stop();
++i;
}
pointer2.curpos = 3;
pointer1.curpos = 0;
updatePos(pointer2, pointer2.curpos);
updatePos(pointer1, pointer1.curpos);
cvv = 20;
cn = 0;
this.onEnterFrame = function () {
var i = 0;
while (i < 2) {
var arr = eval('c' + i);
controls(arr);
++i;
}
countishdown();
};
}
function controls(a) {
if (!Key.isDown(a.lef)) {
a.lefup = true;
}
if (a.lefup && Key.isDown(a.lef)) {
a.lefup = false;
if (!a.lockedin) {
var v3 = a.which.curpos - 1;
if (v3 < 0) {
v3 = 3;
}
var v5 = this['sel' + v3];
if (v5.seld) {
--v3;
}
if (v3 < 0) {
v3 = 3;
}
updatePos(a.which, v3);
}
}
if (!Key.isDown(a.rig)) {
a.rigup = true;
}
if (a.rigup && Key.isDown(a.rig)) {
a.rigup = false;
if (!a.lockedin) {
v3 = a.which.curpos + 1;
if (v3 > 3) {
v3 = 0;
}
v5 = this['sel' + v3];
if (v5.seld) {
++v3;
}
if (v3 > 3) {
v3 = 0;
}
updatePos(a.which, v3);
}
}
if (!Key.isDown(a.a)) {
a.aup = true;
}
if (a.aup && Key.isDown(a.a)) {
a.aup = false;
if (!a.lockedin) {
selmade.start();
a.lockedin = true;
}
var v4 = this['sel' + a.which.curpos];
v4.gotoAndStop('chosen');
}
}
function countishdown() {
if (this._currentframe == 2) {
var bothlocked = true;
var i = 0;
while (i < 2) {
var p = eval('c' + i);
if (!p.lockedin) {
bothlocked = false;
}
++i;
}
if (bothlocked) {
endIt();
return undefined;
}
}
++cn;
if (cn >= 24) {
cn = 0;
--cvv;
if (cvv < 0) {
cvv = 0;
if (this._currentframe == 2) {
if (!c0.lockedin) {
var tar = this['sel' + pointer1.curpos];
tar.gotoAndStop('chosen');
}
if (!c1.lockedin) {
var tar = this['sel' + pointer2.curpos];
tar.gotoAndStop('chosen');
}
selmade.start();
endIt();
} else {
selmade.start();
endIt2();
}
}
countish.text = cvv;
}
}
function updatePos(who, num) {
if (donner >= 2) {
selmove.start();
} else {
++donner;
}
var v3 = this['sel' + who.curpos];
v3.gotoAndStop('norm');
v3.seld = false;
var v2 = this['sel' + num];
who._x = v2._x + v2._width / 2;
v2.gotoAndStop('sel');
v2.red._visible = false;
v2.blue._visible = false;
if (who == pointer1) {
v2.blue._visible = true;
} else {
v2.red._visible = true;
}
v2.seld = true;
who.curpos = num;
}
stop();
delete this.onEnterFrame;
init();
this.selmade = new Sound(this);
selmade.attachSound('2pselmade');
this.selmove = new Sound(this);
selmove.attachSound('2pselmove');
}
frame 3 {
function init() {
fader.gotoAndPlay(1);
levnames = new Array();
levnames[1] = 'Scenic Canals';
levnames[2] = 'Spooky Yard';
levnames[3] = 'War Zone';
levnames[4] = 'Gymnasium';
levnames[5] = 'Gangland';
levnames[6] = 'Sacred Dojo';
levnames[7] = 'Big City Nightlife';
numlevs = 7;
cursel = 1;
updateSel();
cvv = 20;
cn = 0;
this.onEnterFrame = function () {
var i = 0;
while (i < 2) {
var arr = eval('c' + i);
controls2(arr);
++i;
}
countishdown();
};
}
function endIt2() {
selmade.start();
delete this.onEnterFrame;
dalevel = cursel - 1;
gotoAndStop('game');
}
function controls2(a) {
if (!Key.isDown(a.lef)) {
a.lefup = true;
}
if (a.lefup && Key.isDown(a.lef)) {
a.lefup = false;
--cursel;
if (cursel < 1) {
cursel = numlevs;
}
updateSel();
}
if (!Key.isDown(a.rig)) {
a.rigup = true;
}
if (a.rigup && Key.isDown(a.rig)) {
a.rigup = false;
++cursel;
if (cursel > numlevs) {
cursel = 1;
}
updateSel();
}
if (!Key.isDown(a.a)) {
a.aup = true;
}
if (a.aup && Key.isDown(a.a)) {
a.aup = false;
endIt2();
}
}
function updateSel() {
if (doneonce) {
selmove.start();
} else {
doneonce = true;
}
pic.gotoAndStop(cursel);
nam.text = levnames[cursel];
}
stop();
init();
}
frame 4 {
function updateHud() {
if (bg.dude0.hp < 0) {
bg.dude0.hp = 0;
}
if (bg.dude1.hp < 0) {
bg.dude1.hp = 0;
}
hud.bar0._xscale = (bg.dude0.hp / bg.dude0.maxhp) * 100;
hud.bar1._xscale = (bg.dude1.hp / bg.dude1.maxhp) * 100;
hud.face0.guts.gotoAndStop(Math.ceil((bg.dude0.hp / bg.dude0.maxhp) * 100 / 20));
hud.face1.guts.gotoAndStop(Math.ceil((bg.dude1.hp / bg.dude1.maxhp) * 100 / 20));
}
function init() {
bgm.bgloop.stop();
bgm.bgloop = new Sound(bgm);
bgm.bgloop.attachSound('2pmusic' + dalevel);
bgm.bgloop.start(0, 99);
bgm.bgloop.setVolume(50);
projectiles = new Array();
fader.gotoAndPlay(1);
effcv = 0;
swapem = new Array();
FRIC = 0.5;
hud = this.attachMovie('2p_hud', 'hud', 99);
hud._y = 224;
hud._x = 3;
hud.p0nam.text = nams[player1].toUpperCase();
hud.p1nam.text = nams[player2].toUpperCase();
hud.face0.gotoAndStop(player1 + 1);
hud.face1.gotoAndStop(player2 + 1);
bg = this.attachMovie('2pbg' + dalevel, 'bg', -10);
bgmuse = new Sound(this);
bgmuse.attachSound('music' + dalevel);
bgmuse.start(0, 999);
RIGHTLIM = bg._width;
bg.walk._alpha = 0;
p0 = bg.attachMovie('2pdude' + player1, 'dude0', 0);
p1 = bg.attachMovie('2pdude' + player2, 'dude1', 1);
var midpt = bg._width / 2;
p0._xscale = -100;
p0._x = midpt - 40;
p0._y = vertcent[dalevel];
p1._x = midpt + 40;
p1._y = vertcent[dalevel];
initDude(p0);
initDude(p1);
c0.partner = p0;
c1.partner = p1;
updateHud();
if (p1._x > p0._x) {
lead = p1;
fol = p0;
} else {
lead = p0;
fol = p1;
}
var dist = lead._x - fol._x;
pt = fol._x + dist / 2;
bg._x = -pt + 128;
this.onEnterFrame = function () {
var i = 0;
while (i < 2) {
var t = this['p' + i];
controls3(eval('c' + i));
phys(t);
centerCam();
moveProjectiles();
++i;
}
depthSort();
};
}
function centerCam() {
if (p1._x > p0._x) {
lead = p1;
fol = p0;
} else {
lead = p0;
fol = p1;
}
var v3 = lead._x - fol._x;
pt = fol._x + v3 / 2;
var v2 = -pt + 128;
var v1 = v2 - bg._x;
bg._x += v1 / 4;
if (bg._x < -RIGHTLIM + 256) {
bg._x = -RIGHTLIM + 256;
}
if (bg._x > 0) {
bg._x = 0;
}
}
function throwFireball(who) {
updateHud();
var v1 = bg.attachMovie('2p_fireball', 'ball' + effcv, effcv + 949);
++effcv;
v1._x = who._x;
v1._y = who._y;
v1._xscale = who._xscale;
var v3 = who._xscale / -100;
v1._x += 45 * v3;
v1.xvel = v3 * 3;
v1.fireball = true;
swapem.push(v1);
v1.filters = who.guts.filters;
projectiles.push(v1);
}
function moveProjectiles() {
var v2 = 0;
while (v2 < projectiles.length) {
var v1 = projectiles[v2];
v1._x += v1.xvel;
if (v1._x < 0 || v1._x > bg._width) {
removeProj(v1);
}
chkAttack(v1, v1.hitarea, 10, 0);
++v2;
}
}
function removeProj(who) {
var v1 = 0;
while (v1 < projectiles.length) {
if (projectiles[v1] == who) {
projectiles.splice(v1, 1);
}
++v1;
}
who.unloadMovie();
who.removeMovieClip();
}
function phys(who) {
if (who.dmg > 0) {
++who.dmgcv;
if (who.dmgcv >= 45) {
who.dmgcv = 0;
who.dmg = 0;
}
}
if (who.dashing) {
if (!who.jumpkicking) {
if (!who.elbowing) {
if (!who.sliding) {
var v7 = who._xscale / -100;
who.xvel = v7 * 6.5;
} else {
var v7 = who._xscale / 100;
who.xvel = v7 * 5.5;
++who.skidcv;
if (who.skidcv >= 6) {
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.supering = false;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
} else {
who.guts.gotoAndStop('elbow');
var v7 = who._xscale / -100;
who.xvel = v7 * 6.5;
++who.elbowcv;
if (who.elbowcv >= 9) {
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.supering = false;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
} else {
who.guts.gotoAndStop('jumpkick');
++who.jumpkickcv;
if (who.jumpkickcv == 15) {
updateHud();
}
if (who.jumpkickcv >= 20) {
who.xvel = 0;
if (who.jumpkickcv >= 45) {
who.guts.gotoAndStop('getup');
if (who.jumpkickcv >= 50) {
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.supering = false;
who.attacking = false;
who.guts.gotoAndStop('rest');
}
}
} else {
var v7 = who._xscale / -100;
who.xvel = v7 * 6.5;
}
}
}
var v4 = Math.abs(who.xvel);
var v3 = Math.abs(who.yvel);
if (v4 < 1) {
who.xvel = 0;
}
if (v3 < 1) {
who.yvel = 0;
}
who._x += who.xvel;
who.virtx = who._x + bg._x;
var v6 = bg._x + who._x;
var v5 = bg._y + who._y;
var v2 = bg.walk;
if (!shitTest(v2, v6, v5) || who.virtx < 0 || who.virtx > 256) {
who._x -= who.xvel;
who.xvel = 0;
if (who.dashing) {
runFall(who);
}
}
who._y += who.yvel;
v6 = bg._x + who._x;
v5 = bg._y + who._y;
v2 = bg.walk;
if (!shitTest(v2, v6, v5)) {
who._y -= who.yvel;
who.yvel = 0;
}
who.xvel *= FRIC;
who.yvel *= FRIC;
who.you._xscale = who._xscale;
who.tiredsign._xscale = who._xscale;
if (who.blinking) {
++who.blinkcv;
if (who.blinkcv >= 3) {
who.blinkcv = 0;
++who.blinker;
who.guts._visible = !who.guts._visible;
}
if (who.blinker >= 18) {
who._visible = true;
who.blinkcv = 0;
who.blinker = 0;
who.blinking = false;
who.you._visible = false;
}
}
}
function restrain(who, a) {
++ref;
if (ref == 50) {
ref = 0;
var v5 = 0;
var v4 = -250;
while (v4 < 650) {
var v2 = -100;
while (v2 < 380) {
if (shitTest(bg.walk, v4 / _root.sc + bg._x / _root.sc, v2 / _root.sc)) {
var v3 = bg.attachMovie('testpt', 'test' + v5, v5 + 999);
v3._x = v4;
v3._y = v2;
++v5;
}
v2 += 3;
}
v4 += 3;
}
}
}
function depthSort() {
var v1 = 0;
while (v1 < swapem.length) {
var v2 = swapem[v1];
if (v2._x == undefined) {
swapem.splice(v1, 1);
}
++v1;
}
var v3 = new Array();
v1 = 0;
while (v1 < swapem.length) {
v2 = swapem[v1];
v3.push({'nam': v2, 'yval': v2._y});
++v1;
}
var v6 = v3.sortOn('yval', Array.NUMERIC);
v1 = 0;
while (v1 < v6.length) {
v3[v1].nam.swapDepths(v1);
++v1;
}
}
function runFall(who, fireball, electric) {
who.divebomb = false;
who.guts._y = who.guts.home;
who.guts.yvel = 0;
who.supering = false;
who.attacking = false;
who.bicycle = false;
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
var v2 = who._xscale / 100;
if (who.sliding) {
v2 *= -1;
who._xscale *= -1;
}
who._x += v2 * 2;
who.xvel += v2 * 10;
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.supering = false;
who.attacking = false;
who.sliding = false;
who.onground = true;
if (!fireball) {
if (!electric) {
who.guts.gotoAndStop('fall');
} else {
who.guts.gotoAndStop('shocked');
}
} else {
who.guts.gotoAndStop('flamed');
}
}
function controls3(a) {
var v2 = a.partner;
++v2.moveexpire;
if (v2.moveexpire >= 18) {
v2.moveexpire = 0;
v2.trak = new Array();
}
if (!v2.divebombing) {
if (!v2.onground) {
if (!v2.hit) {
if (!v2.dashing) {
v2.blocking = false;
if (Key.isDown(a.a) && Key.isDown(a.b) && !v2.attacking) {
a.aup = false;
a.bup = false;
v2.guts.gotoAndStop('block');
v2.blocking = true;
v2.attacking = false;
}
if (!v2.blocking) {
v2.moving = false;
if (v2.dashcount > 0) {
++v2.dashexpire;
if (v2.dashexpire >= 6) {
v2.dashexpire = 0;
v2.dashcount = 0;
}
}
if (!Key.isDown(a.lef)) {
a.lefup = true;
}
if (Key.isDown(a.lef)) {
if (a.lefup) {
v2.trak.push('lef');
if (v2.lastpushed == 'rig') {
v2.dashcount = 0;
}
v2.lastpushed = 'lef';
++v2.dashcount;
if (v2.dashcount > 1 && !v2.attacking) {
v2.attacking = false;
v2.dashing = true;
}
}
a.lefup = false;
v2.xvel -= v2.sp;
if (!v2.attacking) {
v2._xscale = 100;
}
v2.moving = true;
}
if (!Key.isDown(a.rig)) {
a.rigup = true;
}
if (Key.isDown(a.rig)) {
if (a.rigup) {
v2.trak.push('rig');
if (v2.lastpushed == 'lef') {
v2.dashcount = 0;
}
v2.lastpushed = 'rig';
++v2.dashcount;
if (v2.dashcount > 1 && !v2.attacking) {
v2.attacking = false;
v2.dashing = true;
}
}
a.rigup = false;
v2.xvel += v2.sp;
if (!v2.attacking) {
v2._xscale = -100;
}
v2.moving = true;
}
if (!Key.isDown(a.upp)) {
a.uup = true;
}
if (Key.isDown(a.upp)) {
if (a.uup) {
v2.trak.push('upp');
}
a.uup = false;
if (!v2.attacking) {
v2.yvel -= v2.sp;
}
v2.moving = true;
}
if (!Key.isDown(a.dwn)) {
a.dup = true;
}
if (Key.isDown(a.dwn)) {
if (a.dup) {
v2.trak.push('dwn');
}
a.dup = false;
if (!v2.attacking) {
v2.yvel += v2.sp;
}
v2.moving = true;
}
if (!Key.isDown(a.b)) {
a.bup = true;
}
if (a.bup && Key.isDown(a.b) && !Key.isDown(a.a)) {
v2.trak.push('b');
a.bup = false;
if (!v2.attacking) {
swing.start();
v2.attacking = true;
v2.guts.gotoAndStop('kick');
}
chkMoveSet(v2);
}
if (!Key.isDown(a.a)) {
a.aup = true;
}
if (a.aup && Key.isDown(a.a) && !Key.isDown(a.b)) {
v2.trak.push('a');
a.aup = false;
if (!v2.attacking) {
if (v2.punchpointer < 2) {
swing.start();
} else {
bigswing.start();
}
v2.attacking = true;
v2.guts.gotoAndStop('punch' + v2.punchpointer);
++v2.punchpointer;
if (v2.punchpointer > 2) {
v2.punchpointer = 0;
}
chkMoveSet(v2);
}
}
if (v2.punchpointer > 0) {
++v2.punchexpire;
if (v2.punchexpire > 9) {
v2.punchexpire = 0;
v2.punchpointer = 0;
}
}
if (!v2.attacking && !v2.dashing) {
if (v2.moving) {
v2.guts.gotoAndStop('walk');
} else {
v2.guts.gotoAndStop('rest');
v2.supering = false;
}
}
}
} else {
if (!v2.supering) {
if (!v2.elbowing && !v2.jumpkicking) {
if (!v2.sliding) {
v2.guts.gotoAndStop('running');
if (Key.isDown(a.lef) && !Key.isDown(a.rig)) {
if (v2._xscale == -100) {
v2.sliding = true;
v2._xscale = 100;
}
}
if (Key.isDown(a.rig) && !Key.isDown(a.lef)) {
if (v2._xscale == 100) {
v2.sliding = true;
v2._xscale = -100;
}
}
if (!Key.isDown(a.a)) {
a.aup = true;
}
if (Key.isDown(a.a) && a.aup) {
v2.attacking = true;
updateHud();
a.aup = false;
v2.guts.gotoAndStop('elbow');
v2.elbowing = true;
}
if (!Key.isDown(a.b)) {
a.bup = true;
}
if (Key.isDown(a.b) && a.bup) {
a.bup = false;
v2.attacking = true;
v2.guts.gotoAndStop('jumpkick');
v2.jumpkicking = true;
}
} else {
v2.elbowing = false;
v2.jumpkicking = false;
v2.supering = false;
v2.attacking = false;
v2.guts.gotoAndStop('skid');
}
}
}
}
} else {
++v2.hitcv;
if (v2.hitcv >= 3) {
v2.hitcv = 0;
v2.hit = false;
}
}
} else {
if (v2.hp > 0) {
++v2.groundcv;
if (v2.groundcv >= v2.maxground - 5) {
v2.guts.gotoAndStop('getup');
if (v2.groundcv >= v2.maxground) {
v2.guts.gotoAndStop('rest');
v2.supering = false;
v2.attacking = false;
v2.onground = false;
}
}
} else {
++v2.diecv;
if (v2.diecv >= 3) {
v2.diecv = 0;
++v2.dieblink;
v2._visible = !v2._visible;
if (v2.dieblink >= 10) {
v2._visible = false;
}
}
if (v2.dieblink >= 40) {
if (v2 == bg.dude0) {
winner = player2;
} else {
winner = player1;
}
delete this.onEnterFrame;
bg.unloadMovie();
bg.removeMovieClip();
hud.unloadMovie();
hud.removeMovieClip();
bgmuse.stop();
gotoAndStop('result');
}
}
}
}
if (v2.attacking && !v2.bicycle && !v2.divebomb && !v2.dashing) {
v2.xvel = 0;
}
if (v2.divebomb) {
++v2.divedelay;
if (v2.divedelay > 7) {
if (!v2.divesoundplayed) {
raiden.start();
bigswing.start();
v2.divesoundplayed = true;
}
if (!v2.disposed) {
v2._x += v2.xvel;
v2.xvel = 8 * v2.divedir;
++v2.divecv;
v2.virtx = v2._x + bg._x;
v2.virty = v2._y + bg._y;
var v6 = v2._xscale / -100;
if (!shitTest(bg.walk, v2.virtx + v6 * 8, v2.virty)) {
v2.divecv = 25;
while (!shitTest(bg.walk, v2.virtx + v6 * 2, v2.virty)) {
v2._x -= v6;
v2.virtx -= v6;
}
runFall(v2);
if (v2.gotsomeone) {
v2.partner._xscale = v2._xscale * -1;
v2.partner._x = v2._x;
v2.partner._y = v2._y;
runFall(v2.partner);
}
return undefined;
}
var v5 = 0;
while (v5 < 2) {
var v3 = this.bg['dude' + v5];
if (v3 != v2) {
if (v3._y > v2._y - 5 && v3._y < v2._y + 5) {
var v7 = Math.abs(v3._x - v2._x);
if (v7 < 25) {
if (!v2.caughtsoundplayed) {
v2.caughtsoundplayed = true;
hit1.start();
}
v3._xscale = v2._xscale * -1;
v3.hit = true;
v3._x = v2._x + 20 * v2.divedir;
v3._y = v2._y - 2;
v3.xvel = 0;
v3.guts.gotoAndStop('hit1');
v2.gotsomeone = true;
v2.partner = v3;
v2.guts.yvel = -10;
}
}
}
++v5;
}
if (v2.gotsomeone) {
v2.partner.virtx = v2.partner._x + bg._x;
v2.partner.virty = v2.partner._y + bg._y;
v6 = v2._xscale / -100;
if (!shitTest(bg.walk, v2.virtx + v6 * 8, v2.virty)) {
while (!shitTest(bg.walk, v2.partner.virtx + v6 * 2, v2.partner.virty)) {
v2.partner._x -= v6;
v2.partner.virtx -= v6;
}
runFall(v2.partner);
}
}
}
if (v2.divecv >= 14) {
if (!v2.gotsomeone) {
v2.divecv = 0;
v2.divebomb = false;
v2.attacking = false;
v2.supering = false;
v2.guts.gotoAndStop('rest');
} else {
if (!v2.partner.onground) {
v2.partner.hp -= 10;
updateHud();
v2.partner.xvel = 0;
runFall(v2.partner);
}
v2.disposed = true;
v2._x -= 4 * v2.divedir;
v2.guts._y += v2.guts.yvel;
v2.guts.yvel += 1;
v2.guts.gotoAndStop('spin');
if (v2.guts._y >= v2.guts.home) {
v2.gotsomeone = false;
v2.guts.yvel = v2.guts.home;
v2.guts.yvel = 0;
v2.divecv = 0;
v2.divebomb = false;
v2.attacking = false;
v2.supering = false;
v2.guts.gotoAndStop('rest');
}
}
}
}
}
if (v2.bicycle) {
v2._x += v2.xvel;
v2.guts._y += v2.guts.yvel;
v2.guts.yvel += 0.5;
v2.virtx = v2._x + bg._x;
v2.virty = v2._y + bg._y;
v6 = v2._xscale / -100;
if (!shitTest(bg.walk, v2.virtx + v6 * 3, v2.virty)) {
while (!shitTest(bg.walk, v2.virtx + v6 * 2, v2.virty)) {
v2._x -= v6;
v2.virtx -= v6;
}
runFall(v2);
return undefined;
}
if (v2.guts._y >= v2.guts.home) {
v2.guts._y = v2.guts.home;
v2.guts.yvel = 0;
v2.attacking = false;
v2.supering = false;
v2.bicycle = false;
v2.guts.gotoAndStop('rest');
}
}
}
function chkMoveSet(who) {
if (who.trak.length == 3) {
var v3 = 0;
while (v3 < moves.length) {
allmatch = true;
var v2 = 0;
while (v2 < moves[v3].length) {
if (moves[v3][v2] != who.trak[v2]) {
allmatch = false;
}
++v2;
}
if (allmatch && !who.supering) {
if (v3 == 2) {
updateHud();
}
if (v3 == 1) {
updateHud();
var v4 = who._xscale / -100;
who.xvel += v4 * 10;
who.bicycle = true;
liu.start();
who.guts.home = who.guts._y;
who.guts.yvel = -5;
}
if (v3 == 3) {
who.caughtsoundplayed = false;
who.divesoundplayed = false;
who.guts.yvel = 0;
who.partner = undefined;
who.gotsomeone = false;
who.guts.home = who.guts._y;
who.divedelay = 0;
who.disposed = false;
who.divecv = 0;
updateHud();
who.divedir = who._xscale / -100;
who.divebomb = true;
}
who.trak = new Array();
who.attacking = true;
who.guts.gotoAndStop(trans[v3]);
who.supering = true;
}
++v3;
}
while (who.trak.length > 2) {
who.trak.splice(0, 1);
}
}
}
function chkAttack(who, box, amt, zone, superslap, splosion, jumpkick, electric) {
var i = 0;
while (i < 2) {
var tar = this.bg['dude' + i];
if (tar != who) {
if (tar._y > who._y - 5 && tar._y < who._y + 5) {
if (box.hitTest(tar.guts.hitarea) && !tar.onground && !tar.blinking) {
var dir1 = tar._xscale / -100;
var attdir = who._xscale / -100;
if (attdir == dir1 * -1) {
var facing = true;
} else {
var facing = false;
tar.blocking = false;
}
if (who._xscale == -100) {
tar._xscale = 100;
} else {
tar._xscale = -100;
}
var b = bg.attachMovie('2pburst', 'burst' + effcv, effcv + 36988);
++effcv;
var dir = who._xscale / -100;
b._x = who._x + 20 * dir;
if (zone == 0) {
b._y = who._y - 30;
} else {
b._y = who._y - 12;
}
tar.attacking = false;
tar.supering = false;
var which = eval('hit' + random(2));
which.start();
tar.virtx = tar._x + bg._x;
tar.virty = tar._y + bg._y;
for (;;) {
if (!(!shitTest(bg.walk, tar.virtx + 2, tar.virty) && tar._xscale == 100)) break;
--tar._x;
--tar.virtx;
}
for (;;) {
if (!(!shitTest(bg.walk, tar.virtx - 2, tar.virty) && tar._xscale == -100)) break;
++tar._x;
++tar.virtx;
}
if (!tar.blocking) {
++tar.dmg;
tar.hp -= amt;
updateHud();
if (tar.dmg > 3 || superslap || amt >= 3 || tar.hp <= 0 || electric) {
tar.dmgcv = 0;
tar.dmg = 0;
fball = false;
if (who.fireball) {
var fball = true;
}
runFall(tar, fball, electric);
} else {
tar.guts.gotoAndStop('hit' + tar.hitnum);
++tar.hitnum;
if (tar.hitnum > 1) {
tar.hitnum = 0;
}
tar.hit = true;
}
} else {
tar.hp -= amt * 0.15;
tar.xvel += dir * 2;
updateHud();
}
if (who.fireball) {
who.gotoAndStop('burst');
}
}
}
}
++i;
}
}
function initDude(who) {
who.guts.gotoAndStop('rest');
who.supering = false;
who.attacking = false;
who.blinking = true;
who.blinkcv = 0;
who.blinker = 0;
who.tiredsign._visible = false;
who.xvel = 0;
who.yvel = 0;
who.sp = 1.5;
who.hp = 100;
who.maxhp = who.hp;
who.jumpkickcv = 0;
who.jumpkicking = false;
who.elbowing = false;
who.elbowcv = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.supering = false;
who.attacking = false;
who.jumpkickcv = 0;
who.elbowcv = 0;
who.dmgcv = 0;
who.hitnum = 0;
who.dashing = false;
who.dashexpire = 0;
who.dashcount = 0;
who.sliding = false;
who.punchexpire = 0;
who.punchpointer = 0;
who.skidcv = 0;
who.groundcv = 0;
who.dmg = 0;
who.diecv = 0;
who.dieblink = 0;
moveexpire = 0;
who.trak = new Array();
who.maxground = 25;
swapem.push(who);
}
var nams = new Array('Abobo', 'Greenobo', 'Purpobo', 'Bluebobo');
var moves = new Array();
moves[0] = new Array('upp', 'dwn', 'a');
moves[1] = new Array('upp', 'dwn', 'b');
moves[2] = new Array('b', 'a', 'b');
moves[3] = new Array('a', 'b', 'a');
var vertcent = new Array(160, 170, 185, 180, 180, 150, 175);
trans = new Array('fireball', 'superkick', 'shocker', 'fly');
this.hit0 = new Sound(this);
hit0.attachSound('2phit0');
this.hit1 = new Sound(this);
hit1.attachSound('2phit1');
swing = new Sound(this);
swing.attachSound('2pswing');
bigswing = new Sound(this);
bigswing.attachSound('2pbigswing');
liu = new Sound(this);
liu.attachSound('2p_liukang');
raiden = new Sound(this);
raiden.attachSound('2p_raiden');
init();
ref = 0;
}
frame 5 {
function controls4(a) {
if (!Key.isDown(a.b)) {
bup = true;
}
if (Key.isDown(a.b) && bup) {
bup = false;
--count;
wrap.tim.text = count;
if (count <= 0) {
count = 0;
goOn();
}
}
}
function goOn() {
delete this.onEnterFrame;
_root.aup = false;
_root.gotoAndStop('main');
}
stopAllSounds();
bgm.bgloop.stop();
bgm.bgloop = new Sound(bgm);
bgm.bgloop.attachSound('2p_victory');
bgm.bgloop.start();
bgm.bgloop.setVolume(80);
mess = new Array();
mess[0] = new Array();
mess[0][0] = 'ABOBO SMASH! ABOBO DESTROY! ABOBO WIN! ABOBO GO EAT PORRIDGE TO CELEBRATE VICTORY!';
mess[0][1] = 'WHEN YOU WISH UPON A STAR..... IT LAUGH IN YOUR FACE AND GRANT MY WISH OF BEATING YOU INSTEAD!';
mess[1] = new Array();
mess[1][0] = 'GREENOBO SMASH YOUR FACE AND NOW ALL LADY PEOPLES LOVE ME! YOU MUST BE GREEN WITH ENVY!';
mess[1][1] = 'ME STRONG LIKE INCREDIBLE HULK! YOU PUNY LIKE PONY!';
mess[1][2] = 'ME AM A LEAN, MEAN, GREEN SMASHING MACHINE!';
mess[2] = new Array();
mess[2][0] = 'MAYBE YOU CRY LESS IF I GIVE YOU PURPLE NURPLE INSTEAD OF CRUSHING YOUR FACE?';
mess[2][1] = 'ME NO LIKE COLOR PURPLE, SO ME PAINT SELF RED WITH YOUR BLOOD!';
mess[3] = new Array();
mess[3][0] = 'LOOKS LIKE SOMEBODY HAD A BLUE, BLUE, BLUE CHRISTMAS!';
mess[3][1] = 'MY BLUE SUEDE SHOES LEAVE FOOTMARKS ON YOUR FACE!';
mess[3][2] = 'YOUR BONES MAKE CRUNCHY BLUE LAGOON!';
mess[3][3] = 'DON\'T FEEL SO BLUE. IT OK YOU WEAKLING. GO TAKE KNITTING CLASS INSTEAD AND LIVE LIFE OF WEAK POTATO BUG!';
var all = new Array();
all[0] = 'Los Bobos kick your ass! Los Bobos kick your face! Los Bobos kick your balls into outer spaaaaace!';
all[1] = 'BEFORE WE FOUGHT, YOU WERE HANDSOME LIKE ME. NOW YOU AM UGLY PILE OF STUPID!';
all[2] = 'ABOBO CAME HERE TO CHEW ASS AND KICK BUBBLE-GUM... AND ME ALL OUT OF ASS!';
all[3] = 'A WINNER IS ME! A LOSER IS YOU!';
all[4] = 'YOU LOOK LIKE HAMBURGER, BUT YOU TASTE LIKE DEFEATS!';
all[5] = 'COLOR ME BAD. COLOR YOU SAD.';
all[6] = 'JOIN THE NINTENDO FAN CLUB TODAY!';
all[7] = 'EVERYBODY WAS KUNG FU FIGHTING. EXCEPT YOU. YOU WERE JUST BEATEN TO JUICY PULP JUICES.';
all[8] = 'MAY THE FORCE OF MY FIST BE WITH YOU.';
all[9] = 'GO HOME AND BE A FAMILY MAN.';
all.push('I HAVE A BACHELOR\'S DEGREE IN BEATING UP BACHELORS!');
all.push('LET\'S KISS AND MAKE UP. OH WAIT, WE CAN\'T, BECAUSE I PUNCHED YOUR LIPS OFF!');
all.push('BEATING YOU SO EASILY WAS LIKE EATING RICE CAKES... UNFULFILLING.');
all.push('THIS GAME IS FREE TO PLAY, BUT YOU SHOULD INSERT QUARTERS ANYWAY FOR DISGRACING IT WITH THAT SO-CALLED FIGHT!');
all.push('DO YOU HAVE ANY INFANTS OR KITTENS I CAN BATTLE? I NEED MORE OF A CHALLENGE.');
var i = 0;
while (i < all.length) {
var r = 0;
while (r < mess.length) {
mess[r].push(all[i]);
++r;
}
++i;
}
wrap.picwrap.attachMovie('2p_charsel' + winner, 'guts', 0);
wrap.picwrap.guts.gotoAndStop('sel');
wrap.head.text = nams[winner] + ' WINS';
var cat = winner;
var which = mess[cat][random(mess[cat].length)];
wrap.bod.text = '"' + which + '"';
wrap.tim.text = 0;
cv = 0;
count = 15;
fader.unloadMovie();
fader.removeMovieClip();
if (player1 == winner) {
winnum = 0;
} else {
winnum = 1;
}
this.onEnterFrame = function () {
controls4(eval('c' + winnum));
++cv;
if (cv >= 24) {
cv = 0;
--count;
wrap.tim.text = count;
if (count <= 0) {
count = 0;
goOn();
}
}
};
}
}
frame 24 {
stop();
stopAllSounds();
lives = undefined;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
}
movieClip 15930 {
}
movieClip 15932 {
frame 675 {
_root.gotoAndStop(1);
}
}
frame 25 {
function unlockPoster() {
lockies[3] = false;
saveStuff();
}
function endFalkor() {
_root.trashDump();
_root.gotoAndStop('main');
}
stop();
stopAllSounds();
lives = undefined;
_root.hud.unloadMovie();
_root.hud.removeMovieClip();
_root.psign.unloadMovie();
_root.psign.removeMovieClip();
_root.psign2.unloadMovie();
_root.psign2.removeMovieClip();
_root.aboboMedal('Luckdragon');
}