Frame 1
stop();
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 171 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 14 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 49 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 51 Button
on (release) {
_root.play();
}
Instance of Symbol 49 MovieClip in Symbol 58 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
Symbol 58 MovieClip Frame 349
_root.play();
Symbol 63 Button
on (release) {
p2human = false;
gotoAndStop (4);
}
Symbol 66 Button
on (release) {
p2human = true;
gotoAndStop (4);
}
Symbol 72 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 83 MovieClip Frame 5
stop();
Symbol 92 MovieClip Frame 24
_parent._parent.gotoAndStop(1);
Symbol 100 MovieClip Frame 5
stop();
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_parent._parent.ig.bounds.hitTest((_parent._x + _parent._parent._x) + _parent.xSpeed, _parent._y + _parent._parent._y, true)) {
_parent._x = _parent._x + _parent.xSpeed;
if (Math.abs(_parent._x) > 1000) {
trace("OMFG");
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(7);
_parent._parent.changeTurn();
}
} else {
_parent._parent.makeRockSound();
_parent.xSpeed = _parent.xSpeed * -0.8;
}
if (!_parent._parent.ig.bounds.hitTest(_parent._x + _parent._parent._x, (_parent._y + _parent._parent._y) + _parent.ySpeed, true)) {
_parent._y = _parent._y + _parent.ySpeed;
if (Math.abs(_parent.ySpeed) < 1) {
_parent.xSpeed = _parent.xSpeed / 1.1;
trace("friction slide");
}
} else {
trace("pmode = " + _parent._parent.pmode);
inc = _parent.ySpeed;
while ((Math.abs(inc) > 1) && (_parent._parent.ig.bounds.hitTest(_parent._x + _parent._parent._x, (_parent._y + _parent._parent._y) + inc, true))) {
inc = inc - (Math.abs(inc) / inc);
}
if (Math.abs(inc) > 1) {
_parent._y = _parent._y + inc;
}
if (((Math.abs(inc) > 1) || ((_parent._x < 190) && (_parent._parent.pmode == 1))) || ((_parent._x > 360) && (_parent._parent.pmode == 2))) {
if ((_parent.y > 329) && (Math.abs(_parent.ySpeed) < 1)) {
_parent.ySpeed = 0;
}
_parent.ySpeed = _parent.ySpeed * -0.5;
}
_parent.xSpeed = _parent.xSpeed * 0.8;
_parent._parent.makeRockSound();
}
_parent._rotation = _parent._rotation + _parent.xSpeed;
if (!_parent._parent.ig.bounds.hitTest(_parent._x + _parent._parent._x, ((_parent._y + _parent._parent._y) + _parent.ySpeed) + 2, true)) {
_parent.ySpeed = _parent.ySpeed + 2;
}
if (((Math.abs(_parent.xSpeed) < 0.5) && (Math.abs(_parent._y - lastY) < 1.5)) || (_parent._y > 500)) {
stallTime++;
if (stallTime >= 30) {
i = 30;
while (i >= 1) {
if (_parent.hitCore.hitTest(_parent._parent["gm" + i]._x + _parent._parent._x, _parent._parent["gm" + i]._y + _parent._parent._y, false) && (_parent._parent.ig.bounds["staticPro" + i]._currentframe == 5)) {
_parent._parent.ig.bounds["staticPro" + i]._rotation = _parent._rotation;
if (_parent._parent["gm" + i]._currentframe == 30) {
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(_parent._currentframe + 1);
_parent._parent.gotoAndStop(3);
} else if (_parent._parent["gm" + i]._currentframe >= 22) {
_parent._parent.announ.gotoAndPlay(2);
if (_parent._parent.pmode == 1) {
_parent._parent.cannonl.ready = true;
} else {
_parent._parent.cannonr.ready = true;
}
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(_parent._currentframe + 1);
} else if (_parent._parent["gm" + i]._currentframe >= 16) {
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(7);
_parent._parent.changeTurn();
} else if (_parent._parent["gm" + i]._currentframe >= 11) {
a = 1;
while (a <= 30) {
if ((((i != a) && _parent._parent["gm" + i].hitTest(_parent._parent["gm" + a])) && (_parent._parent["gm" + a]._alpha == 0)) && (_parent._parent.ig.bounds["staticPro" + a]._currentframe != 5)) {
_parent._parent.ig.bounds["staticPro" + a].gotoAndStop(_parent._parent.pmode);
}
a++;
}
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(7 + _parent._parent.pmode);
_parent._parent.changeTurn();
} else {
_parent._parent.ig.bounds["staticPro" + i].gotoAndStop(_parent._currentframe + 1);
_parent._parent.changeTurn();
}
_parent.gotoAndStop(1);
}
i--;
}
if (i == 0) {
_parent._parent.changeTurn();
_parent.gfc.gotoAndStop(6);
_parent.gotoAndStop(7);
}
}
} else {
stallTime = 0;
}
lastY = _parent._y;
}
Instance of Symbol 102 MovieClip "gfc" in Symbol 110 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._currentframe - 1);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 163 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 168 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 170 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 170 MovieClip Frame 35
if (_currentframe == 35) {
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 57
orange = 0;
purple = 0;
iter = 0;
countSound = new Sound();
countSound.attachSound("countSound");
Symbol 170 MovieClip Frame 65
iter++;
if (iter <= 30) {
f = _parent.ig.bounds["staticPro" + iter]._currentframe;
if (((f == 1) || (f == 3)) || (f == 8)) {
orange++;
_parent.ig.bounds["staticPro" + iter].gotoAndStop(7);
countSound.start();
gotoAndPlay (59);
} else if (((f == 2) || (f == 4)) || (f == 9)) {
purple++;
_parent.ig.bounds["staticPro" + iter].gotoAndStop(7);
countSound.start();
gotoAndPlay (59);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 170 MovieClip Frame 85
if (orange > purple) {
gotoAndStop (86);
} else if (purple > orange) {
gotoAndStop (87);
} else if (_parent.pmode == 1) {
gotoAndStop (86);
} else {
gotoAndStop (87);
}
Symbol 171 MovieClip Frame 1
gotoAndStop (2);
Symbol 171 MovieClip Frame 2
function showGrid(b) {
i = 1;
while (i <= 30) {
if (ig.bounds["staticPro" + i]._currentframe != 5) {
this["gm" + i]._alpha = 0;
} else if (b) {
this["gm" + i]._alpha = 100;
} else {
this["gm" + i]._alpha = 60;
}
i++;
}
}
function changeTurn() {
if ((pro1._x > (550 - _x)) || (pro1._x < 0)) {
pro1.gotoAndStop(1);
}
_quality = "LOW";
showGrid(true);
if (pmode == 1) {
cannonr.ready = true;
pmode = 3;
} else if (pmode == 2) {
pmode = 4;
cannonl.ready = true;
}
}
function makeRockSound() {
if (timeSince > 6) {
rndSnd = "NEG-rock" + (random(3) + 1);
rockSound.attachSound(rndSnd);
rockSound.start();
}
timeSince = 0;
}
_x = 0;
Mouse.hide();
stop();
p2human = _root.p2human;
pmode = 1;
rockSound = new Sound();
timeSince = 0;
i = 1;
while (i <= 30) {
ig.bounds["staticPro" + i].gotoAndStop(5);
i++;
}
this.onEnterFrame = function () {
timeSince++;
if (pmode == 3) {
if (_x > -140) {
announ._x = announ._x + 6;
_x = (_x - 6);
} else {
_quality = "HIGH";
pmode = 2;
}
} else if (pmode == 4) {
if (_x < -10) {
announ._x = announ._x - 6;
_x = (_x + 6);
} else {
_quality = "HIGH";
pmode = 1;
}
}
};
Instance of Symbol 118 MovieClip "cannonl" in Symbol 171 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.pmode == 1) {
if (Math.abs(Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.3) < 90) {
_rotation = (Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.3);
} else if ((Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.3) < 0) {
_rotation = -89;
} else {
_rotation = 89;
}
_parent.curAngle = "ANGLE: " + Math.round(-_rotation);
if (!ready) {
_x = (startX + xArray[inc]);
_y = (startY + yArray[inc]);
inc++;
}
}
}
onClipEvent (mouseDown) {
if (_parent.pmode == 1) {
if (ready) {
xs = -Math.cos(Math.abs(_rotation) / 57.3);
ys = (-(_rotation / Math.abs(_rotation))) * Math.sin(Math.abs(_rotation) / 57.3);
xArray = new Array();
yArray = new Array();
xArray = [xs, xs * 3, xs * 9, xs * 10, xs * 10, xs * 9, xs * 3, xs];
yArray = [ys, ys * 3, ys * 9, ys * 10, ys * 10, ys * 9, ys * 3, ys];
inc = 0;
ready = false;
play();
_parent.pro1._x = _x;
_parent.pro1._y = _y;
_parent.pro1.xSpeed = (-xs) * 28;
_parent.pro1.ySpeed = (-ys) * 32;
_parent.curAngle = "";
_parent.showGrid(false);
_parent.pro1.gotoAndStop(2);
}
}
}
onClipEvent (load) {
ready = true;
startX = _x;
startY = _y;
}
Instance of Symbol 125 MovieClip "cannonr" in Symbol 171 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.pmode == 2) {
if (_parent.p2human) {
if (Math.abs(Math.atan2(_root._ymouse - _y, (_x + _parent._x) - _root._xmouse) * 57.3) < 90) {
_rotation = ((-Math.atan2(_root._ymouse - _y, (_x + _parent._x) - _root._xmouse)) * 57.3);
} else if ((Math.atan2(_root._ymouse - _y, (_x + _parent._x) - _root._xmouse) * 57.3) < 0) {
_rotation = 89;
} else {
_rotation = -89;
}
_parent.curAngle = "ANGLE: " + Math.round(_rotation);
if (!ready) {
_x = (startX + xArray[inc]);
_y = (startY + yArray[inc]);
inc++;
}
} else if (ready && (_parent.pmode == 2)) {
if (Math.random() > 0.7) {
_rotation = (-40 - random(35));
} else {
_rotation = (62 + random(27));
}
_parent.curAngle = "ANGLE: " + Math.round(_rotation);
xs = Math.cos(Math.abs(_rotation) / 57.3);
ys = (_rotation / Math.abs(_rotation)) * Math.sin(Math.abs(_rotation) / 57.3);
xArray = new Array();
yArray = new Array();
xArray = [xs, xs * 3, xs * 9, xs * 10, xs * 10, xs * 9, xs * 3, xs];
yArray = [ys, ys * 3, ys * 9, ys * 10, ys * 10, ys * 9, ys * 3, ys];
inc = 0;
ready = false;
play();
_parent.pro1._x = _x;
_parent.pro1._y = _y;
_parent.pro1.xSpeed = (-xs) * 28;
_parent.pro1.ySpeed = (-ys) * 32;
_parent.curAngle = "";
_parent.showGrid(false);
_parent.pro1.gotoAndStop(3);
}
}
}
onClipEvent (mouseDown) {
if ((_parent.pmode == 2) && (_parent.p2human)) {
if (ready) {
xs = Math.cos(Math.abs(_rotation) / 57.3);
ys = (_rotation / Math.abs(_rotation)) * Math.sin(Math.abs(_rotation) / 57.3);
xArray = new Array();
yArray = new Array();
xArray = [xs, xs * 3, xs * 9, xs * 10, xs * 10, xs * 9, xs * 3, xs];
yArray = [ys, ys * 3, ys * 9, ys * 10, ys * 10, ys * 9, ys * 3, ys];
inc = 0;
ready = false;
play();
_parent.pro1._x = _x;
_parent.pro1._y = _y;
_parent.pro1.xSpeed = (-xs) * 28;
_parent.pro1.ySpeed = (-ys) * 32;
_parent.curAngle = "";
_parent.showGrid(false);
_parent.pro1.gotoAndStop(3);
}
}
}
onClipEvent (load) {
ready = true;
startX = _x;
startY = _y;
}
Instance of Symbol 143 MovieClip "gm1" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (30);
}
Instance of Symbol 143 MovieClip "gm2" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (30);
}
Instance of Symbol 143 MovieClip "gm7" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm8" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm3" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm4" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm5" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm6" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm13" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm9" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm10" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm11" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm12" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm19" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm14" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm15" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm16" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm17" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm18" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm20" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm21" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm22" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm23" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm24" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(26) + 1);
}
Instance of Symbol 143 MovieClip "gm25" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (16);
}
Instance of Symbol 143 MovieClip "gm26" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip "gm27" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip "gm28" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip "gm29" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 143 MovieClip "gm30" in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (16);
}
Instance of Symbol 149 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (enterFrame) {
_x = (_root._xmouse - _parent._x);
_y = (_root._ymouse - _parent._y);
}
Symbol 171 MovieClip Frame 3
Mouse.show();
announ.gotoAndPlay(36);