Combined Code
// unknown tag 88 length 78
frame 1 {
_global.money = 100;
_global.plantsCargo = 0;
_global.meatCargo = 0;
_global.medicineCargo = 0;
_global.scrapsCargo = 0;
_global.fuelCargo = 0;
_global.computerCargo = 0;
_global.robotCargo = 0;
_global.gemsCargo = 0;
_global.cargoSpace = 0;
_global.cargoMax = 9;
_global.jumpDestination = 1;
_global.exitHeading = 1;
_global.station = 0;
_root.hud.credits = _global.money;
}
frame 2 {
stop();
}
frame 2 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(player_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(player_mc._rotation * Math.PI / 180) * -speed;
player_mc._x += velocityX;
player_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
player_mc._rotation += steering * speed;
}
_global.speed = 0;
var speedMax = 5;
var speedMaxReverse = -2;
var speedAcceleration = 0.15;
var speedDeceleration = 0.15;
var groundFriction = 0.99;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
player_mc.onEnterFrame = function () {
runGame();
};
}
frame 2 {
stop();
}
movieClip 7 {
}
movieClip 8 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 12 {
frame 1 {
stop();
}
}
movieClip 15 {
frame 112 {
if (_global.jumpDestination == 2) {
_root.gotoAndStop('leos');
_global.exitHeading = 1;
}
if (_global.jumpDestination == 1) {
_root.gotoAndStop('harmony');
_global.exitHeading = 1;
}
}
frame 112 {
stop();
}
}
frame 3 {
stop();
}
movieClip 18 {
instance playerAnim of movieClip 12 {
onClipEvent (enterFrame) {
right.gotoAndStop(2);
left.gotoAndStop(2);
backwards1.gotoAndStop(2);
backwards2.gotoAndStop(2);
}
}
frame 102 {
_root.nextFrame();
}
}
frame 4 {
_root.hud.credits = money;
}
frame 4 {
stop();
}
movieClip 20 {
}
movieClip 21 {
}
instance of movieClip 21 {
onClipEvent (enterFrame) {
_y = _y + (_root.pilot._y - _y);
_x = _x + (_root.pilot._x - _x);
}
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 32 {
instance harmonyStore of movieClip 31 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.pilot)) {
_root.hud.popup.gotoAndStop(3);
_root.hud.popup.plantsPrice = 6.4;
_root.hud.popup.meatPrice = 8.5;
_root.hud.popup.medicinePrice = 83.09999999999999;
_root.hud.popup.scrapsPrice = 8.199999999999999;
_root.hud.popup.fuelPrice = 23.3;
_root.hud.popup.robotPrice = 34.7;
_root.hud.popup.computerPrice = 56.3;
_root.hud.popup.gemsPrice = 12.1;
} else {
_root.hud.popup.gotoAndStop(1);
}
}
}
}
movieClip 38 {
}
movieClip 39 {
}
instance pilot of movieClip 39 {
onClipEvent (load) {
walkSpeed = 4;
facing = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
facing = 1;
this.gotoAndStop('southWalk');
_y = _y + walkSpeed;
} else {
if (Key.isDown(38)) {
facing = 4;
this.gotoAndStop('northWalk');
_y = _y - walkSpeed;
} else {
if (Key.isDown(37)) {
facing = 3;
this.gotoAndStop('westWalk');
_x = _x - walkSpeed;
} else {
if (Key.isDown(39)) {
facing = 2;
this.gotoAndStop('eastWalk');
_x = _x + walkSpeed;
} else {
if (facing == 1) {
this.gotoAndStop('south');
} else {
if (facing == 2) {
this.gotoAndStop('east');
} else {
if (facing == 3) {
this.gotoAndStop('west');
} else {
if (facing == 4) {
this.gotoAndStop('north');
}
}
}
}
}
}
}
}
}
}
movieClip 41 {
}
movieClip 43 {
}
button 45 {
on (press) {
_global.exitHeading = 2;
gotoAndStop('harmony');
}
}
movieClip 47 {
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 54 {
}
button 57 {
on (press) {
_global.exitHeading = 2;
_root.gotoAndStop(_global.station);
}
}
button 68 {
on (press) {
if (_global.money >= _root.hud.popup.plantsPrice && _global.cargoSpace <= _global.cargoMax && plantsPrice != 'n/a') {
_global.money -= _root.hud.popup.plantsPrice;
_root.hud.credits = _global.money;
_global.plantsCargo += 1;
_root.hud.popup.plantsOwned = _global.plantsCargo;
_global.cargoSpace += 1;
}
}
}
button 69 {
on (press) {
if (_global.plantsCargo >= 1 && plantsPrice != 'n/a') {
_global.money += _root.hud.popup.plantsPrice;
_root.hud.credits = _global.money;
_global.plantsCargo -= 1;
_root.hud.popup.plantsOwned = _global.plantsCargo;
_global.cargoSpace -= 1;
}
}
}
button 70 {
on (press) {
if (_global.money >= _root.hud.popup.meatPrice && _global.cargoSpace <= _global.cargoMax && meatPrice != 'n/a') {
_global.money -= _root.hud.popup.meatPrice;
_root.hud.credits = _global.money;
_global.meatCargo += 1;
_root.hud.popup.meatOwned = _global.meatCargo;
_global.cargoSpace += 1;
}
}
}
button 71 {
on (press) {
if (_global.meatCargo >= 1 && meatPrice != 'n/a') {
_global.money += _root.hud.popup.meatPrice;
_root.hud.credits = _global.money;
_global.meatCargo -= 1;
_root.hud.popup.meatOwned = _global.meatCargo;
_global.cargoSpace -= 1;
}
}
}
button 72 {
on (press) {
if (_global.money >= _root.hud.popup.medicinePrice && _global.cargoSpace <= _global.cargoMax && medicinePrice != 'n/a') {
_global.money -= _root.hud.popup.medicinePrice;
_root.hud.credits = _global.money;
_global.medicineCargo += 1;
_root.hud.popup.medicineOwned = _global.medicineCargo;
_global.cargoSpace += 1;
}
}
}
button 73 {
on (press) {
if (_global.medicineCargo >= 1 && medicinePrice != 'n/a') {
_global.money += _root.hud.popup.medicinePrice;
_root.hud.credits = _global.money;
_global.medicineCargo -= 1;
_root.hud.popup.medicineOwned = _global.medicineCargo;
_global.cargoSpace -= 1;
}
}
}
button 74 {
on (press) {
if (_global.money >= _root.hud.popup.scrapsPrice && _global.cargoSpace <= _global.cargoMax && scrapsPrice != 'n/a') {
_global.money -= _root.hud.popup.scrapsPrice;
_root.hud.credits = _global.money;
_global.scrapsCargo += 1;
_root.hud.popup.scrapsOwned = _global.scrapsCargo;
_global.cargoSpace += 1;
}
}
}
button 75 {
on (press) {
if (_global.scrapsCargo >= 1 && scrapsPrice != 'n/a') {
_global.money += _root.hud.popup.scrapsPrice;
_root.hud.credits = _global.money;
_global.scrapsCargo -= 1;
_root.hud.popup.scrapsOwned = _global.scrapsCargo;
_global.cargoSpace -= 1;
}
}
}
button 76 {
on (press) {
if (_global.money >= _root.hud.popup.fuelPrice && _global.cargoSpace <= _global.cargoMax && fuelPrice != 'n/a') {
_global.money -= _root.hud.popup.fuelPrice;
_root.hud.credits = _global.money;
_global.fuelCargo += 1;
_root.hud.popup.fuelOwned = _global.fuelCargo;
_global.cargoSpace += 1;
}
}
}
button 77 {
on (press) {
if (_global.fuelCargo >= 1 && fuelPrice != 'n/a') {
_global.money += _root.hud.popup.fuelPrice;
_root.hud.credits = _global.money;
_global.fuelCargo -= 1;
_root.hud.popup.fuelOwned = _global.fuelCargo;
_global.cargoSpace -= 1;
}
}
}
button 78 {
on (press) {
if (_global.money >= _root.hud.popup.robotPrice && _global.cargoSpace <= _global.cargoMax && robotPrice != 'n/a') {
_global.money -= _root.hud.popup.robotPrice;
_root.hud.credits = _global.money;
_global.robotCargo += 1;
_root.hud.popup.robotOwned = _global.robotCargo;
_global.cargoSpace += 1;
}
}
}
button 79 {
on (press) {
if (_global.robotCargo >= 1 && robotPrice != 'n/a') {
_global.money += _root.hud.popup.robotPrice;
_root.hud.credits = _global.money;
_global.robotCargo -= 1;
_root.hud.popup.robotOwned = _global.robotCargo;
_global.cargoSpace -= 1;
}
}
}
button 80 {
on (press) {
if (_global.money >= _root.hud.popup.computerPrice && _global.cargoSpace <= _global.cargoMax && computerPrice != 'n/a') {
_global.money -= _root.hud.popup.computerPrice;
_root.hud.credits = _global.money;
_global.computerCargo += 1;
_root.hud.popup.computerOwned = _global.computerCargo;
_global.cargoSpace += 1;
}
}
}
button 81 {
on (press) {
if (_global.computerCargo >= 1 && computerPrice != 'n/a') {
_global.money += _root.hud.popup.computerPrice;
_root.hud.credits = _global.money;
_global.computerCargo -= 1;
_root.hud.popup.computerOwned = _global.computerCargo;
_global.cargoSpace -= 1;
}
}
}
button 82 {
on (press) {
if (_global.money >= _root.hud.popup.gemsPrice && _global.cargoSpace <= _global.cargoMax && gemsPrice != 'n/a') {
_global.money -= _root.hud.popup.gemsPrice;
_root.hud.credits = _global.money;
_global.gemsCargo += 1;
_root.hud.popup.gemsOwned = _global.gemsCargo;
_global.cargoSpace += 1;
}
}
}
button 83 {
on (press) {
if (_global.gemsCargo >= 1 && gemsPrice != 'n/a') {
_global.money += _root.hud.popup.gemsPrice;
_root.hud.credits = _global.money;
_global.gemsCargo -= 1;
_root.hud.popup.gemsOwned = _global.gemsCargo;
_global.cargoSpace -= 1;
}
}
}
movieClip 110 {
}
movieClip 113 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
plantsOwned = _global.plantsCargo;
meatOwned = _global.meatCargo;
medicineOwned = _global.medicineCargo;
scrapsOwned = _global.scrapsCargo;
fuelOwned = _global.fuelCargo;
robotOwned = _global.robotCargo;
computerOwned = _global.computerCargo;
gemsOwned = _global.gemsCargo;
}
frame 4 {
stop();
}
}
button 123 {
on (press) {
_global.jumpDestination = 1;
_root.gotoAndStop('jump');
}
}
button 124 {
on (press) {
_global.jumpDestination = 2;
_root.gotoAndStop('jump');
}
}
movieClip 125 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 126 {
frame 1 {
stop();
}
}
button 128 {
on (press) {
if (_global.money >= _root.hud.popup.plantsPrice && _global.cargoSpace <= _global.cargoMax && plantsPrice != 'n/a') {
_global.money -= _root.hud.popup.plantsPrice;
_root.hud.credits = _global.money;
_global.plantsCargo += 1;
_root.hud.popup.plantsOwned = _global.plantsCargo;
_global.cargoSpace += 1;
}
}
}
button 129 {
on (press) {
if (_global.money >= _root.hud.popup.meatPrice && _global.cargoSpace <= _global.cargoMax && meatPrice != 'n/a') {
_global.money -= _root.hud.popup.meatPrice;
_root.hud.credits = _global.money;
_global.meatCargo += 1;
_root.hud.popup.meatOwned = _global.meatCargo;
_global.cargoSpace += 1;
}
}
}
button 130 {
on (press) {
if (_global.money >= _root.hud.popup.medicinePrice && _global.cargoSpace <= _global.cargoMax && medicinePrice != 'n/a') {
_global.money -= _root.hud.popup.medicinePrice;
_root.hud.credits = _global.money;
_global.medicineCargo += 1;
_root.hud.popup.medicineOwned = _global.medicineCargo;
_global.cargoSpace += 1;
}
}
}
button 131 {
on (press) {
if (_global.money >= _root.hud.popup.scrapsPrice && _global.cargoSpace <= _global.cargoMax && scrapsPrice != 'n/a') {
_global.money -= _root.hud.popup.scrapsPrice;
_root.hud.credits = _global.money;
_global.scrapsCargo += 1;
_root.hud.popup.scrapsOwned = _global.scrapsCargo;
_global.cargoSpace += 1;
}
}
}
button 132 {
on (press) {
if (_global.money >= _root.hud.popup.fuelPrice && _global.cargoSpace <= _global.cargoMax && fuelPrice != 'n/a') {
_global.money -= _root.hud.popup.fuelPrice;
_root.hud.credits = _global.money;
_global.fuelCargo += 1;
_root.hud.popup.fuelOwned = _global.fuelCargo;
_global.cargoSpace += 1;
}
}
}
button 133 {
on (press) {
if (_global.money >= _root.hud.popup.robotPrice && _global.cargoSpace <= _global.cargoMax && robotPrice != 'n/a') {
_global.money -= _root.hud.popup.robotPrice;
_root.hud.credits = _global.money;
_global.robotCargo += 1;
_root.hud.popup.robotOwned = _global.robotCargo;
_global.cargoSpace += 1;
}
}
}
button 134 {
on (press) {
if (_global.money >= _root.hud.popup.computerPrice && _global.cargoSpace <= _global.cargoMax && computerPrice != 'n/a') {
_global.money -= _root.hud.popup.computerPrice;
_root.hud.credits = _global.money;
_global.computerCargo += 1;
_root.hud.popup.computerOwned = _global.computerCargo;
_global.cargoSpace += 1;
}
}
}
button 135 {
on (press) {
if (_global.money >= _root.hud.popup.gemsPrice && _global.cargoSpace <= _global.cargoMax && gemsPrice != 'n/a') {
_global.money -= _root.hud.popup.gemsPrice;
_root.hud.credits = _global.money;
_global.gemsCargo += 1;
_root.hud.popup.gemsOwned = _global.gemsCargo;
_global.cargoSpace += 1;
}
}
}
movieClip 158 {
frame 1 {
stop();
}
frame 2 {
plantsOwned = _global.plantsCargo;
meatOwned = _global.meatCargo;
medicineOwned = _global.medicineCargo;
scrapsOwned = _global.scrapsCargo;
fuelOwned = _global.fuelCargo;
robotOwned = _global.robotCargo;
computerOwned = _global.computerCargo;
gemsOwned = _global.gemsCargo;
}
}
movieClip 159 {
}
instance hud of movieClip 159 {
onClipEvent (enterFrame) {
_y = _y + (_root.pilot._y - _y);
_x = _x + (_root.pilot._x - _x);
}
}
movieClip 161 {
}
instance of movieClip 161 {
onClipEvent (enterFrame) {
_y = _y + (_root.pilot._y - _y);
_x = _x + (_root.pilot._x - _x);
}
onClipEvent (enterFrame) {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
frame 5 {
_root.hud.credits = _global.money;
}
frame 5 {
_global.exitHeading = 2;
if (2) {
player_mc._y = -98.09999999999999;
player_mc._x = -134.65;
}
_global.exitHeading = 1;
if (1) {
player_mc._y = 394.01;
player_mc._x = 541.65;
}
}
frame 5 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(player_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(player_mc._rotation * Math.PI / 180) * -speed;
player_mc._x += velocityX;
player_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
player_mc._rotation += steering * speed;
}
var speed = 0;
var speedMax = 5;
var speedMaxReverse = -2;
var speedAcceleration = 0.15;
var speedDeceleration = 0.15;
var groundFriction = 0.99;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
player_mc.onEnterFrame = function () {
runGame();
};
}
frame 5 {
stop();
}
instance of movieClip 20 {
onClipEvent (enterFrame) {
_y = _y + (_root.player_mc._y - _y);
_x = _x + (_root.player_mc._x - _x);
}
}
movieClip 164 {
}
movieClip 165 {
}
movieClip 168 {
}
movieClip 169 {
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 173 {
instance harmonyCircle of movieClip 172 {
onClipEvent (enterFrame) {
_root.harmony.harmonyCircle;
if (hitTest(_root.player_mc)) {
_root.hud.popup.gotoAndStop(2);
_root.hud.popup.button.gotoAndStop(1);
_global.station = 'harmonyDock';
} else {
_root.hud.popup.gotoAndStop(1);
}
}
}
}
movieClip 175 {
}
movieClip 176 {
frame 1 {
stop();
}
instance of movieClip 175 {
onClipEvent (press) {
}
}
frame 2 {
stop();
}
}
movieClip 177 {
}
movieClip 178 {
instance of movieClip 176 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc) && cargoSpace <= cargoMax) {
this.gotoAndStop(2);
_global.scrapsCargo += 1;
_global.cargoSpace += 1;
} else {}
}
}
instance coilGate of movieClip 177 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc)) {
_root.hud.gateMenu.gotoAndStop(2);
_root.hud.gateMenu.jump1 = 'Leo\'s Shipyard';
_root.hud.gateMenu.button1.gotoAndStop(2);
_root.hud.gateMenu.jump2 = 'Gateway Station';
_root.hud.gateMenu.jump3 = 1;
_root.hud.gateMenu.jump4 = 1;
_root.hud.gateMenu.jump5 = 1;
_root.hud.gateMenu.jump6 = 1;
_root.hud.gateMenu.jump7 = 1;
} else {
_root.hud.gateMenu.gotoAndStop(1);
}
}
}
}
movieClip 180 {
}
movieClip 181 {
}
instance player_mc of movieClip 12 {
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this.forwards.gotoAndStop(1);
} else {
this.forwards.gotoAndStop(2);
}
if (Key.isDown(40)) {
this.backwards1.gotoAndStop(1);
} else {
this.backwards1.gotoAndStop(2);
}
if (Key.isDown(40)) {
this.backwards2.gotoAndStop(1);
} else {
this.backwards2.gotoAndStop(2);
}
if (Key.isDown(37)) {
this.left.gotoAndStop(1);
} else {
this.left.gotoAndStop(2);
}
if (Key.isDown(39)) {
this.right.gotoAndStop(1);
} else {
this.right.gotoAndStop(2);
}
}
}
instance hud of movieClip 159 {
onClipEvent (enterFrame) {
_y = _y + (_root.player_mc._y - _y);
_x = _x + (_root.player_mc._x - _x);
}
}
instance of movieClip 161 {
onClipEvent (enterFrame) {
_y = _y + (_root.player_mc._y - _y);
_x = _x + (_root.player_mc._x - _x);
}
onClipEvent (enterFrame) {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
frame 6 {
_root.hud.credits = _global.money;
}
frame 6 {
_global.exitHeading = 2;
if (2) {
player_mc._y = -98.09999999999999;
player_mc._x = -134.65;
}
_global.exitHeading = 1;
if (1) {
player_mc._y = 394.01;
player_mc._x = 541.65;
}
}
frame 6 {
stop();
}
frame 6 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(player_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(player_mc._rotation * Math.PI / 180) * -speed;
player_mc._x += velocityX;
player_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
player_mc._rotation += steering * speed;
}
var speed = 0;
var speedMax = 5;
var speedMaxReverse = -2;
var speedAcceleration = 0.15;
var speedDeceleration = 0.15;
var groundFriction = 0.99;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
player_mc.onEnterFrame = function () {
runGame();
};
}
frame 6 {
stop();
}
movieClip 188 {
}
movieClip 189 {
instance coilGate of movieClip 177 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc)) {
_root.hud.gateMenu.gotoAndStop(2);
_root.hud.gateMenu.jump1 = 'Harmony Resupply Station';
_root.hud.gateMenu.button1.gotoAndStop(1);
_root.hud.gateMenu.jump2 = 'Gateway Station';
_root.hud.gateMenu.jump3 = 1;
_root.hud.gateMenu.jump4 = 1;
_root.hud.gateMenu.jump5 = 1;
_root.hud.gateMenu.jump6 = 1;
_root.hud.gateMenu.jump7 = 1;
} else {
_root.hud.gateMenu.gotoAndStop(1);
}
}
}
instance leosShipyard of movieClip 188 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc)) {
_global.station = 7;
_root.hud.popup.gotoAndStop(2);
}
}
}
}
frame 7 {
stop();
}
movieClip 191 {
instance playerAnim of movieClip 12 {
onClipEvent (enterFrame) {
right.gotoAndStop(2);
left.gotoAndStop(2);
backwards1.gotoAndStop(2);
backwards2.gotoAndStop(2);
}
}
frame 62 {
_root.gotoAndStop('leoStation');
}
}
frame 8 {
_root.hud.credits = money;
}
frame 8 {
stop();
}
movieClip 199 {
}
movieClip 200 {
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.pilot)) {
_root.hud.popup.gotoAndStop(3);
_root.hud.popup.plantsPrice = 'n/a';
_root.hud.popup.meatPrice = 'n/a';
_root.hud.popup.medicinePrice = 'n/a';
_root.hud.popup.scrapsPrice = 9.6;
_root.hud.popup.fuelPrice = 21.4;
_root.hud.popup.robotPrice = 32.7;
_root.hud.popup.computerPrice = 58.6;
_root.hud.popup.gemsPrice = 'n/a';
} else {
_root.hud.popup.gotoAndStop(1);
}
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.pilot)) {
_root.hud.shipyard.gotoAndStop(2);
} else {
_root.hud.shipyard.gotoAndStop(1);
}
}
}
}
movieClip 202 {
}
instance pilot of movieClip 39 {
onClipEvent (load) {
walkSpeed = 4;
facing = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
facing = 1;
this.gotoAndStop('southWalk');
_y = _y + walkSpeed;
} else {
if (Key.isDown(38)) {
facing = 4;
this.gotoAndStop('northWalk');
_y = _y - walkSpeed;
} else {
if (Key.isDown(37)) {
facing = 3;
this.gotoAndStop('westWalk');
_x = _x - walkSpeed;
} else {
if (Key.isDown(39)) {
facing = 2;
this.gotoAndStop('eastWalk');
_x = _x + walkSpeed;
} else {
if (facing == 1) {
this.gotoAndStop('south');
} else {
if (facing == 2) {
this.gotoAndStop('east');
} else {
if (facing == 3) {
this.gotoAndStop('west');
} else {
if (facing == 4) {
this.gotoAndStop('north');
}
}
}
}
}
}
}
}
}
}
button 203 {
on (press) {
_global.exitHeading = 2;
gotoAndStop('leos');
}
}
movieClip 205 {
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x + 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._x = this._x - 14;
}
}
}
instance of movieClip 47 {
onClipEvent (enterFrame) {
if (_root.pilot.hitTest(this)) {
_root.pilot._y = this._y + 14;
}
}
}
instance hud of movieClip 159 {
onClipEvent (enterFrame) {
_y = _y + (_root.pilot._y - _y);
_x = _x + (_root.pilot._x - _x);
}
}
instance of movieClip 161 {
onClipEvent (enterFrame) {
_y = _y + (_root.pilot._y - _y);
_x = _x + (_root.pilot._x - _x);
}
onClipEvent (enterFrame) {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}