Frame 1
Stage.showMenu = false;
stop();
Frame 10
Name = "Guest";
Frame 20
welcome = "Welcome Newgrounds User";
stop();
Frame 21
stop();
bullets = false;
bullettime = 1;
Crash = new Sound();
Crash.attachSound("Crash");
Shoot = new Sound();
Shoot.attachSound("Shoot");
Thrust = new Sound();
Thrust.attachSound("Thrust");
showlevel.newlevel = "Level " + Level;
land.nextFrame();
land.bg.nextFrame();
ship._x = land.spad._x + 277;
ship._y = land.spad._y + 208;
Instance of Symbol 46 MovieClip "land" in Frame 21
/* no clip actions */
Instance of Symbol 48 MovieClip "Enemy" in Frame 21
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (Pause > 0) {
Pause = Pause - 1;
} else if (Pause == 0) {
Pause = 150;
_root.Shoot.start();
_root.enemybullet._x = this._x;
_root.enemybullet._y = this._y;
angle = random(360);
xstep = (_root.ship._x - _root.enemybullet._x) / 70;
ystep = (_root.ship._y - _root.enemybullet._y) / 70;
_root.enemybullet.bx = -xstep;
_root.enemybullet.by = -ystep;
}
}
Instance of Symbol 50 MovieClip "enemybullet" in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ship.momentumx = 0;
_root.ship.momentumy = 0;
_root.ship.gotoAndStop("Explode");
this.bx = 0;
this.by = 0;
this._x = 1000;
}
this._x = this._x - bx;
this._y = this._y - by;
}
Instance of Symbol 53 MovieClip "abullet" in Frame 21
onClipEvent (enterFrame) {
if (_root.bullets == true) {
this._x = this._x + ((_root.bulletx / 3) + _root.bulletxtrax);
this._y = this._y - ((_root.bullety / 3) + _root.bulletxtray);
if (this._x > 535) {
_root.bullets = false;
}
if (_root.land.hitTest(_x, _y, true)) {
_root.bullets = false;
}
if (this._x < 15) {
_root.bullets = false;
}
if (this._y > 385) {
_root.bullets = false;
}
if (this._y < 50) {
_root.bullets = false;
}
}
if ((_root.bullets == false) && (this._visible)) {
this._visible = false;
}
}
Instance of Symbol 68 MovieClip "ship" in Frame 21
onClipEvent (load) {
landed = true;
topspeed = 10;
rotate = 0;
keydownright = false;
keydownleft = false;
keydownup = false;
keydowndown = false;
keydownfire = false;
momentumx = 0;
momentumy = 0;
fired = false;
dead = false;
radians = 0.0174532925199433 /* Math.PI/180 */;
}
onClipEvent (keyDown) {
if ((Key.getCode() == 39) && (landed == false)) {
keydownright = true;
}
if ((Key.getCode() == 37) && (landed == false)) {
keydownleft = true;
}
if (Key.getCode() == 38) {
keydownup = true;
if ((dead == false) && (_root.fuel > 0)) {
this.gotoAndStop(2);
}
}
if (Key.getCode() == 40) {
keydowndown = true;
}
if (Key.getCode() == 32) {
keydownfire = true;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
keydownright = false;
}
if (Key.getCode() == 37) {
keydownleft = false;
}
if (Key.getCode() == 38) {
keydownup = false;
if (dead == false) {
this.gotoAndStop(1);
}
}
if (Key.getCode() == 32) {
keydownfire = false;
fired = false;
}
}
onClipEvent (enterFrame) {
if (momentumy < -5) {
momentumy = -5;
}
this._x = this._x + momentumx;
this._y = this._y - momentumy;
this._rotation = rotate;
if (keydownright && (dead == false)) {
rotate = rotate + 4;
if (rotate > 360) {
rotate = rotate - 360;
}
}
if (keydownleft && (dead == false)) {
rotate = rotate - 4;
if (rotate < -360) {
rotate = rotate + 360;
}
}
if ((keydownup && (dead == false)) && (_root.fuel > 0)) {
_root.fuel = _root.fuel - 1;
momentumx = momentumx + (Math.sin(rotate * radians) / 16);
momentumy = momentumy + (Math.cos(rotate * radians) / 16);
if (momentumx > topspeed) {
momentumx = topspeed;
}
if (momentumx < (-topspeed)) {
momentumx = -topspeed;
}
if (momentumy > topspeed) {
momentumy = topspeed;
}
if (momentumy < (-topspeed)) {
momentumy = -topspeed;
} else if ((keydownup && (dead == false)) && (_root.fuel == 0)) {
this.gotoAndStop(1);
}
}
if ((keydownfire == true) && (dead == false)) {
if ((_root.bullets == false) && (fired == false)) {
_root.abullet._x = this._x;
_root.abullet._y = this._y;
_root.abullet._visible = true;
_root.bullets = true;
_root.bulletx = Math.sin(rotate * radians) * 16;
_root.bullety = Math.cos(rotate * radians) * 16;
_root.bulletxtrax = momentumx;
_root.bulletxtray = momentumy;
_root.bullettime = 30;
fired = true;
_root.Shoot.start();
}
}
if (_root.bullettime > 0) {
_root.bullettime--;
if (_root.bullettime == 0) {
_root.bullets = false;
_root.abullet._visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.land.hitTest(_x, _y, true) && (dead == false)) {
dead = true;
momentumx = 0;
momentumy = 0;
this.gotoAndStop("Explode");
}
if (((_root.land.spad.hitTest(_x, _y + 7, true) && (rotate > -10)) && (rotate < 10)) && (landed == false)) {
rotate = 0;
momentumx = 0;
if (landed == false) {
momentumy = 0;
}
landed = true;
} else if (((_root.land.spad.hitTest(_x, _y + 7, true) && (rotate < -10)) && (rotate > 10)) && (landed == false)) {
dead = true;
momentumx = 0;
momentumy = 0;
this.gotoAndStop("Explode");
} else if (((_root.land.spad.hitTest(_x, _y + 7, true) && (rotate < -10)) && (rotate > 10)) && (landed == false)) {
dead = true;
momentumx = 0;
momentumy = 0;
this.gotoAndStop("Explode");
} else if (!_root.land.spad.hitTest(_x, _y + 7, true)) {
momentumy = momentumy - 0.02;
landed = false;
}
if ((((_root.land.pad.hitTest(_x, _y + 5, true) && (rotate > -10)) && (rotate < 10)) && (momentumy > -0.8)) && (dead == false)) {
rotate = 0;
momentumx = 0;
momentumy = 0;
this.gotoAndStop(4);
} else if ((((_root.land.pad.hitTest(_x, _y + 5, true) && (rotate < -10)) && (rotate > 10)) && (momentumy < -0.8)) && (dead == false)) {
dead = true;
momentumx = 0;
momentumy = 0;
this.gotoAndStop("Explode");
}
if (landed == true) {
rotate = 0;
if (_root.fuel < _root.fuellevel) {
_root.fuel = _root.fuel + 3;
} else if (_root.fuel > _root.fuellevel) {
_root.fuel = _root.fuellevel;
}
}
}
Instance of Symbol 73 MovieClip in Frame 21
onClipEvent (enterFrame) {
this._xscale = _root.fuel / 10;
}
Frame 25
stop();
Frame 26
if (ranking == "Bad") {
rank.gotoAndStop("Bad");
} else if (ranking == "Good") {
rank.gotoAndStop("Good");
}
Frame 35
stopAllSounds();
if (Name != "Guest") {
mst.Check = 0;
mst.Name = _root.Name;
mst.pass = _root.pass;
mst.score = _root.score;
mst.Info = "Level " + _root.Level;
mst.game = "Thrust";
mst.loadVariables("../scores/submit.php", "GET");
} else {
gotoAndStop ("End");
}
Frame 40
if (mst.Check == 1) {
gotoAndPlay (41);
} else {
gotoAndPlay (39);
}
Frame 41
game = "Thrust";
loadVariablesNum ("../login/newlogin.php", 0, "POST");
Frame 50
stop();
Symbol 14 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 14 MovieClip Frame 2
gotoAndPlay (1);
Symbol 19 Button
on (press) {
score = 0;
Lives = 1;
Level = 1;
_root.gotoAndStop("game");
}
Symbol 26 Button
on (release) {
getURL ("http://www.syndicatesdomain.co.uk", blank);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
_root.fuel = 250;
_root.fuellevel = 250;
Symbol 46 MovieClip Frame 3
_root.fuel = 200;
_root.fuellevel = 200;
Symbol 46 MovieClip Frame 4
_root.fuel = 300;
_root.fuellevel = 300;
Symbol 46 MovieClip Frame 5
_root.fuel = 300;
_root.fuellevel = 300;
Symbol 46 MovieClip Frame 6
_root.fuel = 300;
_root.fuellevel = 300;
Symbol 46 MovieClip Frame 7
_root.fuel = 350;
_root.fuellevel = 350;
Symbol 46 MovieClip Frame 8
_root.fuel = 450;
_root.fuellevel = 450;
Symbol 46 MovieClip Frame 9
_root.fuel = 400;
_root.fuellevel = 400;
Symbol 46 MovieClip Frame 10
_root.fuel = 500;
_root.fuellevel = 500;
Symbol 46 MovieClip Frame 11
_root.fuel = 500;
_root.fuellevel = 500;
Symbol 46 MovieClip Frame 12
_root.fuel = 500;
_root.fuellevel = 500;
Symbol 46 MovieClip Frame 13
_root.fuel = 500;
_root.fuellevel = 500;
Symbol 46 MovieClip Frame 14
_root.ranking = "Good";
_root.gotoAndPlay("Gameover");
Symbol 64 MovieClip Frame 1
_root.Lives = _root.Lives - 1;
stopAllSounds();
Symbol 64 MovieClip Frame 24
if (_root.Lives > 0) {
_root.fuel = _root.fuellevel;
_root.ship._x = _root.land.spad._x + 277;
_root.ship._y = _root.land.spad._y + 206;
_root.ship.dead = false;
_root.ship.rotate = 0;
_root.ship.landed = true;
_root.ship.keydownright = false;
_root.ship.keydownleft = false;
_root.ship.keydownup = false;
_root.ship.keydowndown = false;
_root.ship.keydownfire = false;
_root.ship.gotoAndStop(1);
} else if (_root.Lives == 0) {
_root.ranking = "Bad";
_root.gotoAndPlay("Gameover");
}
stop();
Symbol 67 MovieClip Frame 70
_root.gotoAndStop("Done");
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 70 MovieClip Frame 1
Symbol 70 MovieClip Frame 44
gotoAndStop (1);
Symbol 89 MovieClip Frame 16
stop();
Symbol 97 Button
on (release, keyPress "<Space>") {
_root.Level = _root.Level + 1;
_root.gotoAndStop("game");
}
Symbol 98 MovieClip Frame 1
stopAllSounds();
Symbol 98 MovieClip Frame 21
fuelleft = _root.fuel;
score = _root.score;
bonus = _root.Level * 1000;
Symbol 98 MovieClip Frame 37
if (fuelleft > 0) {
fuelleft = fuelleft - 1;
score = score + 10;
gotoAndPlay (36);
if (fuelleft < 0) {
fuelleft = 0;
gotoAndPlay (37);
}
}
Symbol 98 MovieClip Frame 38
score = score + bonus;
Symbol 98 MovieClip Frame 43
_root.score = score;
stop();
Symbol 108 Button
on (release, keyPress "<Space>") {
_root.gotoAndStop("Intro");
}