Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_quality = "high";
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Instance of Symbol 107 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 4
stopAllSounds();
play();
Frame 6
function onEnterFrame() {
xPos = random(1000);
yPos = random(900);
i = 0;
while (i < 10) {
clone = EFFECTS.attachMovie(parArray[random(4)], "E" + parCount, parCount++);
clone._x = xPos;
clone._y = yPos;
i++;
}
i = 0;
while (i < 5) {
clone = EFFECTS.attachMovie(parArray[random(4)], "E" + parCount, parCount++);
clone._x = _xmouse * 2;
clone._y = _ymouse * 2;
i++;
}
if (lineDraw == true) {
lineDraw = false;
GRID.clear();
GRID.lineStyle(1, 1457946, 100);
ii = 0;
while (ii < gridSize) {
i = 1;
while (i < gridSize) {
GRID.moveTo(GRID["GP" + ((ii * gridSize) + i)]._x, GRID["GP" + ((ii * gridSize) + i)]._y);
GRID.lineTo(GRID["GP" + (((ii * gridSize) + i) + 1)]._x, GRID["GP" + (((ii * gridSize) + i) + 1)]._y);
i++;
}
ii++;
}
i = 1;
while (i < (((gridSize * gridSize) - gridSize) + 1)) {
GRID.moveTo(GRID["GP" + i]._x, GRID["GP" + i]._y);
GRID.lineTo(GRID["GP" + (i + gridSize)]._x, GRID["GP" + (i + gridSize)]._y);
i++;
}
} else {
lineDraw = true;
}
}
stop();
parCount = 0;
_quality = "high";
createEmptyMovieClip("EFFECTS", 1);
gameQuality = "medium";
particleQuality = 0.1;
difficulty = 4;
infoTextStore = "";
EFFECTS._xscale = 50;
EFFECTS._yscale = 50;
parArray = new Array("Enemy_Fragment_Green", "Enemy_Fragment_Blue", "Enemy_Fragment_Yellow", "Enemy_Fragment_Red");
powerupArray = new Array(0, "SPRAY GUN", "AUTO GUN", "PLASMA GUN");
gpCount = 0;
gridSize = 10;
tileSize = 50;
i = 0;
while (i < gridSize) {
ii = 0;
while (ii < gridSize) {
clone = GRID.attachMovie("GRIDPOINT", "GP" + gpCount, gpCount++);
clone._x = tileSize * ii;
clone._y = tileSize * i;
ii++;
}
i++;
}
Frame 7
if (false) {
}
Frame 8
if (false) {
}
Frame 10
if (false) {
}
Instance of Symbol 163 MovieClip in Frame 11
onClipEvent (load) {
val = 1;
}
on (release) {
_root.particleQuality = val;
}
onClipEvent (enterFrame) {
if (_root.particleQuality == val) {
this.gotoAndStop("check");
} else {
this.gotoAndStop("uncheck");
}
}
Instance of Symbol 163 MovieClip in Frame 11
onClipEvent (load) {
val = 0.8;
}
on (release) {
_root.particleQuality = val;
}
onClipEvent (enterFrame) {
if (_root.particleQuality == val) {
this.gotoAndStop("check");
} else {
this.gotoAndStop("uncheck");
}
}
Instance of Symbol 163 MovieClip in Frame 11
onClipEvent (load) {
val = 0.3;
}
on (release) {
_root.particleQuality = val;
}
onClipEvent (enterFrame) {
if (_root.particleQuality == val) {
this.gotoAndStop("check");
} else {
this.gotoAndStop("uncheck");
}
}
Instance of Symbol 163 MovieClip in Frame 11
onClipEvent (load) {
val = 0.1;
}
on (release) {
_root.particleQuality = val;
}
onClipEvent (enterFrame) {
if (_root.particleQuality == val) {
this.gotoAndStop("check");
} else {
this.gotoAndStop("uncheck");
}
}
Frame 11
if (false) {
}
Frame 12
if (false) {
}
Frame 13
function onEnterFrame() {
}
EFFECTS.removeMovieClip();
stop();
_quality = "medium";
Symbol 9 MovieClip Frame 1
_visible = false;
Symbol 11 MovieClip [ENEMY_GREEN] Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Tail_Green", Math.round(5 * _root.particleQuality));
}
if (this.hit.hitTest(_parent._parent.HERO.hit)) {
_parent._parent.function_HERO_hurt();
}
if ((((_parent._parent.bombSwitch == true) or (_parent._parent.HERO.dead == true)) or this.hitTest(_parent._parent.damagePoint)) or this.hitTest(_parent._parent.damagePoint2)) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Fragment_Green", Math.round(200 * _root.particleQuality));
}
_parent._parent.function_Enemy_Destroyed(_x, _y, 2);
this.removeMovieClip();
}
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else if (speed < _parent._parent.enemyGreenSpeed) {
speed = speed + 0.1;
}
_rotation = Math.round((Math.atan2((_parent._parent.HERO._y - _y) - yOffset, (_parent._parent.HERO._x - _x) - xOffset) / 3.141593) * 180);
_rotation = (_rotation + rOffset);
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
}
speed = 0;
xOffset = 0;
yOffset = 0;
rOffset = random(45) + 45;
_alpha = 0;
if (random(2) == 0) {
rOffset = rOffset * -1;
}
Symbol 13 MovieClip [ENEMY_BLUE] Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Tail_Blue", Math.round(5 * _root.particleQuality));
}
if (this.hit.hitTest(_parent._parent.HERO.hit)) {
_parent._parent.function_HERO_hurt();
}
if ((((_parent._parent.bombSwitch == true) or (_parent._parent.HERO.dead == true)) or this.hitTest(_parent._parent.damagePoint)) or this.hitTest(_parent._parent.damagePoint2)) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Fragment_Blue", Math.round(200 * _root.particleQuality));
}
_parent._parent.function_Enemy_Destroyed(_x, _y, 2);
this.removeMovieClip();
}
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
speed = 5;
if (moveTimer > 50) {
_rotation = Math.round((Math.atan2((_parent._parent.HERO._y - _y) - yOffset, (_parent._parent.HERO._x - _x) - xOffset) / 3.141593) * 180);
_rotation = (_rotation + rOffset);
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
moveTimer = -random(40);
}
moveTimer++;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
}
speed = 0;
xOffset = 0;
yOffset = 0;
rOffset = 0;
_alpha = 0;
if (random(2) == 0) {
rOffset = rOffset * -1;
}
moveTimer = -random(20);
Symbol 16 MovieClip [ENEMY_YELLOW] Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Tail_Yellow", Math.round(5 * _root.particleQuality));
}
if (this.hit.hitTest(_parent._parent.HERO.hit)) {
_parent._parent.function_HERO_hurt();
}
if ((((_parent._parent.bombSwitch == true) or (_parent._parent.HERO.dead == true)) or this.hitTest(_parent._parent.damagePoint)) or this.hitTest(_parent._parent.damagePoint2)) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Fragment_Yellow", Math.round(200 * _root.particleQuality));
}
_parent._parent.function_Enemy_Destroyed(_x, _y, 2);
this.removeMovieClip();
}
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else if (speed < _parent._parent.enemyYellowSpeed) {
speed = speed + 0.1;
}
_rotation = Math.round((Math.atan2((_parent._parent.HERO._y - _y) - yOffset, (_parent._parent.HERO._x - _x) - xOffset) / 3.141593) * 180);
_rotation = (_rotation + rOffset);
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
}
speed = 0;
xOffset = 0;
yOffset = 0;
rOffset = random(20) + 10;
_alpha = 0;
if (random(2) == 0) {
rOffset = rOffset * -1;
}
Symbol 21 MovieClip [fps] Frame 1
fps = 120;
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 23 MovieClip [Class_Particle_Enemy] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed++;
xSpeed = xSpeed / 1.05;
_alpha = (_alpha - 2);
_rotation = (_rotation + spin);
} else {
this.removeMovieClip();
}
}
gotoAndStop(random(4) + 1);
xSpeed = (random(200) - 100) / 10;
ySpeed = (random(10) + 5) * -1;
_xscale = (random(50) + 50);
_yscale = _xscale;
if (random(2) == 0) {
_yscale = (-_yscale);
}
drop = 0;
spin = random(20) - 10;
_rotation - random(360);
Symbol 26 MovieClip [Class_Particle] Frame 1
function onEnterFrame() {
if ((_alpha > 0) and this.hitTest(_parent._parent._parent.STAGE)) {
this._x = this._x + xSpeed;
this._y = this._y + (ySpeed + drop);
xSpeed = xSpeed / 1.1;
ySpeed = ySpeed / 1.2;
drop++;
_alpha = (_alpha - 20);
} else {
this.removeMovieClip();
}
}
xSpeed = random(60) - 30;
ySpeed = random(60) - 40;
_xscale = (random(50) + 50);
_yscale = _xscale;
drop = 0;
_alpha = 400;
Symbol 31 MovieClip [MessageBox] Frame 1
function onEnterFrame() {
if (soundSpeed > 0) {
soundSpeed--;
} else if (soundSpeed == 0) {
var _local2 = new Sound();
_local2.attachSound(sound);
_local2.start();
soundSpeed--;
}
if (timer > 0) {
if (_alpha < 100) {
_alpha = (_alpha + fadeSpeed);
}
timer--;
} else if (_alpha > 0) {
_alpha = (_alpha - fadeSpeed);
} else {
this.removeMovieClip();
}
}
_alpha = 0;
if (spriteSel != undefined) {
sprite.gotoAndStop(spriteSel);
}
Symbol 33 MovieClip [Particle_FallSmoke] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - 5);
_x = (_x + speed);
speed = speed / 1.5;
_xscale = (_xscale / 1.1);
_yscale = (_yscale / 1.1);
_rotation = (_rotation - speed);
} else {
this.removeMovieClip();
}
}
if (_y == 0) {
speed = 20;
_y = _parent._parent.HERO._y;
} else if (_y == 1) {
speed = -20;
_y = _parent._parent.HERO._y;
} else if (random(2) == 0) {
speed = 20;
} else {
speed = -20;
}
Symbol 35 MovieClip [Class_Fader] Frame 1
function onEnterFrame() {
if (fadeSwitch == false) {
if (_alpha < 100) {
_alpha = (_alpha + fadeSpeed);
} else {
fadeSwitch = true;
_parent.MESSAGES.removeMovieClip();
_parent.createEmptyMovieClip("MESSAGES", 50);
stopAllSounds();
_parent.gotoAndStop(targ);
}
} else if (_alpha > 0) {
_alpha = (_alpha - fadeSpeed);
} else {
this.removeMovieClip;
}
}
fadeSwitch = false;
_alpha = 0;
Symbol 41 MovieClip [Class_LevelSelectTile] Frame 1
function onRollOver() {
fadeLevel = 80;
_alpha = 100;
}
function onRollOut() {
fadeLevel = 50;
}
function onRelease() {
_parent.selector.pos = this._x;
_parent.selector.yPos = this._y;
_parent._parent.levelID = levelID;
_parent._parent.scoreDesc = _parent._parent[("LEVEL" + levelID) + "SCORE"];
}
function onDragOver() {
fadeLevel = 80;
_alpha = 100;
}
function onDragOut() {
fadeLevel = 50;
}
function onEnterFrame() {
if (scrollTimer == 0) {
this._x = this._x - ((_x - xPos) / 5);
this._y = this._y - ((_y - yPos) / 5);
} else {
scrollTimer--;
}
if (_alpha > fadeLevel) {
_alpha = (_alpha - 2);
} else if (_alpha < fadeLevel) {
_alpha = (_alpha + 2);
}
}
fadeLevel = 50;
stop();
_alpha = fadeLevel;
if (_parent._parent[("LEVEL" + levelID) + "COMPLETE"] == true) {
lock._visible = false;
}
if (_parent._parent.bossFilterArray[levelID] == 1) {
this.gotoAndStop(2);
}
Symbol 43 MovieClip [CLASS_bomb] Frame 1
function onEnterFrame() {
if (_xscale == 300) {
if (this.hitTest(_parent._parent.HERO.sprite)) {
_parent._parent.HERO.drop = -25;
}
_parent._parent.damagePoint._x = this._x;
_parent._parent.damagePoint._y = this._y;
_parent._parent.damagePoint._xscale = 200;
_parent._parent.damagePoint._yscale = 100;
_parent._parent.damagePoint.power = 5;
this.removeMovieClip();
}
_xscale = (random(50) + 50);
_yscale = _xscale;
if (timer > 0) {
timer--;
} else {
this._xscale = 300;
this._yscale = 300;
}
}
timer = 30;
Symbol 47 MovieClip Frame 1
stop();
Symbol 48 MovieClip [CLASS_bullet] Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
_visible = true;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
_rotation = (_rotation + 40);
_xscale = (50 + (power * 1.5));
_yscale = (50 + (power * 1.5));
if (timer > 0) {
timer--;
} else {
this.removeMovieClip();
}
if (_parent._parent.GROUND.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true) or _parent._parent.ENEMY.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
if (_root.damagePointSwitch == true) {
_parent._parent.damagePoint._x = this._x;
_parent._parent.damagePoint._y = this._y;
_parent._parent.damagePoint._xscale = 100 + power;
_parent._parent.damagePoint._yscale = 100 + power;
_parent._parent.damagePoint._y = this._y;
_parent._parent.damagePoint.power = 10 + power;
_root.damagePointSwitch = false;
} else {
_parent._parent.damagePoint2._x = this._x;
_parent._parent.damagePoint2._y = this._y;
_parent._parent.damagePoint2._xscale = 100 + power;
_parent._parent.damagePoint2._yscale = 100 + power;
_parent._parent.damagePoint2._y = this._y;
_parent._parent.damagePoint2.power = 10 + power;
_root.damagePointSwitch = true;
}
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Class_Shot_fragment", 10);
}
if (_root.powerup != 3) {
this.removeMovieClip();
}
}
}
}
this._xscale = 100 + (power * 2);
this._yscale = 100 + (power * 2);
if (_parent._parent.GROUND.hitTest(_x + _parent._parent._x, _y + _parent._parent._y, true)) {
_xscale = 300;
_yscale = 300;
}
_visible = false;
if (_root.powerup == 2) {
sprite.gotoAndStop(2);
_rotation = random(360);
_xscale = (_xscale + random(20));
_yscale = (_yscale + random(20));
speedDec = (random(5) / 10) + 1;
ySpeed = ySpeed / speedDec;
xSpeed = xSpeed / speedDec;
} else if (_root.powerup == 3) {
timer = 50;
sprite.gotoAndStop(3);
}
Symbol 51 MovieClip [Enemy_Tail_Yellow] Frame 1
function onEnterFrame() {
if (_xscale > 10) {
_xscale = (_xscale / 1.4);
_yscale = (_yscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.5;
xSpeed = xSpeed / 1.5;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = random(100);
_xscale = (random(100) + 50);
_yscale = _xscale;
speed = random(10) + 5;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 54 MovieClip [Enemy_Tail_Red] Frame 1
function onEnterFrame() {
if (_xscale > 10) {
_xscale = (_xscale / 1.4);
_yscale = (_yscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.5;
xSpeed = xSpeed / 1.5;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = random(100);
_xscale = (random(100) + 50);
_yscale = _xscale;
speed = random(10) + 5;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 56 MovieClip [Enemy_fragment_spawn] Frame 1
function onEnterFrame() {
if ((_alpha > 0) and this.hitTest(_root.area)) {
_alpha = (_alpha - 5);
_xscale = (_xscale + scaleSpeed);
_yscale = (_yscale + scaleSpeed);
} else {
this.removeMovieClip();
}
}
scaleSpeed = random(20) + 5;
_xscale = 1;
_yscale = _xscale;
Symbol 59 MovieClip [Enemy_fragment_blue] Frame 1
function onEnterFrame() {
if ((_xscale > 10) and this.hitTest(_root.area)) {
_xscale = (_xscale / 1.2);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_xscale = (random(100) + 50);
speed = (random(400) + 200) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 62 MovieClip [Enemy_Fragment_Green] Frame 1
function onEnterFrame() {
if ((_xscale > 10) and this.hitTest(_root.area)) {
_xscale = (_xscale / 1.2);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_xscale = (random(100) + 50);
speed = (random(400) + 200) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 65 MovieClip [Enemy_Fragment_Yellow] Frame 1
function onEnterFrame() {
if ((_xscale > 10) and this.hitTest(_root.area)) {
_xscale = (_xscale / 1.2);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_xscale = (random(100) + 50);
speed = (random(400) + 200) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 68 MovieClip [Enemy_fragment_Red] Frame 1
function onEnterFrame() {
if ((_xscale > 10) and this.hitTest(_root.area)) {
_xscale = (_xscale / 1.2);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_xscale = (random(100) + 50);
speed = (random(400) + 200) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
gotoAndStop(random(2) + 2);
Symbol 70 MovieClip [Class_Shot_Fragment] Frame 1
function onEnterFrame() {
if (_xscale > 1) {
_xscale = (_xscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = random(100);
_xscale = (random(100) + 50);
speed = (random(100) + 50) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
Symbol 72 MovieClip [Class_Powerup_fragment] Frame 1
function onEnterFrame() {
if (_xscale > 1) {
_xscale = (_xscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = random(100);
_xscale = (random(100) + 50);
speed = (random(100) + 50) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
Symbol 74 MovieClip [Class_Collect_fragment] Frame 1
function onEnterFrame() {
if (_xscale > 1) {
_xscale = (_xscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.2;
xSpeed = xSpeed / 1.2;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = random(100);
_xscale = (random(100) + 50);
speed = (random(100) + 50) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
Symbol 76 MovieClip [Class_ShotBlock_fragment] Frame 1
function onEnterFrame() {
if ((_xscale > 10) and this.hitTest(_root.area)) {
_xscale = (_xscale / 1.4);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
ySpeed = ySpeed / 1.4;
xSpeed = xSpeed / 1.4;
} else {
this.removeMovieClip();
}
}
_rotation = (random(3600) / 10);
_alpha = (random(50) + 50);
_xscale = (random(100) + 50);
speed = (random(400) + 200) / 10;
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
Symbol 79 MovieClip [Class_BombBlock_fragment] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - 5);
this._x = this._x + xSpeed;
_y = (_y + drop);
drop = drop + 1;
} else {
this.removeMovieClip();
}
}
drop = random(10) * -1;
xSpeed = random(10) - 5;
Symbol 82 MovieClip [ENEMY_RED] Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Tail_Red", Math.round(5 * _root.particleQuality));
}
if (this.hitTest(_parent._parent.HERO.hit)) {
_parent._parent.function_HERO_hurt();
}
if ((((_parent._parent.bombSwitch == true) or (_parent._parent.HERO.dead == true)) or this.hitTest(_parent._parent.damagePoint)) or this.hitTest(_parent._parent.damagePoint2)) {
if (this.hitTest(_root.area)) {
_parent._parent.function_newParticle(_x, _y, "Enemy_Fragment_Red", Math.round(200 * _root.particleQuality));
}
_parent._parent.function_Enemy_Destroyed(_x, _y, 4);
this.removeMovieClip();
}
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else if (speed < _parent._parent.enemyRedSpeed) {
speed = speed + 0.1;
}
_rotation = Math.round((Math.atan2((_parent._parent.HERO._y - _y) - yOffset, (_parent._parent.HERO._x - _x) - xOffset) / 3.141593) * 180);
_rotation = (_rotation + rOffset);
ySpeed = speed * Math.sin(_rotation * 0.01745329);
xSpeed = speed * Math.cos(_rotation * 0.01745329);
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
}
speed = 0;
xOffset = 0;
yOffset = 0;
rOffset = random(45) + 45;
_alpha = 0;
if (random(2) == 0) {
rOffset = rOffset * -1;
}
Symbol 83 MovieClip [GRIDPOINT] Frame 1
function onEnterFrame() {
this._x = this._x + ((xPos - _x) / 5);
this._y = this._y + ((yPos - _y) / 5);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
xSpeed = xSpeed / 1.6;
ySpeed = ySpeed / 1.6;
if (_root.lineDraw == true) {
calcDist(_parent._xmouse, _parent._ymouse, 200);
}
}
function calcDist(xExp, yExp, size) {
if (Math.sqrt(((xExp - _x) * (xExp - _x)) + ((yExp - _y) * (yExp - _y))) < 10) {
distance = 10;
} else {
distance = Math.sqrt(((xExp - _x) * (xExp - _x)) + ((yExp - _y) * (yExp - _y)));
}
power = size / distance;
if (power > 2) {
angle = Math.round((Math.atan2(yExp - _y, xExp - _x) / 3.141593) * 180);
ySpeed = ySpeed + ((power * Math.sin(angle * 0.01745329)) * -1);
xSpeed = xSpeed + ((power * Math.cos(angle * 0.01745329)) * -1);
}
}
xPos = _x;
yPos = _y;
xSpeed = 0;
ySpeed = 0;
Symbol 107 MovieClip Frame 126
_root.nextFrame();
Symbol 115 MovieClip Frame 1
function onEnterFrame() {
if (timer < 30) {
timer++;
} else {
timer = 0;
}
if ((timer == 20) or (timer == 25)) {
_xscale = ((scaler + random(10)) + 2);
_yscale = ((scaler + random(10)) + 2);
_x = (_x + (random(30) - 15));
_y = (_y + (random(30) - 15));
} else {
_xscale = scaler;
_yscale = scaler;
_x = xStore;
_y = yStore;
}
}
scaler = _xscale;
timer = 0;
xStore = _x;
yStore = _y;
Symbol 115 MovieClip Frame 180
gotoAndPlay (2);
Symbol 118 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 125 Button
on (rollOver, dragOver) {
_root.infoText = "More great games are to be found here! http://www.armorgames.com";
}
on (rollOut, dragOut) {
_root.infoText = infoTextStore;
}
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 131 Button
on (rollOver, dragOver) {
_root.infoText = "PRACTICE MODE: It is highly recommended that you use Practice Mode to get the hang of IgnitoPulse before playing one of the Main Games.";
}
on (rollOut, dragOut) {
_root.infoText = infoTextStore;
}
on (release) {
_root.gotoAndStop("practiceLoader");
}
Symbol 132 Button
on (rollOver, dragOver) {
_root.infoText = "View the High Score Boards for Arcade and Gauntlet Mode, provided by the kind folks at armorbot.com";
}
on (rollOut, dragOut) {
_root.infoText = infoTextStore;
}
on (release) {
_root.gotoAndStop("scoreLoader");
}
Symbol 133 Button
on (rollOver, dragOver) {
_root.infoText = "GAUNTLET MODE: For those who prefer a more technical game. Cycle through the five Arenas with the level of difficulty increasing each time. Can you survive long enough to make the high score board?";
}
on (rollOut, dragOut) {
_root.infoText = infoTextStore;
}
on (release) {
_root.gotoAndStop("gauntletLoader");
}
Symbol 134 Button
on (rollOver, dragOver) {
_root.infoText = "ARCADE MODE: The baddest of the bad. This is the place for the hardcore gamer. Collect as many ORBS as you can before you die, battling for your life against literally hundreds of enemies. Can you make it onto the worldwide highscores?";
}
on (rollOut, dragOut) {
_root.infoText = infoTextStore;
}
on (release) {
_root.gotoAndStop("arcadeLoader");
}
Symbol 137 Button
on (release) {
_root.gotoAndStop("howToLoader");
}
Symbol 139 Button
on (release) {
_root.lives = 3;
_root.smartBombs = 3;
_root.practice = true;
_root.arcade = true;
_root.gotoAndPlay("game");
}
Symbol 143 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 145 Button
on (release) {
_root.gotoAndStop("howToLoader2");
}
Symbol 148 Button
on (release) {
_root.gotoAndStop("practiceLoader");
}
Symbol 151 Button
on (release) {
_root.gotoAndStop("howToLoader");
}
Symbol 155 Button
on (release) {
getURL ("http://rankz.armorbot.com/ipulse_g/", "_blank");
}
Symbol 157 Button
on (release) {
getURL ("http://rankz.armorbot.com/ipulse_a/", "_blank");
}
Symbol 158 Button
on (release) {
_root.gotoAndPlay("title");
}
Symbol 169 Button
on (release) {
_root.lives = 3;
_root.smartBombs = 3;
_root.practice = false;
_root.arcade = false;
_root.gotoAndPlay("game");
}
Symbol 173 Button
on (release) {
_root.lives = 3;
_root.smartBombs = 3;
_root.practice = false;
_root.difficulty = 4;
_root.arcade = true;
_root.gotoAndPlay("game");
}
Symbol 180 MovieClip Frame 1
function onEnterFrame() {
if (_root.gamePaused == false) {
if (_root.powerupTimer > 0) {
_root.powerupTimer--;
bar._xscale = (_root.powerupTimer / _root.powerupTimerStore) * 100;
this._visible = true;
} else {
_root.powerup = 0;
this._visible = false;
}
}
}
Symbol 217 MovieClip Frame 1
function newMessage(mess, timer) {
messageTimer = timer;
msgBox._alpha = 100;
msgBox.txt = mess;
}
function onEnterFrame() {
if (messageTimer < 0) {
msgBox._alpha = msgBox._alpha - 10;
}
lifeText = _root.lives + 1;
messageTimer--;
}
messageTimer = 0;
msgBox._alpha = 0;
if ((_root.arcade == true) or (_root.practice == true)) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 219 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
function onEnterFrame() {
if (_x != -10000) {
if ((xStore != _x) or (yStore != _y)) {
timer = 0;
}
timer++;
if (timer == timerStore) {
_x = -10000;
timer = 0;
}
xStore = _x;
yStore = _y;
}
}
timerStore = 4;
timer = 0;
xStore = _x;
yStore = _y;
_visible = false;
power = 0;
Symbol 226 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
stop();
Symbol 229 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
_visible = false;
Symbol 231 MovieClip Frame 1
function onEnterFrame() {
while ((this._y == _parent.ORB._y) and (this._x == _parent.ORB._x)) {
moveVar = random(6) + 1;
_parent.POWERUP._x = _parent.SPAWN["C_SPAWN_" + moveVar]._x;
_parent.POWERUP._y = _parent.SPAWN["C_SPAWN_" + moveVar]._y;
}
if (this.hitTest(_root.area) and (_xscale > 0)) {
_xscale = (100 + random(10));
_yscale = (100 + random(10));
_parent.function_newParticle(_x, _y, "Class_Powerup_Fragment", Math.round(10 * _root.particleQuality));
if (this.hitTest(_parent.HERO.sprite)) {
_parent.function_newParticle(_x, _y, "Class_Powerup_Fragment", Math.round(40 * _root.particleQuality));
_root.powerupTimer = _root.powerupTimerStore;
_root.powerup = random(3) + 1;
_root.HUD.newMessage(_root.powerupArray[_root.powerup] + " POWER COLLECTED!", 100);
_parent.newSound("S_GLASS");
this._xscale = 0;
this._yscale = 0;
}
}
}
_xscale = 0;
Symbol 238 Button
on (release) {
gotoAndStop ("SCORE");
}
Symbol 242 MovieClip Frame 1
function onEnterFrame() {
if (timer < 30) {
timer++;
} else {
timer = 0;
}
if ((timer == 20) or (timer == 25)) {
_xscale = ((scaler + random(10)) + 2);
_yscale = ((scaler + random(10)) + 2);
_x = (_x + (random(30) - 15));
_y = (_y + (random(30) - 15));
} else {
_xscale = scaler;
_yscale = scaler;
_x = xStore;
_y = yStore;
}
}
scaler = _xscale;
timer = 0;
xStore = _x;
yStore = _y;
Symbol 243 Button
on (release) {
_root.score = Math.ceil(_root.score / 2);
_parent.scorePot = 0;
_root.lives = 4;
_root.smartBombs = 3;
_parent.hero_respawn();
this._visible = false;
this.gotoAndStop(1);
}
Symbol 248 Button
on (release) {
_root.gotoAndPlay("titleLoader");
}
Symbol 250 Button
on (release) {
if (subButton._alpha == 100) {
if (_root.arcade == true) {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTcyM2olZSVhJW4lcw==", "dWtXcU1GTU8=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else {
bXlnYW1lX25hbWVfdmFyaWFibGU = userName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTcyNGolZSVhJW4lcw==", "YkRFc3BkZEw=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
subButton._alpha = 50;
}
}
Symbol 252 MovieClip Frame 1
function onEnterFrame() {
}
stop();
Symbol 252 MovieClip Frame 2
function onEnterFrame() {
xPos = (_parent.HERO._x + random(500)) - 250;
yPos = (_parent.HERO._y + random(500)) - 250;
i = 0;
while (i < 10) {
clone = _parent.EFFECTS.attachMovie(parArray[random(4)], "E" + parCount, parCount++);
clone._x = xPos;
clone._y = yPos;
i++;
}
i = 0;
while (i < 5) {
clone = EFFECTS.attachMovie(parArray[random(4)], "E" + parCount, parCount++);
clone._x = _xmouse;
clone._y = _ymouse;
i++;
}
}
stop();
if (_root.arcade == true) {
gotoAndStop ("SCORE");
}
parCount = 0;
parArray = new Array("Enemy_Fragment_Green", "Enemy_Fragment_Blue", "Enemy_Fragment_Yellow", "Enemy_Fragment_Red");
Symbol 252 MovieClip Frame 3
function __rankz_send__(par1, par2, par3, par4) {
if (_root.arcade == true) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
} else {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
}
function onEnterFrame() {
}
Symbol 254 MovieClip Frame 1
_visible = false;
Symbol 255 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
Symbol 260 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.POWERUP.hitTest(_root.area) or (_parent._parent.POWERUP._xscale < 10)) {
_visible = false;
} else {
_visible = true;
_rotation = Math.round((Math.atan2((_parent._parent.POWERUP._y - _parent._y) - 15, _parent._parent.POWERUP._x - _parent._x) / 3.141593) * 180);
}
}
Symbol 261 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.ORB.hitTest(_root.area)) {
_visible = false;
} else {
_visible = true;
_rotation = Math.round((Math.atan2((_parent._parent.ORB._y - _parent._y) - 15, _parent._parent.ORB._x - _parent._x) / 3.141593) * 180);
}
}
Symbol 285 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent._parent._parent.chargePower > 1) {
_xscale = ((_parent._parent._parent._parent.chargePower * 2) + random(50));
_yscale = _xscale;
_alpha = (random(50) + 50);
} else {
_xscale = 0;
_yscale = 0;
}
}
_xscale = 0;
_yscale = 0;
if (_parent._parent._parent._parent.chargePower > 1) {
_xscale = ((_parent._parent._parent._parent.chargePower * 2) + random(50));
_yscale = _xscale;
}
Symbol 290 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 50);
}
Symbol 299 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
function onEnterFrame() {
if (this.hitTest(_parent._parent._parent.STAGE)) {
if (this.hitTest(_parent._parent.HERO.body)) {
_parent._parent.function_newParticle(this._x, this._y, "Class_Particle", 5);
_parent._parent._parent.STAGE.newSound("Sound_Fruit");
_parent._parent.itemCollect++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
gotoAndStop(random(6) + 1);
Symbol 308 MovieClip Frame 1
gotoAndStop(_parent.LEVEL);
stop();
Symbol 313 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.orbs >= _parent._parent.orbTarget) {
if (yPos != (yStart - 50)) {
_parent._parent.newSound("S_DOOR");
}
yPos = yStart - 50;
} else {
yPos = yStart;
}
this._y = this._y - ((this._y - yPos) / 5);
}
yStart = this._y;
yPos = this._y;
Symbol 317 MovieClip Frame 1
function destroy(particles) {
_parent._parent.function_newParticle(_x, _y, "Class_ShotBlock_fragment", particles);
_xscale = 0;
_yscale = 0;
timer = _parent._parent.blockCrumbleTime;
}
function onEnterFrame() {
if (this.hitTest(_parent._parent.damagePoint) or this.hitTest(_parent._parent.damagePoint2)) {
destroy(Math.round(100 * _root.particleQuality));
}
if (_xscale < 100) {
if (timer > 0) {
timer--;
} else {
sizeStore = _xscale;
_xscale = 50;
_yscale = 50;
if (this.hitTest(_parent._parent.HERO.hit)) {
destroy(0);
} else {
_xscale = (sizeStore + 30);
_yscale = (sizeStore + 30);
}
}
} else {
_xscale = 100;
_yscale = 100;
}
}
sizeStore = 0;
Symbol 319 MovieClip Frame 1
_visible = false;
Symbol 320 MovieClip Frame 1
function onEnterFrame() {
if (active == true) {
if (_root.fader._alpha > 99) {
_parent._parent._parent.loadLevel(roomID, xPos, yPos, dir);
}
_parent._parent.fadeLock = true;
_root.fader.gotoAndStop("blackFade");
_root.fader._alpha = _root.fader._alpha + 10;
_parent._parent.HERO.speed = 0;
_parent._parent.HERO.drop = 0;
_parent._parent.HERO._x = _parent._parent.HERO._x - ((_parent._parent.HERO._x - _x) / 4);
_parent._parent.HERO._y = _parent._parent.HERO._y - ((_parent._parent.HERO._y - (_y + 50)) / 4);
}
if (this.hit.hitTest(_parent._parent.HERO.sprite)) {
active = true;
_parent._parent.HERO.speed = 0;
_parent._parent.HERO.drop = 0;
}
}
Symbol 321 MovieClip Frame 1
stop();
gotoAndStop(_parent.LEVEL);
Instance of Symbol 311 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
_root.difficulty = _root.difficulty + 2;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
roomID = 2;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 2
onClipEvent (load) {
roomID = 3;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 3
onClipEvent (load) {
roomID = 4;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 4
onClipEvent (load) {
roomID = 5;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 5
onClipEvent (load) {
roomID = 6;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 6
onClipEvent (load) {
roomID = 1;
dir = 1;
xPos = this._x - 650;
yPos = this._y + 60;
}
Symbol 322 MovieClip Frame 1
function onEnterFrame() {
if (_parent.HERO.dead == true) {
this._x = _parent.SPAWN["C_SPAWN_" + moveVar]._x;
this._y = _parent.SPAWN["C_SPAWN_" + moveVar]._y;
if (_root.lives > 1) {
_root.HUD.newMessage(_root.lives + " LIVES REMAINING!", 100);
} else if (_root.lives == 1) {
_root.HUD.newMessage("ONLY 1 LIFE REMAINING!", 100);
} else if (_root.lives == 0) {
_root.HUD.newMessage("YOU'RE ALL OUT OF LUCK, KID!", 100);
}
}
if (this.hitTest(_root.area)) {
_xscale = (100 + random(10));
_yscale = (100 + random(10));
if ((_parent.orbTarget - _parent.orbs) > 0) {
_visible = true;
_parent.function_newParticle(_x, _y, "Class_Collect_Fragment", Math.round(10 * _root.particleQuality));
} else {
_visible = false;
}
if (this.hitTest(_parent.HERO.sprite)) {
if ((random(2) == 0) and (_parent.POWERUP._xscale < 10)) {
moveVar = random(movePoints) + 1;
_parent.POWERUP._x = _parent.SPAWN["C_SPAWN_" + moveVar]._x;
_parent.POWERUP._y = _parent.SPAWN["C_SPAWN_" + moveVar]._y;
_parent.POWERUP._xscale = 10;
}
_parent.function_newParticle(_x, _y, "Class_Collect_Fragment", Math.round(100 * _root.particleQuality));
if ((_parent.HERO.dead != true) and (_parent.orbs < _parent.orbTarget)) {
_parent.orbs++;
if (_root.arcade == true) {
_root.difficulty = _root.difficulty + 0.5;
if (_root.difficulty > 24) {
_root.particleQuality = 0.2;
}
}
scoreInc = random(10) + 100;
_parent.scorePot = _parent.scorePot + scoreInc;
_root.arcadePot = _root.arcadePot + scoreInc;
}
if ((_parent.orbTarget - _parent.orbs) > 0) {
if (_parent.orbs == 1) {
_root.HUD.newMessage(_parent.orbs + " ORB COLLECTED", 100);
} else {
_root.HUD.newMessage(_parent.orbs + " ORBS COLLECTED", 100);
}
if ((_root.arcadePot > 1000) and (_root.arcade == true)) {
_root.arcadePot = _root.arcadePot - 1000;
_root.HUD.newMessage("YOU GOT AN EXTRA LIFE!", 100);
_root.lives++;
_parent.newSound("S_SWOOSH");
}
_parent.newSound("S_GLASS");
xStore = this._x;
yStore = this._y;
while ((_x == xStore) and (_y == yStore)) {
moveVar = random(movePoints) + 1;
this._x = _parent.SPAWN["C_SPAWN_" + moveVar]._x;
this._y = _parent.SPAWN["C_SPAWN_" + moveVar]._y;
}
} else {
this._x = _parent.GROUND.door._x;
this._y = _parent.GROUND.door._y;
_root.HUD.newMessage("DOOR TO NEXT LEVEL UNLOCKED!", 1000);
}
_parent._parent.timer = 0;
_parent.function_newParticle(_x, _y, "Enemy_Fragment_Spawn", Math.round(10 * _root.particleQuality));
}
}
}
if (_root.arcade == true) {
movePoints = 17;
_root.HUD.newMessage("HOW MANY ORBS CAN YOU COLLECT?", 100);
} else {
movePoints = 6;
_root.HUD.newMessage(("Collect " + _parent.orbTarget) + " ORBS to Unlock Door", 100);
}
moveVar = random(movePoints) + 1;
this._x = _parent.SPAWN["C_SPAWN_" + moveVar]._x;
this._y = _parent.SPAWN["C_SPAWN_" + moveVar]._y;
Symbol 323 MovieClip Frame 1
function function_Enemy_Destroyed(xPos, yPos, type) {
enemyDestroyed++;
newSound("S_EXPLOSION");
}
function newSound(file) {
var _local1 = new Sound();
_local1.attachSound(file);
_local1.start();
}
function enemyCreate() {
if (_root.practice != true) {
enemyArray = new Array("ENEMY_RED", "ENEMY_YELLOW", "ENEMY_GREEN", "ENEMY_BLUE");
if ((enemyCount < (enemyDestroyed + _root.difficulty)) and (HERO.dead == false)) {
clone = ENEMY.attachMovie(enemyArray[random(4)], "E" + enemyCount, enemyCount++);
clonePos = random(spawnPoints) + 1;
clone._x = this.SPAWN["E_SPAWN_" + clonePos]._x;
clone._y = this.SPAWN["E_SPAWN_" + clonePos]._y;
function_newParticle(clone._x, clone._y, "Enemy_Fragment_Spawn", 10);
}
}
}
function onEnterFrame() {
pauseManagement();
if (_root.gamePaused == false) {
enemyCreate();
if ((fadeLock == false) and (_root.fader._alpha > 0)) {
_root.fader._alpha = _root.fader._alpha - 20;
}
levelTimer = levelTimer + 0.04;
levelTimerDisplay = Math.round(levelTimer);
gunPoseTimer--;
touchBuffer--;
function_heroDeathManagement();
function_HERO();
if (camCorrect == false) {
camElasticStore = 1;
camCorrect = true;
} else {
camElasticStore = camElasticStore_default;
}
function_CAMERA(camTarget, camElasticStore, camTypeStore, camXPos, camYPos);
}
}
function pauseManagement() {
if (Key.isDown(pauseKey) and (pauseSwitch == false)) {
pauseSwitch = true;
if (_root.gamePaused == false) {
faderAlphaStore = _root.fader._alpha;
faderFrameStore = _root.fader._currentframe;
_root.fader._alpha = 100;
_root.fader.gotoAndStop("pause");
_root.gamePaused = true;
} else {
_root.fader._alpha = faderAlphaStore;
_root.fader.gotoAndStop(faderFrameStore);
_root.gamePaused = false;
}
} else if (Key.isDown(pauseKey) == false) {
pauseSwitch = false;
}
}
function function_HERO() {
if ((HERO.dead == false) and (HERO.win == false)) {
if (_parent.samusStartDir == 0) {
HERO.sprite._xscale = -HERO.sprite._xscale;
_parent.samusStartDir = 2;
}
function_HERO_jump();
function_gravity(this.HERO);
function_HERO_hitRoof();
scoreManagement();
function_HERO_hitGround();
function_HERO_hitWall(this.HERO.charWidth / 2, (-this.HERO.charHeight) / 2, 1);
function_HERO_hitWall((-this.HERO.charWidth) / 2, (-this.HERO.charHeight) / 2, -1);
function_HERO_move();
function_HERO_attackManagementNC();
function_HERO_spriteGraphics();
function_HERO_healthManagement();
smartBomb();
function_dangers();
} else if (HERO.win == true) {
function_gravity(this.HERO);
function_heroWinManagement();
function_HERO_hitGround();
}
}
function scoreManagement() {
if (scorePot > 0) {
_root.score = _root.score + Math.ceil(scorePot / 10);
scorePot = scorePot - Math.ceil(scorePot / 10);
}
_root.HUD.ORBS.gotoAndStop(orbs + 1);
}
function smartBomb() {
_root.HUD.BOMBS.gotoAndStop(_root.smartBombs + 2);
if (Key.isDown(bombKey) == false) {
bombKeySwitch = false;
}
bombSwitch = false;
if ((Key.isDown(bombKey) and (_root.smartBombs > 0)) and (bombKeySwitch == false)) {
_root.fader._alpha = 120;
_root.fader.gotoAndStop("whiteFade");
bombKeySwitch = true;
_root.smartBombs--;
_root.HUD.newMessage(("BOMB DETONATED! " + _root.smartBombs) + " Left", 30);
bombSwitch = true;
} else if (Key.isDown(bombKey) and (bombKeySwitch == false)) {
_root.HUD.newMessage("NO MORE BOMBS!", 30);
newSound("S_BOMB_E");
bombKeySwitch = true;
}
}
function newBullet(xPos, yPos, xSpeed, ySpeed) {
clone = BULLETS.attachMovie("CLASS_bullet", "B" + bulletCount, bulletCount++);
clone._x = xPos;
clone._y = yPos;
clone.ySpeed = ySpeed;
clone.xSpeed = xSpeed;
clone.timer = 25;
clone.power = chargePower;
}
function function_HERO_attackManagementNC() {
autoCounter--;
if (Key.isDown(attackKey) == false) {
attackSwitch = true;
} else if ((Key.isDown(attackKey) == true) and ((attackSwitch == true) or ((_root.powerup == 2) and (autoCounter < 0)))) {
autoCounter = 2;
attackSwitch = false;
newSound("S_SHOOT");
gunPoseTimer = 20;
if (Key.isDown(upKey) and (touchBuffer < 5)) {
newBullet(HERO._x, HERO._y - 40, 0, -bulletSpeed);
if (_root.powerup == 1) {
newBullet(HERO._x, HERO._y - 40, 5, -bulletSpeed);
newBullet(HERO._x, HERO._y - 40, -5, -bulletSpeed);
}
} else if (Key.isDown(downKey) and (touchBuffer < 5)) {
newBullet(HERO._x - 10, HERO._y - 20, 0, bulletSpeed);
if (_root.powerup == 1) {
newBullet(HERO._x - 10, HERO._y - 20, 5, bulletSpeed);
newBullet(HERO._x - 10, HERO._y - 20, -5, bulletSpeed);
}
HERO.drop = -3 * (chargePower / 2);
} else if (Key.isDown(leftKey) and (touchBuffer < 5)) {
newBullet(HERO._x, HERO._y - 20, -bulletSpeed, 0);
if (_root.powerup == 1) {
newBullet(HERO._x, HERO._y - 20, -bulletSpeed, 5);
newBullet(HERO._x, HERO._y - 20, -bulletSpeed, -5);
}
} else if (Key.isDown(rightKey) and (touchBuffer < 5)) {
newBullet(HERO._x, HERO._y - 20, bulletSpeed, 0);
if (_root.powerup == 1) {
newBullet(HERO._x, HERO._y - 20, bulletSpeed, 5);
newBullet(HERO._x, HERO._y - 20, bulletSpeed, -5);
}
} else if (Key.isDown(upKey) == false) {
if (HERO.sprite._xscale > 0) {
bulletX = HERO._x + 5;
} else {
bulletX = HERO._x - 22;
}
newBullet(bulletX, HERO._y - 20, HERO.sprite._xscale, 0);
if (_root.powerup == 1) {
newBullet(bulletX, HERO._y - 20, HERO.sprite._xscale, -5);
newBullet(bulletX, HERO._y - 20, HERO.sprite._xscale, -10);
}
HERO.speed = HERO.speed - ((HERO.sprite._xscale / 10) * (chargePower / 10));
} else if (Key.isDown(leftKey) or Key.isDown(rightKey)) {
if (HERO.sprite._xscale > 0) {
bulletX = HERO._x + 5;
} else {
bulletX = HERO._x - 22;
}
newBullet(bulletX, HERO._y - 27, HERO.sprite._xscale * 1.3, -20);
if (_root.powerup == 1) {
newBullet(bulletX, HERO._y - 27, HERO.sprite._xscale * 1.3, -15);
newBullet(bulletX, HERO._y - 27, HERO.sprite._xscale * 1.3, -25);
}
} else {
if (HERO.sprite._xscale > 0) {
bulletX = HERO._x - 3;
} else {
bulletX = HERO._x - 22;
}
newBullet(bulletX, HERO._y - 40, 0, -bulletSpeed);
if (_root.powerup == 1) {
newBullet(bulletX, HERO._y - 40, 5, -bulletSpeed);
newBullet(bulletX, HERO._y - 40, -5, -bulletSpeed);
}
}
clone.timer = 25;
clone.power = chargePower;
chargePower = 1;
}
}
function function_HERO_move() {
if (Key.isDown(rightKey) and (HERO.paralysisTimer == 0)) {
duck = false;
morphBallDir = false;
if (this.HERO.speed < this.HERO.maxSpeed) {
this.HERO.speed = this.HERO.speed + this.HERO.accel;
} else {
this.HERO.speed = this.HERO.maxSpeed;
}
} else if (Key.isDown(leftKey) and (HERO.paralysisTimer == 0)) {
morphBallDir = true;
duck = false;
if (this.HERO.speed > (-this.HERO.maxSpeed)) {
this.HERO.speed = this.HERO.speed - this.HERO.accel;
} else {
this.HERO.speed = -this.HERO.maxSpeed;
}
} else {
this.HERO.speed = this.HERO.speed / this.HERO.deccel;
}
if (Key.isDown(dashKey) == false) {
this.HERO.speed = this.HERO.speed / this.HERO.dashSpeed;
}
this.HERO._x = this.HERO._x + this.HERO.speed;
if (Math.round(HERO.speed) == 0) {
HERO.speed = 0;
}
if (Math.round(HERO.drop) == 0) {
HERO.drop = 0;
}
}
function function_HERO_jump() {
if (HERO.paralysisTimer == 0) {
if (((Key.isDown(jumpKey) and (touchBuffer > 0)) and (this.HERO.jumpLock == false)) and this.GROUND.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
newSound("S_JUMP");
this.HERO.jumpLock = true;
this.HERO.drop = -this.HERO.jumpHeight;
duck = false;
heroState = "stand";
HERO.sprite.gotoAndStop("JUMP");
}
if ((Key.isDown(jumpKey) == false) and (HERO.drop < 0)) {
HERO.drop = HERO.drop / 1.2;
}
if (((HERO.drop >= ((-HERO.jumpHeight) / 2)) and (Key.isDown(jumpKey) == false)) and (doubleJumpCount < HERO.doubleJumps)) {
allowDoubleJump = true;
}
if (Key.isDown(jumpKey) and (allowDoubleJump == true)) {
allowDoubleJump = false;
doubleJumpCount++;
this.HERO.drop = (-this.HERO.doubleJumpHeight) / doubleJumpDegrade;
doubleJumpDegrade = doubleJumpDegrade + HERO.doubleJumpDegrade;
HERO.sprite.gotoAndStop("JUMP");
}
if ((Key.isDown(jumpKey) == false) and (touchBuffer > 0)) {
this.HERO.jumpLock = false;
}
}
}
function function_CAMERA(camTarg, camSpeed, camType, xPos, yPos) {
if (Key.isDown(camKeyUp)) {
camYOffset = 200;
} else if (Key.isDown(camKeyDown)) {
camYOffset = -200;
} else {
camYOffset = 0;
}
if (Key.isDown(camKeyRight)) {
camXOffset = -200;
} else if (Key.isDown(camKeyLeft)) {
camXOffset = 200;
} else {
camXOffset = 0;
}
if (camType == 1) {
this._x = this._x + (Math.round(((xPos - camTarg._x) - this._x) + camXOffset) / camSpeed);
this._y = this._y + (Math.round(((yPos - camTarg._y) - this._y) + camYOffset) / camSpeed);
} else if (camType == 2) {
this._x = this._x + (Math.round(((xPos - camTarg._x) - this._x) + camXOffset) / camSpeed);
} else if (camType == 3) {
this._y = this._y + (Math.round(((yPos - camTarg._y) - this._y) + camYOffset) / camSpeed);
}
}
function heroHitGround() {
if (this.GROUND.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
if ((HERO.drop == WORLD_gravity) and (touchBuffer < -18)) {
newSound("Sound_Thud");
function_newParticle(HERO._x, 1, "Particle_FallSmoke", 1);
function_newParticle(HERO._x, 0, "Particle_FallSmoke", 1);
}
HERO.drop = 0;
touchBuffer = 6;
doubleJumpCount = 0;
doubleJumpDegrade = 1;
return(true);
}
}
function heroHitForeground() {
if (this.FOREGROUND.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
return(true);
}
}
function heroHitWall(wallXPos, wallYPos) {
if (this.GROUND.hitTest((this.HERO._x + wallXPos) + this._x, (this.HERO._y + wallYPos) + this._y, true)) {
return(true);
}
}
function function_HERO_hitWall(wallXPos, wallYPos, wallDir) {
if (heroHitWall(wallXPos, wallYPos) == true) {
while (heroHitWall(wallXPos, wallYPos) == true) {
this.HERO._x = this.HERO._x - wallDir;
}
this.HERO.speed = 0;
}
}
function heroHitRoof() {
if (this.GROUND.hitTest(this.HERO._x + this._x, (this.HERO._y + this._y) - this.HERO.charHeight, true)) {
return(true);
}
}
function function_HERO_hitRoof() {
if (heroHitRoof() == true) {
while (heroHitRoof() == true) {
this.HERO._y++;
}
this.HERO.drop = 1;
}
}
function function_HERO_hitGround() {
if (heroHitGround() == true) {
while (heroHitGround() == true) {
this.HERO._y--;
this.HERO.drop = 0;
}
this.HERO._y = this.HERO._y + 1;
}
}
function function_gravity(characterClass) {
characterClass._y = characterClass._y + characterClass.drop;
if (characterClass.drop < WORLD_gravity) {
characterClass.drop = characterClass.drop + WORLD_airResistance;
} else {
characterClass.drop = WORLD_gravity;
}
}
function processInputKeys() {
var _local1 = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
var _local2 = new Array(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90);
var _local3 = 0;
while (_local3 < 26) {
if (camKeyUp == _local1[_local3]) {
camKeyUp = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (camKeyDown == _local1[_local3]) {
camKeyDown = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (camKeyLeft == _local1[_local3]) {
camKeyLeft = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (camKeyRight == _local1[_local3]) {
camKeyRight = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (jumpKey == _local1[_local3]) {
jumpKey = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (attackKey == _local1[_local3]) {
attackKey = _local2[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < 26) {
if (dashKey == _local1[_local3]) {
dashKey = _local2[_local3];
}
_local3++;
}
if (dashKey == null) {
HERO.dashSpeed = 1;
}
}
function function_HERO_spriteGraphics() {
if (HERO.paralysisTimer > 0) {
HERO.sprite.gotoAndStop("HURT");
HERO.paralysisTimer--;
} else if (((touchBuffer < 4) or (HERO.drop < -15)) and (heroState != "morph")) {
HERO.sprite.gotoAndStop("JUMP");
heroState = "stand";
duck = false;
} else if (Key.isDown(rightKey)) {
if (Key.isDown(dashKey) or (dashKey == null)) {
if (heroState != "morph") {
if (Key.isDown(upKey)) {
HERO.sprite.gotoAndStop("RUNUP_R");
} else {
HERO.sprite.gotoAndStop("RUN_R");
}
heroState = "stand";
} else {
HERO.sprite.gotoAndStop("morph");
HERO.charHeight = 9;
}
} else {
HERO.sprite.gotoAndStop("WALK");
}
if (heroState == "morph") {
HERO.sprite._xscale = spriteScaleDefault;
} else {
HERO.sprite._xscale = HERO.spriteScale;
}
} else if (Key.isDown(leftKey)) {
if (Key.isDown(dashKey) or (dashKey == null)) {
if (heroState != "morph") {
if (Key.isDown(upKey)) {
HERO.sprite.gotoAndStop("RUNUP_L");
} else {
HERO.sprite.gotoAndStop("RUN_L");
}
heroState = "stand";
} else {
HERO.sprite.gotoAndStop("morph");
HERO.charHeight = 40;
}
} else {
HERO.sprite.gotoAndStop("WALK");
}
if (heroState == "morph") {
HERO.sprite._xscale = spriteScaleDefault;
} else {
HERO.sprite._xscale = -HERO.spriteScale;
}
} else if (heroState == "duck") {
if (HERO.sprite._xscale == HERO.spriteScale) {
HERO.sprite.gotoAndStop("DUCK_R");
} else {
HERO.sprite.gotoAndStop("DUCK_L");
}
} else if (heroState == "morph") {
HERO.sprite.gotoAndStop("CRAWL");
HERO.charHeight = 40;
} else if (Key.isDown(upKey)) {
if (HERO.sprite._xscale == HERO.spriteScale) {
HERO.sprite.gotoAndStop("LOOKUP_R");
} else {
HERO.sprite.gotoAndStop("LOOKUP_L");
}
} else if (HERO.sprite._xscale == HERO.spriteScale) {
if ((Key.isDown(attackKey) == false) and (gunPoseTimer < 0)) {
HERO.sprite.gotoAndStop("STAND_R");
} else {
HERO.sprite.gotoAndStop("STANDSHOOT_R");
}
} else if ((Key.isDown(attackKey) == false) and (gunPoseTimer < 0)) {
HERO.sprite.gotoAndStop("STAND_L");
} else {
HERO.sprite.gotoAndStop("STANDSHOOT_L");
}
}
function defaultCamera() {
camTarget = camTarget_default;
camTypeStore = camTypeStore_default;
camElasticStore = camElasticStore_default;
camXPos = camXPos_default;
camYPos = camYPos_default;
}
function function_dangers() {
if (this.DANGERS.hitTest(this.HERO._x + this._x, this.HERO._y + this._y, true)) {
function_HERO_hurt();
}
}
function function_HERO_hurt() {
if (_root.devCheat != true) {
_root.HUD.newMessage("OUCH!", 60);
_root.fader._alpha = 120;
_root.fader.gotoAndStop(1);
_root.fader.txtBox = "FAIL";
if (HERO.invTimer == 0) {
newSound("Sound_Hurt");
HERO.drop = 0;
HERO.paralysisTimer = HERO.paralysisTime;
HERO.invTimer = HERO.invTime;
HERO.health--;
}
}
}
function function_HERO_healthManagement() {
_root.HUD.HEALTH.gotoAndStop(_root.lives + 1);
if (HERO.invTimer > 0) {
HERO.invTimer--;
if (HERO.paralysisTimer == 0) {
HERO.sprite._alpha = -HERO.sprite._alpha;
} else {
HERO.sprite._alpha = 100;
}
} else {
HERO.sprite._alpha = 100;
}
}
function function_newParticle(xPos, yPos, MC, number) {
var _local2 = 0;
while (_local2 < number) {
var _local1 = EFFECTS.attachMovie(MC, "P" + effectCount, effectCount++);
_local1._x = xPos;
_local1._y = yPos;
_local2++;
}
}
function function_heroDeathManagement() {
if (HERO.health == 0) {
if (_root.arcade != true) {
orbs = 0;
}
deathDelay = 10;
HERO.dead = true;
HERO._visible = false;
newSound("S_EXPLOSION");
function_newParticle(HERO._x, HERO._y - 30, "Enemy_Fragment_Red", 50);
HERO.health = 1;
HERO.drop = 0;
HERO.speed = 0;
}
if (HERO.dead == true) {
if (HERO.deadTimer < 30) {
HERO.deadTimer++;
} else if (HERO.deadTimer < 60) {
HERO._x = HERO._x + ((heroStartX - HERO._x) / 10);
HERO._y = HERO._y + ((heroStartY - HERO._y) / 10);
HERO.deadTimer++;
} else {
if (_root.lives > 0) {
hero_respawn();
} else if (gameOver._visible != true) {
gameOver._visible = true;
gameOver.gotoAndStop(2);
}
HERO.deadTimer = 0;
HERO.invTimer = 0;
}
}
}
function function_heroWinManagement() {
if (heroHitGround() == true) {
while (heroHitGround() == true) {
HERO._y--;
}
HERO.drop = -15;
HERO.sprite._xscale = -HERO.sprite._xscale;
}
HERO.sprite.gotoAndStop("JUMP");
}
function hero_respawn() {
_root.lives--;
HERO._x = heroStartX;
HERO._y = heroStartY;
function_newParticle(HERO._x, HERO._y - 30, "Enemy_Fragment_Red", 20);
function_newParticle(HERO._x, HERO._y - 30, "Enemy_Fragment_Yellow", 20);
function_newParticle(HERO._x, HERO._y - 30, "Enemy_Fragment_Blue", 20);
function_newParticle(HERO._x, HERO._y - 30, "Enemy_Fragment_Green", 20);
newSound("S_EXPLOSION");
HERO.dead = false;
HERO._visible = true;
}
_root.powerupTimerStore = 400;
if (_root.powerup == undefined) {
_root.powerup = 0;
}
if (_root.arcade == true) {
_root.difficulty = 8;
} else if (_root.practice == true) {
_root.difficulty = 0;
}
gameOver._visible = false;
var jumpKey = 90;
var attackKey = 88;
var bombKey = 67;
var rightKey = 39;
var leftKey = 37;
var upKey = 38;
var downKey = 40;
var dashKey = null;
var pauseKey = 32;
var camKeyLeft = null;
var camKeyRight = null;
var camKeyUp = null;
var camKeyDown = null;
if (_root.beamLevel == undefined) {
_root.beamLevel = 1;
}
if (_root.jumpLevel == undefined) {
_root.jumpLevel = 1;
}
if (_root.speedLevel == undefined) {
_root.speedLevel = 1;
}
_root.gamePaused = false;
enemyRedSpeed = 5;
enemyYellowSpeed = 2;
enemyGreenSpeed = 3;
enemyBlueSpeed = 3;
blockCrumbleTime = 90;
this.HERO.maxSpeed = 12 * _root.speedLevel;
this.HERO.accel = 2;
this.HERO.deccel = 1.8;
if (_root.jumpLevel == 1) {
this.HERO.jumpHeight = 20;
this.HERO.doubleJumps = 0;
} else if (_root.jumpLevel == 2) {
this.HERO.jumpHeight = 30;
this.HERO.doubleJumps = 0;
} else if (_root.jumpLevel > 2) {
this.HERO.jumpHeight = 15;
this.HERO.doubleJumps = 500;
}
this.HERO.doubleJumpHeight = 20;
this.HERO.doubleJumpDegrade = 0;
this.HERO.charWidth = 50;
this.HERO.charHeight = 50;
this.HERO.dashSpeed = 1.2;
this.HERO.paralysisTime = 0;
this.HERO.invTime = 120;
this.HERO.deadTimerStore = 60;
this.HERO.health = 1;
var camTarget_default = this.HERO;
var camTypeStore_default = 1;
var camElasticStore_default = 3;
var camXPos_default = 250;
var camYPos_default = 200;
var WORLD_gravity = 20;
var WORLD_airResistance = 2;
fadeLock = false;
HERO.deadTimer = 0;
var heroStartX = HERO._x;
var heroStartY = HERO._y;
HERO.dead = false;
defaultCamera();
processInputKeys();
HERO.spriteScale = HERO.sprite._xscale;
var doubleJumpCount = 0;
var doubleJumpDegrade = 0;
var allowDoubleJump = false;
createEmptyMovieClip("EFFECTS", 10);
createEmptyMovieClip("BULLETS", 2);
createEmptyMovieClip("ENEMY", 11);
gameOver.swapDepths(18);
_root.arcadePot = 0;
GROUND.swapDepths(3);
HERO.swapDepths(12);
FOREGROUND.swapDepths(5);
if (_root.lives == undefined) {
_root.lives = 3;
} else {
_root.lives = _root.lives + 1;
}
deathDelay = 10;
levelTimer = 0;
levelTimerDisplay = levelTimer;
itemCollect = 0;
gamePaused = false;
heroState = "stand";
spriteScaleDefault = HERO.sprite._xscale;
morphBallDir = false;
if ((_root.arcade == true) or (_root.practice == true)) {
LEVEL = "ARCADE";
} else if (_parent.LEVEL == undefined) {
LEVEL = 1;
} else {
LEVEL = _parent.LEVEL;
}
_root.fader._alpha = 100;
camCorrect = false;
enemyCount = 0;
enemyDestroyed = 0;
if (_root.arcade == true) {
spawnPoints = 10;
} else {
spawnPoints = 8;
}
this.HERO.drop = 0;
this.HERO.speed = 0;
this.HERO.jumpSwitch = false;
this.HERO.jumpLock = false;
this.HERO.invTimer = 0;
this.HERO.paralysisTimer = 0;
HERO.win = false;
if (scorePot == undefined) {
scorePot = 0;
}
if (_root.score == undefined) {
_root.score = 0;
}
bombSwitch = false;
bombKeySwitch = false;
if (_root.smartBombs == undefined) {
_root.smartBombs = 3;
} else if (_root.smartBombs < 3) {
_root.smartBombs++;
}
bulletCount = 0;
attackSwitch = false;
attackStore = false;
bulletSpeed = HERO.sprite._xscale;
chargePower = 1;
autoCounter = 0;
gunPoseTimer = 0;
effectCount = 0;
orbs = 0;
if ((_root.arcade == true) or (_root.practice == true)) {
orbTarget = 9999;
} else {
orbTarget = 5;
}
Symbol 324 MovieClip Frame 1
function loadLevel(roomID, xPos, yPos, dir) {
LEVEL = roomID;
samusStartX = xPos;
samusStartY = yPos;
samusStartDir = dir;
gotoAndStop ("roomLoader");
}
stop();
if (System.capabilities.os != "Nintendo Wii") {
}
Symbol 324 MovieClip Frame 2
gotoAndStop ("GAME");