Frame 1
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
tellTarget (_root.loader) {
gotoAndStop(_root.percentbytes);
};
play();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
if (loadedbytes >= totalbytes) {
play();
} else {
gotoAndPlay (1);
}
__com_mochibot__("2dac505f", this, 10301, true);
Frame 3
stop();
_root.kongregateServices.connect();
var titlemusic = new Sound();
titlemusic.setVolume(60);
titlemusic.attachSound("menu_music");
titlemusic.start();
titlemusic.onSoundComplete = function () {
titlemusic.start();
};
this.onEnterFrame = function () {
infob.onPress = function () {
gotoAndPlay ("instructions");
};
if (infobover == true) {
infob.nextFrame();
} else {
infob.prevFrame();
}
infob.onRollOver = function () {
infobover = true;
};
infob.onRollOut = function () {
infobover = false;
};
playb.onPress = function () {
gotoAndStop (16);
};
if (playbover == true) {
playb.nextFrame();
} else {
playb.prevFrame();
}
playb.onRollOver = function () {
playbover = true;
};
playb.onRollOut = function () {
playbover = false;
};
};
Frame 11
stop();
Frame 16
_root.basicdamage = 6;
_root.lazerdamage = 3;
_root.scatterdamage = 3;
_root.snipedamage = 28;
_root.rocketdamage = 22;
_root.plasmadamage = 3;
_root.sniperdamage = 30;
_root.score = 0;
_root.point = 0;
_root.killCount = 0;
_root.basicmax = 50;
_root.basicammo = _root.basicmax;
_root.weapontype = 1;
_root.lazerammo = 0;
_root.scatterammo = 0;
_root.snipeammo = 0;
_root.rocketammo = 0;
_root.plasmaammo = 0;
_root.basicbounce = false;
_root.laserbounce = false;
_root.weapons = new Array(true, false, false, false, false, false, false, false);
_root.shots = new Array();
_root.enemies = new Array();
_root.gameover = false;
_root.gpause = false;
_root.floornumber = 1;
_root.side = 0;
_root.invincing = false;
_root.charge = 0;
_root.invinciblecounter = 0;
_root.speed = 13;
_root.p1hp = 20;
_root.p1hpmax = _root.p1hp;
stopAllSounds();
_root.sound_on = true;
var music = new Sound();
music.setVolume(100);
music.attachSound("92719_Trance");
music.start();
music.onSoundComplete = function () {
music.start();
};
var basicsound = new Sound();
basicsound.setVolume(40);
basicsound.attachSound("Basicshotsound");
gotoAndPlay ("go");
depth = 0;
attachMovie("aniSmoke", "smoke", depth++);
smoke = _root.smoke;
smoke._alpha = 0;
this.onEnterFrame = function () {
infob.onPress = function () {
gotoAndPlay (16);
};
if (infobover == true) {
infob.nextFrame();
} else {
infob.prevFrame();
}
infob.onRollOver = function () {
infobover = true;
};
infob.onRollOut = function () {
infobover = false;
};
};
Instance of Symbol 132 MovieClip in Frame 16
onClipEvent (enterFrame) {
this.gotoAndStop(_root.floornumber);
}
Instance of Symbol 135 MovieClip in Frame 16
onClipEvent (enterFrame) {
this.gotoAndStop(_root.floornumber);
}
Instance of Symbol 142 MovieClip "console" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 227 MovieClip "shop" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._x = this._x - 222;
this._y = this._y - 210;
}
onClipEvent (load) {
this._visible = false;
}
Frame 17
_root.kongregateScores.submit(_root.score);
_root.kongregateStats.submit("Score", _root.score);
_root.kongregateStats.submit("Stage", _root.floornumber);
_root.kongregateStats.submit("Points", _root.point);
_root.kongregateStats.submit("Damage per basic bullet", _root.basicdamage);
_root.kongregateStats.submit("Laser", _root.weapons[1]);
_root.kongregateStats.submit("Scattergun", _root.weapons[2]);
_root.kongregateStats.submit("Sniper", _root.weapons[3]);
_root.kongregateStats.submit("Rocket", _root.weapons[4]);
_root.gameover = true;
stopAllSounds();
Frame 22
Instance of Symbol 245 MovieClip "shot" in Frame 22
onClipEvent (load) {
_root.shotcount = _root.shotcount + 1;
if (_root.weapontype == 5) {
this.speed = 0;
}
}
onClipEvent (load) {
if (String(_name) != "shot") {
var cannonLength = 20;
var timer = 0;
var turretPoint = 0;
if (_root.weapontype == 6) {
turretPoint = _parent.cruiser._rotation + _parent.cruiser.turret._rotation;
turretPoint = turretPoint + random(20);
turretPoint = turretPoint - random(20);
angle = ((turretpoint / 360) * 2) * Math.PI;
} else if (_root.weapontype != 3) {
turretpoint = _parent.cruiser._rotation + _parent.cruiser.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
} else {
turretpoint = _parent.cruiser._rotation + _parent.cruiser.turret._rotation;
turretpoint = turretpoint + random(35);
turretpoint = turretpoint - random(35);
angle = ((turretpoint / 360) * 2) * Math.PI;
}
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.cruiser._x);
_y = (ycomponent + _parent.cruiser._y);
if (_root.weapontype == 1) {
xmove = (xcomponent / cannonLength) * 15;
ymove = (ycomponent / cannonLength) * 15;
} else if (_root.weapontype == 2) {
xmove = (xcomponent / cannonLength) * 25;
ymove = (ycomponent / cannonLength) * 25;
} else if (_root.weapontype == 3) {
xmove = (xcomponent / cannonLength) * 17;
ymove = (ycomponent / cannonLength) * 17;
} else if (_root.weapontype == 4) {
xmove = (xcomponent / cannonLength) * 1;
ymove = (ycomponent / cannonLength) * 1;
} else if (_root.weapontype == 4) {
xmove = (xcomponent / cannonLength) * 16;
ymove = (ycomponent / cannonLength) * 16;
} else if (_root.weapontype == 5) {
xmove = (xcomponent / cannonLength) * this.speed;
ymove = (ycomponent / cannonLength) * this.speed;
} else if (_root.weapontype == 6) {
xmove = (xcomponent / cannonLength) * 11;
ymove = (ycomponent / cannonLength) * 11;
} else if (_root.weapontype == 7) {
xmove = (xcomponent / cannonLength) * 5;
ymove = (ycomponent / cannonLength) * 5;
}
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.weapontype == 5) {
this.speed = this.speed + 2;
xmove = (xcomponent / cannonLength) * this.speed;
ymove = (ycomponent / cannonLength) * this.speed;
}
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.weapontype == 3) {
this.timer = this.timer + 6;
} else if (_root.weapontype == 4) {
this.timer = this.timer + 40;
} else if (_root.weapontype == 6) {
this.timer = this.timer + 8;
} else {
this.timer = this.timer + 1;
}
if (this.timer > (50 + random(20))) {
_root.depthcount++;
if (_root.weapontype != 6) {
if (_root.weapontype == 5) {
_root.explosion.duplicateMovieClip("explosion" + _root.depthcount, _root.depthcount + 1000);
} else {
_root.damagedGround.duplicateMovieClip("explosion" + _root.depthcount, _root.depthcount + 1000);
}
}
_parent["explosion" + _root.depthcount]._x = _x;
_parent["explosion" + _root.depthcount]._y = _y;
removeMovieClip(this);
}
radius = 10;
if (((_root.wall.hitTest(_x, _y + radius, true) || (_root.wall.hitTest(_x, _y - radius, true))) || (_root.wall.hitTest(_x - radius, _y, true))) || (_root.wall.hitTest(_x + radius, _y, true))) {
if (_root.basicbounce == true) {
if (_root.wall.hitTest(_x, _y + radius, true) || (_root.wall.hitTest(_x - radius, _y, true))) {
ymove = ymove * -1;
this.rotation = 360 - this.rotation;
} else {
xmove = xmove * -1;
this.rotation = 360 - this.rotation;
}
}
if (_root.weapontype == 5) {
_root.explosion.duplicateMovieClip("explosion" + _root.depthcount, _root.depthcount + 1000);
} else {
_root.damagedGround.duplicateMovieClip("explosion" + _root.depthcount, _root.depthcount + 1000);
}
_parent["explosion" + _root.depthcount]._x = _x;
_parent["explosion" + _root.depthcount]._y = _y;
if (_root.weapontype == 1) {
if (_root.basicbounce == true) {
} else {
removeMovieClip(this);
}
} else {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 251 MovieClip "damagedGround" in Frame 22
onClipEvent (load) {
this._height = 15;
this._width = 15;
this._rotation = random(360);
}
Instance of Symbol 272 MovieClip "circle" in Frame 22
onClipEvent (enterFrame) {
if (this != _root.circle) {
if (_root.gpause == false) {
if (_root.invising == false) {
distance = Math.sqrt(Math.pow(_root.cruiser._x - this._x, 2) + Math.pow(_root.cruiser._y - this._y, 2));
this._x = this._x + (((_root.cruiser._x - this._x) * missile_speed) / distance);
this._y = this._y + (((_root.cruiser._y - this._y) * missile_speed) / distance);
angle_in_radians = Math.atan2(_parent.cruiser._y - this._y, _parent.cruiser._x - this._x);
angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
}
}
if (this.enemycolor == "white") {
if (_root.invising == false) {
if (shotcounter >= 18) {
_root.wshot.duplicateMovieClip("wshot" + this.number, this.number + 600);
_root["wshot" + this.number].number = this.number;
shotcounter = 0;
} else {
shotcounter++;
}
}
}
if (this.enemycolor == "green") {
if (_root.invising == false) {
if (shotcounter >= 45) {
_root.eshot.duplicateMovieClip("eshot" + this.number, this.number + 600);
_root["eshot" + this.number].number = this.number;
shotcounter = 0;
} else {
shotcounter++;
}
}
}
vv = 0;
while (vv < _root.shotcount) {
if (this.hitTest(_root["shot" + vv])) {
if (_root.weapontype == 6) {
} else if (_root.weapontype != 4) {
_root["shot" + vv].removeMovieClip();
}
if (_root.weapontype == 5) {
_root.explosion.duplicateMovieClip("explosion" + vv, _root.depthcount + 800);
} else {
_root.damagedGround.duplicateMovieClip("explosion" + vv, _root.depthcount + 800);
}
_root["explosion" + vv]._x = this._x;
_root["explosion" + vv]._y = this._y;
_root.flashit.duplicateMovieClip("flashit" + vv, (_parent.d % 200) + 700);
_root["flashit" + vv]._x = this._x;
_root["flashit" + vv]._y = this._y;
this.health = this.health - _root.damage;
}
if (this.hitTest(_root["enemy" + vv])) {
if (this != _root["enemy" + vv]) {
this._x = this._x + random(15);
this._y = this._y + random(15);
this._x = this._x - random(15);
this._y = this._y - random(15);
}
}
vv++;
}
if (this.sub.body.hitTest(_root.cruiser.body)) {
if (_root.invinciblecounter <= 0) {
_root.stats.danger.play();
this._alpha = this._alpha + 5;
_root.charge = _root.charge - 10;
_root.p1hp = _root.p1hp - this.damage;
_root.invinciblecounter = 8;
_root.flashit.duplicateMovieClip("flashit100", _root.depthcount + 1200);
_root.flashit100._x = this._x;
_root.flashit100._y = this._y;
}
}
if (_root.gameover == true) {
removeMovieClip(this);
}
if (this.health <= 0) {
this.damage = 0;
if (this.enemycolor == "yellow") {
_root.explosion.duplicateMovieClip(("explosion" + this.number) + this.number, _root.depthcount + 800);
_root["explosion" + this.number]._x = this._x;
_root["explosion" + this.number]._y = this._y;
}
this.play();
}
}
}
onClipEvent (load) {
if (this != _root.circle) {
if (this.enemycolor == "red") {
this.damage = 5;
this.health = 22;
missile_speed = 8;
this.pointgain = 11;
} else if (this.enemycolor == "orange") {
this.damage = 8;
this.health = 45;
missile_speed = 4;
this.pointgain = 8;
} else if (this.enemycolor == "yellow") {
this.damage = 5;
this.health = 11;
missile_speed = 12;
this.pointgain = 8;
} else if (this.enemycolor == "green") {
this.damage = 3;
this.health = 21;
missile_speed = 7;
this.pointgain = 10;
} else if (this.enemycolor == "blue") {
this._alpha = 5;
this.damage = 6;
this.health = 11;
missile_speed = 8;
this.pointgain = 14;
} else if (this.enemycolor == "purple") {
this.damage = 5;
this.health = 9;
missile_speed = 12;
this.pointgain = 10;
} else if (this.enemycolor == "pink") {
this.damage = 4;
this.health = 30;
missile_speed = 8;
this.pointgain = 14;
} else if (this.enemycolor == "white") {
this.damage = 7;
this.health = 1000;
missile_speed = 8;
this.pointgain = 400;
}
var shotcounter = 0;
this.sub.gotoAndStop(this.enemycolor);
if (this != _root.circle) {
_root.enemycount = _root.enemycount + 1;
}
}
}
Instance of Symbol 144 MovieClip in Frame 22
onClipEvent (enterFrame) {
numRand = Math.round(Math.random() * 5) + 6;
hardRand = Math.round(Math.random() * 15) + 10;
if (_root.floornumber == 1) {
_root.levelcode = new Array(true, 710, 540, "circle", "red", 3);
} else if (_root.floornumber == 2) {
_root.levelcode = new Array(false, 710, 540, "circle", "red", 5);
} else if (_root.floornumber == 3) {
_root.levelcode = new Array(true, 710, 540, "circle", "orange", 4);
} else if (_root.floornumber == 4) {
_root.levelcode = new Array(false, 710, 540, "circle", "orange", 4);
} else if (_root.floornumber == 5) {
_root.levelcode = new Array(true, 710, 540, "circle", "yellow", 4);
} else if (_root.floornumber == 6) {
_root.levelcode = new Array(false, 710, 540, "circle", "green", 5);
} else if (_root.floornumber == 7) {
_root.levelcode = new Array(false, 710, 540, "circle", "orange", 6);
} else if (_root.floornumber == 8) {
_root.levelcode = new Array(true, 710, 540, "circle", "yellow", 3);
} else if (_root.floornumber == 9) {
_root.levelcode = new Array(false, 710, 540, "circle", "white", 1);
} else if (_root.floornumber == 10) {
_root.levelcode = new Array(true, 710, 540, "circle", "green", 1);
} else if ((_root.floornumber >= 11) && (_root.floornumber < 15)) {
_root.levelcode = new Array(false, 710, 540, "circle", "red", random(3) + 5);
} else if (_root.floornumber == 15) {
_root.levelcode = new Array(true, 710, 540, "circle", "blue", 2);
} else if ((_root.floornumber > 15) && (_root.floornumber < 20)) {
_root.levelcode = new Array(false, 710, 540, "circle", "yellow", random(3) + 5);
} else if (_root.floornumber == 20) {
_root.levelcode = new Array(true, 710, 540, "circle", "white", 2);
} else if ((_root.floornumber > 20) && (_root.floornumber < 25)) {
_root.levelcode = new Array(false, 710, 540, "circle", "random", random(4) + 5);
} else if (_root.floornumber == 25) {
_root.levelcode = new Array(true, 710, 540, "circle", "green", 8);
} else if ((_root.floornumber > 25) && (_root.floornumber < 30)) {
_root.levelcode = new Array(false, 710, 540, "circle", "random", random(4) + 6);
} else if (_root.floornumber == 30) {
_root.levelcode = new Array(true, 710, 540, "circle", "white", 2);
} else if ((_root.floornumber > 30) && (_root.floornumber < 35)) {
_root.levelcode = new Array(false, 710, 540, "circle", "random", random(4) + 6);
} else if (_root.floornumber == 35) {
_root.levelcode = new Array(true, 710, 540, "circle", "yellow", 10);
} else if ((_root.floornumber > 35) && (_root.floornumber < 40)) {
_root.levelcode = new Array(false, 710, 540, "circle", "random", numRand);
} else if (_root.floornumber == 40) {
_root.levelcode = new Array(true, 710, 540, "circle", "white", 4);
} else if ((_root.floornumber > 40) && (_root.floornumber < 50)) {
_root.levelcode = new Array(false, 710, 540, "circle", "random", numRand);
} else if (_root.floornumber >= 50) {
_root.levelcode = new Array(true, 710, 540, "circle", "random", hardRand);
}
}
onClipEvent (enterFrame) {
if (_root.enemycount <= 0) {
if (_root.levelcode[0] == false) {
_root.levelcode[0] = true;
_root.stats.noticego.play();
_root.floornumber = _root.floornumber + 1;
_root.gotoAndPlay("refresh");
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(192)) {
if (_root.console._visible == false) {
_root.console._visible = true;
_root.gpause = true;
}
}
}
onClipEvent (load) {
this._visible = false;
var numRand = 0;
var hardRand = 0;
}
onClipEvent (enterFrame) {
_root.levelnotice = "LEVEL " + _root.floornumber;
if (_root.p1hp > _root.p1hpmax) {
_root.p1hp = _root.p1hpmax;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
if (_root.weapons[0] == true) {
_root.weapontype = 1;
}
}
if (Key.isDown(50)) {
if (_root.weapons[1] == true) {
_root.weapontype = 2;
}
}
if (Key.isDown(51)) {
if (_root.weapons[2] == true) {
_root.weapontype = 3;
}
}
if (Key.isDown(52)) {
if (_root.weapons[3] == true) {
_root.weapontype = 4;
}
}
if (Key.isDown(53)) {
if (_root.weapons[4] == true) {
_root.weapontype = 5;
}
}
if (Key.isDown(54)) {
if (_root.weapons[5] == true) {
_root.weapontype = 6;
}
}
if (Key.isDown(55)) {
if (_root.weapons[6] == true) {
_root.weapontype = 7;
}
}
if (Key.isDown(56)) {
if (_root.weapons[7] == true) {
_root.weapontype = 8;
}
}
if (Key.isDown(57)) {
if (_root.weapons[8] == true) {
_root.weapontype = 9;
}
}
}
onClipEvent (enterFrame) {
if (_root.weapontype == 1) {
if (_root.basicammo <= 0) {
_root.shooting = false;
} else {
_root.shooting = true;
}
} else {
_root.shooting = true;
}
if (_root.weapontype == 2) {
if (_root.lazerammo <= 0) {
_root.weapontype = _root.weapontype + 1;
}
}
if (_root.weapontype == 3) {
if (_root.scatterammo <= 0) {
_root.weapontype = _root.weapontype + 1;
}
}
if (_root.weapontype == 4) {
if (_root.snipeammo <= 0) {
_root.weapontype = _root.weapontype + 1;
}
}
if (_root.weapontype == 5) {
if (_root.rocketammo <= 0) {
_root.weapontype = _root.weapontype + 1;
}
}
if (_root.weapontype == 6) {
if (_root.plasmaammo <= 0) {
_root.weapontype = _root.weapontype + 1;
}
}
if (_root.weapontype == 7) {
if (_root.sniperammo <= 0) {
_root.weapontype = 1;
}
}
if (Key.isDown(77)) {
if (this.timer <= 0) {
if (_root.sound_on == true) {
_root.sound_on = false;
stopAllSounds();
} else {
_root.sound_on = true;
_root.music.start();
}
timer = 4;
} else {
this.timer--;
}
}
}
Instance of Symbol 58 MovieClip "explosion" in Frame 22
onClipEvent (load) {
if (_root.weapontype == 4) {
this._height = 26;
this._width = 26;
this.damage = 2;
} else if (_root.weapontype == 5) {
this._height = 21;
this._width = 21;
this.damage = 3;
}
}
onClipEvent (enterFrame) {
qq = 0;
while (qq < _root.enemies.length) {
if (this.hitTest(_root["enemy" + qq])) {
_root["enemy" + qq].health = _root["enemy" + qq].health - 3;
}
qq++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cruiser.body)) {
_root.stats.danger.play();
_root.invinciblecounter = 12;
_root.p1hp = _root.p1hp - 3;
}
}
Instance of Symbol 282 MovieClip "enemye" in Frame 22
/* no clip actions */
Instance of Symbol 49 MovieClip "eshot" in Frame 22
onClipEvent (enterFrame) {
if (_root.gpause == false) {
if (this != _root.eshot) {
_x = (_x + xmove);
_y = (_y + ymove);
if (deathcount == 40) {
removeMovieClip(this);
} else {
deathcount++;
}
if (this.hitTest(_root.cruiser.body)) {
if (_root.invinciblecounter <= 0) {
_root.stats.danger.play();
_root.p1hp = _root.p1hp - _root["enemy" + this.number].damage;
_root.invinciblecounter = 3;
_root.flashit.duplicateMovieClip("flashit100", (_root.depthcount % 100) + 1400);
_root.flashit100._x = this._x;
_root.flashit100._y = this._y;
}
removeMovieClip(this);
}
}
}
}
onClipEvent (load) {
if (this != _root.eshot) {
cannonLength = 10;
this._rotation = _root["enemy" + this.number]._rotation;
turretpoint = _root["enemy" + this.number]._rotation;
turretpoint = turretpoint + 90;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _root["enemy" + this.number]._x);
_y = (ycomponent + _root["enemy" + this.number]._y);
xmove = (xcomponent / cannonLength) * 17;
ymove = (ycomponent / cannonLength) * 17;
deathcount = 0;
}
}
Instance of Symbol 284 MovieClip in Frame 22
/* no clip actions */
Instance of Symbol 296 MovieClip "sparkle" in Frame 22
/* no clip actions */
Instance of Symbol 297 MovieClip "clusters" in Frame 22
onClipEvent (enterFrame) {
cc = 0;
while (cc < 30) {
if (this.hitTest(_root["enemy" + cc])) {
}
cc++;
}
}
Instance of Symbol 300 MovieClip in Frame 22
onClipEvent (load) {
velocityY = 1;
differenceY = 1;
velocity = 1;
difference = 1;
}
onClipEvent (enterFrame) {
ymove = _root.cruiser._y;
differenceY = ymove - this._y;
velocityY = (velocityY + (differenceY / missile_speed)) / viscosity;
this._y = this._y + velocityY;
xmove = _root.cruiser._x;
difference = xmove - this._x;
velocity = (velocity + (difference / missile_speed)) / viscosity;
this._x = this._x + velocity;
}
Instance of Symbol 49 MovieClip "wshot" in Frame 22
onClipEvent (enterFrame) {
if (_root.gpause == false) {
if (this != _root.eshot) {
_x = (_x + xmove);
_y = (_y + ymove);
if (deathcount == 40) {
removeMovieClip(this);
} else {
deathcount++;
}
if (this.hitTest(_root.cruiser.body)) {
if (_root.invinciblecounter <= 0) {
_root.stats.danger.play();
_root.p1hp = _root.p1hp - _root["enemy" + this.number].damage;
_root.invinciblecounter = 3;
_root.flashit.duplicateMovieClip("flashit100", (_root.depthcount % 100) + 1400);
_root.flashit100._x = this._x;
_root.flashit100._y = this._y;
}
removeMovieClip(this);
}
}
}
}
onClipEvent (load) {
if (this != _root.eshot) {
cannonLength = 10;
this._rotation = _root["enemy" + this.number]._rotation;
turretpoint = _root["enemy" + this.number]._rotation;
turretpoint = turretpoint + 90;
turretpoint = turretpoint + random(20);
turretpoint = turretpoint - random(20);
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _root["enemy" + this.number]._x);
_y = (ycomponent + _root["enemy" + this.number]._y);
xmove = (xcomponent / cannonLength) * 44;
ymove = (ycomponent / cannonLength) * 44;
deathcount = 0;
}
}
Instance of Symbol 319 MovieClip "cruiser" in Frame 22
onClipEvent (load) {
var threadCheck = 0;
var threadCount = 0;
var shotTimer = 0;
var shotCount = 0;
var speed = _root.speed;
var angle_in_radians = 0;
var angle_in_degrees = 0;
var myRadians = 57.2957795130823;
}
onClipEvent (enterFrame) {
if (_root.gpause == false) {
if (this.shotTimer <= 0) {
if (Key.isDown(1)) {
if (_root.weapontype == 1) {
if (_root.basicammo >= 1) {
if (_root.sound_on == true) {
_root.basicsound.start();
}
this.shotCount++;
_root.shot.duplicateMovieClip("shot" + _root.shotcount, (this.shotCount % 100) + 400);
}
} else {
this.shotCount++;
_root.shot.duplicateMovieClip("shot" + _root.shotcount, (this.shotCount % 100) + 400);
}
if (_root.weapontype == 1) {
this.shotTimer = 20;
} else if (_root.weapontype == 2) {
this.shotTimer = 6;
if (_root.sound_on == true) {
_root.basicsound.start();
}
} else if (_root.weapontype == 3) {
this.shotTimer = 0;
if (_root.sound_on == true) {
_root.basicsound.start();
}
} else if (_root.weapontype == 4) {
this.shotTimer = 120;
if (_root.sound_on == true) {
_root.basicsound.start();
}
} else if (_root.weapontype == 5) {
this.shotTimer = 35;
if (_root.sound_on == true) {
_root.basicsound.start();
}
} else if (_root.weapontype == 6) {
this.shotTimer = 0;
}
} else if (_root.basicammo != _root.basicmax) {
_root.basicammo++;
}
}
this.shotTimer = this.shotTimer - 3;
if (_root.charge >= 100) {
if (Key.isDown(69)) {
if (_root.invinpower == true) {
if (_root.invincing == false) {
_root.invincing = true;
_root.poweruse = true;
}
} else if (_root.invispower == true) {
if (_root.invising == false) {
_root.invising = true;
_root.poweruse = true;
}
} else if (_root.clusterpower == true) {
if (_root.clustering == false) {
_root.clustering = true;
_root.poweruse = true;
}
}
}
}
if (_root.clustering == true) {
_root.clusters._visible = true;
_root.clusters._x = this._x;
_root.clusters._y = this._y;
_root.clusters.play();
} else {
_root.clusters._visible = false;
}
if (_root.invising == true) {
this._alpha = 20;
} else {
this._alpha = 100;
}
if (_root.invincing == true) {
_root.sparkle._visible = true;
_root.sparkle._x = this._x;
_root.sparkle._y = this._y;
_root.invinciblecounter = 10;
} else {
_root.sparkle._visible = false;
}
if (_root.invinciblecounter >= 1) {
_root.invinciblecounter--;
}
if (_root.clustering != true) {
if (Key.isDown(87) || (Key.isDown(38))) {
this._y = this._y - _root.speed;
}
if (Key.isDown(65) || (Key.isDown(37))) {
this._x = this._x - _root.speed;
}
if (Key.isDown(68) || (Key.isDown(39))) {
this._x = this._x + _root.speed;
}
if (Key.isDown(83) || (Key.isDown(40))) {
this._y = this._y + _root.speed;
}
}
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = Math.round(angle_in_radians * myRadians);
this._rotation = angle_in_degrees;
radius = 15;
if (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y - _root.speed);
}
if (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y + _root.speed);
}
if (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x + _root.speed);
}
if (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x - _root.speed);
}
if (_root.wall2.hitTest(_x, _y + radius, true)) {
_y = (_y - _root.speed);
}
if (_root.wall2.hitTest(_x, _y - radius, true)) {
_y = (_y + _root.speed);
}
if (_root.wall2.hitTest(_x - radius, _y, true)) {
_x = (_x + _root.speed);
}
if (_root.wall2.hitTest(_x + radius, _y, true)) {
_x = (_x - _root.speed);
}
}
}
onClipEvent (enterFrame) {
if (_root.p1hp <= 0) {
_root.gotoAndStop("dead");
}
if (Key.isDown(81)) {
if (this.timer <= 0) {
_root.weapontype = _root.weapontype + 1;
this.wep = _root.weapontype;
_root.weapons[this.wep];
this.timer = 3;
} else {
this.timer--;
}
}
}
Instance of Symbol 323 MovieClip "upgo" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelcode[0] == true) {
if (_root.enemycount <= 0) {
this._visible = true;
if (this.hitTest(_root.cruiser.body)) {
if (counter >= 30) {
_root.enemycount = 1;
_root.levelcode[0] = false;
_root.stats.noticego.play();
_root.floornumber = _root.floornumber + 1;
_root.gotoAndPlay("refresh");
} else {
counter++;
this.gotoAndStop(counter);
}
} else if (counter >= 1) {
counter--;
this.gotoAndStop(counter);
}
} else {
this._visible = false;
counter = 0;
this.gotoAndStop(1);
}
} else {
this._visible = false;
counter = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 327 MovieClip "shopup" in Frame 22
onClipEvent (enterFrame) {
if (_root.levelcode[0] == true) {
if (_root.enemycount <= 0) {
this._visible = true;
if (this.hitTest(_root.cruiser.body)) {
if (counter >= 15) {
_root.shopstatus = open;
_root.shop._visible = true;
_root.weapontype = 1;
} else {
counter++;
this.gotoAndStop(counter);
}
} else if (counter >= 1) {
counter--;
this.gotoAndStop(counter);
_root.shop._visible = false;
}
} else {
this._visible = false;
counter = 0;
this.gotoAndStop(1);
}
} else {
this._visible = false;
}
}
Instance of Symbol 360 MovieClip "stats" in Frame 22
onClipEvent (enterFrame) {
this.consoleoutput = _root.consoleoutput;
setInterval(function () {
fps = framecount * 4;
framecount = 0;
}, 6000);
if (_root.weapontype == 1) {
this.ammo = _root.basicammo;
this.weaponname = "Shot";
} else if (_root.weapontype == 2) {
this.ammo = _root.lazerammo;
this.weaponname = "Laser";
} else if (_root.weapontype == 3) {
this.weaponname = "Scattergun";
this.ammo = _root.scatterammo;
} else if (_root.weapontype == 4) {
this.weaponname = "Snipes";
this.ammo = _root.snipeammo;
} else if (_root.weapontype == 5) {
this.weaponname = "Rocket Launcher";
this.ammo = _root.rocketammo;
} else if (_root.weapontype == 6) {
this.weaponname = "Plasmathrower";
this.ammo = _root.plasmaammo;
} else if (_root.weapontype == 7) {
this.weaponname = "Sniper";
this.ammo = _root.sniperammo;
} else if (_root.weapontype == 8) {
this.weaponname = "Laser";
this.ammo = _root.snipeammo;
}
}
onClipEvent (enterFrame) {
this.score = _root.score;
this.point = _root.point;
this.healthNum = _root.p1hp;
this._x = _root.vcam._x;
this._y = _root.vcam._y;
this._x = this._x - 230;
this._y = this._y - 180;
}
Instance of Symbol 362 MovieClip "vcam" in Frame 22
onClipEvent (enterFrame) {
this._x = _root.cruiser._x;
this._y = _root.cruiser._y;
}
Frame 23
_root.kongregateStats.submit("Score", _root.score);
_root.kongregateStats.submit("Stage", _root.floornumber);
_root.kongregateStats.submit("Points", _root.point);
_root.kongregateStats.submit("Damage per basic bullet", _root.basicdamage);
_root.kongregateStats.submit("Laser", _root.weapons[1]);
_root.kongregateStats.submit("Scattergun", _root.weapons[2]);
_root.kongregateStats.submit("Sniper", _root.weapons[3]);
_root.kongregateStats.submit("Rocket", _root.weapons[4]);
_root.enemycount = 0;
_root.shotcount = 10;
_root.depthcount = 0;
_root.killCount = 0;
e = 0;
while (e < _root.levelcode[5]) {
if (_root.levelcode[3] == "circle") {
_root.circle.duplicateMovieClip("enemy" + e, e + 200);
_root["enemy" + e].getNextHighestDepth();
if (_root.levelcode[4] != "random") {
_root["enemy" + e].enemycolor = _root.levelcode[4];
} else {
this.colour = Math.round(Math.random() * 4) + 1;
if (this.colour == 1) {
_root["enemy" + e].enemycolor = "red";
} else if (this.colour == 2) {
_root["enemy" + e].enemycolor = "orange";
} else if (this.colour == 3) {
_root["enemy" + e].enemycolor = "yellow";
} else if (this.colour == 4) {
_root["enemy" + e].enemycolor = "green";
} else if (this.colour == 5) {
_root["enemy" + e].enemycolor = "blue";
} else if (this.colour == 6) {
_root["enemy" + e].enemycolor = "pink";
} else if (this.colour == 7) {
_root["enemy" + e].enemycolor = "purple";
}
}
_root["enemy" + e].number = e;
_root["enemy" + e]._x = _root.cruiser._x;
_root.side = random(2) + 1;
if (side == 1) {
_root["enemy" + e]._x = _root["enemy" + e]._x + (random(500) + 400);
} else if (side == 2) {
_root["enemy" + e]._x = _root["enemy" + e]._x - (random(500) + 400);
}
_root["enemy" + e]._y = _root.cruiser._y;
_root.side = random(2) + 1;
if (side == 1) {
_root["enemy" + e]._y = _root["enemy" + e]._y + (random(300) + 200);
} else if (side == 2) {
_root["enemy" + e]._y = _root["enemy" + e]._y - (random(300) + 200);
}
}
e++;
}
Frame 33
stop();
Symbol 12 MovieClip [aniSmoke] Frame 1
flame._rotation = Math.random() * 360;
randSize = (Math.random() * 50) + 50;
flame._xscale = randSize;
flame._yscale = randSize;
Symbol 12 MovieClip [aniSmoke] Frame 16
Symbol 12 MovieClip [aniSmoke] Frame 17
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 2
/* no clip actions */
Symbol 49 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 19
this.removeMovieClip();
stop();
Instance of Symbol 58 MovieClip "explosion" in Symbol 73 MovieClip Frame 113
onClipEvent (load) {
if (_root.weapontype == 4) {
this._height = 26;
this._width = 26;
this.damage = 2;
} else if (_root.weapontype == 5) {
this._height = 21;
this._width = 21;
this.damage = 3;
}
}
onClipEvent (enterFrame) {
qq = 0;
while (qq < _root.enemies.length) {
if (this.hitTest(_root["enemy" + qq])) {
_root["enemy" + qq].health = _root["enemy" + qq].health - 3;
}
qq++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cruiser.body)) {
_root.invinciblecounter = 12;
_root.p1hp = _root.p1hp - 3;
}
}
Instance of Symbol 58 MovieClip "explosion" in Symbol 73 MovieClip Frame 311
onClipEvent (load) {
if (_root.weapontype == 4) {
this._height = 26;
this._width = 26;
this.damage = 2;
} else if (_root.weapontype == 5) {
this._height = 21;
this._width = 21;
this.damage = 3;
}
}
onClipEvent (enterFrame) {
qq = 0;
while (qq < _root.enemies.length) {
if (this.hitTest(_root["enemy" + qq])) {
_root["enemy" + qq].health = _root["enemy" + qq].health - 3;
}
qq++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cruiser.body)) {
_root.invinciblecounter = 12;
_root.p1hp = _root.p1hp - 3;
}
}
Instance of Symbol 58 MovieClip "explosion" in Symbol 73 MovieClip Frame 329
onClipEvent (load) {
if (_root.weapontype == 4) {
this._height = 26;
this._width = 26;
this.damage = 2;
} else if (_root.weapontype == 5) {
this._height = 21;
this._width = 21;
this.damage = 3;
}
}
onClipEvent (enterFrame) {
qq = 0;
while (qq < _root.enemies.length) {
if (this.hitTest(_root["enemy" + qq])) {
_root["enemy" + qq].health = _root["enemy" + qq].health - 3;
}
qq++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cruiser.body)) {
_root.invinciblecounter = 12;
_root.p1hp = _root.p1hp - 3;
}
}
Instance of Symbol 58 MovieClip "explosion" in Symbol 73 MovieClip Frame 344
onClipEvent (load) {
if (_root.weapontype == 4) {
this._height = 26;
this._width = 26;
this.damage = 2;
} else if (_root.weapontype == 5) {
this._height = 21;
this._width = 21;
this.damage = 3;
}
}
onClipEvent (enterFrame) {
qq = 0;
while (qq < _root.enemies.length) {
if (this.hitTest(_root["enemy" + qq])) {
_root["enemy" + qq].health = _root["enemy" + qq].health - 3;
}
qq++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cruiser.body)) {
_root.invinciblecounter = 12;
_root.p1hp = _root.p1hp - 3;
}
}
Symbol 93 Button
on (release) {
nextFrame();
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 93
stop();
Instance of Symbol 141 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
if (_root.console._visible == true) {
if (_root.console.consoleinput == "nextplease") {
_root.floornumber = _root.floornumber + 1;
_root.gotoAndPlay("refresh");
}
if (_root.console.consoleinput == "showfps") {
_root.showfps = true;
}
if (_root.console.consoleinput == "openshop") {
_root.shop._visible = true;
}
if (_root.console.consoleinput == "speed") {
_root.consoleoutput = _root.speed;
}
if (_root.console.consoleinput == "waves") {
_root.consoleoutput = _root.wavecount;
}
if (_root.console.consoleinput == "damage") {
_root.consoleoutput = _root.damage;
}
if (_root.console.consoleinput == "enemies") {
_root.consoleoutput = _root.enemycount;
}
if (_root.console.consoleinput == "floor") {
_root.consoleoutput = _root.floornumber;
}
if (_root.console.consoleinput == "levelcode") {
_root.consoleoutput = _root.levelcode;
}
if (_root.console.consoleinput == "scatter") {
_root.weapons[2] = true;
_root.scatterammo = _root.scatterammo + 100;
}
if (_root.console.consoleinput == "allweap") {
_root.weapons[1] = true;
_root.lazerammo = _root.lazerammo + 1000;
_root.weapons[2] = true;
_root.scatterammo = _root.scatterammo + 1000;
_root.weapons[3] = true;
_root.snipeammo = _root.snipeammo + 1000;
_root.weapons[4] = true;
_root.rocketammo = _root.rocketammo + 1000;
_root.weapons[5] = true;
_root.plasmaammo = _root.plasmaammo + 1000;
}
if (_root.console.consoleinput == "laser") {
_root.weapons[1] = true;
_root.lazerammo = _root.lazerammo + 75;
}
if (_root.console.consoleinput == "sniper") {
_root.weapons[3] = true;
_root.snipeammo = _root.snipeammo + 10;
}
if (_root.console.consoleinput == "rocket") {
_root.weapons[4] = true;
_root.rocketammo = _root.rocketammo + 10;
}
if (_root.console.consoleinput == "plasma") {
_root.weapons[5] = true;
_root.plasmaammo = _root.plasmaammo + 10;
}
if (_root.console.consoleinput == "morepointsss") {
_root.point = _root.point + 100;
}
if (_root.console.consoleinput == "party") {
_root.point = _root.point + 1000000;
}
if (_root.console.consoleinput == "morehealth") {
_root.p1hpmax = _root.p1hpmax + 50;
_root.p1hp = _root.p1hp + 50;
}
if (_root.console.consoleinput == "superman") {
_root.p1hpmax = _root.p1hpmax + 100000;
_root.p1hp = _root.p1hp + 100000;
}
_root.console._visible = false;
_root.gpause = false;
}
}
}
Symbol 148 Button
on (release) {
if (_root.weapons[0] != true) {
} else {
_root.shop.gotoAndStop("basicshop");
}
}
Symbol 152 Button
on (release) {
if (_root.weapons[1] != true) {
if (_root.point >= 50) {
_root.point = _root.point - 50;
_root.weapons[1] = true;
_root.lazerammo = _root.lazerammo + 50;
_root.shop.gotoAndStop("lasershop");
}
} else {
_root.shop.gotoAndStop("lasershop");
}
}
Symbol 156 Button
on (release) {
if (_root.weapons[2] != true) {
if (_root.point >= 110) {
_root.point = _root.point - 110;
_root.weapons[2] = true;
_root.scatterammo = _root.scatterammo + 80;
_root.shop.gotoAndStop("scattershop");
}
} else {
_root.shop.gotoAndStop("scattershop");
}
}
Symbol 160 Button
on (release) {
if (_root.weapons[3] != true) {
if (_root.point >= 100) {
_root.point = _root.point - 100;
_root.weapons[3] = true;
_root.snipeammo = _root.snipeammo + 7;
_root.shop.gotoAndStop("snipeshop");
}
} else {
_root.shop.gotoAndStop("snipeshop");
}
}
Symbol 164 Button
on (release) {
if (_root.weapons[4] != true) {
if (_root.point >= 150) {
_root.point = _root.point - 150;
_root.weapons[4] = true;
_root.rocketammo = _root.rocketammo + 9;
_root.shop.gotoAndStop("rocketshop");
}
} else {
_root.shop.gotoAndStop("rocketshop");
}
}
Symbol 168 Button
on (release) {
_root.shop.gotoAndStop("hullshop");
}
Symbol 171 Button
on (release) {
_root.shop._visible = false;
_root.shop.gotoAndStop(1);
}
Symbol 173 Button
on (release) {
if (_root.point >= 30) {
_root.point = _root.point - 30;
_root.recovery = _root.p1hpmax;
_root.recovery = _root.recovery * 0.3;
_root.p1hp = _root.p1hp + _root.recovery;
}
}
Symbol 174 Button
on (release) {
if (_root.point >= 50) {
_root.point = _root.point - 50;
_root.recovery = _root.p1hpmax;
_root.recovery = _root.recovery * 0.5;
_root.p1hp = _root.p1hp + _root.recovery;
}
}
Symbol 175 Button
on (release) {
if (_root.point >= 120) {
_root.point = _root.point - 120;
_root.p1hpmax = _root.p1hpmax * 1.1;
}
}
Symbol 177 Button
on (release) {
if (_root.point >= 170) {
if (_root.speed < 18) {
_root.point = _root.point - 170;
_root.speed = _root.speed * 1.1;
}
}
}
Symbol 178 Button
on (release) {
if (_root.point >= 0) {
_root.point = _root.point - 0;
_root.speed = 14;
_root.prevspeed = _root.speed;
}
}
Symbol 179 Button
on (release) {
if (_root.point >= 150) {
_root.point = _root.point - 150;
_root.vcam._height = _root.vcam._height * 1.1;
_root.vcam._width = _root.vcam._width * 1.1;
_root.shop._height = _root.shop._height * 1.1;
_root.shop._width = _root.shop._width * 1.1;
_root.stats._height = _root.stats._height * 1.1;
_root.stats._width = _root.stats._width * 1.1;
}
}
Symbol 182 Button
on (release) {
if (_root.prevspeed <= 0) {
_root.point = _root.point - 0;
} else {
_root.speed = _root.prevspeed;
}
}
Symbol 190 Button
on (release) {
if (_root.point >= 210) {
_root.point = _root.point - 210;
_root.invinpower = true;
_root.invispower = false;
_root.clusterpower = true;
}
}
Symbol 194 Button
on (release) {
if (_root.point >= 220) {
_root.point = _root.point - 220;
_root.invispower = true;
_root.invinpower = false;
_root.clusterpower = false;
}
}
Symbol 198 Button
on (release) {
if (_root.point >= 0) {
_root.point = _root.point - 0;
_root.speed = 14;
_root.prevspeed = _root.speed;
}
}
Symbol 202 Button
on (release) {
if (_root.point >= 40) {
_root.point = _root.point - 40;
_root.basicdamage = _root.basicdamage * 1.1;
}
}
Symbol 203 Button
on (release) {
if (_root.point >= 110) {
_root.point = _root.point - 110;
_root.basicmax = _root.basicmax + 10;
}
}
Symbol 207 Button
on (release) {
if (_root.point >= 20) {
_root.point = _root.point - 20;
_root.lazerdamage = _root.lazerdamage * 1.1;
}
}
Symbol 209 Button
on (release) {
if (_root.point >= 70) {
_root.point = _root.point - 70;
_root.lazerammo = _root.lazerammo + 150;
}
}
Symbol 212 Button
on (release) {
if (_root.point >= 40) {
_root.point = _root.point - 40;
_root.scatterdamage = _root.scatterdamage * 1.1;
}
}
Symbol 213 Button
on (release) {
if (_root.point >= 40) {
_root.point = _root.point - 40;
_root.scatterammo = _root.scatterammo + 150;
}
}
Symbol 215 Button
on (release) {
if (_root.point >= 500) {
_root.point = _root.point - 500;
_root.snipedamage = _root.snipedamage * 1.1;
}
}
Symbol 217 Button
on (release) {
if (_root.point >= 30) {
_root.point = _root.point - 30;
_root.snipeammo = _root.snipeammo + 15;
}
}
Symbol 219 Button
on (release) {
if (_root.point >= 150) {
_root.point = _root.point - 150;
_root.rocketdamage = _root.rocketdamage * 1.1;
}
}
Symbol 220 Button
on (release) {
if (_root.point >= 60) {
_root.point = _root.point - 60;
_root.rocketammo = _root.rocketammo + 25;
}
}
Symbol 223 Button
on (release) {
if (_root.point >= 30) {
_root.point = _root.point - 30;
_root.plasmadamage = _root.plasmadamage * 1.1;
}
}
Symbol 225 Button
on (release) {
if (_root.point >= 60) {
_root.point = _root.point - 60;
_root.plasmaammo = _root.plasmaammo + 100;
}
}
Symbol 227 MovieClip Frame 1
stop();
_root.gpause = false;
Instance of Symbol 144 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.shop._visible == true) {
_root.shop.gotoAndStop("main");
}
}
Symbol 227 MovieClip Frame 2
stop();
Instance of Symbol 151 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapons[0] == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 155 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapons[1] == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 159 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapons[2] == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 163 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapons[3] == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 167 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapons[4] == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 193 MovieClip in Symbol 227 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.invinpower == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 197 MovieClip in Symbol 227 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.invispower == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 201 MovieClip in Symbol 227 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.speed == 14) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 231 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
_parent.damage = 100;
Symbol 242 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
if (_root.weapontype == 1) {
_root.basicammo = _root.basicammo - 1;
_parent.damage = _root.basicdamage;
} else if (_root.weapontype == 2) {
_root.lazerammo = _root.lazerammo - 1;
_parent.damage = _root.lazerdamage;
} else if (_root.weapontype == 3) {
_root.scatterammo = _root.scatterammo - 1;
_parent.damage = _root.scatterdamage;
} else if (_root.weapontype == 4) {
_root.snipeammo = _root.snipeammo - 1;
_parent.damage = _root.snipedamage;
} else if (_root.weapontype == 5) {
_root.rocketammo = _root.rocketammo - 1;
_parent.damage = _root.rocketdamage;
} else if (_root.weapontype == 6) {
_root.plasmaammo = _root.plasmaammo - 1;
_parent.damage = _root.plasmadamage;
} else if (_root.weapontype == 7) {
_root.snipeammo = _root.snipeammo - 1;
_parent.damage = _root.sniperdamage;
} else if (_root.weapontype == 8) {
_root.sniperammo = _root.sniperammo - 1;
_parent.damage = 50;
} else if (_root.weapontype == 9) {
_root.snipeammo = _root.snipeammo - 1;
_parent.damage = 50;
}
this.gotoAndStop(_root.weapontype);
Symbol 245 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 3
stop();
Symbol 251 MovieClip Frame 11
this.removeMovieClip();
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
_root.score = _root.score + this.pointgain;
_root.point = _root.point + this.pointgain;
_root.enemycount = _root.enemycount - 1;
_root.levelcode[5] = _root.levelcode[5] - 1;
_root.killCount++;
if (_root.killCount == 2) {
_root.kill2.start();
} else if (_root.killCount == 3) {
_root.kill3.start();
} else if (_root.killCount == 4) {
_root.kill4.start();
} else if (_root.killCount == 5) {
_root.kill5.start();
} else if (_root.killCount == 6) {
_root.kill6.start();
} else if (_root.killCount >= 7) {
_root.kill7.start();
}
Symbol 272 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
_root.score = _root.score + 25;
_root.point = _root.point + 25;
_root.enemycount = _root.enemycount - 1;
_root.levelcode[5] = _root.levelcode[5] - 1;
Symbol 282 MovieClip Frame 9
stop();
this.removeMovieClip();
Symbol 287 MovieClip Frame 5
stop();
Symbol 296 MovieClip Frame 30
gotoAndPlay (1);
Symbol 297 MovieClip Frame 1
play();
Symbol 297 MovieClip Frame 29
stop();
_root.clustering = false;
_root.poweruse = false;
Instance of Symbol 318 MovieClip "turret" in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.weapontype);
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 30
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 15
stop();
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (enterFrame) {
this.levelnotice = _root.levelnotice;
}
Symbol 342 MovieClip Frame 29
stop();
Symbol 355 MovieClip Frame 1
this.onEnterFrame = function () {
this.t = getTimer();
this.framerate = Math.round(1000 / (this.t - this.o));
fps = "FPS:" + this.framerate;
this.o = this.t;
};
this.onLoad = function () {
var _local1 = 0;
var _local3 = 0;
var _local2 = 0;
};
Symbol 359 MovieClip Frame 1
stop();
Instance of Symbol 329 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 351 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.hpc1 = _root.p1hp;
_root.hpc1 = _root.hpc1 / _root.p1hpmax;
_root.hpc1 = _root.hpc1 * 100;
this.frameNum = Math.ceil(_root.hpc1);
this.gotoAndStop(frameNum);
}
onClipEvent (load) {
var frameNum = 0;
}
Instance of Symbol 351 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.cc1 = _root.charge;
_root.cc1 = _root.cc1 / 300;
_root.cc1 = _root.cc1 * 100;
this.frameNum = Math.ceil(_root.cc1);
this.gotoAndStop(this.frameNum);
if (_root.gpause == false) {
if (_root.charge <= 0) {
_root.invising = false;
_root.clustering = false;
_root.invincing = false;
_root.poweruse = false;
}
if (_root.poweruse == true) {
_root.charge--;
_root.charge--;
if (_root.clustering == true) {
_root.charge--;
_root.charge--;
}
} else if (_root.charge <= 300) {
_root.charge++;
}
}
}
onClipEvent (load) {
var frameNum = 0;
}
Instance of Symbol 355 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.showfps == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 362 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;
}
parentColor.setTransform(camColor.getTransform());
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;