Frame 1
version = "20040825";
game = "ss11";
shopUrl = "https://secure.bmtmicro.com/servlets/Orders.ShoppingCart?CID=1465&PRODUCTID=14650000&AID=" + aid;
Frame 3
_quality = "medium";
cst = new Object();
cst.gravity = 0.1;
cst.slowdown = 0.995;
cst.maxObjects = 20;
cst.maxMonster = 10;
toggleSound = true;
snd = new Sound();
snd.maxVolume = 50;
snd.setVolume(snd.maxVolume);
snd.rocketShoot = new Sound();
snd.rocketShoot.attachSound("rocketShoot");
snd.collectExtra = new Sound();
snd.collectExtra.attachSound("collectExtra");
snd.button = new Sound();
snd.button.attachSound("button");
snd.savepoint = new Sound();
snd.savepoint.attachSound("savepoint");
snd.drohne1life = new Sound();
snd.drohne1life.attachSound("drohne1life");
snd.drohne1die = new Sound();
snd.drohne1die.attachSound("drohne1die");
snd.bohrerlife = new Sound();
snd.bohrerlife.attachSound("bohrerlife");
snd.stampfer = new Sound();
snd.stampfer.attachSound("stampfer");
snd.satshot = new Sound();
snd.satshot.attachSound("satshot");
snd.playerdie = new Sound();
snd.playerdie.attachSound("playerdie");
snd.pfeil = new Sound();
snd.pfeil.attachSound("pfeil");
snd.light = new Sound();
snd.light.attachSound("light");
snd.mask2meteor = new Sound();
snd.mask2meteor.attachSound("mask2meteor");
snd.pong = new Sound();
snd.pong.attachSound("pong");
temp = new Object();
code = new Array();
code[1] = "levelone";
code[2] = "memorize!";
code[3] = "bluesky";
code[4] = "starcaptain";
code[5] = "caveman";
code[7] = "deephill";
code[9] = "starfire";
code[12] = "stompers";
code[13] = "factory";
code[17] = "themine";
code[20] = "backup";
code[25] = "nuclear";
code[29] = "sandybeach";
code[201] = "advancedship";
code[202] = "learncontrol";
code[203] = "norway";
code[204] = "downhill";
code[205] = "deepdown";
code[207] = "newways";
code[209] = "farup";
code[212] = "heavymetal";
code[213] = "cylinders";
code[217] = "uranium";
code[220] = "rocketjump";
code[225] = "easyopponent";
code[229] = "thedessert";
Frame 9
startlevel = 1;
stop();
Frame 12
result = "";
Selection.setFocus("input");
Frame 15
stop();
Frame 16
score = 0;
sessionId = Math.random() * 1000000;
Frame 20
stop();
Symbol 15 Button
on (release) {
getURL ("http://www.neodelight.com?ref=ss11&ref_loc=intro", "_BLANK");
}
Symbol 21 MovieClip Frame 1
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 21 MovieClip Frame 2
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 27 MovieClip Frame 1
startFrame = _parent._currentframe;
Symbol 27 MovieClip Frame 2
vol = (1 - ((_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame))) * 100;
if (vol < 0) {
vol = 0;
}
_parent.snd.setVolume(vol);
Symbol 27 MovieClip Frame 3
gotoAndPlay (2);
Symbol 28 MovieClip Frame 1
snd = new Sound(this);
snd.setVolume(100);
_parent.stop();
Symbol 28 MovieClip Frame 123
stop();
_parent.play();
Symbol 101 Button
on (release) {
getURL ("http://www.neodelight.com/?ref=ss11&ref_loc=moregames&ref_ver=" + _root.version, "_top");
}
Symbol 102 Button
on (release) {
gotoAndStop (13);
}
Symbol 103 Button
on (release) {
gotoAndStop (10);
}
Symbol 104 Button
on (release) {
gotoAndStop (11);
}
Symbol 105 Button
on (release) {
gotoAndStop (12);
}
Symbol 107 Button
on (release) {
gotoAndPlay (15);
}
Symbol 109 Button
on (release) {
getURL ("http://www.neodelight.com?ref=ss11full&rev_loc=menulogo&rev_ver=" + _root.version, "_blank");
}
Symbol 114 MovieClip Frame 2
stop();
Symbol 140 Button
on (release) {
gotoAndStop (9);
}
Symbol 150 Button
on (release) {
getURL ("http://www.neodelight.com/highscores?game=ss11", "_blank");
}
Symbol 153 Button
on (release) {
getURL (_root.shopUrl, "_top");
}
Symbol 161 Button
on (release, keyPress "<Enter>") {
if (input ne "") {
input = input.toLowerCase();
result = "";
i = 0;
while (code.length >= i) {
if (code[i] eq input) {
if (200 < i) {
startlevel = i - 200;
shipType = 11;
} else {
shipType = 7;
startlevel = i;
}
result = "password for level " + starlevel;
gotoAndPlay (16);
break;
}
i++;
}
if (result == "") {
result = "bad password";
input = "";
}
} else {
result = "please enter level code";
}
}
Symbol 164 Button
on (release) {
getURL (_root.shopUrl, "_top");
}
Symbol 187 MovieClip Frame 1
function move() {
shipX = _root.world.ship._x - 390;
shipY = _root.world.ship._y - 190;
targetDir = _parent.geometry.rad(0, 0, shipX - _x, -1 * (shipY - _y));
_rotation = ((targetDir / Math.PI) * 180);
newVx = Math.sin(targetDir) * 4;
newVy = Math.cos(targetDir) * 4;
vx = (vx * 0.98) + (newVx * 0.02);
vy = (vy * 0.98) + (newVy * 0.02);
_x = (_x + vx);
_y = (_y - vy);
}
stop();
vx = 0;
vy = 0;
Symbol 187 MovieClip Frame 2
gotoAndStop (1);
Symbol 187 MovieClip Frame 3
move();
Symbol 187 MovieClip Frame 4
move();
gotoAndPlay (3);
Symbol 211 Button
on (release) {
getURL (_root.shopUrl, "_top");
}
Symbol 216 Button
on (release) {
shipType = 11;
gotoAndPlay (16);
}
Symbol 218 Button
on (release) {
shipType = 7;
gotoAndPlay (16);
}
Symbol 232 Button
on (release) {
getURL ("http://www.neodelight.com/?ref=ss11&ref_loc=copyright&ref_ver=" + _root.version, "_blank");
}
Symbol 236 MovieClip Frame 1
function hit() {
trace("hit object 1");
}
Symbol 241 MovieClip Frame 1
this._name = "shipSavePosition";
Instance of Symbol 240 MovieClip "blueprint" in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 244 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_parent._parent._parent.ship.actFuel = _parent._parent._parent.ship.actFuel + 150;
if (_parent._parent._parent.ship.maxFuel < _parent._parent._parent.ship.actFuel) {
_parent._parent._parent.ship.actFuel = _parent._parent._parent.ship.maxFuel;
}
_parent._parent._parent.ship.burnFuel();
active = false;
play();
}
}
active = true;
stop();
init();
Symbol 244 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.collectExtra.start();
}
Symbol 244 MovieClip Frame 6
stop();
Symbol 248 MovieClip Frame 1
this._name = "shipPosition";
Instance of Symbol 240 MovieClip "blueprint" in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 252 MovieClip Frame 1
if (_parent._parent._parent._parent.ship.actSavepoint == _parent._parent._currentframe) {
_parent.active = false;
_parent.gotoAndStop(6);
}
Symbol 253 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_parent._parent._parent.ship.activateSavepoint();
active = false;
play();
}
}
active = true;
stop();
init();
Symbol 253 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.savepoint.start();
}
Symbol 253 MovieClip Frame 6
stop();
Symbol 256 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_parent._parent._parent.ship.actEnergy = _parent._parent._parent.ship.actEnergy + 70;
if (_parent._parent._parent.ship.maxEnergy < _parent._parent._parent.ship.actEnergy) {
_parent._parent._parent.ship.actEnergy = _parent._parent._parent.ship.maxEnergy;
}
_parent._parent._parent.ship.refreshEnergy();
active = false;
play();
}
}
active = true;
stop();
init();
Symbol 256 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.collectExtra.start();
}
Symbol 256 MovieClip Frame 6
stop();
Symbol 263 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_parent._parent._parent.ship.actShots = _parent._parent._parent.ship.actShots + 3;
_parent._parent._parent.ship.refreshShots();
active = false;
play();
}
}
active = true;
stop();
init();
Symbol 263 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.collectExtra.start();
}
Symbol 263 MovieClip Frame 6
stop();
Symbol 282 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_root.temp.monsterId = monster;
i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../../danger/monster_" + i) {
if (id eq _root.temp.monsterId) {
nextFrame();
}
};
active = false;
nextFrame();
i++;
}
}
}
active = true;
stop();
init();
Symbol 282 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.button.start();
}
Symbol 286 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../object_" + i) {
_root.temp.objectFrames = _totalframes;
};
if (Number(_root.temp.objectFrames) == 0) {
_name = ("object_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (active == true) {
_parent._parent._parent.ship.actShots = _parent._parent._parent.ship.actShots + 5;
_parent._parent._parent.ship.refreshShots();
active = false;
play();
}
}
active = true;
stop();
init();
Symbol 286 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.collectExtra.start();
}
Symbol 286 MovieClip Frame 6
stop();
Symbol 296 MovieClip Frame 1
stop();
Instance of Symbol 282 MovieClip in Symbol 296 MovieClip Frame 19
onClipEvent (load) {
monster = 1;
}
Instance of Symbol 282 MovieClip in Symbol 296 MovieClip Frame 19
onClipEvent (load) {
monster = 2;
}
Instance of Symbol 282 MovieClip in Symbol 296 MovieClip Frame 21
onClipEvent (load) {
monster = 2;
}
Instance of Symbol 282 MovieClip in Symbol 296 MovieClip Frame 23
onClipEvent (load) {
monster = 1;
}
Instance of Symbol 282 MovieClip in Symbol 296 MovieClip Frame 23
onClipEvent (load) {
monster = 2;
}
Symbol 302 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (ready == true) {
nextFrame();
}
}
ready = true;
stop();
init();
Symbol 302 MovieClip Frame 3
ready = false;
play();
if (_root.toggleSound) {
_root.snd.drohne1die.start();
}
Symbol 302 MovieClip Frame 11
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 7
_parent.ready = false;
_parent.stop();
play();
if (_root.toggleSound) {
_root.snd.drohne1die.start();
}
Symbol 310 MovieClip Frame 15
stop();
Symbol 311 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
monster.gotoAndStop(1);
if (start ne "") {
gotoAndPlay(start + 1);
} else {
gotoAndPlay (2);
}
}
function hit() {
trace((("hit -" + ready) + "- ") + _target);
if (ready == true) {
monster.nextFrame();
}
}
init();
play();
Symbol 311 MovieClip Frame 18
if (_root.toggleSound) {
_root.snd.drohne1life.start();
}
Symbol 311 MovieClip Frame 68
if (_root.toggleSound) {
_root.snd.drohne1life.start();
}
Symbol 311 MovieClip Frame 101
gotoAndPlay (2);
Symbol 315 MovieClip Frame 1
if (_name ne "nosound") {
if (_root.toggleSound) {
_root.snd.stampfer.start();
}
}
Symbol 329 MovieClip Frame 1
stop();
snd.drohne1life = new Sound();
snd.drohne1life.attachSound("drohne1die");
Symbol 329 MovieClip Frame 8
_parent.ready = false;
_parent.stop();
play();
if (_root.toggleSound) {
_root.snd.drohne1die.start();
}
Symbol 329 MovieClip Frame 16
stop();
Symbol 330 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
monster.gotoAndStop(1);
if (start ne "") {
gotoAndPlay(start + 1);
} else {
gotoAndPlay (2);
}
}
function hit() {
trace((("hit -" + ready) + "- ") + _target);
if (ready == true) {
monster.nextFrame();
}
}
init();
play();
Symbol 330 MovieClip Frame 13
monster.anim.stop();
Symbol 330 MovieClip Frame 15
monster.anim.next();
Symbol 330 MovieClip Frame 72
monster.anim.play();
Symbol 330 MovieClip Frame 83
if (_root.toggleSound) {
_root.snd.bohrerlife.start();
}
Symbol 330 MovieClip Frame 104
gotoAndPlay (2);
Symbol 331 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
}
ready = true;
stop();
init();
Symbol 331 MovieClip Frame 2
ready = false;
play();
Symbol 331 MovieClip Frame 15
stop();
Symbol 335 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
}
ready = true;
stop();
init();
Symbol 335 MovieClip Frame 2
ready = false;
play();
Symbol 335 MovieClip Frame 158
stop();
Symbol 336 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
}
ready = true;
init();
play();
Symbol 336 MovieClip Frame 22
stop();
Symbol 336 MovieClip Frame 23
ready = false;
play();
Symbol 336 MovieClip Frame 36
stop();
Symbol 337 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
gotoAndStop (1);
}
function hit() {
if (ready == true) {
nextFrame();
}
}
ready = true;
stop();
init();
Symbol 337 MovieClip Frame 4
ready = false;
play();
if (_root.toggleSound) {
_root.snd.drohne1die.start();
}
Symbol 337 MovieClip Frame 11
_parent.monster_1.play();
Symbol 337 MovieClip Frame 12
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 7
_parent.ready = false;
_parent.shot.gotoAndPlay("explode");
_parent.shotStat = "loading";
play();
Symbol 343 MovieClip Frame 15
stop();
Symbol 345 MovieClip Frame 1
glob = new object();
Symbol 345 MovieClip Frame 2
_x = (_x + vx);
_y = (_y + vy);
glob.x = _x;
glob.y = _y;
_parent.localToGlobal(glob);
if ((((550 < glob.x) || (glob.x < 0)) || (glob.y < 0)) || (450 < glob.y)) {
_parent.shotStat = "loading";
}
Symbol 345 MovieClip Frame 3
_x = (_x + vx);
_y = (_y + vy);
glob.x = _x;
glob.y = _y;
_parent.localToGlobal(glob);
if ((((550 < glob.x) || (glob.x < 0)) || (glob.y < 0)) || (450 < glob.y)) {
_parent.shotStat = "loading";
}
gotoAndPlay (2);
Symbol 345 MovieClip Frame 6
_parent.shotStat = "loading";
stop();
Symbol 346 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
monster.gotoAndStop(1);
ready = true;
shotLoad = shotLoadOriginal;
shotStat = "loading";
shot.gotoAndPlay(1);
}
function hit() {
trace("hit " + _name);
trace((("hit -" + ready) + "- ") + _target);
if (ready == true) {
monster.nextFrame();
}
}
shotLoadOriginal = shotLoad;
shot.vx = 0;
shot.vy = 0;
shotStat = "loading";
ship = new object();
tip = new object();
self = new object();
self.x = _x;
self.y = _y;
_parent.localToGlobal(self);
geometry = new Object();
geometry.rad = function (x1, y1, x2, y2) {
var x = (x2 - x1);
var y = (y2 - y1);
return(Math.atan2(x, y));
};
init();
play();
Symbol 346 MovieClip Frame 2
ship.x = _root.world.ship._x;
ship.y = _root.world.ship._y;
_root.world.localToGlobal(point);
_parent.globalToLocal(point);
targetDir = (geometry.rad(0, 0, ship.x - _x, -1 * (ship.y - _y)) / Math.PI) * 180;
monster.sat.dish._rotation = targetDir - _rotation;
if (shotStat eq "loading") {
shotLoad++;
tip.x = monster.sat.dish.tip._x;
tip.y = monster.sat.dish.tip._y;
monster.sat.dish.localToGlobal(tip);
globalToLocal(tip);
shot._x = tip.x;
shot._y = tip.y;
scale = ((7.5 * shotLoad) / shotMaxLoad) + 0.1;
shot._width = scale;
shot._height = scale;
if (shotLoad >= shotMaxLoad) {
if (_root.toggleSound && (ready)) {
_root.snd.satshot.start();
}
shotStat = "flying";
shotLoad = 0;
vx = ship.x - _x;
vy = ship.y - _y;
temp = Math.sqrt((vx * vx) + (vy * vy));
vx = vx / temp;
vy = vy / temp;
shot.vx = vx * shotSpeed;
shot.vy = vy * shotSpeed;
}
}
Symbol 346 MovieClip Frame 3
gotoAndPlay (2);
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
if (_root.toggleSound) {
_root.snd.light.start();
}
Symbol 351 MovieClip Frame 36
stop();
Symbol 351 MovieClip Frame 37
if (_root.toggleSound) {
_root.snd.light.start();
}
Symbol 351 MovieClip Frame 71
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 29
if (_root.toggleSound) {
_root.snd.drohne1die.start();
}
_parent.ready = false;
play();
Symbol 356 MovieClip Frame 53
stop();
Symbol 357 MovieClip Frame 1
function init() {
var i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../monster_" + i) {
_root.temp.monsterFrames = _totalframes;
};
if (Number(_root.temp.monsterFrames) == 0) {
_name = ("monster_" + i);
break;
}
i++;
}
if (start ne "") {
gotoAndPlay(start + 1);
} else {
gotoAndPlay (2);
}
}
function hit() {
trace((("hit -" + ready) + "- ") + _target);
if (ready == true) {
monster.nextFrame();
}
}
init();
play();
Symbol 357 MovieClip Frame 88
monster.bohrer.gotoAndPlay("up");
Symbol 357 MovieClip Frame 291
monster.bohrer.gotoAndPlay("down");
Symbol 357 MovieClip Frame 433
this.gotoAndPlay(2);
Symbol 358 MovieClip Frame 1
stop();
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 3
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 3
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 3
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 5
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 5
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 5
onClipEvent (load) {
id = "";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 5
onClipEvent (load) {
id = "";
}
Instance of Symbol 311 MovieClip in Symbol 358 MovieClip Frame 8
onClipEvent (load) {
start = 1;
}
onClipEvent (load) {
monster.gotoAndPlay(30);
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 8
onClipEvent (load) {
id = "wall_1";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 8
onClipEvent (load) {
id = "wall_1";
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 9
onClipEvent (load) {
id = "wall_1";
}
Instance of Symbol 311 MovieClip in Symbol 358 MovieClip Frame 10
onClipEvent (load) {
start = 1;
}
onClipEvent (load) {
monster.gotoAndPlay(30);
}
Instance of Symbol 330 MovieClip in Symbol 358 MovieClip Frame 18
onClipEvent (load) {
start = 10;
}
Instance of Symbol 330 MovieClip in Symbol 358 MovieClip Frame 19
onClipEvent (load) {
start = 30;
}
Instance of Symbol 331 MovieClip "monster_1" in Symbol 358 MovieClip Frame 19
onClipEvent (load) {
id = 1;
}
Instance of Symbol 331 MovieClip "monster_1" in Symbol 358 MovieClip Frame 19
onClipEvent (load) {
id = 2;
}
Instance of Symbol 335 MovieClip "monster_1" in Symbol 358 MovieClip Frame 21
onClipEvent (load) {
id = 1;
}
Instance of Symbol 336 MovieClip in Symbol 358 MovieClip Frame 21
onClipEvent (load) {
id = 2;
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 21
onClipEvent (load) {
id = 7;
}
Instance of Symbol 302 MovieClip in Symbol 358 MovieClip Frame 21
onClipEvent (load) {
id = 8;
}
Instance of Symbol 337 MovieClip in Symbol 358 MovieClip Frame 21
onClipEvent (load) {
id = 9;
}
Instance of Symbol 330 MovieClip in Symbol 358 MovieClip Frame 22
onClipEvent (load) {
start = 10;
}
Instance of Symbol 330 MovieClip in Symbol 358 MovieClip Frame 23
onClipEvent (load) {
start = 30;
}
Instance of Symbol 346 MovieClip in Symbol 358 MovieClip Frame 26
onClipEvent (load) {
shotLoad = 0;
shotMaxLoad = 12;
shotSpeed = 5;
}
Instance of Symbol 357 MovieClip in Symbol 358 MovieClip Frame 27
onClipEvent (load) {
start = 1;
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 1
if (_parent.vx < 0) {
shot.gotoAndStop(2);
}
stop();
Symbol 421 MovieClip Frame 2
play();
Symbol 421 MovieClip Frame 14
_parent.ready = "gone";
stop();
Symbol 422 MovieClip Frame 1
stop();
vy = 0;
vx = 0;
ax = 0;
ay = 0;
ready = true;
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 3
play();
if (ready eq "true") {
gotoAndStop (1);
}
if ((ax == 0) && (ay == 0)) {
ax = vx * 0.2;
ay = vy * 0.2;
}
vx = vx + ax;
vy = vy + ay;
_y = (_y + vy);
_x = (_x + vx);
if (_parent.matter.hitTest(_x, _y, true)) {
if (_parent.matter.active.hitTest(_x, _y, true)) {
} else {
if (_parent.matter.danger.monster_1.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_1.hit();
}
if (_parent.matter.danger.monster_2.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_2.hit();
}
if (_parent.matter.danger.monster_3.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_3.hit();
}
if (_parent.matter.danger.monster_4.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_4.hit();
}
if (_parent.matter.danger.monster_5.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_5.hit();
}
if (_parent.matter.danger.monster_6.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_6.hit();
}
if (_parent.matter.danger.monster_7.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_7.hit();
}
if (_parent.matter.danger.monster_8.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_8.hit();
}
if (_parent.matter.danger.monster_9.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_9.hit();
}
if (_parent.matter.danger.monster_10.hitTest(_x, _y, true)) {
_parent.matter.danger.monster_10.hit();
}
if (ready ne "explode") {
ready = "explode";
shot.gotoAndPlay(2);
}
vx = vx * 0.8;
vy = vy * 0.8;
}
}
if (_x < 0) {
gotoAndStop (1);
}
if (550 < _x) {
gotoAndStop (1);
}
if (_y < 0) {
gotoAndStop (1);
}
if (400 < _y) {
gotoAndStop (1);
}
Symbol 422 MovieClip Frame 4
if (ready == "gone") {
gotoAndStop (1);
} else {
gotoAndPlay (3);
}
Symbol 423 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 1
stop();
_root.snd.thrustB.stop();
Symbol 424 MovieClip Frame 2
_root.snd.thrustB.start();
Symbol 425 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
if (_parent.shipType == 11) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 430 MovieClip Frame 1
function reset() {
gotoAndStop (1);
}
function go() {
play();
}
function score() {
r = restTime;
restTime = maxRestTime;
_root.timeDisplay = restTime;
return(r);
}
maxRestTime = 999;
restTime = maxRestTime;
_root.timeDisplay = restTime;
stop();
Symbol 430 MovieClip Frame 15
if (0 < restTime) {
restTime--;
}
_root.timeDisplay = restTime;
gotoAndPlay (2);
Symbol 432 MovieClip Frame 1
if (_parent._name eq "shipGfx") {
stop();
}
Symbol 434 MovieClip Frame 1
if (_parent.shipType == 11) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 434 MovieClip Frame 2
_parent.setCannon(0);
Symbol 435 MovieClip Frame 1
function setShip(type) {
shipType = type;
if (shipType == 11) {
sensorAmount = 10;
sensorX[0] = -6;
sensorY[0] = 14;
sensorHBump[0] = 0;
sensorVBump[0] = 0;
sensorRBump[0] = 0;
sensorX[1] = 6;
sensorY[1] = 14;
sensorHBump[1] = 0;
sensorVBump[1] = 0;
sensorRBump[1] = 0;
sensorX[2] = 0;
sensorY[2] = 13;
sensorHBump[2] = 0;
sensorVBump[2] = 0;
sensorRBump[2] = 0;
sensorX[3] = -7;
sensorY[3] = 10;
sensorHBump[3] = -1;
sensorVBump[3] = 1;
sensorRBump[3] = 0;
sensorX[4] = 7;
sensorY[4] = 10;
sensorHBump[4] = -1;
sensorVBump[4] = -1;
sensorRBump[4] = 0;
sensorX[5] = -7;
sensorY[5] = -6;
sensorHBump[5] = 0;
sensorVBump[5] = 1;
sensorRBump[5] = 0;
sensorX[6] = 7;
sensorY[6] = -6;
sensorHBump[6] = 0;
sensorVBump[6] = -1;
sensorRBump[6] = 0;
sensorX[7] = -5;
sensorY[7] = 3;
sensorHBump[7] = 0;
sensorVBump[7] = 1;
sensorRBump[7] = 0;
sensorX[8] = 5;
sensorY[8] = 3;
sensorHBump[8] = 0;
sensorVBump[8] = -1;
sensorRBump[8] = 0;
sensorX[9] = 0;
sensorY[9] = -14;
sensorHBump[9] = 1;
sensorVBump[9] = 0;
sensorRBump[9] = 0;
sensorX[10] = 0;
sensorY[10] = 4;
sensorVBump[10] = 0;
sensorHBump[10] = 0;
ay = -0.5;
ax = 0.4;
ar = 1.8;
fr = 0.9;
shipOffset = 12;
gravityConstant = 0.04;
} else if (shipType == 7) {
sensorAmount = 14;
sensorX[0] = -13;
sensorY[0] = 10;
sensorHBump[0] = 0;
sensorVBump[0] = 0;
sensorRBump[0] = 0;
sensorX[1] = 13;
sensorY[1] = 10;
sensorHBump[1] = 0;
sensorVBump[1] = 0;
sensorRBump[1] = 0;
sensorX[2] = 0;
sensorY[2] = 10;
sensorHBump[2] = 0;
sensorVBump[2] = 0;
sensorRBump[2] = 0;
sensorX[3] = -13;
sensorY[3] = 6;
sensorHBump[3] = 1;
sensorVBump[3] = 0;
sensorRBump[3] = 0;
sensorX[4] = 13;
sensorY[4] = 6;
sensorHBump[4] = 1;
sensorVBump[4] = 0;
sensorRBump[4] = 0;
sensorX[5] = -8;
sensorY[5] = -6;
sensorHBump[5] = 1;
sensorVBump[5] = 1;
sensorRBump[5] = 0;
sensorX[6] = 8;
sensorY[6] = -6;
sensorHBump[6] = 1;
sensorVBump[6] = -1;
sensorRBump[6] = 0;
sensorX[7] = -14;
sensorY[7] = 2;
sensorHBump[7] = 0;
sensorVBump[7] = 1;
sensorRBump[7] = 0;
sensorX[8] = 14;
sensorY[8] = 2;
sensorHBump[8] = 0;
sensorVBump[8] = -1;
sensorRBump[8] = 0;
sensorX[9] = 0;
sensorY[9] = -12;
sensorHBump[9] = 1;
sensorVBump[9] = 0;
sensorRBump[9] = 0;
sensorX[10] = -4;
sensorY[10] = -10;
sensorHBump[10] = 0;
sensorVBump[10] = 1;
sensorRBump[10] = 0;
sensorX[11] = 4;
sensorY[11] = -10;
sensorHBump[11] = 0;
sensorVBump[11] = -1;
sensorRBump[11] = 0;
sensorX[12] = -12;
sensorY[12] = 0;
sensorHBump[12] = 1;
sensorVBump[12] = 0;
sensorRBump[12] = 0;
sensorX[13] = 12;
sensorY[13] = 0;
sensorHBump[13] = 1;
sensorVBump[13] = 0;
sensorRBump[13] = 0;
sensorX[14] = 0;
sensorY[14] = 4;
sensorVBump[14] = 0;
sensorHBump[14] = 0;
ay = -0.5;
ax = 0.4;
ar = 0.4;
fr = 0.9;
gravityConstant = 0.05;
shipOffset = 7;
}
}
function initObjects() {
i = 1;
while (_root.cst.maxObjects >= i) {
tellTarget ("../matter/active/object_" + i) {
init();
};
i++;
}
i = 1;
while (_root.cst.maxMonster >= i) {
tellTarget ("../matter/danger/monster_" + i) {
init();
ready = true;
};
i++;
}
}
function fillUp() {
actFuel = maxFuel;
actEnergy = maxEnergy;
if (actShots < maxShots) {
actShots = maxShots;
}
refreshShots();
refreshEnergy();
burnFuel();
}
function initShip() {
_parent.ready == "gone";
_parent.shot.gotoAndStop("ready");
vx = 0;
vy = 0;
vr = 0;
setCannon(0);
_x = _parent.matter.active.shipPosition._x;
_y = (_parent.matter.active.shipPosition._y - shipOffset);
_parent.shot.gotoAndStop(1);
}
function setCannon(pPos) {
shootDir = pPos;
if (shipType == 7) {
shipGfx.cannon.gotoAndStop("pos_" + shootDir);
}
}
function initShipOnSavepoint() {
_parent.ready == "gone";
_parent.shot.gotoAndStop("ready");
vx = 0;
vy = 0;
vr = 0;
setCannon(0);
_x = _parent.matter.active.shipSavePosition._x;
_y = (_parent.matter.active.shipSavePosition._y - shipOffset);
_rotation = 0;
oldX = _x;
oldY = _y;
oldR = _rotation;
_parent.shot.gotoAndStop(1);
}
function refreshEnergy() {
_root.console.energy.gotoAndStop(int((actEnergy / maxEnergy) * 199) + 1);
}
function activateSavepoint() {
newScore = 500 + time.score();
_root.score = _root.score + newScore;
_root.receivedScore = "+" + newScore;
_root.console.scoreDisplay.play();
actSavepoint = actLevel;
if (shipType == 7) {
_root.levelDisplay = _root.code[actLevel];
_root.input = _root.code[actLevel];
} else {
_root.levelDisplay = _root.code[actLevel + 200];
_root.input = _root.code[actLevel + 200];
}
_root.input = _root.code[actLevel];
temp = actShots;
fillUp();
if (actShots < temp) {
actShots = temp;
}
_root.console.passwordDisplay.play();
}
function setLevel(pLevel) {
actLevel = pLevel;
_parent.matter.active.gotoAndStop(actLevel);
_parent.matter.platform.gotoAndStop(actLevel);
_parent.matter.danger.gotoAndStop(actLevel);
}
function resetMatterHitResults() {
i = 0;
while (sensorAmount >= i) {
matterHitResult[i] = -1;
platformHitResult[i] = -1;
i++;
}
}
function checkBorderCollision() {
bumpAmount = 0.2;
if (targetX < 5) {
vx = Math.abs(vx * bumpAmount);
vy = vy * (bumpAmount * 2);
collisionCheckResult = true;
}
if (545 < targetX) {
vx = Math.abs(vx * bumpAmount) * -1;
vy = vy * (bumpAmount * 2);
collisionCheckResult = true;
}
if (targetY < 5) {
vy = Math.abs(vy * bumpAmount);
vx = vx * (bumpAmount * 2);
collisionCheckResult = true;
}
if (335 < targetY) {
vy = Math.abs(vy * bumpAmount) * -1;
vx = vx * (bumpAmount * 2);
collisionCheckResult = true;
}
}
function platformHitTest(sensor) {
if (platformHitResult[sensor] == -1) {
checkX = (targetX + (radialCos * sensorX[sensor])) - (radialSin * sensorY[sensor]);
checkY = (targetY + (radialCos * sensorY[sensor])) + (radialSin * sensorX[sensor]);
platformHitResult[sensor] = _parent.matter.platform.hitTest(checkX, checkY, true);
}
return(platformHitResult[sensor]);
}
function matterHitTest(sensor) {
if (matterHitResult[sensor] == -1) {
checkX = (targetX + (radialCos * sensorX[sensor])) - (radialSin * sensorY[sensor]);
checkY = (targetY + (radialCos * sensorY[sensor])) + (radialSin * sensorX[sensor]);
matterHitResult[sensor] = _parent.matter.hitTest(checkX, checkY, true);
}
return(matterHitResult[sensor]);
}
function dangerHitTest(sensor) {
if (_root.godmode == true) {
return(false);
}
checkX = (targetX + (radialCos * sensorX[sensor])) - (radialSin * sensorY[sensor]);
checkY = (targetY + (radialCos * sensorY[sensor])) + (radialSin * sensorX[sensor]);
return(_parent.matter.danger.hitTest(checkX, checkY, true));
}
function goalHitTest(sensor) {
checkX = (targetX + (radialCos * sensorX[sensor])) - (radialSin * sensorY[sensor]);
checkY = (targetY + (radialCos * sensorY[sensor])) + (radialSin * sensorX[sensor]);
return(_parent.matter.active.goal.hitTest(checkX, checkY, true));
}
function activeHitTest(sensor) {
checkX = (targetX + (radialCos * sensorX[sensor])) - (radialSin * sensorY[sensor]);
checkY = (targetY + (radialCos * sensorY[sensor])) + (radialSin * sensorX[sensor]);
return(_parent.matter.active.hitTest(checkX, checkY, true));
}
function collisionCheck11() {
collisionCheckResult = false;
collision = 0;
legL = false;
legR = false;
legC = false;
if (platformHitTest(0)) {
collision++;
legL = true;
}
if (platformHitTest(1)) {
collision++;
legR = true;
}
if (platformHitTest(2)) {
collision++;
legC = true;
}
if (((legL == true) && (legR == false)) && (legC == false)) {
}
if (((legR == true) && (legL == false)) && (legC == false)) {
}
if ((1 < collision) && (Math.abs(targetR) < 40)) {
ground = true;
bumpDamage();
vy = vy * 0.5;
vx = vx * 0.5;
vr = vr * 0.5;
} else {
ground = false;
}
vMirrorFlag = false;
hMirrorFlag = false;
collision = false;
i = 3;
while (sensorAmount >= i) {
if (matterHitTest(i)) {
collision = true;
}
i++;
}
if (collision == true) {
if (0 >= actFuel) {
gotoAndPlay (19);
}
if (goalHitTest(10)) {
gotoAndStop (9);
}
collision = false;
mirrored = false;
hMirrorFlag = false;
i = 3;
while (sensorAmount >= i) {
if (matterHitTest(i)) {
if (dangerHitTest(i)) {
gotoAndPlay (19);
}
if (activeHitTest(i)) {
checkX = (targetX + (radialCos * sensorX[i])) - (radialSin * sensorY[i]);
checkY = (targetY + (radialCos * sensorY[i])) + (radialSin * sensorX[i]);
if (_parent.matter.active.object_1.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_1.hit();
}
if (_parent.matter.active.object_2.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_2.hit();
}
if (_parent.matter.active.object_3.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_3.hit();
}
if (_parent.matter.active.object_4.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_4.hit();
}
if (_parent.matter.active.object_5.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_5.hit();
}
if (_parent.matter.active.object_6.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_6.hit();
}
if (_parent.matter.active.object_7.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_7.hit();
}
if (_parent.matter.active.object_8.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_8.hit();
}
if (_parent.matter.active.object_9.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_9.hit();
}
if (_parent.matter.active.object_10.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_10.hit();
}
if (_parent.matter.active.object_11.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_11.hit();
}
if (_parent.matter.active.object_12.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_12.hit();
}
if (_parent.matter.active.object_13.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_13.hit();
}
if (_parent.matter.active.object_14.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_14.hit();
}
if (_parent.matter.active.object_15.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_15.hit();
}
if (_parent.matter.active.object_16.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_16.hit();
}
if (_parent.matter.active.object_17.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_17.hit();
}
if (_parent.matter.active.object_18.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_18.hit();
}
if (_parent.matter.active.object_19.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_19.hit();
}
if (_parent.matter.active.object_20.hitTest(checkX, checkY, true)) {
_parent.matter.active.object_20.hit();
}
} else {
bump();
}
}
i++;
}
}
if (vMirrorFlag == true) {
if (hMirrorFlag == true) {
vx = vx * -1;
vy = vy * -1;
vr = vr * -1;
} else {
vx = (Math.sin(vBounceRad) * flightSpeed) * bumpAmount;
vy = ((Math.cos(vBounceRad) * -1) * flightSpeed) * bumpAmount;
}
} else if (hMirrorFlag == true) {
vx = (Math.sin(hBounceRad) * flightSpeed) * bumpAmount;
vy = ((Math.cos(hBounceRad) * -1) * flightSpeed) * bumpAmount;
}
hMirrorFlag = false;
vMirrorFlag = false;
checkBorderCollision();
return(collisionCheckResult);
}
function bump() {
tellTarget ("_parent.helper" + i) {
gotoAndPlay ("bump");
};
bumpAmount = 0.4;
if ((sensorHBump[i] != 0) || (sensorVBump[i] != 0)) {
if (platformHitTest(i)) {
if (((i == 0) || (i == 1)) || (2 < vy)) {
vy = 2;
}
collisionCheckResult = true;
mirror();
if (sensorVBump[i] != 0) {
if (sensorVBump[i] == vBumpOption) {
vMirrorFlag = true;
}
}
if (sensorHBump[i] != 0) {
if (sensorHBump[i] == hBumpOption) {
hMirrorFlag = true;
}
}
}
}
}
function mirror() {
if (((!mirrored) && (bumpX != targetX)) && (bumpY != targetY)) {
vx = vx * 0.5;
vy = vy * 0.5;
vr = vr * 0.5;
bumpX = targetX;
bumpY = targetY;
flightRad = geometry.rad(_x, _y, _x + vx, _y - vy);
flightSpeed = Math.sqrt((vx * vx) + (vy * vy));
rotationRad = (_rotation / 180) * Math.PI;
vBounceRad = (2 * rotationRad) - flightRad;
hBounceRad = ((2 * rotationRad) + Math.PI) - flightRad;
dif = hBounceRad - (rotationRad + (Math.PI/2));
if (dif < -3.14159265358979) {
dif = dif + (Math.PI*2);
}
if ((dif < 0) || (Math.PI < dif)) {
hBumpOption = -1;
} else {
hBumpOption = 1;
}
dif = vBounceRad - rotationRad;
if (dif < -3.14159265358979) {
dif = dif + (Math.PI*2);
}
if ((dif < 0) || (Math.PI < dif)) {
vBumpOption = -1;
} else {
vBumpOption = 1;
}
bumpDamage();
mirrored = true;
}
}
function bumpDamage() {
bumpSpeed = Math.pow(actSpeed, 2);
if (harmfulSpeed < bumpSpeed) {
actEnergy = actEnergy - (bumpSpeed - harmfulSpeed);
if (actEnergy < 0) {
actEnergy = 0;
refreshEnergy();
gotoAndPlay (19);
} else {
refreshEnergy();
}
}
}
function calcRadials() {
radial = (targetR / 180) * Math.PI;
radialCos = Math.cos(radial);
radialSin = Math.sin(radial);
}
function tryMove() {
targetX = _x + vx;
targetY = _y + vy;
targetR = _rotation + vr;
calcRadials();
if (!collisionCheck11()) {
_x = targetX;
_y = targetY;
_rotation = targetR;
return(true);
}
return(false);
}
function antiGlue(pDir) {
antiGlueFlag = true;
playerWantsMove = true;
}
function doAntiGlue() {
if (antiGlueFlag) {
antiGlueStrength = 0.7;
calcRadials();
if ((platformHitTest(6) || (platformHitTest(8))) || (platformHitTest(4) && (!platformHitTest(0)))) {
vx = vx - (radialCos * antiGlueStrength);
vy = vy - (radialSin * antiGlueStrength);
} else if ((platformHitTest(5) || (platformHitTest(7))) || (platformHitTest(3) && (!platformHitTest(1)))) {
vx = vx + (radialCos * antiGlueStrength);
vy = vy + (radialSin * antiGlueStrength);
} else if (platformHitTest(9)) {
vx = vx - (radialSin * antiGlueStrength);
vy = vy + (radialCos * antiGlueStrength);
}
}
antiGlueFlag = false;
}
function ss7Input() {
if (Key.isDown(37)) {
antiGlue();
actFuel = actFuel - burnFuelSide;
burnFuel();
fireRightActive = true;
vx = vx - ax;
vr = vr - ar;
setCannon(-90);
needSoundSmall = true;
if (!sndSmall) {
_root.snd.thrustT.start();
sndSmall = true;
}
}
if (Key.isDown(39)) {
antiGlue();
actFuel = actFuel - burnFuelSide;
burnFuel();
fireLeftActive = true;
vx = vx + ax;
vr = vr + ar;
setCannon(90);
needSoundSmall = true;
if (!sndSmall) {
_root.snd.thrustT.start();
sndSmall = true;
}
}
vr = vr * 0.85;
if (!ground) {
_rotation = (_rotation * 0.95);
}
}
function ss11Input() {
if (Key.isDown(37)) {
antiGlue();
actFuel = actFuel - burnFuelSide;
burnFuel();
fireRightActive = true;
vr = vr - ar;
needSoundSmall = true;
if (!sndSmall) {
_root.snd.thrustT.start();
sndSmall = true;
}
}
if (Key.isDown(39)) {
antiGlue();
actFuel = actFuel - burnFuelSide;
burnFuel();
fireLeftActive = true;
vr = vr + ar;
needSoundSmall = true;
if (!sndSmall) {
_root.snd.thrustT.start();
sndSmall = true;
}
}
if (Key.isDown(40)) {
antiGlue();
vy = vy - ((Math.cos(radial) * ay) * 0.35);
vx = vx + ((Math.sin(radial) * ay) * 0.35);
actFuel = actFuel - burnFuelSide;
burnFuel();
shipFire.fireUp.gotoAndStop("fire");
setCannon(0);
needSoundSmall = true;
if (!sndSmall) {
_root.snd.thrustT.start();
sndSmall = true;
}
} else {
shipFire.fireUp.gotoAndStop("inactive");
}
}
function burnFuel() {
_root.console.fuel.gotoAndStop(int((actFuel / maxFuel) * 199) + 1);
}
function refreshShots() {
if (shots < 9) {
_root.console.shots.gotoAndStop(actShots + 1);
} else {
_root.console.shots.gotoAndStop(10);
}
}
playerWantsMove = false;
stuck = 0;
antiStuckTrigger = 10;
invulnerable = false;
sndSmall = false;
sndBig = false;
geometry = new Object();
geometry.distance = function (x1, y1, x2, y2) {
var v1 = Math.abs(x1 - x2);
if (v1 != 0) {
v1 = Math.pow(v1, 2);
}
var v2 = Math.abs(y1 - y2);
if (v2 != 0) {
v2 = Math.pow(v2, 2);
}
return(Math.sqrt(v1 + v2));
};
geometry.rad = function (x1, y1, x2, y2) {
var x = (x2 - x1);
var y = (y2 - y1);
return(Math.atan2(x, y));
};
actLevel = _root.startlevel;
actSavepoint = _root.startlevel;
maxFuel = 1000;
burnFuelUp = 2;
burnFuelSide = 1;
maxEnergy = 200;
maxShots = 5;
harmfulSpeed = 1.4;
ground = true;
sensorX = new Array();
sensorY = new Array();
sensorHBump = new Array();
sensorVBump = new Array();
sensorRBump = new Array();
matterHitResult = new Array();
platformHitResult = new Array();
setShip(_root.shipType);
Symbol 435 MovieClip Frame 2
setLevel(actSavepoint);
setCannon(0);
Symbol 435 MovieClip Frame 3
fillUp();
initObjects();
initShipOnSavepoint();
if (shipType == 7) {
_root.levelDisplay = _root.code[actSavepoint];
_root.input = _root.code[actSavepoint];
} else {
_root.levelDisplay = _root.code[actSavepoint + 200];
_root.input = _root.code[actSavepoint + 200];
}
Symbol 435 MovieClip Frame 5
if (_parent.ready != true) {
gotoAndPlay (4);
}
Symbol 435 MovieClip Frame 6
time.go();
Symbol 435 MovieClip Frame 7
vx = vx * _root.cst.slowdown;
needSoundSmall = false;
resetMatterHitResults();
if (0 < actFuel) {
if (Key.isDown(38)) {
if (shipType == 7) {
if (antiStuckTrigger < stuck) {
trace("do antistuck");
if (platformHitTest(3) || (platformHitTest(4))) {
trace("hit 3 or 4");
doAntiStuck = true;
i = 5;
while (sensorAmount >= i) {
if (platformHitTest(i)) {
doAntiStuck = false;
trace(i + " prevents antistuck");
}
i++;
}
if (doAntiStuck) {
trace("!!!!!!!!GO");
_y = (_y - 1);
}
}
}
}
antiGlue();
vy = vy + (Math.cos(radial) * ay);
vx = vx - (Math.sin(radial) * ay);
actFuel = actFuel - burnFuelUp;
burnFuel();
shipFire.fireDown.gotoAndStop("fire");
setCannon(0);
needSoundSmall = true;
if ((!sndSmall) && (_root.toggleSound)) {
_root.snd.thrustT.start();
sndSmall = true;
}
} else {
shipFire.fireDown.gotoAndStop("inactive");
}
fireLeftActive = false;
fireRightActive = false;
if (shipType == 11) {
ss11Input();
} else if (shipType == 7) {
ss7Input();
}
if ((!needSoundSmall) && (_root.toggleSound)) {
if (sndSmall) {
_root.snd.thrustT.stop();
}
sndSmall = false;
}
if (fireRightActive) {
shipFire.fireRight.gotoAndStop("fire");
} else {
shipFire.fireRight.gotoAndStop("inactive");
}
if (fireLeftActive) {
shipFire.fireLeft.gotoAndStop("fire");
} else {
shipFire.fireLeft.gotoAndStop("inactive");
}
} else {
shipFire.fireLeft.gotoAndStop("inactive");
shipFire.fireRight.gotoAndStop("inactive");
shipFire.fireDown.gotoAndStop("inactive");
}
oldX = _x;
oldY = _y;
oldR = _rotation;
vy = vy + gravityConstant;
actSpeed = (Math.abs(vy) + Math.abs(vx * 0.7)) + Math.abs(vr * 0.3);
resetMatterHitResults();
if (!tryMove()) {
resetMatterHitResults();
if (!tryMove()) {
if (playerWantsMove) {
stuck++;
trace("## UNRESOLVED COLLISIONS = " + stuck);
playerWantsMove = false;
}
} else {
stuck = 0;
}
} else {
stuck = 0;
}
doAntiGlue();
if (Math.abs(vr) < 0.01) {
vr = 0;
}
vr = vr * 0.9;
vy = vy + gravityConstant;
if (Key.isDown(32)) {
if (0 < actShots) {
if (_parent.shot.ready == true) {
if (_root.toggleSound == true) {
_root.snd.rocketShoot.start();
}
rad = ((_rotation + shootDir) / 180) * Math.PI;
radCos = Math.cos(rad);
radSin = Math.sin(rad);
_parent.shot._x = (_x + (radSin * 15)) + vx;
_parent.shot._y = (_y - (radCos * 15)) + vy;
_parent.shot.vx = radSin * 1;
_parent.shot.vy = (-1 * radCos) * 1;
_parent.shot.ready = false;
_parent.shot._rotation = _rotation + shootDir;
if ((_rotation + shootDir) < 0) {
_parent.shot._rotation = _parent.shot._rotation + 180;
}
actShots--;
refreshShots();
_parent.shot.gotoAndPlay("shoot");
}
}
}
Symbol 435 MovieClip Frame 8
gotoAndPlay (7);
Symbol 435 MovieClip Frame 9
play();
Symbol 435 MovieClip Frame 17
if (actLevel == 29) {
_root.gotoAndStop("buy");
} else {
actLevel++;
_parent.shot.gotoAndStop(1);
_parent.matter.active.nextFrame();
_parent.matter.platform.nextFrame();
_parent.matter.danger.nextFrame();
}
Symbol 435 MovieClip Frame 18
initObjects();
initShip();
gotoAndPlay (7);
Symbol 435 MovieClip Frame 19
if (_root.toggleSound) {
_root.snd.playerdie.start();
}
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 20
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 21
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 22
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 23
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 24
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 25
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 26
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 27
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 28
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 29
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 30
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 31
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 32
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 33
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 34
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 35
_parent._x = _parent._x + _parent.vx;
_parent._y = _parent._y + _parent.vy;
Symbol 435 MovieClip Frame 36
actShots = 0;
_root.master.gotoAndPlay("countDown");
gotoAndPlay (2);
Instance of Symbol 435 MovieClip "ship" in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
vx = 0;
vy = 0;
}
Symbol 444 MovieClip Frame 200
stop();
Symbol 449 MovieClip Frame 200
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 1
stop();
i = 8;
Symbol 455 MovieClip Frame 9
i--;
if (i < 1) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 471 Button
on (release) {
quality = _quality;
if (quality eq "LOW") {
_quality = "BEST";
} else if (quality eq "MEDIUM") {
_quality = "LOW";
} else if (quality eq "HIGH") {
_quality = "MEDIUM";
} else if (quality eq "BEST") {
_quality = "HIGH";
}
}
Symbol 477 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 481 Button
on (release) {
nextFrame();
_root.toggleSound = _root.toggleSound == false;
if (_root.toggleSound == false) {
stopAllSounds();
}
}
Symbol 485 Button
on (release) {
prevFrame();
_root.toggleSound = _root.toggleSound == false;
if (_root.toggleSound == false) {
stopAllSounds();
}
}
Symbol 486 MovieClip Frame 1
if (!_root.toggleSound) {
gotoAndStop (2);
} else {
stop();
}
Symbol 494 Button
on (release) {
_root.world.ready = true;
gotoAndStop (4);
}
Symbol 496 MovieClip Frame 1
_root.world.ready = false;
if (_root.code[_root.world.ship.actLevel] ne "") {
_root.savepoint = "savepoint";
} else {
_root.savepoint = "";
}
Symbol 496 MovieClip Frame 2
if (((((Key.isDown(13) || (Key.isDown(32))) || (Key.isDown(38))) || (Key.isDown(40))) || (Key.isDown(37))) || (Key.isDown(39))) {
_root.world.ready = true;
gotoAndStop (4);
}
Symbol 496 MovieClip Frame 3
gotoAndPlay (2);
Symbol 496 MovieClip Frame 4
stop();
Symbol 503 MovieClip Frame 200
stop();
Symbol 508 MovieClip Frame 200
stop();
Symbol 509 Button
on (release) {
quality = _quality;
if (quality eq "LOW") {
_quality = "BEST";
} else if (quality eq "MEDIUM") {
_quality = "LOW";
} else if (quality eq "HIGH") {
_quality = "MEDIUM";
} else if (quality eq "BEST") {
_quality = "HIGH";
}
}
Symbol 521 MovieClip Frame 1
stop();
Symbol 526 Button
on (release) {
nextFrame();
_root.toggleSound = _root.toggleSound == false;
if (_root.toggleSound == false) {
stopAllSounds();
}
}
Symbol 528 Button
on (release) {
prevFrame();
_root.toggleSound = _root.toggleSound == false;
if (_root.toggleSound == false) {
stopAllSounds();
}
}
Symbol 529 MovieClip Frame 1
if (!_root.toggleSound) {
gotoAndStop (2);
} else {
stop();
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 539 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 540 MovieClip Frame 1
if (_root.shipType == 7) {
stop();
} else {
gotoAndStop (2);
}
Instance of Symbol 444 MovieClip "fuel" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (50);
}
Instance of Symbol 449 MovieClip "energy" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (50);
}
Instance of Symbol 503 MovieClip "fuel" in Symbol 540 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (50);
}
Instance of Symbol 508 MovieClip "energy" in Symbol 540 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (50);
}