Frame 1
stop();
Instance of Symbol 25 MovieClip in Frame 1
onClipEvent (enterFrame) {
ifFrameLoaded (313) {
_root.gotoAndPlay("BootFrame");
}
}
Frame 2
myQuality = "HIGH";
BestScore = 0;
DrawDistance = 8;
HearDistance = 12;
HearDistanceSQ = Math.pow(HearDistance, 2);
VolumeLookup = new Array(150, 120, 100, 83, 72, 63, 55, 47, 38, 33, 28, 23, 20, 16, 13, 11, 9, 8, 6, 5, 4, 3, 2, 1, 1);
DepthCell_Y = new Array(448, 334, 263, 217, 186, 166, 152, 144);
Centre_X = 300;
DepthCell_Magnification = new Array(143, 95, 63, 42, 28, 18, 12, 8);
WallAlert = new Sound();
WallAlert.attachSound("WallAlert");
HealthRelief = new Sound();
HealthRelief.attachSound("HealthRelief");
CashRegister = new Sound();
CashRegister.attachSound("CashRegister");
LaserZap = new Sound();
LaserZap.attachSound("LaserZap");
Swoosh = new Sound();
Swoosh.attachSound("Swoosh");
Frame 3
function CheckForSpace(x, y) {
setProperty(Probe, _x , x + map_offset_x);
setProperty(Probe, _y , y + map_offset_y);
emptyspace = !Map.hitTest(Probe._x + 1, Probe._y - 0.5, true);
return(emptyspace);
}
function CheckForEntity(x, y, Entity) {
return(((x == Entity_X[Entity]) && (y == Entity_Y[Entity])) && (Entity_Display[Entity]));
}
function Randomiser(range) {
return(Math.round((Math.random() * (range - 1)) + 1));
}
function PopUpPager(messagetext) {
thismessage = messagetext;
PopUpMessage.gotoAndPlay("StartDisplayFrame");
}
function HealthDown(damage) {
Health = Health - damage;
if (Health < 0) {
PlayerAlive = false;
}
updatemeter = ("Health" + Math.floor(Health)) + "Frame";
HealthMeter.gotoAndStop(updatemeter);
}
function HealthUp() {
HealthRelief.start(0, 1);
Health = MaxHealth;
updatemeter = ("Health" + MaxHealth) + "Frame";
HealthMeter.gotoAndStop(updatemeter);
}
function BossSpeak(BonMot) {
TimeNow = getTimer();
if ((2500 < (TimeNow - LastSpoke)) && (_root.SoundEffect(0, _root.Entity_Name[0]))) {
_root.QueensSpeech.attachSound(BonMot);
_root.QueensSpeech.start(0, 1);
LastSpoke = TimeNow;
}
}
function SoundEffect(Entity, SFX) {
relative_X = Entity_X[Entity] - player_X;
relative_Y = Entity_Y[Entity] - player_y;
Distance_SQ = (relative_X * relative_X) + (relative_Y * relative_Y);
if (HearDistanceSQ < Distance_SQ) {
return(false);
}
if (Distance_SQ == 0) {
volume = 140;
pan = 0;
} else {
vector_x = (relative_Y * bearing_x) - (relative_X * bearing_y);
Distance = Math.sqrt(Distance_SQ);
pan = 100 * Math.round(vector_x / Distance);
volume = VolumeLookup[Math.round(2 * Distance)];
}
SFX.setVolume(volume);
SFX.setPan(pan);
return(true);
}
Frame 4
CashRegister.start(0, 1);
stop();
Frame 294
stop();
Frame 298
NumberOfLevels = 3;
GameComplete = false;
TotalScore = 0;
MaxHealth_Settings = new Array(5, 4, 3);
MaxHealth = MaxHealth_Settings[Difficulty];
CurrentLevel = 1;
Instance of Symbol 100 MovieClip "Probe" in Frame 298
onClipEvent (enterFrame) {
if (_root.Map.hitTest(this._x + 1, this._y - 0.5, true)) {
_root.emptyspace = false;
} else {
_root.emptyspace = true;
}
}
Frame 299
Map = eval ("Map" + CurrentLevel);
BigMap = eval ("BigMap" + CurrentLevel);
map_offset_x = 1;
map_offset_y = 1;
setProperty(Map, _x , map_offset_x);
setProperty(Map, _y , map_offset_y);
bigmap_offset_x = 88;
bigmap_offset_y = 315;
setProperty(BigMap, _x , bigmap_offset_x);
setProperty(BigMap, _y , bigmap_offset_y);
EntityName = new Array();
Entity_X = new Array();
Entity_Y = new Array();
Entity_N_Valid = new Array();
Entity_E_Valid = new Array();
Entity_S_Valid = new Array();
Entity_W_Valid = new Array();
Entity_Display = new Array();
Entity_Type = new Array();
TrapList = new Array();
JumpTo = ("Level" + CurrentLevel) + "Settings";
_root.gotoAndPlay(JumpTo);
Frame 300
ParTime = 40;
CountDownTime_Settings = new Array(90, 60, 30);
CountDownTime = CountDownTime_Settings[Difficulty];
TrapOnDuration_Loops_Settings = new Array(7, 8, 9);
TrapOffDuration_Loops_Settings = new Array(5, 4, 2);
TrapOnDuration_Loops = TrapOnDuration_Loops_Settings[Difficulty];
TrapOffDuration_Loops = TrapOffDuration_Loops_Settings[Difficulty];
BossDifficulty_Settings = new Array(0, 1, 2);
EntityList = new Array("Boss", "ExitDoor", "Prize", "Trap1", "Trap2", "Trap3", "Trap4", "Trap5", "Trap6", "Bling1", "Bling2", "Bling3", "Bling4", "Bling5", "Bling6", "Bling7", "Bling8", "Bling9", "Bling10", "Health1", "Health2", "Health3");
randomised = Randomiser(2);
if (randomised == 1) {
Boss = new Array("Queen", 9, 17, true, true, true, true, true, "Boss");
} else if (randomised == 2) {
Boss = new Array("Queen", 14, 17, true, true, true, true, true, "Boss");
}
randomised = Randomiser(2);
if (randomised == 1) {
ExitDoor = new Array("Exit", 9, 1, true, false, false, false, true, "Exit");
} else if (randomised == 2) {
ExitDoor = new Array("Exit", 14, 1, true, false, false, false, true, "Exit");
}
randomised = Randomiser(2);
if (randomised == 1) {
Prize = new Array("Sceptre", 9, 20, true, true, true, true, true, "Prize");
} else if (randomised == 2) {
Prize = new Array("Sceptre", 14, 20, true, true, true, true, true, "Prize");
}
Trap1 = new Array("LaserTrap1", 18, 19, true, false, true, false, true, "Trap");
Trap2 = new Array("LaserTrap2", 5, 19, true, false, true, false, true, "Trap");
Trap3 = new Array("LaserTrap3", 9, 15, true, false, true, false, true, "Trap");
Trap4 = new Array("LaserTrap4", 19, 16, true, false, true, false, true, "Trap");
Trap5 = new Array("LaserTrap5", 9, 22, false, true, false, true, true, "Trap");
Trap6 = new Array("LaserTrap6", 14, 22, false, true, false, true, true, "Trap");
Bling1 = new Array("Coin1", 19, 20, true, true, true, true, true, "Coin");
Bling2 = new Array("Coin2", 20, 20, true, true, true, true, true, "Coin");
Bling3 = new Array("Coin3", 3, 2, true, true, true, true, true, "Coin");
Bling4 = new Array("Coin4", 19, 4, true, true, true, true, true, "Coin");
Bling5 = new Array("Coin5", 6, 18, true, true, true, true, true, "Coin");
Bling6 = new Array("Coin6", 6, 9, true, true, true, true, true, "Coin");
Bling7 = new Array("Coin7", 20, 12, true, true, true, true, true, "Coin");
Bling8 = new Array("Coin8", 11, 22, true, true, true, true, true, "Coin");
Bling9 = new Array("Coin9", 12, 3, true, true, true, true, true, "Coin");
Bling10 = new Array("Coin10", 13, 16, true, true, true, true, true, "Coin");
Health1 = new Array("Health1", 3, 20, true, true, true, true, true, "Health");
Health2 = new Array("Health2", 19, 22, true, true, true, true, true, "Health");
Health3 = new Array("Health3", 11, 8, true, true, true, true, true, "Health");
randomised = Randomiser(2);
if (randomised == 1) {
player_x = 1;
player_y = 1;
} else if (randomised == 2) {
player_x = 22;
player_y = 1;
}
bearing_x = 0;
bearing_y = 1;
setProperty(Blip, _rotation , 180);
gotoAndPlay (304);
Frame 301
ParTime = 45;
CountDownTime_Settings = new Array(60, 40, 30);
CountDownTime = CountDownTime_Settings[Difficulty];
TrapOnDuration_Loops_Settings = new Array(5, 8, 9);
TrapOffDuration_Loops_Settings = new Array(5, 3, 1);
TrapOnDuration_Loops = TrapOnDuration_Loops_Settings[Difficulty];
TrapOffDuration_Loops = TrapOffDuration_Loops_Settings[Difficulty];
BossDifficulty_Settings = new Array(0, 1, 2);
EntityList = new Array("Boss", "ExitDoor", "Prize", "Trap1", "Trap2", "Trap3", "Trap4", "Trap5", "Trap6", "Trap7", "Trap8", "Trap9", "Bling1", "Bling2", "Bling3", "Bling4", "Bling5", "Bling6", "Bling7", "Bling8", "Bling9", "Health1", "Health2", "Health3");
randomised = Randomiser(2);
if (randomised == 1) {
Boss = new Array("Queen", 4, 7, true, true, true, true, true, "Boss");
} else if (randomised == 2) {
Boss = new Array("Queen", 16, 11, true, true, true, true, true, "Boss");
}
randomised = Randomiser(2);
if (randomised == 1) {
ExitDoor = new Array("Exit", 6, 1, false, true, false, false, true, "Exit");
} else if (randomised == 2) {
ExitDoor = new Array("Exit", 17, 22, false, false, false, true, true, "Exit");
}
randomised = Randomiser(4);
if (randomised == 1) {
Prize = new Array("Orb", 2, 10, true, true, true, true, true, "Prize");
} else if (randomised == 2) {
Prize = new Array("Orb", 21, 10, true, true, true, true, true, "Prize");
} else if (randomised == 3) {
Prize = new Array("Orb", 2, 13, true, true, true, true, true, "Prize");
} else if (randomised == 4) {
Prize = new Array("Orb", 21, 13, true, true, true, true, true, "Prize");
}
Trap1 = new Array("LaserTrap1", 12, 3, false, true, false, true, true, "Trap");
Trap2 = new Array("LaserTrap2", 20, 5, true, false, true, false, true, "Trap");
Trap3 = new Array("LaserTrap3", 10, 6, true, false, true, false, true, "Trap");
Trap4 = new Array("LaserTrap4", 20, 10, false, true, false, true, true, "Trap");
Trap5 = new Array("LaserTrap5", 12, 20, false, true, false, true, true, "Trap");
Trap6 = new Array("LaserTrap6", 8, 21, true, false, true, false, true, "Trap");
Trap7 = new Array("LaserTrap7", 15, 21, true, false, true, false, true, "Trap");
Trap8 = new Array("LaserTrap8", 2, 16, false, true, false, true, true, "Trap");
Trap9 = new Array("LaserTrap9", 1, 17, true, false, true, false, true, "Trap");
Bling1 = new Array("Coin1", 10, 22, true, true, true, true, true, "Coin");
Bling2 = new Array("Coin2", 14, 22, true, true, true, true, true, "Coin");
Bling3 = new Array("Coin3", 11, 1, true, true, true, true, true, "Coin");
Bling4 = new Array("Coin4", 10, 1, true, true, true, true, true, "Coin");
Bling5 = new Array("Coin5", 16, 8, true, true, true, true, true, "Coin");
Bling6 = new Array("Coin6", 7, 16, true, true, true, true, true, "Coin");
Bling7 = new Array("Coin7", 1, 16, true, true, true, true, true, "Coin");
Bling8 = new Array("Coin8", 21, 22, true, true, true, true, true, "Coin");
Bling9 = new Array("Coin9", 2, 1, true, true, true, true, true, "Coin");
Health1 = new Array("Health1", 11, 22, true, true, true, true, true, "Health");
Health2 = new Array("Health2", 6, 11, true, true, true, true, true, "Health");
Health3 = new Array("Health3", 12, 11, true, true, true, true, true, "Health");
randomised = Randomiser(2);
if (randomised == 1) {
player_x = 6;
player_y = 22;
bearing_x = -1;
bearing_y = 0;
setProperty(Blip, _rotation , -90);
} else if (randomised == 2) {
player_x = 17;
player_y = 1;
bearing_x = 1;
bearing_y = 0;
setProperty(Blip, _rotation , 90);
}
gotoAndPlay (304);
Frame 302
ParTime = 50;
CountDownTime_Settings = new Array(50, 30, 25);
CountDownTime = CountDownTime_Settings[Difficulty];
TrapOnDuration_Loops_Settings = new Array(6, 8, 10);
TrapOffDuration_Loops_Settings = new Array(4, 2, 1);
TrapOnDuration_Loops = TrapOnDuration_Loops_Settings[Difficulty];
TrapOffDuration_Loops = TrapOffDuration_Loops_Settings[Difficulty];
BossDifficulty_Settings = new Array(1, 2, 2);
EntityList = new Array("Boss", "ExitDoor", "Prize", "Trap1", "Trap2", "Trap3", "Trap4", "Trap5", "Trap6", "Trap7", "Trap8", "Trap9", "Trap10", "Bling1", "Bling2", "Bling3", "Bling4", "Bling5", "Bling6", "Bling7", "Bling8", "Bling9", "Bling10", "Health1", "Health2", "Health3");
randomised = Randomiser(3);
if (randomised == 1) {
Boss = new Array("Queen", 3, 16, true, true, true, true, true, "Boss");
} else if (randomised == 2) {
Boss = new Array("Queen", 13, 22, true, true, true, true, true, "Boss");
} else if (randomised == 3) {
Boss = new Array("Queen", 11, 7, true, true, true, true, true, "Boss");
}
randomised = Randomiser(3);
if (randomised == 1) {
ExitDoor = new Array("Exit", 5, 17, false, false, false, true, true, "Exit");
} else if (randomised == 2) {
ExitDoor = new Array("Exit", 17, 3, false, true, false, false, true, "Exit");
} else if (randomised == 3) {
ExitDoor = new Array("Exit", 22, 15, false, false, true, false, true, "Exit");
}
randomised = Randomiser(4);
if (randomised == 1) {
Prize = new Array("Crown", 4, 4, true, true, true, true, true, "Prize");
} else if (randomised == 2) {
Prize = new Array("Crown", 16, 5, true, true, true, true, true, "Prize");
} else if (randomised == 3) {
Prize = new Array("Crown", 2, 10, true, true, true, true, true, "Prize");
} else if (randomised == 4) {
Prize = new Array("Crown", 14, 17, true, true, true, true, true, "Prize");
}
Trap1 = new Array("LaserTrap1", 4, 2, true, false, true, false, true, "Trap");
Trap2 = new Array("LaserTrap2", 4, 6, true, false, true, false, true, "Trap");
Trap3 = new Array("LaserTrap3", 2, 4, false, true, false, true, true, "Trap");
Trap4 = new Array("LaserTrap4", 6, 4, false, true, false, true, true, "Trap");
Trap5 = new Array("LaserTrap5", 20, 10, true, false, true, false, true, "Trap");
Trap6 = new Array("LaserTrap6", 13, 10, false, true, false, true, true, "Trap");
Trap7 = new Array("LaserTrap7", 10, 7, false, true, false, true, true, "Trap");
Trap8 = new Array("LaserTrap8", 16, 3, false, true, false, true, true, "Trap");
Trap9 = new Array("LaserTrap9", 9, 19, false, true, false, true, true, "Trap");
Trap10 = new Array("LaserTrap10", 19, 17, false, true, false, true, true, "Trap");
Bling1 = new Array("Coin1", 5, 15, true, true, true, true, true, "Coin");
Bling2 = new Array("Coin2", 7, 13, true, true, true, true, true, "Coin");
Bling3 = new Array("Coin3", 9, 11, true, true, true, true, true, "Coin");
Bling4 = new Array("Coin4", 10, 19, true, true, true, true, true, "Coin");
Bling5 = new Array("Coin5", 22, 14, true, true, true, true, true, "Coin");
Bling6 = new Array("Coin6", 22, 8, true, true, true, true, true, "Coin");
Bling7 = new Array("Coin7", 10, 16, true, true, true, true, true, "Coin");
Bling8 = new Array("Coin8", 11, 22, true, true, true, true, true, "Coin");
Bling9 = new Array("Coin9", 15, 15, true, true, true, true, true, "Coin");
Bling10 = new Array("Coin10", 21, 3, true, true, true, true, true, "Coin");
Health1 = new Array("Health1", 10, 1, true, true, true, true, true, "Health");
Health2 = new Array("Health2", 7, 7, true, true, true, true, true, "Health");
Health3 = new Array("Health3", 17, 17, true, true, true, true, true, "Health");
randomised = Randomiser(2);
if (randomised == 1) {
player_x = 22;
player_y = 1;
bearing_x = -1;
bearing_y = 0;
setProperty(Blip, _rotation , -90);
} else if (randomised == 2) {
player_x = 22;
player_y = 17;
bearing_x = -1;
bearing_y = 0;
setProperty(Blip, _rotation , -90);
}
gotoAndPlay (304);
Frame 304
if (myQuality eq "LOW") {
_quality = "LOW";
}
ObjectivesComplete = false;
LevelComplete = false;
PlayerAlive = true;
Health = MaxHealth;
updatemeter = ("Health" + Health) + "Frame";
HealthMeter.gotoAndStop(updatemeter);
Money = 0;
MoneyAvailable = 0;
TrapCount = 0;
TrapTimer = TrapOnDuration_Loops;
Boss[0] = Boss[0] + BossDifficulty_Settings[Difficulty];
EntityCount = EntityList.length;
e = 0;
while (e < EntityCount) {
this_entity = eval (EntityList[e]);
EntityName[e] = this_entity[0];
Entity_X[e] = this_entity[1];
Entity_Y[e] = this_entity[2];
Entity_N_Valid[e] = this_entity[3];
Entity_E_Valid[e] = this_entity[4];
Entity_S_Valid[e] = this_entity[5];
Entity_W_Valid[e] = this_entity[6];
Entity_Display[e] = this_entity[7];
Entity_Type[e] = this_entity[8];
if (Entity_Type[e] eq "Trap") {
TrapCount = TrapList.push(e);
}
if (Entity_Type[e] eq "Coin") {
MoneyAvailable++;
}
if (Entity_Type[e] eq "Prize") {
BurglarAlarm = new Sound(EntityName[e]);
BurglarAlarm.attachSound("BurglarAlarm");
}
setProperty(EntityName[e], _x , Centre_X);
setProperty(EntityName[e], _visible , false);
e++;
}
if (Difficulty == 0) {
setProperty(Beacon, _visible , true);
setProperty(Beacon, _x , (3 * Entity_X[2]) + bigmap_offset_x);
setProperty(Beacon, _y , (3 * Entity_Y[2]) + bigmap_offset_y);
} else {
setProperty(Beacon, _visible , false);
}
thisboss = eval (EntityName[0]);
thisboss.setPan(0);
thisboss.setVolume(100);
Swoosh.setPan(0);
Swoosh.setVolume(100);
FootSteps = new Sound(thisboss);
FootSteps.attachSound("FootSteps");
Punch = new Sound(thisboss);
Punch.attachSound("Punch");
QueensSpeech = new Sound(thisboss);
BossShouldShout_NoBling = true;
BossShouldShout_YesBling = false;
LastSpoke = getTimer();
BossMode = "Intercept";
thisboss.gotoAndPlay("StartBossLoop");
startTime = getTimer();
if (BestScore == 0) {
PopUpPager((((("Level " + CurrentLevel) + " : Steal The ") + EntityName[2]) + newline) + "Use the arrow keys to move");
} else {
PopUpPager((("Level " + CurrentLevel) + " : Steal The ") + EntityName[2]);
}
Frame 305
probe_x = player_x;
probe_y = player_y;
i = 0;
CriticalEntity = undefined;
e = 0;
while (e < EntityCount) {
setProperty(EntityName[e], _visible , false);
e++;
}
do {
centrewall = "CentreWall" + i;
setProperty(centrewall, _visible , false);
e = 0;
while (e < EntityCount) {
if (CheckForEntity(probe_x, probe_y, e) && (((((Entity_N_Valid[e] && (bearing_x == 0)) && (bearing_y == -1)) or ((Entity_E_Valid[e] && (bearing_x == 1)) && (bearing_y == 0))) or ((Entity_S_Valid[e] && (bearing_x == 0)) && (bearing_y == 1))) or ((Entity_W_Valid[e] && (bearing_x == -1)) && (bearing_y == 0)))) {
if (BossShouldShout_NoBling && (e == 0)) {
eval (EntityName[e]).BossShouldShout_NoBling = true;
BossShouldShout_NoBling = false;
}
if (BossShouldShout_YesBling && (e == 0)) {
eval (EntityName[e]).BossShouldShout_YesBling = true;
BossShouldShout_YesBling = false;
}
if (i == 0) {
CriticalEntity = e;
}
setProperty(EntityName[e], _y , DepthCell_Y[i]);
setProperty(EntityName[e], _yscale , DepthCell_Magnification[i]);
setProperty(EntityName[e], _xscale , DepthCell_Magnification[i]);
setProperty(EntityName[e], _visible , true);
}
e++;
}
leftwall = "leftwall" + i;
leftspace = "leftspace" + i;
rightwall = "rightwall" + i;
rightspace = "rightspace" + i;
if (CheckForSpace(probe_x + bearing_y, probe_y - bearing_x)) {
setProperty(leftwall, _visible , false);
setProperty(leftspace, _visible , true);
} else {
setProperty(leftwall, _visible , true);
setProperty(leftspace, _visible , false);
}
if (CheckForSpace(probe_x - bearing_y, probe_y + bearing_x)) {
setProperty(rightwall, _visible , false);
setProperty(rightspace, _visible , true);
} else {
setProperty(rightwall, _visible , true);
setProperty(rightspace, _visible , false);
}
probe_x = probe_x + bearing_x;
probe_y = probe_y + bearing_y;
i++;
} while ((i < DrawDistance) && (CheckForSpace(probe_x, probe_y)));
if (!CheckForSpace(probe_x, probe_y)) {
setProperty(centrewall, _visible , true);
}
Frame 306
probe_x = player_x;
probe_y = player_y;
if (Key.isDown(Key.UP)) {
probe_x = probe_x + bearing_x;
probe_y = probe_y + bearing_y;
if (CheckForEntity(probe_x, probe_y, 0)) {
probe_x = player_x;
probe_y = player_y;
}
}
if (Key.isDown(Key.DOWN)) {
probe_x = probe_x - bearing_x;
probe_y = probe_y - bearing_y;
if (CheckForEntity(probe_x, probe_y, 0)) {
probe_x = player_x;
probe_y = player_y;
}
}
if (CheckForSpace(probe_x, probe_y)) {
player_x = probe_x;
player_y = probe_y;
setProperty(Blip, _x , (3 * player_x) + bigmap_offset_x);
setProperty(Blip, _y , (3 * player_y) + bigmap_offset_y);
} else {
WallAlert.start(0, 1);
}
if (!Key.isDown(Key.RIGHT)) {
RightKeyReleased = true;
}
if (!Key.isDown(Key.LEFT)) {
LeftKeyReleased = true;
}
if (RightKeyReleased && (Key.isDown(Key.RIGHT))) {
Swoosh.start(0, 1);
setProperty(Blip, _rotation , getProperty(Blip, _rotation) + 90);
temp = bearing_y;
bearing_y = bearing_x;
bearing_x = -temp;
RightKeyReleased = false;
}
if (LeftKeyReleased && (Key.isDown(Key.LEFT))) {
Swoosh.start(0, 1);
setProperty(Blip, _rotation , getProperty(Blip, _rotation) - 90);
temp = bearing_x;
bearing_x = bearing_y;
bearing_y = -temp;
LeftKeyReleased = false;
}
Frame 307
if (TrapTimer) {
TrapTimer--;
} else {
CriticalTrapNumber = TrapList.pop();
CriticalTrapName = EntityName[CriticalTrapNumber];
TrapCount = TrapList.unshift(CriticalTrapNumber);
TrapTimer = TrapOnDuration_Loops;
eval (CriticalTrapName).gotoAndPlay("DeactivateLaser");
}
if (CriticalEntity != undefined) {
if ((Entity_Type[CriticalEntity] eq "Trap") && (eval (EntityName[CriticalEntity]).Danger)) {
LaserZap.start(0, 1);
HealthDown(1);
}
if (Entity_Type[CriticalEntity] eq "Coin") {
CashRegister.start(0, 1);
Money++;
Entity_Display[CriticalEntity] = false;
}
if (Entity_Type[CriticalEntity] eq "Health") {
if (Health < MaxHealth) {
Entity_Display[CriticalEntity] = false;
HealthUp();
}
}
if (CriticalEntity == 2) {
CashRegister.start(0, 1);
duplicateMovieClip (EntityName[CriticalEntity], "PrizeIcon", 2);
setProperty("PrizeIcon", _x , 480);
setProperty("PrizeIcon", _y , 360);
setProperty("PrizeIcon", _yscale , 25);
setProperty("PrizeIcon", _xscale , 25);
Entity_Display[2] = false;
ObjectivesComplete = true;
if (Difficulty == 0) {
setProperty(Beacon, _x , (3 * Entity_X[1]) + bigmap_offset_x);
setProperty(Beacon, _y , (3 * Entity_Y[1]) + bigmap_offset_y);
}
BossShouldShout_YesBling = true;
BossShouldShout_NoBling = false;
PopUpPager("The exit is now open");
CountDown.gotoAndPlay("CountDownStartFrame");
}
if (CriticalEntity == 1) {
if (ObjectivesComplete) {
LevelComplete = true;
gotoAndPlay (309);
} else {
WallAlert.stop();
WallAlert.start(0, 1);
PopUpPager("Find the crown jewels first");
}
}
}
Frame 308
if (ObjectivesComplete && (SoundEffect(2, BurglarAlarm))) {
BurglarAlarm.start(0, 1);
}
if (PlayerAlive) {
gotoAndPlay (305);
} else {
gotoAndPlay (309);
}
Frame 309
stopAllSounds();
removeMovieClip("PrizeIcon");
finishTime = getTimer();
elapsedSeconds = Math.round((finishTime - startTime) / 1000);
if (myQuality eq "LOW") {
_quality = "HIGH";
}
if (LevelComplete) {
CompletionBonus = (300 * CurrentLevel) * (Difficulty + 1);
if (elapsedSeconds >= (2 * ParTime)) {
TimeBonus = 0;
} else {
TimeBonus = ((2 * ParTime) - elapsedSeconds) * 10;
}
if (elapsedSeconds < ParTime) {
TimeBonus = TimeBonus + ((ParTime - elapsedSeconds) * 20);
}
} else {
CompletionBonus = 0;
TimeBonus = 0;
}
if (ObjectivesComplete) {
BlingBonus = (100 * CurrentLevel) * (Difficulty + 1);
} else {
BlingBonus = 0;
}
MoneyBonus = 300 * Money;
Score = ((CompletionBonus + BlingBonus) + MoneyBonus) + TimeBonus;
TotalScore = TotalScore + Score;
if (BestScore < TotalScore) {
BestScore = TotalScore;
}
CompletionText = ("Level " + CurrentLevel) + " completed";
TimeTakenText = ("Time taken: " + elapsedSeconds) + " seconds";
TargetTimeText = ("Par: " + ParTime) + " seconds";
MoneyText = (("Money: £" + Money) + " / ") + MoneyAvailable;
TotalScoreText = "Total Score: " + TotalScore;
HighScoreText = "High Score: " + BestScore;
if (LevelComplete) {
gotoAndStop (310);
} else {
gotoAndStop (312);
}
Frame 310
Frame 311
RelevantEndingPic = ("Ending" + Difficulty) + "Pic";
setProperty(RelevantEndingPic, _alpha , 100);
stop();
Frame 312
stop();
Symbol 25 MovieClip Frame 1
PercentageLoaded = Math.floor((_root._framesloaded / _root._totalframes) * 100);
Symbol 31 Button
on (release) {
gotoAndPlay (5);
}
Symbol 39 MovieClip Frame 1
Swoosh = new Sound();
Swoosh.attachSound("Swoosh");
Strike = new Sound();
Strike.attachSound("Strike");
Swoosh.setVolume(110);
Swoosh.setPan(-100);
Swoosh.start(0, 1);
Symbol 39 MovieClip Frame 13
Swoosh.setVolume(100);
Swoosh.setPan(100);
Swoosh.start(0, 1);
Symbol 39 MovieClip Frame 36
Strike.setVolume(100);
Strike.setPan(0);
Strike.start(0, 1);
Symbol 39 MovieClip Frame 60
stop();
Symbol 40 Button
on (release) {
gotoAndStop (295);
}
Symbol 41 Button
on (release) {
gotoAndStop (296);
}
Symbol 44 Button
on (release) {
gotoAndStop (297);
}
Symbol 58 Button
on (release) {
Difficulty = 2;
gotoAndStop (297);
}
Symbol 66 Button
on (release) {
Difficulty = 0;
gotoAndStop (297);
}
Symbol 73 Button
on (release) {
Difficulty = 1;
gotoAndStop (297);
}
Symbol 74 Button
on (release) {
gotoAndPlay (298);
}
Symbol 83 Button
on (release) {
if (myQuality eq "LOW") {
myQuality = "HIGH";
} else {
myQuality = "LOW";
}
}
Symbol 207 MovieClip Frame 1
Danger = true;
Symbol 207 MovieClip Frame 5
stop();
Symbol 207 MovieClip Frame 6
LoopsUntilClose = _root.TrapOffDuration_Loops;
Danger = false;
Symbol 207 MovieClip Frame 28
LoopsUntilClose--;
if (LoopsUntilClose) {
this.gotoAndPlay("LaserOff_LoopStarts");
} else {
this.gotoAndPlay("ActivateLaser");
}
Symbol 216 MovieClip Frame 1
this.stop();
Symbol 216 MovieClip Frame 2
if (BossShouldShout_NoBling) {
_root.BossSpeak("QueensSpeech_Spotted");
BossShouldShout_NoBling = false;
}
if (BossShouldShout_YesBling) {
_root.BossSpeak("QueensSpeech_Spotted_Redhanded");
BossShouldShout_YesBling = false;
}
if (_root.Entity_X[0] < _root.player_x) {
HuntBearing_x = 1;
} else if (_root.player_x < _root.Entity_X[0]) {
HuntBearing_x = -1;
} else {
HuntBearing_x = 0;
}
if (_root.Entity_Y[0] < _root.player_y) {
HuntBearing_y = 1;
} else if (_root.player_y < _root.Entity_Y[0]) {
HuntBearing_y = -1;
} else {
HuntBearing_y = 0;
}
HuntProposed_x = _root.Entity_X[0] + HuntBearing_x;
HuntProposed_y = _root.Entity_Y[0] + HuntBearing_y;
if ((HuntBearing_y != 0) && (_root.CheckForSpace(_root.Entity_X[0], HuntProposed_y))) {
if ((_root.Entity_X[0] == _root.player_x) && (HuntProposed_y == _root.player_y)) {
gotoAndPlay (22);
} else {
_root.Entity_Y[0] = HuntProposed_y;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
} else if ((HuntBearing_x != 0) && (_root.CheckForSpace(HuntProposed_x, _root.Entity_Y[0]))) {
if ((HuntProposed_x == _root.player_x) && (_root.Entity_Y[0] == _root.player_y)) {
gotoAndPlay (22);
} else {
_root.Entity_X[0] = HuntProposed_x;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
}
Symbol 216 MovieClip Frame 21
gotoAndPlay (2);
Symbol 216 MovieClip Frame 22
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
if (_root.BossMode ne "Attack") {
_root.BossMode = "Attack";
Speech = "QueensSpeech" + _root.Randomiser(5);
_root.BossSpeak(Speech);
}
_root.HealthDown(0.5);
Symbol 216 MovieClip Frame 31
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
Symbol 216 MovieClip Frame 39
gotoAndPlay (2);
Symbol 217 MovieClip Frame 1
this.stop();
Symbol 217 MovieClip Frame 2
if (BossShouldShout_NoBling) {
_root.BossSpeak("QueensSpeech_Spotted");
BossShouldShout_NoBling = false;
}
if (BossShouldShout_YesBling) {
_root.BossSpeak("QueensSpeech_Spotted_Redhanded");
BossShouldShout_YesBling = false;
}
if (_root.Entity_X[0] < _root.player_x) {
HuntBearing_x = 1;
} else if (_root.player_x < _root.Entity_X[0]) {
HuntBearing_x = -1;
} else {
HuntBearing_x = 0;
}
if (_root.Entity_Y[0] < _root.player_y) {
HuntBearing_y = 1;
} else if (_root.player_y < _root.Entity_Y[0]) {
HuntBearing_y = -1;
} else {
HuntBearing_y = 0;
}
HuntProposed_x = _root.Entity_X[0] + HuntBearing_x;
HuntProposed_y = _root.Entity_Y[0] + HuntBearing_y;
if ((HuntBearing_y != 0) && (_root.CheckForSpace(_root.Entity_X[0], HuntProposed_y))) {
if ((_root.Entity_X[0] == _root.player_x) && (HuntProposed_y == _root.player_y)) {
gotoAndPlay (27);
} else {
_root.Entity_Y[0] = HuntProposed_y;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
} else if ((HuntBearing_x != 0) && (_root.CheckForSpace(HuntProposed_x, _root.Entity_Y[0]))) {
if ((HuntProposed_x == _root.player_x) && (_root.Entity_Y[0] == _root.player_y)) {
gotoAndPlay (27);
} else {
_root.Entity_X[0] = HuntProposed_x;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
}
Symbol 217 MovieClip Frame 26
gotoAndPlay (2);
Symbol 217 MovieClip Frame 27
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
if (_root.BossMode ne "Attack") {
_root.BossMode = "Attack";
Speech = "QueensSpeech" + _root.Randomiser(5);
_root.BossSpeak(Speech);
}
_root.HealthDown(0.5);
Symbol 217 MovieClip Frame 39
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
Symbol 217 MovieClip Frame 50
gotoAndPlay (2);
Symbol 218 MovieClip Frame 1
this.stop();
Symbol 218 MovieClip Frame 2
if (BossShouldShout_NoBling) {
_root.BossSpeak("QueensSpeech_Spotted");
BossShouldShout_NoBling = false;
}
if (BossShouldShout_YesBling) {
_root.BossSpeak("QueensSpeech_Spotted_Redhanded");
BossShouldShout_YesBling = false;
}
if (_root.Entity_X[0] < _root.player_x) {
HuntBearing_x = 1;
} else if (_root.player_x < _root.Entity_X[0]) {
HuntBearing_x = -1;
} else {
HuntBearing_x = 0;
}
if (_root.Entity_Y[0] < _root.player_y) {
HuntBearing_y = 1;
} else if (_root.player_y < _root.Entity_Y[0]) {
HuntBearing_y = -1;
} else {
HuntBearing_y = 0;
}
HuntProposed_x = _root.Entity_X[0] + HuntBearing_x;
HuntProposed_y = _root.Entity_Y[0] + HuntBearing_y;
if ((HuntBearing_y != 0) && (_root.CheckForSpace(_root.Entity_X[0], HuntProposed_y))) {
if ((_root.Entity_X[0] == _root.player_x) && (HuntProposed_y == _root.player_y)) {
gotoAndPlay (13);
} else {
_root.Entity_Y[0] = HuntProposed_y;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
} else if ((HuntBearing_x != 0) && (_root.CheckForSpace(HuntProposed_x, _root.Entity_Y[0]))) {
if ((HuntProposed_x == _root.player_x) && (_root.Entity_Y[0] == _root.player_y)) {
gotoAndPlay (13);
} else {
_root.Entity_X[0] = HuntProposed_x;
_root.BossMode = "Intercept";
if (_root.SoundEffect(0, _root.FootSteps)) {
_root.FootSteps.start(0, 2);
gotoAndPlay (3);
}
}
}
Symbol 218 MovieClip Frame 12
gotoAndPlay (2);
Symbol 218 MovieClip Frame 13
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
if (_root.BossMode ne "Attack") {
_root.BossMode = "Attack";
Speech = "QueensSpeech" + _root.Randomiser(5);
_root.BossSpeak(Speech);
}
_root.HealthDown(0.5);
Symbol 218 MovieClip Frame 19
if (_root.SoundEffect(0, _root.Punch)) {
_root.Punch.start(0, 1);
}
Symbol 218 MovieClip Frame 24
gotoAndPlay (2);
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 3
stop();
Symbol 221 MovieClip Frame 4
stop();
Symbol 221 MovieClip Frame 5
stop();
Symbol 221 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 1
CountDownTime = _root.CountDownTime;
stop();
Symbol 223 MovieClip Frame 2
if (CountDownTime < 10) {
this._visible = false;
}
Symbol 223 MovieClip Frame 16
if (CountDownTime < 10) {
this._visible = true;
}
Symbol 223 MovieClip Frame 31
CountDownTime--;
if (0 < CountDownTime) {
this.gotoAndPlay("CountDownStartFrame");
} else {
_root.PlayerAlive = false;
}
Symbol 225 MovieClip Frame 1
thismessage = _root.thismessage;
Symbol 226 MovieClip Frame 1
setProperty(this, _visible , false);
stop();
Symbol 226 MovieClip Frame 2
setProperty(this, _visible , true);
Symbol 232 Button
on (release) {
CurrentLevel++;
if (NumberOfLevels < CurrentLevel) {
gotoAndPlay (311);
} else {
gotoAndPlay (299);
}
}
Symbol 250 Button
on (release) {
gotoAndPlay (5);
}
Symbol 255 Button
on (release) {
gotoAndStop (313);
}
Symbol 281 Button
on (release) {
getURL ("mailto:listenupsucka@hotmail.com");
}