Frame 1
_quality = "HIGH";
Stage.showMenu = false;
soundOn = true;
_root.strURL = "http://www.battleon.com/default.asp?cc20aa19a91a4419d588e3ed9691050ff";
_root.gameLevel = "Oasis";
_root.subLevel = "Area 1";
_root.totalScore = 0;
stop();
_global.ipb_get_gname = function () {
var _local3 = _root._url;
var _loc5 = "";
var _local2 = "";
var _loc6 = (_local3.lastIndexOf("\\") + 1);
if ((_loc6 == -1) || (_loc6 == 0)) {
_loc6 = _local3.lastIndexOf("/") + 1;
}
var _local1 = _loc6;
var _loc7 = String(_local3).length;
while (_local1 < String(_local3).length) {
_local2 = _local3.charAt(_local1);
if (_local2 == ".") {
break;
}
_loc5 = _loc5 + _local2;
_local1++;
}
return(_loc5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 18
_quality = "HIGH";
_root.totalScore = 0;
audioFaderInc = 0.05;
audioFader = 0;
audio = new soundMixer();
audio.init(16, 800);
audio.loadChannel(1, "dj-hit6.wav");
audio.loadChannel(2, "WeaponSwing1.wav");
audio.loadChannel(3, "WeaponSwing2.wav");
audio.loadChannel(4, "BonusEffect.wav");
audio.loadChannel(5, "meatythwack4 16bit.wav");
audio.loadChannel(6, "FallEffect.wav");
audio.loadChannel(7, "Egg2.wav");
audio.loadChannel(8, "dj-Bolt.wav");
audio.loadChannel(9, "eerie sound.wav");
audio.loadChannel(10, "SwingShovel.wav");
audio.loadChannel(11, "Whoosh.wav");
audio.loadChannel(12, "val hit.wav");
audio.loadChannel(13, "triumph and loss.aif");
audio.loadChannel(14, "fanfare");
audio.loadChannel(15, "gong.wav");
audio.loadChannel(16, "ValThemeShortLoop.aif");
audio.fader(10, 30);
audio.fader(16, 50);
audio.fader(15, 50);
audio.playLoop(16, 9999);
stop();
Instance of Symbol 201 MovieClip in Frame 18
on (press) {
if (_root.soundOn) {
_root.audio.stopLoop(16);
_root.soundOn = false;
gotoAndStop ("Off");
} else {
_root.soundOn = true;
_root.audio.playLoop(16, 9999);
gotoAndStop ("On");
}
}
Frame 25
_quality = "HIGH";
stop();
Frame 33
_quality = "HIGH";
stop();
Instance of Symbol 220 MovieClip "powerUp" in Frame 33
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = ((Math.random() * 1016) + 1024);
trace("powerUp at " + _x);
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 20)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Frame 41
_quality = "HIGH";
stop();
Instance of Symbol 220 MovieClip "powerUp" in Frame 41
onClipEvent (load) {
gotoAndStop (1);
}
Frame 50
stop();
Symbol 27 MovieClip Frame 1
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent.loaded = true;
_parent.gotoAndStop("Ready");
} else {
strLoad.text = ("Loading " + String(Math.ceil((_root.getBytesLoaded() * 100) / _root.getBytesTotal()))) + "%";
}
Symbol 27 MovieClip Frame 2
gotoAndPlay (1);
Symbol 540 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 536 MovieClip [__Packages.soundMixer] Frame 0
class soundMixer
{
var Channels, channelLabels;
function soundMixer () {
Channels = new Array(8);
channelLabels = new Array(8);
}
function init(channelCount, mixerDepth) {
var _local4;
var _local3 = 0;
while (_local3 <= (channelCount - 1)) {
_local4 = "mixerChannel" + _local3;
_root.createEmptyMovieClip(_local4, mixerDepth + _local3);
Channels[_local3] = new Sound(_root[_local4]);
_local3++;
}
}
function destroy(channelCount, mixerDepth) {
var _local4;
var _local3 = 0;
while (_local3 <= (channelCount - 1)) {
_local4 = "mixerChannel" + _local3;
Channels[_local3].stop();
_root[_local4].removeMovieClip();
_local3++;
}
}
function loadChannel(chn, audio) {
chn = chn - 1;
Channels[chn].attachSound(audio);
channelLabels[chn] = audio;
}
function playLoop(chn, iterations, offset) {
chn = chn - 1;
if (offset == null) {
offset = 0;
}
if (Channels[chn] != undefined) {
if (_root.soundOn) {
Channels[chn].stop();
Channels[chn].start(offset, iterations);
} else {
trace("sound is not active!!");
}
} else {
trace("no audio loaded!!!");
}
}
function stopLoop(chn) {
chn = chn - 1;
if (Channels[chn] != undefined) {
if (_root.soundOn) {
Channels[chn].stop();
} else {
trace("sound is not active!!");
}
} else {
trace("no audio loaded!!!");
}
}
function labelChannel(chn, channelName) {
chn = chn - 1;
channelLabels[chn] = channelName;
}
function fader(chn, vol, pan) {
if (pan == null) {
pan = 0;
}
if (chn == 0) {
var _local2 = 0;
while (_local2 <= (Channels.length - 1)) {
Channels[_local2].setVolume(vol);
Channels[_local2].setPan(pan);
_local2++;
}
} else {
chn = chn - 1;
Channels[chn].setVolume(vol);
Channels[chn].setPan(pan);
}
}
function xLocationFader(chn, vol, x, screenWidth, panMultiplier) {
var _local2;
var _local3;
if (panMultiplier == null) {
panMultiplier = 1;
}
_local2 = 0;
_local3 = screenWidth / 2;
if (x > _local3) {
_local2 = 100 * ((x - _local3) / _local3);
} else if (x < _local3) {
_local2 = -100 - (-1 * (100 * (x / _local3)));
}
_local2 = _local2 * panMultiplier;
if (_local2 > 100) {
_local2 = 100;
}
if (_local2 < -100) {
_local2 = -100;
}
fader(chn, vol, _local2);
}
}
Symbol 46 MovieClip Frame 1
stop();
Instance of Symbol 133 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 135 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "dark");
}
Instance of Symbol 161 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 163 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "darkskin");
}
Symbol 185 Button
on (release) {
gotoAndPlay ("Howto");
}
Symbol 186 Button
on (release) {
gotoAndPlay ("Valencia");
}
Symbol 187 Button
on (press) {
gotoAndPlay ("Story");
}
Symbol 188 Button
on (press) {
getURL (_root.strURL, "_BLANK");
}
Symbol 199 Button
on (press) {
_root.bitSound = true;
gotoAndStop ("On");
}
Symbol 201 MovieClip Frame 1
if (_root.soundOn != false) {
stop();
} else {
gotoAndStop ("Off");
}
Symbol 201 MovieClip Frame 5
stop();
Symbol 209 Button
on (release) {
_root.audio.stopLoop(16);
gotoAndPlay ("Ready");
}
Symbol 211 Button
on (release) {
_global.ipbSend();
}
Instance of Symbol 237 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 239 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "dark");
}
Instance of Symbol 261 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 262 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "darkskin");
}
Symbol 270 MovieClip Frame 1
_alpha = 0;
Symbol 272 Button
on (release) {
gotoAndPlay ("Game");
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 5
gotoAndStop (1);
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 201 MovieClip in Symbol 293 MovieClip Frame 1
on (press) {
if (_root.soundOn) {
_root.audio.stopLoop(_root.stage.musicChannel);
_root.soundOn = false;
gotoAndStop ("Off");
} else {
_root.soundOn = true;
_root.audio.playLoop(_root.stage.musicChannel, 9999);
gotoAndStop ("On");
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 293 MovieClip Frame 1
onClipEvent (load) {
function onEnterFrame() {
if ((_root.powerUp == 3) && (!glowing)) {
glowing = true;
play();
} else if (_root.powerUp < 3) {
gotoAndStop (1);
glowing = false;
}
}
glowing = false;
}
Instance of Symbol 288 MovieClip in Symbol 293 MovieClip Frame 1
on (release) {
_root.audio.destroy(16, 800);
_root.gotoAndPlay("Ready");
}
on (rollOver) {
}
Symbol 300 MovieClip Frame 48
stop();
Instance of Symbol 302 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "dark");
}
Instance of Symbol 316 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "none");
}
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
obj = _parent._parent.myData;
_root.game.changeMyColor(this, obj, "Skin", "darkskin");
}
Symbol 320 MovieClip Frame 15
stop();
Symbol 325 MovieClip Frame 1
Symbol 325 MovieClip Frame 35
stop();
Symbol 326 Button
on (release) {
play();
}
Symbol 341 MovieClip Frame 1
gotoAndPlay ("Walk");
Symbol 341 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 6
bitOverride = false;
Symbol 341 MovieClip Frame 17
if (!bitOverride) {
gotoAndPlay ("Walk");
}
Symbol 341 MovieClip Frame 20
_root.game.script.resume();
Symbol 341 MovieClip Frame 25
gotoAndPlay ("Walk");
Symbol 341 MovieClip Frame 27
gotoAndPlay ("Fight");
Symbol 341 MovieClip Frame 35
_root.audio.playLoop(10, 1);
onAttack();
Symbol 341 MovieClip Frame 52
gotoAndPlay ("Walk");
Symbol 341 MovieClip Frame 81
stop();
Symbol 348 MovieClip Frame 1
gotoAndPlay ("Walk");
Symbol 348 MovieClip Frame 5
gotoAndPlay ("Idle");
Symbol 348 MovieClip Frame 6
bitOverride = false;
Symbol 348 MovieClip Frame 18
if (!bitOverride) {
gotoAndPlay ("Walk");
}
Symbol 348 MovieClip Frame 48
gotoAndPlay ("Walk");
Symbol 348 MovieClip Frame 79
gotoAndPlay ("Walk");
Symbol 348 MovieClip Frame 112
stop();
Symbol 354 MovieClip Frame 1
function resetSkills() {
var _local1 = 0;
while (_local1 < actions.length) {
actions[_local1].intCoolDown = 0;
_local1++;
}
}
strFileDescription = "Robina";
strFileCopyright = "\u00A9 2006 Artix Entertainment LLC. All rights reserved.";
strFileAuthor = "Artix & Zhoom";
intFileVersion = 1;
actions = new Array();
actions[0] = new Object();
skill = actions[0];
skill.strName = "Attack";
skill.strLabel = "Attack";
skill.strDescription = "Use the weapon to attack.";
skill.intLevel = 0;
skill.intCoolDown = 0;
skill.intCoolDownAmount = 0;
skill.intMana = 0;
skill.strIcon = "none";
skill.strSkillLine = "Melee";
skill.strScript = function () {
newAttack = _root.battle.getAttackInfo("strike");
return(">$attacker;-mo,$defender,-1,5;-w;/Attack;-pause;-mo,$attackerpad,0,5;-w;-t;");
};
skill.bitStatus = function () {
return(true);
};
actions[1] = new Object();
skill = actions[1];
skill.strName = "Throw";
skill.strLabel = "Throw";
skill.strDescription = "Ranged attack.";
skill.intLevel = 0;
skill.intCoolDown = 0;
skill.intCoolDownAmount = 0;
skill.intMana = 0;
skill.strIcon = "dagger";
skill.strSkillLine = "Range";
skill.strScript = function () {
newAttack = _root.battle.getAttackInfo("strike");
newAttack.strElement = "metal";
newAttack.strType = "range";
strMCattach = (_parent._name + ".") + _name;
var _local4 = _root.battle.attacker.ptrMC.getAttachPointInMovie(1);
var _local6 = _root.battle.attacker.ptrMC.getAttachPoint(1);
var _local5 = _root.battle.defender.ptrMC.getAttachPoint(2);
var _local3 = _root.battle.attacker.ptrMC.getDestPointInMovie(_local6, _local5);
return((((((((((">$attacker;/Throw;-pause;-c,mcDagger,DaggerMovie," + strMCattach) + ";-p,") + _local4._x) + ",") + _local4._y) + ";-m,") + _local3._x) + ",") + _local3._y) + ",2;-w;/Explode;-pause;-d;>$attacker;/Fight;-w,1;");
};
skill.bitStatus = function () {
return(true);
};
Symbol 354 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 12
gotoAndPlay (1);
Symbol 358 MovieClip Frame 4
_root.audio.playLoop(2, 1);
Symbol 360 MovieClip Frame 8
stop();
Symbol 363 MovieClip Frame 4
_root.audio.playLoop(3, 1);
Symbol 363 MovieClip Frame 15
stop();
Symbol 364 MovieClip Frame 7
stop();
Symbol 368 MovieClip Frame 15
stop();
Symbol 369 MovieClip Frame 1
var hit = false;
var boulderHit = false;
Symbol 369 MovieClip Frame 6
stop();
Symbol 369 MovieClip Frame 12
hit = false;
Symbol 369 MovieClip Frame 21
gotoAndPlay ("Walk");
Symbol 369 MovieClip Frame 25
_parent.deadyAttack();
Symbol 369 MovieClip Frame 32
_parent.objVars.bitAttacking = false;
gotoAndPlay ("Walk");
mcHit.removeMovieClip();
Symbol 369 MovieClip Frame 33
_root.audio.playLoop(12, 1);
hit = true;
Symbol 369 MovieClip Frame 37
gotoAndPlay ("Walk");
Symbol 369 MovieClip Frame 46
stop();
Symbol 369 MovieClip Frame 47
this["V-JumpAttack"].gotoAndPlay(1);
Symbol 369 MovieClip Frame 50
_parent.deadyAttack();
Symbol 369 MovieClip Frame 64
_parent.objVars.bitAttacking = false;
stop();
Symbol 369 MovieClip Frame 65
_parent.objVars.bitFalling = true;
hit = true;
Symbol 369 MovieClip Frame 78
_parent.objVars.bitAttacking = false;
_parent.objVars.bitJumping = false;
_parent.objVars.bitFalling = false;
_parent.onSpace();
hit = false;
gotoAndPlay ("Jump");
Symbol 369 MovieClip Frame 79
this["V-JumpAttack2"].gotoAndPlay(1);
Symbol 369 MovieClip Frame 82
_parent.deadyAttack();
Symbol 369 MovieClip Frame 94
_parent.objVars.bitAttacking = false;
stop();
Symbol 370 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var objVars = new Object();
var spawnCount = 0;
var spawnReq = 100;
var nextLevel = "csSurf";
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 330 MovieClip "bg1" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 330 MovieClip "bg2" in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 271 MovieClip "mcPit" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
isDead = false;
bitAttacking = false;
_width = Math.round((Math.random() * 50) + 350);
_x = (intSpawnX + Math.round(Math.random() * 1000));
gotoAndPlay ("Walk");
}
intSpawnX = _x;
respawn();
}
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (this._x <= (_width * -1)) {
respawn();
}
if (this.fallZone.hitTest(_parent.mcDeady.pitFallZone)) {
_root.audio.playLoop(6, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Falling");
}
}
Instance of Symbol 341 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < (this._width + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 348 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 351 MovieClip "health" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Symbol 373 MovieClip Frame 1
audioInc = 50;
this.onEnterFrame = function () {
_root.audio.fader(16, audioInc);
audioInc = audioInc - 2;
};
Symbol 373 MovieClip Frame 24
mcGame.mcDeady.gotoAndPlay("JumpAttack2");
_parent.play();
Symbol 416 MovieClip Frame 1
bitOverride = false;
Symbol 416 MovieClip Frame 11
if (!bitOverride) {
gotoAndPlay ("Walk");
}
Symbol 416 MovieClip Frame 22
_root.battle.affect("strike");
Symbol 416 MovieClip Frame 41
gotoAndPlay ("Walk");
Symbol 416 MovieClip Frame 56
Symbol 416 MovieClip Frame 57
gotoAndPlay ("Fight");
Symbol 416 MovieClip Frame 61
Symbol 416 MovieClip Frame 72
Symbol 416 MovieClip Frame 85
gotoAndPlay ("Walk");
Symbol 416 MovieClip Frame 123
stop();
Symbol 417 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var objVars = new Object();
var spawnCount = 0;
var spawnReq = 100;
var nextLevel = "csSurf";
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 330 MovieClip "bg1" in Symbol 417 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 330 MovieClip "bg2" in Symbol 417 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 351 MovieClip "health" in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 25)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 20)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Instance of Symbol 271 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
isDead = false;
bitAttacking = false;
_width = Math.round((Math.random() * 50) + 350);
_x = (intSpawnX + Math.round(Math.random() * 1000));
gotoAndPlay ("Walk");
}
intSpawnX = _x;
respawn();
}
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (this._x <= (_width * -1)) {
respawn();
}
if (this.fallZone.hitTest(_parent.mcDeady.pitFallZone)) {
_root.audio.playLoop(6, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Falling");
}
}
Instance of Symbol 341 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < (this._width + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 341 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < (this._width + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 416 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Instance of Symbol 341 MovieClip "lizard" in Symbol 418 MovieClip Frame 1
/* no clip actions */
Symbol 418 MovieClip Frame 64
lizard.onAttack = function () {
trace(_parent.mcDeady);
trace("Attacking");
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
trace("hit detected");
}
};
lizard.gotoAndPlay("Attack");
Symbol 418 MovieClip Frame 108
gotoAndPlay (1);
Symbol 419 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var objVars = new Object();
var spawnCount = 0;
var spawnReq = 100;
var nextLevel = "csSurf";
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 330 MovieClip "bg1" in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 330 MovieClip "bg2" in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 271 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
isDead = false;
bitAttacking = false;
_width = Math.round((Math.random() * 50) + 350);
_x = (intSpawnX + Math.round(Math.random() * 1000));
gotoAndPlay ("Walk");
}
intSpawnX = _x;
respawn();
}
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (this._x <= (_width * -1)) {
respawn();
}
if (this.fallZone.hitTest(_parent.mcDeady.pitFallZone)) {
_root.audio.playLoop(6, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Falling");
}
}
Instance of Symbol 351 MovieClip "health" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Instance of Symbol 418 MovieClip "komodo" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(5);
bitOverride = true;
lizard.gotoAndPlay("Hit");
}
function onAttack() {
if (this.mcHit.hitTest(__parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
lizard.gotoAndPlay("Walk");
}
intSpawnX = _x;
xpValue = 100;
intHP = 100;
respawn();
}
onClipEvent (enterFrame) {
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < (this._width + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Symbol 457 MovieClip Frame 1
gotoAndPlay ("Walk");
Symbol 457 MovieClip Frame 6
bitOverride = false;
Symbol 457 MovieClip Frame 18
if (!bitOverride) {
gotoAndPlay ("Walk");
}
Symbol 457 MovieClip Frame 37
onAttack();
Symbol 457 MovieClip Frame 51
gotoAndPlay ("Walk");
Symbol 457 MovieClip Frame 73
gotoAndPlay ("Fight");
Symbol 457 MovieClip Frame 74
gotoAndPlay ("Fight");
Symbol 457 MovieClip Frame 116
stop();
Symbol 464 MovieClip Frame 1
function AI() {
intRoll = _root.util.roll(1, 100);
if (intRoll > 45) {
newAttack = _root.battle.getAttackInfo("strike");
return(">$attacker;-mo,$defender,-1,5;-w;/Attack;-pause;-mo,$attackerpad,0,6;-w;-t;");
}
newAttack = _root.battle.getAttackInfo("strike");
var _local3 = _root.battle.attacker.ptrMC.getAttachPoint(1);
var _local2 = _root.battle.defender.ptrMC.getAttachPoint(2);
return((((((((">$attacker;/Cast;-pause;-c,mcDung,mcDung,monsters,361.7;-p," + _local3._x) + ",") + _local3._y) + ";-m,") + _local2._x) + ",") + _local2._y) + ",2;-w;-affect,strike;-d;>$attacker;-mcplay;-pause;/Fight;");
}
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 6
bitOverride = false;
Symbol 464 MovieClip Frame 18
gotoAndPlay ("Walk");
Symbol 464 MovieClip Frame 44
onAttack();
Symbol 464 MovieClip Frame 52
gotoAndPlay ("Walk");
Symbol 464 MovieClip Frame 70
stop();
Symbol 465 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var spawnCount = 0;
var spawnReq = 200;
var objVars = new Object();
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 51 MovieClip "bg1" in Symbol 465 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 51 MovieClip "bg2" in Symbol 465 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 457 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 10;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < ((this._width * 3) + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 464 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(7, 1);
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if ((_parent.bgSpeed == 0) && (!isDead)) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < ((this._width * 3) + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 457 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 10;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < ((this._width * 3) + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Instance of Symbol 351 MovieClip "health" in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Symbol 469 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var spawnCount = 0;
var spawnReq = 200;
var objVars = new Object();
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 51 MovieClip "bg1" in Symbol 469 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 51 MovieClip "bg2" in Symbol 469 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 468 MovieClip "mcBoulder" in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
intSpeed = _parent.initSpeed + 5;
hitPlayer = false;
_x = intSpawnX;
}
function flatten() {
if (this.hitTest(_parent.mcDeady.pitFallZone) && (!hitPlayer)) {
_root.audio.playLoop(7, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Hit");
hitPlayer = true;
}
}
intSpawnX = _x;
xpValue = 1;
hitPlayer = false;
respawn();
}
onClipEvent (enterFrame) {
if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
flatten();
}
Instance of Symbol 416 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 8;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 348 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 8;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 348 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 8;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 348 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 8;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 348 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 8;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Instance of Symbol 351 MovieClip "health" in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Symbol 470 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2]))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var spawnCount = 0;
var spawnReq = 200;
var objVars = new Object();
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 51 MovieClip "bg1" in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 51 MovieClip "bg2" in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 351 MovieClip "health" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Instance of Symbol 271 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
isDead = false;
bitAttacking = false;
_width = Math.round((Math.random() * 50) + 350);
_x = (intSpawnX + Math.round(Math.random() * 1000));
gotoAndPlay ("Walk");
}
intSpawnX = _x;
respawn();
}
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (this._x <= (_width * -1)) {
respawn();
}
if (this.fallZone.hitTest(_parent.mcDeady.pitFallZone)) {
_root.audio.playLoop(6, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Falling");
}
}
Instance of Symbol 457 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 10;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < ((this._width * 3) + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 416 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 5;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 341 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < (this._width + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 348 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.playScore();
_root.stage.xpBar.resizeBar(xpValue);
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function respawn() {
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 464 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
gotoAndPlay ("KO");
}
function onAttack() {
if (this.mcHit.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(7, 1);
_parent.deadyHit();
}
}
function respawn() {
intSpeed = _parent.initSpeed + 5;
isDead = false;
bitAttacking = false;
_x = intSpawnX;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if ((_parent.bgSpeed == 0) && (!isDead)) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (((!isDead) && (!bitAttacking)) && ((this._x - _parent.mcDeady._x) < ((this._width * 3) + intSpeed))) {
bitAttacking = true;
gotoAndPlay ("Attack");
}
}
Instance of Symbol 468 MovieClip "mcBoulder" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
intSpeed = _parent.initSpeed + 5;
hitPlayer = false;
_x = intSpawnX;
}
function flatten() {
if (this.hitTest(_parent.mcDeady.pitFallZone) && (!hitPlayer)) {
_root.audio.playLoop(7, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Hit");
hitPlayer = true;
}
}
intSpawnX = _x;
xpValue = 1;
hitPlayer = false;
respawn();
}
onClipEvent (enterFrame) {
if (_parent.bgSpeed == 0) {
this._x = this._x - 5;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
flatten();
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Symbol 507 MovieClip Frame 2
stop();
Symbol 507 MovieClip Frame 6
if (castingTeleport) {
gotoAndPlay ("Cast2");
}
Instance of Symbol 270 MovieClip "mcHit" in Symbol 507 MovieClip Frame 6
/* no clip actions */
Symbol 507 MovieClip Frame 18
if (!castingTeleport) {
gotoAndPlay ("Walk");
} else {
gotoAndPlay ("Cast2");
}
Symbol 507 MovieClip Frame 19
bitAttacking = true;
Symbol 507 MovieClip Frame 38
_root.audio.playLoop(8, 1);
_parent.mcPit._x = _parent.Eyeboss._x - (_parent.mcPit._width / 2);
_parent.mcPit.summoned = true;
onAttack();
Symbol 507 MovieClip Frame 56
bitAttacking = false;
if (!castingTeleport) {
gotoAndPlay ("Walk");
} else {
gotoAndPlay ("Cast2");
}
Symbol 507 MovieClip Frame 57
bitAttacking = true;
Symbol 507 MovieClip Frame 66
bitAttacking = false;
if (castingTeleport) {
gotoAndPlay ("Cast2");
} else {
gotoAndPlay ("Walk");
}
Symbol 507 MovieClip Frame 67
_root.audio.playLoop(9, 1);
castingTeleport = true;
bitAttacking = true;
Symbol 507 MovieClip Frame 89
teleport();
Symbol 507 MovieClip Frame 113
castingTeleport = false;
Teleporting = false;
trace(castingTeleport);
bitAttacking = false;
gotoAndPlay ("Walk");
Symbol 507 MovieClip Frame 114
Symbol 507 MovieClip Frame 128
stop();
Symbol 508 MovieClip Frame 1
function onSpace() {
if (((!objVars.bitAttacking) && (!objVars.bitJumping)) && (!objVars.bitFalling)) {
mcDeady.origY = mcDeady._y;
mcDeady.acc = 18;
objVars.bitJumping = true;
mcDeady.gotoAndPlay("Jump");
}
}
function onMouseClick() {
if (!objVars.bitFalling) {
if (!objVars.bitAttacking) {
objVars.bitAttacking = true;
if (objVars.bitJumping) {
mcDeady.gotoAndPlay("JumpAttack");
} else {
mcDeady.gotoAndPlay("Attack");
}
}
}
}
function deadyAttack() {
for (var _local2 in this) {
if ((!this[_local2].isDead) && (mcDeady.mcHit.hitTest(this[_local2].mcHit))) {
this[_local2].onHit();
}
}
}
function deadyHit() {
if (!objVars.bitJumping) {
objVars.bitAttacking = false;
mcDeady.gotoAndPlay("Hit");
_root.stage.hpBar.resizeBar(10);
}
}
var bgSpeed = 24;
var initSpeed = bgSpeed;
var charging = false;
var spawnCount = 0;
var spawnReq = 200;
var objVars = new Object();
objVars.bitAttacking = false;
objVars.bitJumping = false;
objVars.bitFalling = false;
var myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
onSpace();
}
};
myListener.onMouseDown = function () {
onMouseClick();
};
Key.addListener(myListener);
Mouse.addListener(myListener);
mcDeady.onEnterFrame = function () {
if (objVars.bitAttacking) {
if (!charging) {
bgSpeed = bgSpeed + 5;
charging = true;
}
} else if (this.hit) {
bgSpeed = 0;
} else {
charging = false;
bgSpeed = initSpeed;
}
if (objVars.bitJumping) {
this._y = this._y - (this.acc--);
if (this._y >= this.origY) {
this._y = this.origY;
objVars.bitJumping = false;
objVars.bitAttacking = false;
this.gotoAndPlay("Walk");
}
}
};
mcDeady.gotoAndPlay("Walk");
stop();
Instance of Symbol 51 MovieClip "bg1" in Symbol 508 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg2._x + _parent.bg2._width) - _parent.bgSpeed);
}
}
Instance of Symbol 51 MovieClip "bg2" in Symbol 508 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - _parent.bgSpeed);
if (_x <= (-_width)) {
_x = ((_parent.bg1._x + _parent.bg1._width) - _parent.bgSpeed);
}
}
Instance of Symbol 351 MovieClip "health" in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = intSpawnX;
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit._x + (_parent.mcPit.width * 2)));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 15)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (_width * -1)) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.stage.hpBar.resizeBar(-30);
respawn();
}
}
Instance of Symbol 220 MovieClip "powerUp" in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
roll = Math.random() * 100;
if (roll > 50) {
_y = 200;
} else {
_y = 400;
}
_x = 2000;
if (this.hitTest(_parent.health)) {
_x = (_x + (_parent.health._x + 600));
}
intCombo = _root.intKills;
intSpeed = _parent.initSpeed + 5;
}
intSpawnX = _x;
xpValue = 1;
intCombo = _root.intKills;
respawn();
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.mcPit)) {
_x = (_x + (_parent.mcPit.width * 2));
}
if (_root.intKills > (intCombo + 10)) {
this._x = this._x - _parent.bgSpeed;
}
if (this._x < (-(_width * 2))) {
respawn();
}
if (this.hitTest(_parent.mcDeady)) {
_root.audio.playLoop(4, 1);
_root.powerUp++;
if (_root.powerUp > 3) {
_root.powerUp = 3;
}
respawn();
}
}
Instance of Symbol 271 MovieClip "mcPit" in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function respawn() {
isDead = false;
bitAttacking = false;
summoned = false;
_width = Math.round((Math.random() * 50) + 350);
_x = (intSpawnX + Math.round(Math.random() * 1000));
gotoAndPlay ("Walk");
}
intSpawnX = _x;
summoned = false;
respawn();
}
onClipEvent (enterFrame) {
if (summoned) {
_x = (_x - _parent.bgSpeed);
}
if (this._x <= (_width * -1)) {
respawn();
}
if (this.fallZone.hitTest(_parent.mcDeady.pitFallZone)) {
_root.audio.playLoop(6, 1);
_parent.deadyHit();
_parent.mcDeady.gotoAndPlay("Falling");
}
}
Instance of Symbol 416 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function respawn() {
_parent.spawnCount++;
if (_parent.spawnCount > _parent.spawnReq) {
_root.stage.play();
}
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 416 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function onHit() {
_root.audio.playLoop(5, 1);
_root.audio.playLoop(1, 1);
_root.stage.xpBar.resizeBar(xpValue);
_root.stage.playScore();
isDead = true;
bitOverride = true;
_root.playSound("Skeleton_Hit_Shatter1.wav");
gotoAndPlay ("KO");
}
function respawn() {
_parent.spawnCount++;
if (_parent.spawnCount > _parent.spawnReq) {
_root.stage.play();
}
intSpeed = _parent.initSpeed + 10;
isDead = false;
_x = intSpawnX;
_y = intSpawnY;
gotoAndPlay ("Walk");
}
intSpawnX = _x;
intSpawnY = _y;
xpValue = 3;
respawn();
}
onClipEvent (enterFrame) {
if (isDead) {
this._x = this._x - _parent.bgSpeed;
this._y = this._y + 18;
if (_y >= 400) {
_y = 400;
}
} else if (_parent.bgSpeed == 0) {
this._x = this._x - 10;
} else if (_parent.charging) {
this._x = this._x - (_parent.bgSpeed + 5);
} else {
this._x = this._x - this.intSpeed;
}
if (this._x <= (_width * -1)) {
respawn();
}
}
Instance of Symbol 369 MovieClip "mcDeady" in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function onKeyDown() {
if (_root.powerUp > 0) {
code = Key.getCode();
if (code == 86) {
if (((!_parent.objVars.bitAttacking) && (!_parent.objVars.bitJumping)) && (!_parent.objVars.bitFalling)) {
_parent.mcDeady.origY = _parent.mcDeady._y;
_parent.mcDeady.acc = 18;
_parent.objVars.bitJumping = true;
gotoAndPlay ("JumpAttack2");
_root.powerUp--;
if (_root.powerUp < 0) {
_root.powerUp = 0;
}
}
}
}
}
Key.addListener(this);
}
Instance of Symbol 507 MovieClip "Eyeboss" in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
function attack() {
if (!castingTeleport) {
gotoAndPlay ("Cast1");
}
}
function onAttack() {
if (this.staffHit.hitTest(_parent.mcDeady)) {
_parent.audio.playLoop(1, 1);
_parent.deadyHit();
}
}
function onHit() {
trace("hit boss");
_root.audio.playLoop(1, 1);
gotoAndPlay ("Hit");
hp = hp - 20;
_root.stage.xpBar.resizeBar(20);
if (hp < 1) {
isDead = true;
}
}
function teleport() {
_xscale = (_xscale * -1);
_alpha = 0;
Teleporting = true;
_x = intX;
intSpeedX = (-_parent.initSpeed) + 8;
}
isDead = false;
bitAttacking = false;
castingTeleport = false;
Teleporting = false;
intX = _x;
intSpeedX = (-_parent.initSpeed) + 4;
hp = 300;
gotoAndPlay ("Walk");
onEnterFrame = function () {
if (!castingTeleport) {
if ((!bitAttacking) && ((this._x - _parent.mcDeady._x) < (this._width * 3))) {
attack();
} else {
if (_parent.charging) {
if (intSpeedX < 0) {
_x = (_x - (_parent.bgSpeed - 4));
} else {
_x = (_x - (_parent.bgSpeed + 4));
}
} else {
_x = (_x + intSpeedX);
}
if (_x <= (0 + (_width / 4))) {
stop();
if (intSpeedX < 0) {
_xscale = (_xscale * -1);
intSpeedX = intSpeedX * -1;
}
gotoAndPlay ("Cast2");
}
if (_x >= (750 - (_width / 4))) {
if (intSpeedX > 0) {
_xscale = (_xscale * -1);
intSpeedX = intSpeedX * -1;
}
}
}
} else {
_alpha = (_alpha + 10);
if (_alpha > 100) {
_alpha = 100;
}
}
};
}
Symbol 513 MovieClip Frame 1
_parent.hideHUD();
Instance of Symbol 510 MovieClip "0" in Symbol 513 MovieClip Frame 1
/* no clip actions */
Symbol 513 MovieClip Frame 33
_root.stage.play();
Symbol 521 Button
on (release) {
_root.audio.destroy(16, 800);
_parent._parent.gotoAndPlay("Ready");
}
Symbol 526 MovieClip Frame 15
stop();
Symbol 534 Button
on (release) {
_root.intKills = 0;
_root.totalScore = 0;
_root.powerUp = 0;
_root.audio.stopLoop(13);
_root.audio.playLoop(16, 99999);
_root.stage.musicChannel = 16;
_root.audio.playLoop(15, 1);
gotoAndPlay(currentLevel);
}
Symbol 535 MovieClip Frame 1
function showBlocker() {
blocker.gotoAndPlay(1);
blocker._visible = true;
}
function hideBlocker() {
blocker._visible = false;
}
function showHud() {
hud._visible = true;
valPose._visible = true;
valName._visible = true;
hpBar._visible = true;
xpBar._visible = true;
hpOuter._visible = true;
xpOuter._visible = true;
}
function hideHud() {
hud._visible = false;
valPose._visible = false;
valName._visible = false;
hpBar._visible = false;
xpBar._visible = false;
hpOuter._visible = false;
xpOuter._visible = false;
}
function playScore() {
_root.intKills++;
hud.mcScore.gotoAndPlay(2);
}
function playScore() {
_root.intKills++;
hud.mcScore.gotoAndPlay(2);
}
audioFader = 50;
musicChannel = 16;
_root.startTime = getTimer();
_root.powerUp = 0;
_root.intKills = 0;
_root.intGold = 0;
_root.totalScore = 0;
_root.func = new Object();
_root.func.roll = function (intMin, intMax) {
if (intMin == undefined) {
intMin = 0;
}
if (intMax == undefined) {
intMax = 100;
}
return(Number(Math.floor(Math.random() * ((intMax - intMin) + 1)) + intMin));
};
hideBlocker();
hideHud();
gotoAndPlay ("csDesert");
_root.audio.playLoop(15, 1);
gotoAndPlay ("csDesert");
Instance of Symbol 296 MovieClip "hpBar" in Symbol 535 MovieClip Frame 1
onClipEvent (load) {
function init() {
maxStatPoints = 100;
currentSp = 100;
maxWidth = 300;
_width = maxWidth;
barType = "health";
}
function setType(type) {
barType = type;
}
function resizeBar(sp) {
trace("foo");
currentSp = currentSp - sp;
if (currentSp < 1) {
currentSp = 0;
if (barType == "health") {
_parent.gotoAndPlay("Death");
}
} else if (currentSp > maxStatPoints) {
currentSp = maxStatPoints;
}
sizeTransform = maxWidth * (currentSp / maxStatPoints);
_width = sizeTransform;
}
trace(targetPath(this));
var maxStatPoints;
var currentSp;
var maxWidth;
var sizeTransform;
var barType;
init();
}
Instance of Symbol 296 MovieClip "xpBar" in Symbol 535 MovieClip Frame 1
onClipEvent (load) {
function init() {
maxStatPoints = 100;
currentSp = 0;
maxWidth = 300;
_width = 0;
barType = "xp";
}
function setMaxStat(num) {
maxStatPoints = num;
}
function setType(type) {
barType = type;
}
function resizeBar(sp) {
currentSp = currentSp + sp;
if (currentSp > maxStatPoints) {
currentSp = maxStatPoints;
_parent.play();
}
sizeTransform = maxWidth * (currentSp / maxStatPoints);
_width = sizeTransform;
}
trace(targetPath(this));
var maxStatPoints;
var currentSp;
var maxWidth;
var sizeTransform;
var barType;
init();
}
Symbol 535 MovieClip Frame 9
hideHud();
currentLevel = "csDesert";
_root.gameLevel = "Level 1";
_root.subLevel = "Temple of Gloom";
_root.audio.fader(16, 10);
_quality = "HIGH";
Symbol 535 MovieClip Frame 16
stop();
Symbol 535 MovieClip Frame 17
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(50);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 23
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.deadyHit = null;
mcGame.onEnterFrame = null;
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 24
hideHud();
currentLevel = "csOasis";
_root.audio.fader(16, 10);
_root.gameLevel = "Level 2";
_root.subLevel = "A sight to 'Behold'!";
_quality = "HIGH";
Symbol 535 MovieClip Frame 30
stop();
Symbol 535 MovieClip Frame 31
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(100);
_quality = "LOW";
_root.audio.fader(16, audioFader);
stop();
Symbol 535 MovieClip Frame 36
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.deadyHit = null;
mcGame.onEnterFrame = null;
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 37
hideHud();
currentLevel = "csOasis2";
_root.audio.fader(16, 10);
_root.gameLevel = "Level 3";
_root.subLevel = "King Komodo";
_quality = "HIGH";
Symbol 535 MovieClip Frame 44
stop();
Symbol 535 MovieClip Frame 45
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(100);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 51
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.onEnterFrame = null;
mcGame.deadyHit = null;
mcGame.komodo.lizard.gotoAndPlay("KO");
mcGame.komodo.stop();
mcGame.komodo.lizard.onEnterFrame = function () {
_root.stage.mcGame.komodo.lizard._alpha = _root.stage.mcGame.komodo.lizard._alpha - 5;
if (_root.stage.mcGame.komodo.lizard._alpha < 0) {
_root.stage.mcGame.komodo.lizard._alpha = 0;
}
};
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 52
hideHud();
currentLevel = "csPyramid";
_root.audio.fader(16, 10);
_root.gameLevel = "Level 4";
_root.subLevel = "Cry Home to Mummy!";
_quality = "HIGH";
Symbol 535 MovieClip Frame 59
stop();
Symbol 535 MovieClip Frame 60
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(200);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 66
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.onEnterFrame = null;
mcGame.deadyHit = null;
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 67
hideHud();
currentLevel = "csPyramidEyes";
_root.audio.fader(16, 10);
_root.gameLevel = "Level 5";
_root.subLevel = "Eye, eye, Captain!";
_quality = "HIGH";
Symbol 535 MovieClip Frame 75
stop();
Symbol 535 MovieClip Frame 76
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(250);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 85
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.onEnterFrame = null;
mcGame.deadyHit = null;
mcGame.mcBoulder.flatten = null;
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 86
hideHud();
currentLevel = "csPyramid3";
_root.audio.fader(16, 10);
_root.gameLevel = "Level 6";
_root.subLevel = "Easiest level... EVER!";
_quality = "HIGH";
Symbol 535 MovieClip Frame 94
stop();
Symbol 535 MovieClip Frame 95
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(250);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 102
mcGame.onSpace = null;
mcGame.onMouseClick = null;
mcGame.onEnterFrame = null;
mcGame.deadyHit = null;
mcGame.mcBoulder.flatten = null;
_root.audio.playLoop(15, 1);
stop();
Symbol 535 MovieClip Frame 103
hideHud();
currentLevel = "csBoss";
_root.audio.fader(16, 10);
_root.gameLevel = "BOSS";
_root.subLevel = "The Irismancer";
_quality = "HIGH";
Symbol 535 MovieClip Frame 109
stop();
Symbol 535 MovieClip Frame 110
showHud();
hpBar.init();
xpBar.init();
xpBar.setMaxStat(300);
_root.audio.fader(16, audioFader);
_quality = "LOW";
stop();
Symbol 535 MovieClip Frame 120
hideHud();
_root.gameLevel = "Temple";
_root.subLevel = "Irismancer";
_root.audio.stopLoop(16);
_root.audio.playLoop(15, 1);
_quality = "HIGH";
Symbol 535 MovieClip Frame 125
stop();
Symbol 535 MovieClip Frame 126
_root.endTime = getTimer();
_root.audio.fader(14, 50);
_root.audio.playLoop(14, 1);
_root.gameTime = _root.endTime - _root.startTime;
_root.totalScore = Math.round((_root.intKills * 1000) - (_root.gameTime / 1000));
if (_root.totalScore < 0) {
_root.totalScore = 0;
}
stop();
_quality = "HIGH";
Symbol 535 MovieClip Frame 135
_root.endTime = getTimer();
_root.gameTime = _root.endTime - _root.startTime;
_root.audio.stopLoop(16);
_root.audio.playLoop(13, 99999);
musicChannel = 13;
_root.totalScore = Math.round((_root.intKills * 1000) - (_root.gameTime / 1000));
if (_root.totalScore < 0) {
_root.totalScore = 0;
}
hideHud();
stop();
_quality = "HIGH";