Frame 1
hs = 0;
Instance of Symbol 21 MovieClip in Frame 1
on (release) {
getURL ("http://gamegecko.com", _blank);
}
Instance of Symbol 26 MovieClip in Frame 2
on (release) {
getURL ("http://gamegecko.com", _blank);
}
Frame 4
stop();
_quality = "medium";
Instance of Symbol 56 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.onPress = function () {
_root.gotoAndStop("game");
};
}
Instance of Symbol 58 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.onPress = function () {
_root.gotoAndStop("howto");
};
}
Instance of Symbol 61 MovieClip in Frame 4
on (release) {
getURL ("http://gamegecko.com", _blank);
}
Instance of Symbol 63 MovieClip in Frame 4
onClipEvent (enterFrame) {
Mouse.hide();
this.startDrag(true);
}
Instance of Symbol 66 MovieClip "p" in Frame 4
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
swapDepths(9999999);
_alpha = 0;
if (_root.pause) {
_alpha = 50;
}
if (t > 30) {
if (Key.isDown(80)) {
if (_root.pause) {
_root.pause = false;
t = 0;
} else {
_root.pause = true;
t = 0;
}
}
} else {
t++;
}
}
Instance of Symbol 104 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.onPress = function () {
_root.gotoAndStop("menu");
};
}
Instance of Symbol 107 MovieClip in Frame 5
on (rollOver) {
_xscale = 135;
_yscale = 135;
_alpha = 75;
}
on (rollOut) {
_xscale = 100;
_yscale = 100;
_alpha = 100;
}
Frame 6
function onEnterFrame() {
if (!_root.pause) {
if (po >= 10) {
lvl++;
po = 0;
}
poop = ["level " + lvl];
if (boom) {
if (tz > 25) {
boom = false;
} else {
tz++;
}
}
if (i >= (80 - (sco / 2))) {
if (s == 2045) {
s = 2000;
}
if (count < 45) {
s++;
count++;
}
duplicateMovieClip ("bad", "bad" + s, s);
i = 0;
} else {
i++;
}
}
}
var sco = 0;
var s = 2000;
var i = 0;
var count = 0;
var tz = 0;
var dead = false;
var po = 0;
var lvl = 1;
Instance of Symbol 101 MovieClip "bad" in Frame 6
onClipEvent (load) {
var rnd = Math.round;
var rt = _root;
var z = ((random(50) + 5) + (rt.g._xscale / 15));
_xscale = (60 + z);
_yscale = (60 + z);
if (rnd(random(4) + 1) == 1) {
_x = 540;
_y = (random(520) - 200);
}
if (rnd(random(4) + 1) == 2) {
_x = (random(540) - 200);
_y = -2;
}
if (rnd(random(4) + 1) == 3) {
_x = -2;
_y = (random(420) - 200);
}
var spd = (2 + (rt.lvl / 6));
var ang = 0;
var lvl2 = false;
var lvl3 = false;
var lvl4 = false;
var lvl5 = false;
var lvl6 = false;
if ((random(50) + 1) > 40) {
item = true;
} else {
item = false;
}
if (rt.lvl >= 2) {
if (random(25 - rt.lvl) == 0) {
lvl2 = true;
}
}
if (rt.lvl >= 3) {
if (random(25 - rt.lvl) == 1) {
lvl3 = true;
}
}
if (rt.lvl >= 4) {
if (random(25 - rt.lvl) == 2) {
lvl4 = true;
}
}
if (rt.lvl >= 5) {
if (random(25 - rt.lvl) == 0) {
lvl5 = true;
}
}
if (rt.lvl >= 6) {
if (random(25 - rt.lvl) == 1) {
lvl6 = true;
}
}
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if (_name == "bad") {
_x = 590;
_y = random(600);
_alpha = 0;
} else {
_alpha = 100;
if (lvl2) {
bs.gotoAndStop(2);
tz.gotoAndStop(2);
spd = 3 + (rt.lvl / 6);
}
if (lvl3) {
bs.gotoAndStop(3);
tz.gotoAndStop(3);
spd = 4 + (rt.lvl / 6);
}
if (lvl4) {
bs.gotoAndStop(4);
tz.gotoAndStop(4);
spd = 5 + (rt.lvl / 6);
}
if (lvl5) {
bs.gotoAndStop(5);
tz.gotoAndStop(5);
spd = 6 + (rt.lvl / 6);
}
if (lvl6) {
bs.gotoAndStop(6);
tz.gotoAndStop(6);
spd = 7 + (rt.lvl / 6);
}
if (ang == 0) {
Xdiff = rt.cu._x - _x;
Ydiff = rt.cu._y - _y;
radAngle = Math.atan2(Ydiff, Xdiff);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
ang = 1;
}
if (rt.boom == true) {
rt.q = rt.q + 1;
play();
}
if (rt.dead == true) {
rt.shake = true;
rt.st = 0;
play();
}
if ((!rt._currentframe) == 2) {
this.removeMovieClip();
}
if (this.hitTest(rt.cu)) {
if (this._currentframe == 1) {
rt.dead = true;
}
}
if (this.hitTest(rt.g)) {
rt.q = rt.q + 1;
play();
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > 600) || (_y > 500)) || (_x < -200)) || (_y < -200)) {
gotoAndStop ("dead");
}
}
}
}
}
Instance of Symbol 110 MovieClip in Frame 6
onClipEvent (load) {
this._alpha = 22;
}
Instance of Symbol 72 MovieClip "cu" in Frame 6
onClipEvent (load) {
var spd = 45;
var track2x = this._x;
var track2y = this._y;
var rnd = Math.round;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
spd = 45 - _root.lvl;
_xscale = (_root.g._xscale + 55);
_yscale = (_root.g._yscale + 55);
angle_in_radians = Math.atan2(_root.g._y - this._y, _root.g._x - this._x);
angle_in_degrees = rnd((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
yDifference = rnd(_root.g._y - this._y);
y_Amount_to_Move_tank = rnd(yDifference / spd);
this._y = y_Amount_to_Move_tank + this._y;
xDifference = rnd(_root.g._x - this._x);
x_Amount_to_Move_tank = rnd(xDifference / spd);
this._x = x_Amount_to_Move_tank + this._x;
if (_root.dead) {
play();
}
}
}
Instance of Symbol 76 MovieClip "g" in Frame 6
onClipEvent (load) {
_root.spd = 13;
track2x = _x;
track2y = _y;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
a = Math.round;
_root.spd = 13 - _root.lvl;
if (_root.spd <= 7) {
_root.spd = 7;
}
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = a((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
yDifference = a(_root._ymouse - this._y);
y_Amount_to_Move_tank = a(yDifference / _root.spd);
this._y = y_Amount_to_Move_tank + this._y;
xDifference = a(_root._xmouse - this._x);
x_Amount_to_Move_tank = a(xDifference / _root.spd);
this._x = x_Amount_to_Move_tank + this._x;
if (_root.dead == true) {
play();
}
}
}
Instance of Symbol 112 MovieClip "cam" in Frame 6
onClipEvent (load) {
var xplace = _x;
var yplace = _y;
}
onClipEvent (enterFrame) {
if (_root.shake) {
_x = ((xplace + random(15)) - 10);
_y = ((yplace + random(15)) - 10);
_root.st++;
if (_root.st >= 15) {
_x = xplace;
_y = yplace;
_root.shake = false;
}
} else if (_root.shake == false) {
_x = xplace;
_y = yplace;
}
}
Frame 7
p.removeMovieClip();
onEnterFrame = function () {
if (sco > hs) {
hs = sco;
}
};
Instance of Symbol 117 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.onPress = function () {
_root.dead = false;
_root.gotoAndStop("game");
_root.stopAllSounds();
};
}
Instance of Symbol 104 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.onPress = function () {
_root.dead = false;
_root.gotoAndStop("menu");
_root.stopAllSounds();
};
}
Symbol 5 MovieClip [fps] Frame 1
fps = 30;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local1.getMilliseconds();
};
Symbol 11 MovieClip [item] Frame 1
function onEnterFrame() {
if (t1 == 0) {
_alpha = (_alpha + 4);
if (_alpha >= 100) {
t1 = 1;
}
}
if (t1 == 1) {
_alpha = (_alpha - 2);
if (_alpha < 0) {
this.removeMovieClip();
}
}
if (_root.g.hitTest(_x, _y, true)) {
if (t1 == 1) {
_root.boom = true;
this.removeMovieClip();
}
}
}
stop();
t1 = 0;
Symbol 17 Button
on (release) {
_root.nextFrame();
}
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 26 MovieClip Frame 1
_root.stop();
Symbol 26 MovieClip Frame 144
_root.nextFrame();
Symbol 32 Button
on (release) {
_root.sound.play();
}
Symbol 34 Button
on (release) {
_root.sound.stop();
}
Symbol 53 MovieClip Frame 1
_root.stop();
Symbol 53 MovieClip Frame 132
_root.play();
Symbol 72 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 15
_root.gotoAndStop("dead");
Symbol 91 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 15
if (_root.dead == false) {
_root.po = _root.po + 1;
_root.sco = _root.sco + 1;
_root.count = _root.count - 1;
_root.g._xscale = _root.g._xscale + 0.5;
_root.g._yscale = _root.g._yscale + 0.5;
_root.shake = true;
_root.st = 0;
if (item == true) {
_root.attachMovie("item", "itemz" + _root.q, 1000 + _root.q);
_root["itemz" + _root.q]._x = this._x;
_root["itemz" + _root.q]._y = this._y;
_root["itemz" + _root.q]._alpha = 50;
}
}
this.removeMovieClip();
this.unloadMovie();
Symbol 101 MovieClip Frame 16
_root.count = _root.count - 1;
this.removeMovieClip();
this.unloadMovie();
Instance of Symbol 101 MovieClip in Symbol 102 MovieClip Frame 85
onClipEvent (enterFrame) {
play();
}
Symbol 112 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;