Frame 1
_quality = "HIGH";
stop();
Instance of Symbol 282 MovieClip in Frame 6
onClipEvent (load) {
_visible = false;
}
Frame 7
function restoreMap() {
baddieMap = new Array([0], [0], [0], [0], [0]);
var widthCnt = baddieMapMaster[0].length;
var heightCnt = baddieMapMaster.length;
var i = -1;
while ((++i) != heightCnt) {
var j = -1;
while ((++j) != widthCnt) {
baddieMap[i][j] = baddieMapMaster[i][j];
}
}
numberOfBaddies = baddieMapMaster.length * baddieMapMaster[0].length;
}
baddieMapMaster = [[27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
var ver = "1.75";
_global.frameRate = 31;
_global.numberOfBaddies = baddieMapMaster.length * baddieMapMaster[0].length;
var runningBaddies = numberOfBaddies;
var damageDepth = 0;
var demoMode = false;
var artwork = true;
var cheatMode = false;
var level = 0;
var musicFlag = true;
hiScoreName = new Array("_", "_", "_", "_", "_", "_", "_", "_");
MovieClip.prototype.emptyClip = function (name, xPos, yPos, depth) {
var temp = this.createEmptyMovieClip(name, depth);
temp._x = xPos;
temp._y = yPos;
return(temp);
};
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100 - amount));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
this.setTransform(trans);
};
MovieClip.prototype.textPlotter = function (targetName, mc, xPos, yPos, depth, alpha, string) {
q = targetName.createEmptyMovieClip(mc, depth);
q._y = yPos;
q._alpha = alpha;
var c = (string.length + 1);
var gutter = 0;
var pos = 0;
while ((--c) > 0) {
char = string.charCodeAt(pos) - 32;
if (char == 0) {
gutter = gutter + 18;
} else {
t = q.attachMovie("mcFont", "char" + pos, pos);
t._x = gutter;
t._y = 0;
t.gotoAndStop(char + 1);
gutter = gutter + t._width;
}
pos++;
}
if (xPos == "Justify") {
q._x = 224 - (q._width / 2);
} else if (xPos == "Right") {
q._x = 448 - (q._width + 16);
} else if (xPos == "Left") {
q._x = 448 - (q._width + 240);
} else {
q._x = xPos;
}
return(q);
};
function plotBaddies() {
restoreMap();
var c = 0;
var mcName = "baddie";
baddieHandler.baddieStorageArray = new Array();
var i = 0;
while (i < baddieMap.length) {
var j = 0;
while (j < baddieMap[0].length) {
temp = playField.attachMovie(mcName, "baddie" + c, d++);
temp._x = 36 * j;
temp._y = 32 * i;
temp._visible = (temp._rotation = false);
temp.currentStatus = 1;
temp.mapYPos = i;
temp.mapXPos = j;
temp.gotoAndPlay(baddieMap[i][j]);
if (baddieMap[i][j] == 1) {
temp.points = 10;
} else if (baddieMap[i][j] == 14) {
temp.points = 20;
} else {
temp.points = 30;
}
baddieHandler.baddieStorageArray.push("baddie" + c);
c++;
j++;
}
i++;
}
baddieHandler.startingCounter = numberOfBaddies - 11;
baddieHandler.startingRow = numberOfBaddies;
}
function killBaddies() {
var c = 0;
var i = 0;
while (i < baddieMap.length) {
var j = 0;
while (j < baddieMap[0].length) {
playField.removeMovieClip("baddie" + c);
j++;
}
i++;
}
}
function plotBarriers() {
plotBarrier(barrier1, 1);
plotBarrier(barrier2, 2);
plotBarrier(barrier3, 3);
plotBarrier(barrier4, 4);
}
function plotBarrier(mc, d) {
t = mc.attachMovie("barrierSeg1", "b" + d, d++);
t._x = -24;
t._y = -16;
mc.currentStatus = true;
}
function init() {
bulletSeed.duplicateMovieClip("bullet1", 40);
bulletSeed._visible = false;
damageExplosionSeed.duplicateMovieClip("damageExplosion", 5);
damageExplosionSeed.duplicateMovieClip("damageExplosion2", 6);
damageExplosionSeed._visible = false;
badBulletSeed.duplicateMovieClip("badBullet1", 7);
badBulletSeed.duplicateMovieClip("badBullet2", 8);
badBulletSeed.duplicateMovieClip("badBullet3", 9);
badBulletSeed._visible = false;
resetPlayField();
tellTarget (infobar) {
livesClip.gotoAndStop(4);
_visible = false;
};
}
function attract() {
backgroundImage.gotoAndStop(1);
attractMode.gotoAndPlay(2);
musicFlag = true;
barrier1._visible = (barrier2._visible = (barrier3._visible = (barrier4._visible = false)));
player._visible = (bullet1._visible = (mystery._visible = false));
baddieHandler.myfunc = null;
attractMode._visible = true;
attractMode.myfunc = attractMode.scanKeys;
tellTarget (sTracker) {
myfunc = delay;
};
}
function newGame() {
tellTarget (attractMode) {
_visible = false;
gotoAndStop (1);
};
scoreInfoBar.scoreCW.gotoAndPlay(2);
plotBarriers();
barrier1._visible = (barrier2._visible = (barrier3._visible = (barrier4._visible = true)));
backgroundImage.gotoAndStop(2);
tellTarget (player) {
_visible = false;
myfunc = starting;
};
_global.damage = emptyClip("damage", 0, 0, 0);
damage._visible = false;
_global.damage2 = emptyClip("damage2", 0, 0, 1);
backgroundMask.setMask(damage2);
_global.playField = emptyClip("playField", 32, 110, 3);
plotBaddies();
tellTarget (baddieHandler) {
myfunc = starting;
};
level = 0;
}
function restartGame() {
if (player.levelDoneFlag == true) {
level++;
resetPlayField();
tellTarget (player) {
_visible = false;
myfunc = levelBumped;
};
plotBarriers();
plotBaddies();
tellTarget (baddieHandler) {
myfunc = starting;
};
} else if ((player.lives == 0) or (player.gameOverFlag == true)) {
scoreInfoBar.scoreCW.gotoAndStop(1);
tellTarget (attractMode) {
gotoAndPlay (7);
_visible = true;
};
} else {
tellTarget (player) {
myfunc = continuing;
};
tellTarget (baddieHandler) {
myfunc = continuing;
};
}
}
function resetPlayField() {
_global.damage = emptyClip("damage", 0, 0, 0);
damage._visible = false;
_global.damage2 = emptyClip("damage2", 0, 0, 1);
backgroundMask.setMask(damage2);
damage2._visible = true;
if (level < 5) {
_global.playField = emptyClip("playField", 32, 110 + (level * 16), 3);
} else {
_global.playField = emptyClip("playField", 32, 190, 3);
}
badBullet1._visible = (badBullet2._visible = (badBullet3._visible = false));
}
Stage.scaleMode = "noScale";
init();
Instance of Symbol 291 MovieClip "baddieHandler" in Frame 7
onClipEvent (load) {
function moveBaddies() {
if (verticalMovement != 0) {
verticalMovement--;
playField._y++;
bottomRowHeight = playField._y + ((bottomRow + 1) * 32);
if (bottomRowHeight >= 446) {
tellTarget (player) {
playerKilled = (gameOverFlag = true);
};
stoping();
myfunc = ensureNotified;
}
} else {
if (bottomRowHeight >= 378) {
var hTOffset = baddieStorageArray.length;
while (baddieStorageArray[hTOffset] == null) {
if ((--hTOffset) < 0) {
hTOffset = 0;
return(undefined);
}
}
while (hTOffset != 0) {
if (baddieStorageArray[hTOffset] == null) {
hTOffset--;
continue;
}
var hTmc = playField[baddieStorageArray[hTOffset]];
hTOffset--;
if (hTmc.currentStatus == 1) {
if (p.barrier1.currentStatus == true) {
if (hTmc.hitTest(p.barrier1)) {
p.barrier1.currentStatus = false;
p.barrier1.b2.gotoAndPlay(2);
tellTarget (p.barExplosion1) {
_visible = true;
gotoAndPlay (1);
};
break;
}
}
if (p.barrier2.currentStatus == true) {
if (hTmc.hitTest(p.barrier2)) {
p.barrier2.currentStatus = false;
p.barrier2.b3.gotoAndPlay(2);
tellTarget (p.barExplosion2) {
_visible = true;
gotoAndPlay (1);
};
break;
}
}
if (p.barrier3.currentStatus == true) {
if (hTmc.hitTest(p.barrier3)) {
p.barrier3.currentStatus = false;
p.barrier3.b4.gotoAndPlay(2);
tellTarget (p.barExplosion3) {
_visible = true;
gotoAndPlay (1);
};
break;
}
}
if (p.barrier4.currentStatus == true) {
if (hTmc.hitTest(p.barrier4)) {
p.barrier4.currentStatus = false;
p.barrier4.b5.gotoAndPlay(2);
tellTarget (p.barExplosion4) {
_visible = true;
gotoAndPlay (1);
};
break;
}
}
}
}
}
if (moveDelay <= 0) {
if ((++sfxDelay) == 3) {
sfxDelay = 0;
type3Frame = ((type3Frame == 27) ? ((type3Frame = 28)) : ((type3Frame = 27)));
var i = -1;
while ((++i) < 11) {
var mc = playField["baddie" + i];
if (mc.currentStatus != 0) {
mc.gotoAndStop(type3Frame);
}
}
} else if (sfxDelay == 2) {
type1Frame = ((type1Frame == 1) ? ((type1Frame = 2)) : ((type1Frame = 1)));
var i = (numberOfBaddies - 23);
while ((++i) < numberOfBaddies) {
var mc = playField["baddie" + i];
if (mc.currentStatus != 0) {
mc.gotoAndStop(type1Frame);
}
}
} else if (sfxDelay == 1) {
type2Frame = ((type2Frame == 14) ? ((type2Frame = 15)) : ((type2Frame = 14)));
var i = (numberOfBaddies - 45);
var end = (numberOfBaddies - 22);
while ((++i) < end) {
var mc = playField["baddie" + i];
if (mc.currentStatus != 0) {
mc.gotoAndStop(type2Frame);
}
}
}
if (direction) {
playField._x = playField._x + this.speed;
if (playField._x >= rightEdge) {
playField._x = rightEdge;
direction = 0;
verticalMovement = 8;
}
} else {
playField._x = playField._x - this.speed;
if (playField._x <= leftEdge) {
playField._x = leftEdge;
direction = 1;
verticalMovement = 8;
}
}
moveDelay = moveDelayStore - 1;
if (moveDelayStore <= 0) {
if (p.runningBaddies != 1) {
speed = 6 - Mf(runningBaddies / 10);
} else {
speed = 8;
}
}
} else {
moveDelay--;
}
}
}
function handleBullets() {
if (bulletFlag1 == true) {
bulletFlag1 = moveBullet(p.badBullet1);
}
if (bulletFlag2 == true) {
bulletFlag2 = moveBullet(p.badBullet2);
}
if (bulletFlag3 == true) {
bulletFlag3 = moveBullet(p.badBullet3);
}
if (bulletFlag1 == true) {
if (bulletFlag2 == true) {
if (bulletFlag3 == true) {
return(undefined);
}
}
}
if ((++bulletTriggerCnt) >= bulletTriggerValue) {
bulletTriggerCnt = 0;
var localPlayer = Mf((playerX - playField._x) / 16);
if (localPlayer < 0) {
localPlayer = 0;
} else if (localPlayer > 11) {
localPlayer = 11;
}
var rnd = Mf(Mr() * localPlayer);
rnd = rnd + (44 + currentColLeft);
var rnd2 = (rnd - 11);
var rnd3 = (rnd2 - 11);
var rnd4 = (rnd3 - 11);
var rnd4 = (rnd3 - 11);
var rnd5 = (rnd4 - 11);
if (playField["baddie" + rnd] != undefined) {
baddieShooting = playField["baddie" + rnd];
} else if (playField["baddie" + rnd2] != undefined) {
baddieShooting = playField["baddie" + rnd2];
} else if (playField["baddie" + rnd3] != undefined) {
baddieShooting = playField["baddie" + rnd3];
} else if (playField["baddie" + rnd4] != undefined) {
baddieShooting = playField["baddie" + rnd4];
} else if (playField["baddie" + rnd5] != undefined) {
baddieShooting = playField["baddie" + rnd5];
} else {
return(undefined);
}
var offsetx = playField._x;
var offsety = playField._y;
if (bulletFlag1 == false) {
bulletFlag1 = true;
bad = p.badBullet1;
bad._x = offsetx + (baddieShooting._x + 14);
bad._y = offsety + (baddieShooting._y + 14);
bad._visible = true;
triggerBullet(bad);
} else if (bulletFlag2 == false) {
bulletFlag2 = true;
bad = p.badBullet2;
bad._x = offsetx + (baddieShooting._x + 14);
bad._y = offsety + (baddieShooting._y + 14);
bad._visible = true;
triggerBullet(bad);
} else if (bulletFlag3 == false) {
bulletFlag3 = true;
bad = p.badBullet3;
bad._x = offsetx + (baddieShooting._x + 14);
bad._y = offsety + (baddieShooting._y + 14);
bad._visible = true;
triggerBullet(bad);
}
}
}
function triggerBullet(mc) {
var center = mc._x;
if ((center >= 62) && (center <= 106)) {
mc.barrierNumber = 1;
} else if ((center >= 156) && (center <= 200)) {
mc.barrierNumber = 2;
} else if ((center >= 248) && (center <= 292)) {
mc.barrierNumber = 3;
} else if ((center >= 344) && (center <= 386)) {
mc.barrierNumber = 4;
} else {
mc.barrierNumber = 0;
}
if (musicFlag == false) {
baddieLazerSFX.start();
}
}
function moveBullet(mc) {
mc._y = mc._y + 6;
if (mc._y > 450) {
tellTarget (p.damageExplosion2) {
_x = mc._x;
_y = mc._y;
_visible = true;
gotoAndPlay (1);
};
mc._visible = false;
if (musicFlag == false) {
metalExplosionSFX.start();
}
return(false);
}
if (mc._y > 436) {
if (mc.hitTest(player)) {
if (cheatMode != true) {
player.playerKilled = true;
myfunc = stoping;
}
return(false);
}
} else if (mc._y > 368) {
if (mc.barrierNumber != 0) {
if (damage.hitTest(mc._x, mc._y, true) == false) {
if (mc.hitTest(p["barrier" + mc.barrierNumber])) {
var bx = mc._x;
var by = mc._y;
t = damage.attachMovie("baddieDamage", "bD" + p.damageDepth, p.damageDepth);
tellTarget (t) {
_x = bx;
_y = by;
};
q = damage2.attachMovie("baddieDamage", "bDM" + p.damageDepth, p.damageDepth++);
tellTarget (q) {
_x = bx;
_y = by;
};
tellTarget (p.damageExplosion) {
_x = bx;
_y = by;
_visible = true;
gotoAndPlay (1);
};
mc._visible = false;
if (musicFlag == false) {
metalExplosionSFX.start();
}
return(false);
}
}
}
}
if (mc.hitTest(p.bullet1)) {
tellTarget (p.damageExplosion2) {
_x = mc._x;
_y = mc._y;
_visible = true;
gotoAndPlay (1);
};
mc._visible = false;
p.bullet1.gotoAndPlay(17);
tellTarget (player) {
bulletFlag = false;
myfunc2 = null;
};
if (musicFlag == false) {
metalExplosionSFX.start();
}
return(false);
}
return(true);
}
function triggerMystery() {
if ((++mysteryCnt) == (30 * frameRate)) {
mysteryCnt = 0;
tellTarget (p.mystery) {
currentStatus = 1;
_visible = true;
};
if (musicFlag == false) {
mysterySFX.start();
}
if (direction == 1) {
p.mystery._x = -36;
myfunc3 = handleMysteryRight;
} else {
p.mystery._x = 448;
myfunc3 = handleMysteryLeft;
}
}
}
function handleMysteryRight() {
if (p.mystery.currentStatus == 1) {
p.mystery._x = p.mystery._x + 3;
if (p.mystery._x >= 448) {
tellTarget (p.mystery) {
currentStatus = 0;
_visible = false;
};
myfunc3 = triggerMystery;
}
}
}
function handleMysteryLeft() {
if (p.mystery.currentStatus == 1) {
p.mystery._x = p.mystery._x - 3;
if (p.mystery._x <= -36) {
tellTarget (p.mystery) {
currentStatus = 0;
_visible = false;
};
myfunc3 = triggerMystery;
}
}
}
function starting() {
playField["baddie" + startingCounter]._visible = true;
player.playerKilled = false;
if ((++startingCounter) >= startingRow) {
startingRow = startingRow - 11;
startingCounter = startingRow - 11;
if (startingRow == 0) {
direction = 1;
speed = 2;
moveDelayStore = (moveDelayStore = 10);
verticalMovement = (leftEdge = (currentColLeft = 0));
rightEdge = 58;
bottomRow = 4;
bottomRowHeight = playField._y + playField._height;
currentColRight = 10;
startingCounter = numberOfBaddies - 11;
startingRow = numberOfBaddies;
sfxDelay = 0;
bulletFlag1 = (bulletFlag2 = (bulletFlag3 = false));
bulletTriggerCnt = -60;
level = p.level;
musicFlag = p.musicFlag;
bulletTriggerValue = 20 - level;
if (bulletTriggerValue < 5) {
bulletTriggerValue = 5;
}
myfunc3 = triggerMystery;
myfunc = master;
}
}
}
function continuing() {
bulletFlag1 = (bulletFlag2 = (bulletFlag3 = false));
bulletTriggerCnt = -90;
myfunc3 = triggerMystery;
myfunc = master;
}
function master() {
myfunc3();
playerX = player._x + 2;
playerRight = playerX + pWidth;
moveBaddies();
handleBullets();
}
function stoping() {
p.badBullet1._visible = (p.badBullet2._visible = (p.badBullet3._visible = (p.mystery._visible = false)));
myfunc = (myfunc2 = (myfunc3 = null));
}
function ensureNotified() {
tellTarget (player) {
playerKilled = (gameOverFlag = true);
};
}
var p = _parent;
_visible = false;
var Mf = Math.floor;
var Mr = Math.random;
var level = p.level;
var bar1 = p.barrier1;
var bar2 = p.barrier2;
var bar3 = p.barrier3;
var bar4 = p.barrier4;
var musicFlag = p.musicFlag;
var cheatMode = p.cheatMode;
var baddieStorageArray = new Array(55);
var direction = 1;
var speed = 2;
var moveDelayStore = 10;
var moveDelay = moveDelayStore;
var verticalMovement = 0;
var leftEdge = 0;
var rightEdge = 58;
var currentColLeft = 0;
var currentColRight = 10;
var bottomRow = 4;
var bottomRowHeight = (playField._y + playField._height);
var player = p.player;
var pWidth = player._width;
var playerX = player._x;
var playerRight = (player._x + pWidth);
var startingCounter = (numberOfBaddies - 11);
var startingRow = numberOfBaddies;
var mysteryCnt = 0;
var type1Frame = 1;
var type2Frame = 14;
var type3Frame = 27;
var bulletFlag1 = false;
var bulletFlag2 = false;
var bulletFlag3 = false;
var bulletTriggerCnt = 0;
var bulletTriggerValue = 20;
var baddieShooting = 0;
var sfxDelay = 0;
var mysterySFX = new Sound(_root);
mysterySFX.attachSound("explosion");
var baddieLazerSFX = new Sound(_root);
baddieLazerSFX.attachSound("baddieLazer");
var metalExplosionSFX = new Sound(_root);
metalExplosionSFX.attachSound("metalExplosion");
var myfunc = null;
var myfunc2 = null;
var myfunc3 = null;
}
onClipEvent (enterFrame) {
myfunc();
}
Instance of Symbol 293 MovieClip "sTracker" in Frame 7
onClipEvent (load) {
function playNoteVoice1() {
if (voice1Flag == true) {
((mod == 1) ? ((v = modVoice1)) : ((v = mod2Voice1)));
voice1.attachSound(v[modVoice1Pos]);
voice1.start();
modVoice1Pos = modVoice1Pos + modElements;
if (v[modVoice1Pos] == "end") {
modVoice1Pos = (modVoice2Pos = (modVoice3Pos = 4));
}
}
}
function playNoteVoice2() {
if (voice2Flag == true) {
((mod == 1) ? ((v = modVoice2)) : ((v = mod2Voice2)));
voice2.attachSound(v[modVoice2Pos]);
voice2.start();
modVoice2Pos = modVoice2Pos + modElements;
if (v[modVoice2Pos] == "loop") {
modVoice2Pos = v[modVoice2Pos + 1];
}
}
}
function playNoteVoice3() {
if (voice3Flag == true) {
((mod == 1) ? ((v = modVoice3)) : ((v = mod2Voice3)));
voice3.attachSound(v[modVoice3Pos]);
voice3.start();
modVoice3Pos = modVoice3Pos + modElements;
if (v[modVoice3Pos] == "end") {
modVoice3Pos = 0;
}
}
}
function soundHandler() {
voice1.onSoundComplete = playNoteVoice1;
voice2.onSoundComplete = playNoteVoice2;
voice3.onSoundComplete = playNoteVoice3;
}
function killMusic() {
voice1.onSoundComplete = null;
voice2.onSoundComplete = null;
voice3.onSoundComplete = null;
voice1.stop();
voice2.stop();
voice3.stop();
modVoice1Pos = (modVoice2Pos = (modVoice3Pos = 0));
myfunc = delay;
}
function delay() {
if ((++killDelay) == 5) {
killDelay = 0;
if (_parent.musicFlag == true) {
voice1 = new Sound(this);
playNoteVoice1();
voice2 = new Sound(this);
playNoteVoice2();
voice3 = new Sound(this);
playNoteVoice3();
myfunc = soundHandler;
} else {
myfunc = null;
}
}
}
var modElements = 1;
var modVoice1Pos = ((modVoice2Pos = (modVoice3Pos = 0)));
var mod = 1;
var v = 0;
var killDelay = 0;
var voice1Flag = true;
var voice2Flag = true;
var voice3Flag = true;
_visible = false;
var modVoice1 = new Array("Listen", "Listen", "Listen", "Listen", "empty", "empty", "empty", "empty", "empty", "empty", "empty", "empty", "Listen", "Listen", "empty", "empty", "empty", "empty", "empty", "empty", "empty", "empty", "end");
var modVoice2 = new Array("empty", "empty", "empty", "empty", "rythm1", "rythm1", "rythm1", "rythm1", "rythm2", "rythm2", "rythm2", "rythm2", "rythm1", "rythm1", "rythm1", "rythm1", "rythm2", "rythm2", "rythm2", "rythm2", "rythm1", "rythm1", "rythm1", "rythm1", "rythm2", "rythm2", "rythm2", "rythm2", "end");
var modVoice3 = new Array("empty", "empty", "empty", "empty", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "drums1", "end");
myfunc = null;
}
onClipEvent (enterFrame) {
myfunc();
}
Instance of Symbol 325 MovieClip "player" in Frame 7
onClipEvent (load) {
function demoMove() {
if ((--demoMoveCnt) <= 0) {
demoMoveCnt = Mf((Mr() * 75) + 25);
demoMoveDir = Mf(Mr() * 3);
}
if (demoMoveDir == 1) {
moveRight();
} else if (demoMoveDir == 0) {
moveLeft();
} else {
if (playerAnim > 3) {
playerAnim--;
} else if (playerAnim < 3) {
playerAnim++;
}
this.gotoAndStop(playerAnim);
}
if (barrierNumber == 0) {
shoot();
}
}
function playerInput() {
var returnFlag = true;
if (inkey(37)) {
moveLeft();
returnFlag = false;
} else if (inkey(39)) {
moveRight();
returnFlag = false;
}
if (inkey(32)) {
shoot();
returnFlag = false;
}
return(returnFlag);
}
function moveLeft() {
if (_x > 20) {
_x = (_x - 4);
var center = (_x + 15);
if ((center >= 62) && (center <= 108)) {
barrierNumber = 1;
} else if ((center >= 156) && (center <= 202)) {
barrierNumber = 2;
} else if ((center >= 248) && (center <= 294)) {
barrierNumber = 3;
} else if ((center >= 344) && (center <= 388)) {
barrierNumber = 4;
} else {
barrierNumber = 0;
}
} else {
_x = 20;
barrierNumber = 0;
demoMoveDir = 1;
}
if (playerAnim > 1) {
playerAnim--;
this.gotoAndStop(playerAnim);
}
}
function moveRight() {
if (_x < 400) {
_x = (_x + 4);
var center = (_x + 15);
if ((center >= 62) && (center <= 106)) {
barrierNumber = 1;
} else if ((center >= 156) && (center <= 200)) {
barrierNumber = 2;
} else if ((center >= 248) && (center <= 292)) {
barrierNumber = 3;
} else if ((center >= 344) && (center <= 386)) {
barrierNumber = 4;
} else {
barrierNumber = 0;
}
} else {
_x = 400;
barrierNumber = (demoMoveDir = 0);
}
if (playerAnim < 5) {
playerAnim++;
this.gotoAndStop(playerAnim);
}
}
function shoot() {
if (bulletFlag == false) {
bulletFlag = true;
myfunc2 = bulletHandler;
tellTarget (p.bullet1) {
_x = (this._x + 14);
_y = (this._y - 4);
_rotation = 0;
_visible = true;
gotoAndPlay (1);
};
if (musicFlag == false) {
playerShotSFX.start();
}
}
}
function bulletHandler() {
var bull = p.bullet1;
var checkBarriersFlag = barrierNumber;
var checkBaddies = true;
bull._y = bull._y - 12;
if (smoke1._visible == false) {
tellTarget (smoke1) {
_x = bull._x;
_y = bull._y;
_visible = true;
gotoAndPlay (2);
};
} else if (smoke2._visible == false) {
tellTarget (smoke2) {
_x = bull._x;
_y = (bull._y + 2);
_visible = true;
gotoAndPlay (2);
};
} else if (smoke3._visible == false) {
tellTarget (smoke3) {
_x = bull._x;
_y = (bull._y + 4);
_visible = true;
gotoAndPlay (2);
};
} else if (smoke4._visible == false) {
tellTarget (smoke4) {
_x = bull._x;
_y = (bull._y + 6);
_visible = true;
gotoAndPlay (2);
};
}
if (bull._y <= 80) {
bull.gotoAndPlay(4);
myfunc2 = null;
return(undefined);
}
if (bull._y <= 110) {
checkBarriersFlag = (checkBaddies = false);
} else if (bull._y <= 340) {
checkBarriersFlag = false;
}
if (bull._y < playField._y) {
checkBarriersFlag = (checkBaddies = false);
}
if (checkBarriersFlag != false) {
if (damage.hitTest(bull._x, bull._y, true) == false) {
if (bull.hitTest(p["barrier" + barrierNumber])) {
var bx = bull._x;
var by = bull._y;
t = damage.attachMovie("playerDamage", "pD" + p.damageDepth, p.damageDepth);
tellTarget (t) {
_x = bx;
_y = by;
};
q = damage2.attachMovie("playerDamage", "pDM" + p.damageDepth, p.damageDepth++);
tellTarget (q) {
_x = bx;
_y = by;
};
tellTarget (p.damageExplosion) {
_x = bx;
_y = by;
_visible = true;
gotoAndPlay (1);
};
myfunc2 = null;
bull.gotoAndPlay(17);
}
return(undefined);
}
}
if (checkBaddies == false) {
if (p.mystery.currentStatus == 1) {
if (bull._y <= 100) {
if (bull._x > (p.mystery._x - 10)) {
if (bull._x < (p.mystery._x + 46)) {
bull.gotoAndPlay(17);
var rnd = Mf(Mr() * 4);
p.mystery.currentStatus = 0;
p.mystery.gotoAndPlay(mysteryGoto[rnd * 2]);
score = score + mysteryGoto[(rnd * 2) + 1];
killedBaddieType = 1;
myfunc2 = null;
myfunc3 = updateScore;
}
}
}
}
return(undefined);
}
var localBully = Mf((bull._y - playField._y) / 32);
var baddieNumber = ((localBully * 10) + (localBully * 1));
var map = p.baddieMap;
var end = (currentColRight + 1);
var cnt = (currentColLeft - 1);
while ((++cnt) <= end) {
if (map[localBully][cnt] != 0) {
bad = playField["baddie" + (baddieNumber + cnt)];
if (bull.hitTest(bad)) {
tellTarget (bad) {
currentStatus = 0;
gotoAndPlay (40);
};
p.baddieHandler.baddieStorageArray[baddieNumber + cnt] = null;
var maskH = playField["cmh" + localBully];
bull.gotoAndPlay(17);
score = score + bad.points;
p.baddieMap[localBully][cnt] = (killedBaddieType = 0);
p.runningBaddies--;
if (p.runningBaddies != 0) {
p.baddieHandler.moveDelayStore = Mf(p.runningBaddies / 10);
}
myfunc2 = null;
myfunc3 = updateScore;
return;
}
}
}
}
function updateScore() {
myfunc3 = null;
if (musicFlag == false) {
if (killedBaddieType) {
p.mysterySFX.stop();
mysteryHitSFX.start();
} else {
baddieHitSFX.start();
}
tellTarget (p.scoreInfoBar.scoreClip) {
myfunc = plotScore;
};
livesOffset = Mf(score / 1500);
if (livesOffset > 0) {
if (lives < 9) {
if (xtraLifeArrays[livesOffset - 1] == 0) {
xtraLifeArrays[livesOffset - 1] = 1;
lives++;
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
xtraLifeSFX.start();
}
}
}
}
if (p.runningBaddies == 0) {
levelDoneFlag = true;
tellTarget (p.baddieHandler) {
myfunc = null;
};
p.mystery._visible = false;
myfunc = killed;
}
}
function updateBaddieBoundaries() {
var map = p.baddieMap;
if (currentColLeft != currentColRight) {
if (map[0][currentColLeft] == 0) {
if (map[1][currentColLeft] == 0) {
if (map[2][currentColLeft] == 0) {
if (map[3][currentColLeft] == 0) {
if (map[4][currentColLeft] == 0) {
currentColLeft++;
tellTarget (p.baddieHandler) {
leftEdge = leftEdge - 36;
currentColLeft = this.currentColLeft;
};
}
}
}
}
}
if (map[0][currentColRight] == 0) {
if (map[1][currentColRight] == 0) {
if (map[2][currentColRight] == 0) {
if (map[3][currentColRight] == 0) {
if (map[4][currentColRight] == 0) {
currentColRight--;
tellTarget (p.baddieHandler) {
rightEdge = rightEdge + 36;
currentColRight = this.currentColRight;
};
}
}
}
}
}
}
if (bottomRow != 0) {
var qflag = false;
var c = (currentColLeft - 1);
while ((++c) < currentColRight) {
if (map[bottomRow][c] != 0) {
qflag = true;
break;
}
}
if (qflag == false) {
playField["cmh" + bottomRow].removeMovieClip();
bottomRow--;
tellTarget (p.baddieHandler) {
bottomRow = this.bottomRow;
bottomRowPosition = bottomRowPosition - 30;
};
}
}
}
function starting() {
p.infoBar._visible = true;
if ((++startingCnt) == (2 * frameRate)) {
startingCnt = 0;
tellTarget (p.bullet1) {
_x = (this._x + 15);
_y = (this._y - 4);
_visible = true;
gotoAndStop (17);
};
_x = 22;
_y = 432;
_visible = true;
this.gotoAndStop(3);
barrierNumber = (score = 0);
tellTarget (p.scoreInfoBar.scoreClip) {
myfunc = plotScore;
};
lives = 3;
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
currentColLeft = 0;
currentColRight = 10;
bottomRow = 4;
p.runningBaddies = numberOfBaddies;
musicFlag = p.musicFlag;
p.damageDepth = 0;
gameOverFlag = (levelDoneFlag = false);
if (p.demoMode == false) {
myfunc = master;
} else {
demoMoveCnt = 40;
demoMoveDir = 1;
myfunc = demoMaster;
}
}
}
function continuing() {
if ((++startingCnt) == frameRate) {
startingCnt = 0;
tellTarget (p.bullet1) {
_x = (this._x + 15);
_y = (this._y - 4);
_visible = true;
gotoAndStop (17);
};
_x = 22;
_y = 432;
_visible = true;
this.gotoAndStop(3);
barrierNumber = 0;
playerKilled = false;
myfunc2 = null;
myfunc = master;
tellTarget (p.scoreInfoBar.scoreClip) {
myfunc = plotScore;
};
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
}
}
function levelBumped() {
if ((++startingCnt) == frameRate) {
startingCnt = 0;
tellTarget (p.bullet1) {
_x = (this._x + 15);
_y = (this._y - 4);
_visible = true;
gotoAndStop (17);
};
_x = 22;
_y = 432;
_visible = true;
this.gotoAndStop(3);
currentColLeft = (barrierNumber = 0);
currentColRight = 10;
bottomRow = 4;
p.runningBaddies = numberOfBaddies;
playerKilled = (gameOverFlag = (levelDoneFlag = false));
tellTarget (p.scoreInfoBar.scoreClip) {
myfunc = plotScore;
};
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
myfunc2 = null;
myfunc = master;
}
}
function master() {
if (playerKilled == true) {
p.bullet1.gotoAndPlay(17);
myfunc2 = null;
this.gotoAndPlay(7);
playerKilledSFX.start();
xtraLifeArrays[livesOffset] = 0;
lives--;
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
myfunc = killed;
return(undefined);
}
myfunc3();
myfunc2();
updateBaddieBoundaries();
var isItFalse = playerInput();
if (isItFalse == true) {
if (playerAnim != 3) {
if (playerAnim > 3) {
playerAnim--;
} else {
playerAnim++;
}
this.gotoAndStop(playerAnim);
}
}
}
function demoMaster() {
if (playerKilled == true) {
p.bullet1.gotoAndPlay(17);
myfunc2 = null;
this.gotoAndPlay(7);
lives--;
tellTarget (p.infobar.livesClip) {
gotoAndStop(this.lives + 1);
};
myfunc = killed;
return(undefined);
}
myfunc3();
myfunc2();
updateBaddieBoundaries();
demoMove();
}
function killed() {
tellTarget (p.baddieHandler) {
myfunc = null;
};
p.bullet1.gotoAndPlay(17);
p.badBullet1._visible = (p.badBullet2._visible = (p.badBullet3._visible = false));
if ((++dyingCount) >= (frameRate * 2)) {
dyingCount = 0;
if (p.demoMode != false) {
myfunc = demoEnd;
} else {
myfunc = null;
p.restartGame();
}
}
}
function demoEnd() {
myfunc = null;
_visible = false;
p.bullet1.gotoAndPlay(17);
smoke1._visible = (smoke2._visible = (smoke3._visible = (smoke4._visible = false)));
removeMovieClip(playField);
removeMovieClip(damage);
removeMovieClip(damage2);
p.badBullet1._visible = (p.badBullet2._visible = (p.badBullet3._visible = (p.mystery._visible = false)));
p.barrier1._visible = (p.barrier2._visible = (p.barrier3._visible = (p.barrier4._visible = false)));
p.backgroundImage.gotoAndStop(1);
p.attractMode._visible = true;
p.attractMode.gotoAndPlay(p.demoMode);
}
var p = _parent;
_visible = false;
var inkey = Key.isDown;
var Mf = Math.floor;
var Mr = Math.random;
var smoke1 = p.smoke1;
var smoke2 = p.smoke3;
var smoke3 = p.smoke3;
var smoke4 = p.smoke4;
var bulletFlag = false;
var barrierNumber = 0;
var score = 0;
var currentColLeft = 0;
var currentColRight = 10;
var bottomRow = 4;
var startingCnt = 0;
var demoMoveCnt = 0;
var demoMoveDir = 1;
var playerKilled = false;
var gameOverFlag = false;
var dyingCount = 0;
var killedBaddieType = 0;
var levelDoneFlag = false;
var playerAnim = 3;
var musicFlag = p.musicFlag;
mysteryGoto = new Array(2, 100, 23, 150, 44, 200, 65, 250);
xtraLifeArrays = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var lives = 3;
var livesOffset = 0;
var playerShotSFX = new Sound(this);
playerShotSFX.attachSound("playerShot");
var playerKilledSFX = new Sound(this);
playerKilledSFX.attachSound("explosion");
var baddieHitSFX = new Sound(this);
baddieHitSFX.attachSound("baddieHit");
var mysteryHitSFX = new Sound(this);
mysteryHitSFX.attachSound("mysteryShipExplosion");
var xtraLifeSFX = new Sound(this);
xtraLifeSFX.attachSound("xtraLife");
myfunc = null;
myfunc2 = null;
myfunc3 = null;
}
onClipEvent (enterFrame) {
myfunc();
}
Instance of Symbol 237 MovieClip [damageExplosion] "damageExplosionSeed" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 337 MovieClip "barExplosion1" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 337 MovieClip "barExplosion2" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 337 MovieClip "barExplosion3" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 337 MovieClip "barExplosion4" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 417 MovieClip "attractMode" in Frame 7
onClipEvent (load) {
function scanKeys() {
if (inkey(32)) {
infobar._visible = true;
this.gotoAndStop(6);
if (p.demoMode != false) {
p.demoMode = false;
p.barrier1._visible = (p.barrier2._visible = (p.barrier3._visible = (p.barrier4._visible = false)));
p.bullet1.gotoAndPlay(17);
p.smoke1._visible = (p.smoke2._visible = (p.smoke3._visible = (p.smoke4._visible = false)));
removeMovieClip(playField);
removeMovieClip(damage);
removeMovieClip(damage2);
p.baddieHandler.myfunc = null;
p.badBullet1._visible = (p.badBullet2._visible = (p.badBullet3._visible = (p.badBullet4._visible = (p.badBullet5._visible = false))));
_visible = true;
}
this.tHolder.removeMovieClip();
tellTarget (p.player) {
_visible = ((bulletFlag = false));
myfunc = (myfunc2 = null);
score = 0;
lives = 1;
};
tellTarget (p.scoreInfoBar) {
scoreClip.myfunc = scoreClip.plotScore;
scoreCW.gotoAndPlay(2);
};
p.musicFlag = false;
tellTarget (p.sTracker) {
myfunc = killMusic;
};
p.gotoAndStop(startGame);
myfunc = getReadyDelay;
}
}
function getReadyDelay() {
if ((++delayCnt) == (3 * frameRate)) {
delayCnt = 0;
this.tHolder.removeMovieClip();
p.gotoAndPlay("Go");
myfunc = null;
}
}
function initialDelay() {
if ((++delayCnt) == 5) {
delayCnt = 0;
myfunc = scanKeys;
}
}
var p = _parent;
var inkey = Key.isDown;
var delayCnt = 0;
var infobar = p.infobar;
var myfunc = initialDelay;
}
onClipEvent (enterFrame) {
myfunc();
}
Frame 8
attract();
stop();
Frame 9
stop();
Frame 10
newGame();
stop();
Symbol 4 MovieClip [backgroundMask] Frame 1
stop();
Symbol 18 MovieClip Frame 99
_parent.play();
stop();
Symbol 201 MovieClip [mcFont] Frame 1
stop();
Symbol 205 MovieClip [barrierSeg1] Frame 1
stop();
Symbol 205 MovieClip [barrierSeg1] Frame 15
this.removeMovieClip();
Symbol 237 MovieClip [damageExplosion] Frame 1
_rotation = (Math.random() * 360);
Symbol 237 MovieClip [damageExplosion] Frame 14
_visible = false;
_rotation = false;
stop();
Symbol 270 MovieClip [baddie] Frame 1
stop();
Symbol 270 MovieClip [baddie] Frame 2
stop();
Symbol 270 MovieClip [baddie] Frame 14
stop();
Symbol 270 MovieClip [baddie] Frame 15
stop();
Symbol 270 MovieClip [baddie] Frame 27
stop();
Symbol 270 MovieClip [baddie] Frame 28
stop();
Symbol 270 MovieClip [baddie] Frame 50
removeMovieClip(this);
stop();
Symbol 282 MovieClip Frame 3
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 11
stop();
Symbol 325 MovieClip Frame 1
if (playerKilled == true) {
this.gotoAndPlay(7);
}
Symbol 325 MovieClip Frame 2
if (playerKilled == true) {
this.gotoAndPlay(7);
}
Symbol 325 MovieClip Frame 3
if (playerKilled == true) {
this.gotoAndPlay(7);
}
Symbol 325 MovieClip Frame 4
if (playerKilled == true) {
this.gotoAndPlay(7);
}
Symbol 325 MovieClip Frame 5
if (playerKilled == true) {
this.gotoAndPlay(7);
}
Symbol 325 MovieClip Frame 6
stop();
Symbol 325 MovieClip Frame 27
stop();
Symbol 330 MovieClip Frame 3
if (_parent.player.bulletFlag == true) {
gotoAndPlay (1);
} else {
gotoAndPlay (17);
}
Symbol 330 MovieClip Frame 4
_rotation = (Math.random() * 360);
Symbol 330 MovieClip Frame 17
_visible = false;
_parent.player.bulletFlag = false;
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 22
_visible = false;
Symbol 336 MovieClip Frame 43
_visible = false;
Symbol 336 MovieClip Frame 64
_visible = false;
Symbol 336 MovieClip Frame 85
_visible = false;
Symbol 337 MovieClip Frame 13
_visible = false;
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
livesIcon.gotoAndStop(3);
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 28
if (_root.player.playerKilled == false) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 368 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip "scoreClip" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
function plotScore() {
s = _root.player.score;
if (s > 9) {
var td = (s % 10);
s = s - td;
} else {
var td = s;
}
d1 = ++td;
tellTarget (digit1) {
gotoAndStop(this.d1);
};
if (s > 90) {
var td = (s % 100);
s = s - td;
td = td / 10;
} else {
td = s / 10;
}
d2 = ++td;
tellTarget (digit2) {
gotoAndStop(this.d2);
};
if (s > 900) {
var td = (s % 1000);
s = s - td;
td = td / 100;
} else {
td = s / 100;
}
d3 = ++td;
tellTarget (digit3) {
gotoAndStop(this.d3);
};
if (s > 9000) {
var td = (s % 10000);
s = s - td;
td = td / 1000;
} else {
td = s / 1000;
}
d4 = ++td;
tellTarget (digit4) {
gotoAndStop(this.d4);
};
if (s > 90000) {
var td = (s % 100000);
s = s - td;
td = td / 10000;
} else {
td = s / 10000;
}
d5 = ++td;
tellTarget (digit5) {
gotoAndStop(this.d5);
};
if (s > 900000) {
var td = (s % 1000000);
s = s - td;
td = td / 100000;
} else {
td = s / 100000;
}
d6 = ++td;
tellTarget (digit6) {
gotoAndStop(this.d6);
};
myfunc = zeroSuppresion;
}
function zeroSuppresion() {
if (digit6._currentframe == 1) {
digit6._visible = false;
if (digit5._currentframe == 1) {
digit5._visible = false;
if (digit4._currentframe == 1) {
digit4._visible = false;
if (digit3._currentframe == 1) {
digit3._visible = false;
if (digit2._currentframe == 1) {
digit2._visible = false;
} else {
digit2._visible = true;
}
} else {
digit3._visible = true;
}
} else {
digit4._visible = true;
}
} else {
digit5._visible = true;
}
} else {
digit6._visible = true;
}
myfunc = null;
}
var d1 = ((d2 = (d3 = (d4 = (d5 = (d6 = 0))))));
myfunc = plotScore;
}
onClipEvent (enterFrame) {
myfunc();
}
Symbol 379 MovieClip Frame 1
_visible = false;
stop();
Symbol 379 MovieClip Frame 10
_visible = false;
stop();
Symbol 388 Button
on (release) {
getURL ("http://www.miniclip.com/signup2.htm", "_blank");
}
Symbol 394 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 404 MovieClip Frame 24
stop();
Symbol 413 Button
on (release) {
_root.gotoAndPlay("resetGame");
}
Symbol 416 Button
on (release) {
getURL ("http://www.miniclip.com/spaceinvaders.htm", "_blank");
}
Symbol 417 MovieClip Frame 1
_visible = false;
stop();
Symbol 417 MovieClip Frame 2
_parent.demoMode = false;
_visible = true;
var yPos = 140;
tellTarget (_root.infobar) {
_visible = false;
};
textHolder = this.createEmptyMovieClip("tHolder", 1);
copyright = textPlotter(this.textHolder, "copyright", "Justify", yPos + 320, 21, 0, "Copyright 1Coin1Play.com 2003");
logo.myfunc = logo.fadeUp;
stop();
Instance of Symbol 395 MovieClip "logo" in Symbol 417 MovieClip Frame 2
onClipEvent (load) {
function fadeUp() {
kludge = kludge + 2;
p.CodingBy._alpha = kludge;
if (kludge >= 5) {
p.Squize._alpha = p.Squize._alpha + 2;
if (kludge >= 10) {
p.Kev._alpha = p.Kev._alpha + 2;
if (kludge >= 15) {
p.GraphixBy._alpha = p.GraphixBy._alpha + 2;
if (kludge >= 20) {
p.Squize2._alpha = p.Squize2._alpha + 2;
if (kludge >= 25) {
p.MusicBy._alpha = p.MusicBy._alpha + 2;
if (kludge >= 30) {
p.PsiberPunk._alpha = p.PsiberPunk._alpha + 2;
if (kludge >= 35) {
p.SoundFX._alpha = p.SoundFX._alpha + 2;
if (kludge >= 40) {
p.PD._alpha = p.PD._alpha + 2;
if (kludge >= 45) {
p.beta._alpha = p.beta._alpha + 2;
if (kludge >= 50) {
p.Eunice._alpha = p.Eunice._alpha + 2;
if (kludge >= 55) {
p.copyright._alpha = p.copyright._alpha + 2;
if (kludge == 100) {
p.CodingBy._alpha = 100;
} else if (kludge >= 180) {
kludge = 100;
myfunc = Delay;
}
}
}
}
}
}
}
}
}
}
}
}
}
function fadeDown() {
kludge = kludge - 2;
p.CodingBy._alpha = p.CodingBy._alpha - 2;
if (kludge < 90) {
p.Squize._alpha = p.Squize._alpha - 2;
}
if (kludge < 85) {
p.Kev._alpha = p.Kev._alpha - 2;
}
if (kludge < 80) {
p.GraphixBy._alpha = p.GraphixBy._alpha - 2;
}
if (kludge < 75) {
p.Squize2._alpha = p.Squize2._alpha - 2;
}
if (kludge < 70) {
p.MusicBy._alpha = p.MusicBy._alpha - 2;
}
if (kludge < 65) {
p.PsiberPunk._alpha = p.PsiberPunk._alpha - 2;
}
if (kludge < 60) {
p.SoundFX._alpha = p.SoundFX._alpha - 2;
}
if (kludge < 55) {
p.PD._alpha = p.PD._alpha - 2;
}
if (kludge < 50) {
p.beta._alpha = p.beta._alpha - 2;
}
if (kludge < 45) {
p.Eunice._alpha = p.Eunice._alpha - 2;
}
if (kludge < 40) {
p.copyright._alpha = p.copyright._alpha - 2;
}
if (kludge < -90) {
p.gotoAndPlay(3);
myfunc = null;
}
}
function delay() {
if ((++cnt) == (frameRate * 4)) {
myfunc = fadeDown;
}
}
var p = _parent;
var kludge = 0;
var cnt = 0;
myfunc = fadeUp;
}
onClipEvent (enterFrame) {
myfunc();
}
Symbol 417 MovieClip Frame 3
tHolder.removeMovieClip();
_parent.demoMode = 4;
_parent.newGame();
stop();
Symbol 417 MovieClip Frame 4
_parent.demoMode = false;
tellTarget (_root.infobar) {
_visible = false;
};
stop();
Instance of Symbol 407 MovieClip in Symbol 417 MovieClip Frame 4
onClipEvent (load) {
function plotText() {
var name = hiScoreArray[offset];
var score = hiScoreArray[offset - 1];
var positionNumber = (51 - (cnt + 1));
offset = offset - 2;
var ranking = (positionNumber + ":");
this["ranking" + cnt] = textPlotter(this.textHolder, "rankingMC" + cnt, 16, ypos, cnt, 0, ranking);
this["score" + cnt] = textPlotter(this.textHolder, "scoreMC" + cnt, "Left", ypos, cnt + 51, 0, score);
this["name" + cnt] = textPlotter(this.textHolder, "nameMC" + cnt, "Right", ypos, cnt + 102, 0, name);
ypos = ypos - 30;
this.textHolder["nameMC" + cnt].onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
} else {
delete this.onEnterFrame;
}
};
this.textHolder["rankingMC" + cnt].onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
} else {
delete this.onEnterFrame;
}
};
this.textHolder["scoreMC" + cnt].onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
} else {
delete this.onEnterFrame;
}
};
cnt++;
}
function master() {
if ((++plotCount) == 11) {
plotCount = 0;
page++;
ypos = 420;
myfunc = delay;
} else {
plotText();
}
}
function delay() {
if ((++delayCnt) == (frameRate * 4)) {
delayCnt = 0;
tempCnt = cnt - (plotCount + 1);
myfunc = master2;
}
}
function master2() {
if ((++fadeCount) == 11) {
fadeCount = 0;
if (page != 5) {
myfunc = master;
} else {
_parent.gotoAndPlay(5);
myfunc = null;
}
} else {
fadeDown();
}
}
function fadeDown() {
this.textHolder["nameMC" + tempCnt].onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
this.removeMovieClip();
}
};
this.textHolder["rankingMC" + tempCnt].onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
this.removeMovieClip();
}
};
this.textHolder["scoreMC" + tempCnt].onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
this.removeMovieClip();
}
};
tempCnt--;
}
var hiScoreArray = _root.hiScoreArray;
var offset = (hiScoreArray.length - 1);
var cnt = 0;
var ypos = 420;
var plotCount = 0;
var page = 0;
var delayCnt = 0;
var tempCnt = 0;
var fadeCount = 0;
textHolder = _parent.createEmptyMovieClip("tHolder", 1);
myfunc = master;
}
onClipEvent (enterFrame) {
myfunc();
}
Symbol 417 MovieClip Frame 5
_parent.demoMode = false;
this.gotoAndPlay(2);
Symbol 417 MovieClip Frame 6
textHolder = this.createEmptyMovieClip("tHolder", 1);
getReady = textPlotter(this.textHolder, "getReady", "Justify", 224, 10, 100, "Ready ?");
stop();
Symbol 417 MovieClip Frame 7
textHolder = this.createEmptyMovieClip("tHolder", 1);
gameOver = textPlotter(this.textHolder, "gameOver", "Justify", 224, 10, 100, "GAME OVER");
_root.barrier1._visible = (_root.barrier2._visible = (_root.barrier3._visible = (_root.barrier4._visible = false)));
_root.bullet1.gotoAndPlay(17);
_root.playField.removeMovieClip();
_root.damage.removeMovieClip();
_root.damage2.removeMovieClip();
_root.baddieHandler.myfunc = null;
_root.badBullet1._visible = (_root.badBullet2._visible = (_root.badBullet3._visible = (_root.badBullet4._visible = (_root.badBullet5._visible = false))));
var cnt = 0;
Symbol 417 MovieClip Frame 9
if ((++cnt) <= (frameRate * 3)) {
gotoAndPlay (8);
} else {
gotoAndPlay (10);
}
Symbol 417 MovieClip Frame 10
this.textHolder.removeMovieClip();
_quality = "HIGH";
Symbol 417 MovieClip Frame 11
stop();
Symbol 417 MovieClip Frame 12
_root.hiScoreName = hiScoreName;
Symbol 420 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}