Frame 1
function doLoading() {
var _local1 = getBytesLoaded() / getBytesTotal();
if (_local1 == 1) {
clearInterval(loader);
gotoAndStop ("game");
}
}
var loader = setInterval(doLoading, 5);
stop();
Instance of Symbol 408 MovieClip "mcKeyListener" in Frame 1
onClipEvent (load) {
_global.oControls = new smashing.utility.controls(this);
trace(_global.oControls);
this.fUp = function () {
_global.bDown = false;
_global.bLeft = false;
_global.bRight = false;
_global.bUp = true;
};
this.fDown = function () {
_global.bUp = false;
_global.bLeft = false;
_global.bRight = false;
_global.bDown = true;
};
this.fLeft = function () {
_global.bUp = false;
_global.bDown = false;
_global.bRight = false;
_global.bLeft = true;
};
this.fRight = function () {
_global.bUp = false;
_global.bDown = false;
_global.bLeft = false;
_global.bRight = true;
};
this.fUpUp = function () {
_global.bUp = false;
};
this.fDownUp = function () {
_global.bDown = false;
};
this.fLeftUp = function () {
_global.bLeft = false;
};
this.fRightUp = function () {
_global.bRight = false;
};
_global.oControls.bindKey(38, "onKeyPress", this.fUp);
_global.oControls.bindKey(40, "onKeyPress", this.fDown);
_global.oControls.bindKey(37, "onKeyPress", this.fLeft);
_global.oControls.bindKey(39, "onKeyPress", this.fRight);
_global.oControls.bindKey(38, "onKeyRelease", this.fUpUp);
_global.oControls.bindKey(40, "onKeyRelease", this.fDownUp);
_global.oControls.bindKey(37, "onKeyRelease", this.fLeftUp);
_global.oControls.bindKey(39, "onKeyRelease", this.fRightUp);
}
Frame 5
function init() {
PROJECT_CLIP.init();
}
var PROJECT_CLIP = project;
init();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 6
play();
Symbol 68 MovieClip Frame 11
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 68 MovieClip Frame 15
play();
Symbol 68 MovieClip Frame 20
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 68 MovieClip Frame 25
play();
Symbol 68 MovieClip Frame 30
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 68 MovieClip Frame 35
play();
Symbol 68 MovieClip Frame 40
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 68 MovieClip Frame 45
play();
Symbol 68 MovieClip Frame 50
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 68 MovieClip Frame 55
play();
Symbol 68 MovieClip Frame 58
stop();
Symbol 68 MovieClip Frame 65
play();
Symbol 68 MovieClip Frame 68
stop();
Symbol 68 MovieClip Frame 75
play();
Symbol 68 MovieClip Frame 78
stop();
Symbol 68 MovieClip Frame 85
play();
Symbol 68 MovieClip Frame 88
stop();
Symbol 68 MovieClip Frame 95
play();
Symbol 68 MovieClip Frame 98
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 6
play();
Symbol 73 MovieClip Frame 11
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 73 MovieClip Frame 15
play();
Symbol 73 MovieClip Frame 20
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 73 MovieClip Frame 25
play();
Symbol 73 MovieClip Frame 30
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 73 MovieClip Frame 35
play();
Symbol 73 MovieClip Frame 40
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 73 MovieClip Frame 45
play();
Symbol 73 MovieClip Frame 50
if (look == 1) {
gotoAndPlay ("open01");
} else if (look == 2) {
gotoAndPlay ("open02");
} else if (look == 3) {
gotoAndPlay ("open03");
} else if (look == 4) {
gotoAndPlay ("open04");
} else if (look == 5) {
gotoAndPlay ("open05");
} else if (look == 6) {
stop();
}
Symbol 73 MovieClip Frame 55
play();
Symbol 73 MovieClip Frame 58
stop();
Symbol 73 MovieClip Frame 65
play();
Symbol 73 MovieClip Frame 68
stop();
Symbol 73 MovieClip Frame 75
play();
Symbol 73 MovieClip Frame 78
stop();
Symbol 73 MovieClip Frame 85
play();
Symbol 73 MovieClip Frame 88
stop();
Symbol 73 MovieClip Frame 95
play();
Symbol 73 MovieClip Frame 98
stop();
Symbol 82 Button
on (release) {
_parent.onIntroAnimationComplete();
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 10
stop();
Symbol 193 MovieClip Frame 20
stop();
Symbol 193 MovieClip Frame 30
stop();
Symbol 226 MovieClip Frame 21
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 623
stop();
_parent.onIntroAnimationComplete();
Symbol 411 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 435 Button
on (release) {
_parent.clickUIButton();
}
Symbol 449 MovieClip Frame 75
_parent.runFadeOut();
Symbol 449 MovieClip Frame 83
_parent.onLevelTransitionComplete();
stop();
Symbol 475 MovieClip Frame 127
_parent.endGame();
stop();
Symbol 476 MovieClip [Project] Frame 1
#initclip 40
Object.registerClass("Project", nickjr.diego.mazegame.Engine);
#endinitclip
Symbol 476 MovieClip [Project] Frame 2
goIntro();
Symbol 874 MovieClip [__Packages.smashing.utility.controls] Frame 0
class smashing.utility.controls
{
var __engine, __keyListener, __keyBindings;
function controls (e) {
var me = this;
__engine = e;
__keyListener = new Object();
__keyBindings = new Array();
__keyListener.onKeyDown = function () {
me.onKeyDown(Key.getCode());
};
__keyListener.onKeyUp = function () {
me.onKeyUp(Key.getCode());
};
Key.addListener(__keyListener);
}
function onKeyDown(code) {
var _local2 = getKeyEventBinding(code, "onKeyPress");
if (_local2 != undefined) {
_local2.handler(__engine);
}
}
function onKeyUp(code) {
var _local2 = getKeyEventBinding(code, "onKeyRelease");
if (_local2 != undefined) {
_local2.handler(__engine);
}
}
function getKeyBinding(code) {
var _local2 = 0;
while (_local2 < __keyBindings.length) {
if (__keyBindings[_local2].code == code) {
return(__keyBindings[_local2]);
}
_local2++;
}
return(undefined);
}
function getKeyEventBinding(code, event) {
var _local2 = 0;
while (_local2 < __keyBindings.length) {
if ((__keyBindings[_local2].code == code) && (__keyBindings[_local2].event == event)) {
return(__keyBindings[_local2]);
}
_local2++;
}
return(undefined);
}
function bindKey(code, event, handler) {
var _local2 = getKeyEventBinding(code, event);
if (_local2 == undefined) {
_local2 = new Object();
__keyBindings.push(_local2);
}
switch (event) {
case "onKeyDown" :
case "onKeyPress" :
case "onKeyRelease" :
_local2.code = code;
_local2.event = event;
_local2.handler = handler;
break;
}
}
function update(deltaTime) {
var _local2 = 0;
while (_local2 < __keyBindings.length) {
if (__keyBindings[_local2].event != "onKeyDown") {
} else if (Key.isDown(__keyBindings[_local2].code)) {
__keyBindings[_local2].handler(__engine);
}
_local2++;
}
}
}
Symbol 875 MovieClip [__Packages.nickjr.diego.mazegame.Engine] Frame 0
class nickjr.diego.mazegame.Engine extends MovieClip
{
var __gameStartTime, __interval, sound, viewport_mc, activeWorld, __a_levelData, gotoAndPlay, isPaused, __updateUI, __levelNum, __lives, __score, __fps, __fps_timer, _parent, gotoAndStop, isUILocked, __health, __maya, fadeout_mc, fadein_mc, mouse, mouseHD_mc, _xmouse, _ymouse, key, state, anim, nav_mc;
function Engine () {
super();
}
function init() {
__gameStartTime = getTimer();
super.init();
__interval = new smashing.keithm.IntervalEngine(this, "update");
__interval.startFast();
sound = new nickjr.diego.mazegame.Sounds(viewport_mc);
nickjr.diego.mazegame.Dimensions.init();
smashing.keithm.Viewport.init(viewport_mc, 2, nickjr.diego.mazegame.Dimensions.getInstance());
var _local3 = smashing.keithm.Viewport.getInstance();
_local3.setScrollport(1);
_local3.createGroup({name:"bg", index:0, slots:20, scrollport:true});
_local3.createGroup({name:"edge", index:1, slots:20, scrollport:true});
_local3.createGroup({name:"patch", index:2, slots:20});
_local3.createGroup({name:"cell", index:3, slots:500});
_local3.createGroup({name:"pickup", index:4, slots:100});
_local3.createGroup({name:"effect", index:5, slots:100, sortAxis:"", reverse:false});
_local3.createGroup({name:"dynamic", index:6, slots:100, sortAxis:"y", ascending:true});
_local3.reset();
activeWorld = new nickjr.diego.mazegame.World();
activeWorld.init(this);
__a_levelData = [];
__hardLevels();
__initMouse();
__initKey();
(gotoAndPlay("title"));// not popped
}
function update(el) {
if (el > 0.2) {
el = 0.2;
}
if (!isPaused) {
activeWorld.update(el);
if (__updateUI) {
updateUI();
__updateUI = false;
}
}
updateAfterEvent();
}
function reset() {
__levelNum = __STARTLEVEL;
__lives = __STARTLIVES;
__score = 0;
__fps = (__fps_timer = 0);
__updateUI = true;
}
function startGame() {
reset();
startLevel();
}
function startLevel() {
goGameplay();
state_game();
sound.playMusic(__levelNum);
runFadeIn();
activeWorld.generate(__a_levelData[__levelNum]);
smashing.keithm.Viewport.getInstance().newView();
unlockUI();
unpause();
activeWorld.start();
playSound("letsgo");
}
function nextLevel() {
__levelNum++;
if (__levelNum > (__a_levelData.length - 1)) {
winGame();
} else {
startLevel();
}
}
function endLevel() {
activeWorld.end();
smashing.keithm.Viewport.getInstance().newView();
sound.stopMusic(__levelNum);
sound.playTransMusic();
goNextLevel();
}
function stopGame() {
activeWorld.end();
smashing.keithm.Viewport.getInstance().newView();
pause();
}
function endGame() {
sound.stopAll();
__interval.clear();
_parent.shell.endGame(__score, true);
}
function destroy() {
__interval.clear();
__clearMouse();
__clearKey();
}
function winGame() {
trace("Win Game");
pause();
(gotoAndStop("end"));// not popped
}
function gameOver() {
goGameOver();
}
function pause() {
isPaused = true;
}
function unpause() {
isPaused = false;
}
function lockUI() {
isUILocked = true;
}
function unlockUI() {
isUILocked = false;
}
function addScore(t_score) {
__score = __score + t_score;
__updateUI = true;
}
function loseHealth(t_amount) {
if (t_amount == undefined) {
t_amount = 1;
}
__health = __health - t_amount;
if (__health <= 0) {
loseLife();
}
__updateUI = true;
}
function loseLife() {
__lives--;
if (__lives <= 0) {
gameOver();
} else {
startLevel();
}
requestUpdateUI();
}
function requestUpdateUI() {
__updateUI = true;
}
function playSound(t_name, t_loops) {
if (t_loops == undefined) {
sound.playSound(t_name);
} else {
sound.playSound(t_name, t_loops);
}
}
function playOptionalVO(t_name) {
if (!sound.__get__isQueuePlaying()) {
sound.queueSound(t_name);
}
}
function stopSound(t_name) {
sound.stopSound(t_name);
}
function queueSound(t_name) {
sound.queueSound(t_name);
}
function startNextLevelFanfare(dino) {
__maya = dino;
sound.stopMusic(__levelNum);
sound.c("fanfare", this, "endNextLevelFanfare");
}
function endNextLevelFanfare() {
__maya.leave();
__maya = null;
if (__levelNum == 2) {
queueSound("winLevel2");
} else if (__levelNum == 3) {
queueSound("winLevel3");
} else if (__levelNum == 4) {
} else {
queueSound("winLevel1");
}
}
function runFadeOut() {
fadeout_mc.gotoAndPlay(2);
}
function runFadeIn() {
hideFadeOut();
fadein_mc.gotoAndPlay(2);
}
function hideFadeOut() {
fadeout_mc.gotoAndStop(1);
}
function hideFadeIn() {
fadein_mc.gotoAndStop(1);
}
function __initMouse() {
mouse = {};
mouse.owner = this;
mouse.onMouseUp = function () {
this.owner.mouse_up();
};
Mouse.addListener(mouse);
}
function __clearMouse() {
Mouse.removeListener(mouse);
}
function mouse_up() {
if (!isPaused) {
if (mouseHD_mc.hitTest(_xmouse, _ymouse)) {
activeWorld.setTargetPoint(_xmouse, _ymouse);
}
}
}
function __initKey() {
key = {};
key.owner = this;
key.onKeyDown = function () {
this.owner.key_down();
};
Key.addListener(key);
}
function __clearKey() {
Key.removeListener(key);
}
function key_down() {
if (Key.getCode() == 32) {
activeWorld.forcePlayerTossFruit();
} else if ((Key.getCode() == 87) && (Key.isDown(16))) {
_parent.shell.endGame(__score, true);
}
}
function key_up() {
if (Key.getCode(32)) {
}
}
function __addLevel(t_levelData) {
t_levelData.engine = this;
__a_levelData.push(t_levelData);
}
function __loadLevels(t_data) {
}
function __hardLevels() {
var _local3 = [new nickjr.diego.mazegame.levels.Level1(), new nickjr.diego.mazegame.levels.Level2(), new nickjr.diego.mazegame.levels.Level3(), new nickjr.diego.mazegame.levels.Level4(), new nickjr.diego.mazegame.levels.Level5()];
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].loadData();
__addLevel(_local3[_local2]);
_local2++;
}
}
function parseMainXML() {
}
function get score() {
return(__score);
}
function get lives() {
return(__lives);
}
function get health() {
return(__health);
}
function get gameStartTime() {
return(__gameStartTime);
}
function state_game() {
state = "g";
}
function state_menu() {
state = "m";
}
function goIntro() {
pause();
(gotoAndStop("intro"));// not popped
}
function goStartLevel(t_levelName) {
pause();
(gotoAndStop("startLevel"));// not popped
}
function goGameplay() {
(gotoAndStop("game"));// not popped
updateUI();
}
function goGameOver() {
pause();
(gotoAndStop("lose"));// not popped
}
function goGameWin() {
pause();
(gotoAndStop("win"));// not popped
}
function goNextLevel() {
pause();
runFadeIn();
(gotoAndStop("levelTrans"));// not popped
if (activeWorld.exitLeft) {
anim._xscale = -100;
}
}
function updateUI() {
nav_mc.txt_level.text = __levelNum + 1;
nav_mc.score_mc.txt_score.text = score;
}
function onLevelTransitionComplete() {
nextLevel();
}
function onIntroAnimationComplete() {
stopAllSounds();
startGame();
}
function clickUIButton() {
_parent.shell.endGame(__score, false);
}
function clickPlay() {
startGame();
}
function clickPlayAgain() {
goGameplay();
reset();
startLevel();
}
var __STARTLIVES = 3;
var __STARTHEALTH = 3;
var __STARTLEVEL = 0;
}
Symbol 876 MovieClip [__Packages.smashing.keithm.SoundEngine] Frame 0
class smashing.keithm.SoundEngine
{
var __mc, o_sounds, o_groups, __a_soundQueue, __flag_muted, __flag_overwrite, __groupCount, __callbackPath, __callbackFunc;
function SoundEngine (t_path, t_depth, t_overwrite) {
__mc = t_path.createEmptyMovieClip(__DEFAULTMCNAME, t_depth);
o_sounds = {};
o_groups = {};
__a_soundQueue = [];
__flag_muted = false;
if (t_overwrite == undefined) {
t_overwrite = false;
}
__flag_overwrite = t_overwrite;
__groupCount = 0;
createGroup(__DEFAULTGROUPNAME);
trace("-- Init Sound Engine -- ");
}
function setCallback(path, func) {
__callbackPath = path;
__callbackFunc = func;
}
function createGroup(t_name) {
__groupCount++;
var _local2 = __mc.createEmptyMovieClip(t_name, __groupCount);
_local2.soundObject = new Sound(_local2);
o_groups[t_name] = _local2;
}
function createSound(t_name, t_assetID, t_groupName, doCallback) {
var _local4;
if (((t_groupName == undefined) || (t_groupName == "")) || (t_groupName == null)) {
_local4 = o_groups[__DEFAULTGROUPNAME];
} else {
_local4 = o_groups[t_groupName];
}
if (_local4 != undefined) {
var _local2 = {};
_local2.soundEffect = new Sound(_local4);
_local2.soundEffect.attachSound(t_assetID);
if (doCallback == undefined) {
doCallback = false;
}
_local2.doCallback = doCallback;
o_sounds[t_name] = _local2;
} else {
trace(("Error Locating Group " + t_groupName) + " for create Sound");
}
}
function playSound(t_soundName, t_loops, t_queued) {
if (__flag_muted) {
return(undefined);
}
var _local2 = o_sounds[t_soundName];
if (_local2 != undefined) {
if (t_loops == undefined) {
t_loops = 1;
} else if (t_loops == 0) {
t_loops = 100000 /* 0x0186A0 */;
}
if (__flag_overwrite) {
_local2.soundEffect.stop();
}
if (t_queued == true) {
__a_soundQueue[0].doCallback = _local2.doCallback;
_local2.soundEffect.onSoundComplete = mx.utils.Delegate.create(this, onQueuedSoundComplete);
} else if (_local2.doCallback) {
_local2.soundEffect.owner = this;
_local2.soundEffect.myName = t_soundName;
_local2.soundEffect.onSoundComplete = function () {
this.owner.onCallbackSoundComplete(this.myName);
};
}
_local2.soundEffect.start(0, t_loops);
} else {
trace(("Error - sound " + t_soundName) + " not found");
}
}
function stopSound(t_soundName) {
o_sounds[t_soundName].soundEffect.stop();
}
function stopAll() {
clearQueue();
stopAllSounds();
}
function changeVolume(t_vol, t_groupName) {
if (t_groupName == undefined) {
t_groupName = __DEFAULTGROUPNAME;
}
o_groups[t_groupName].soundObject.setVolume(t_vol);
}
function toggleSound() {
if (__flag_muted) {
soundOn();
} else {
soundOff();
}
return(!__flag_muted);
}
function soundOff() {
__flag_muted = true;
}
function soundOn() {
__flag_muted = false;
}
function callbackSound(t_soundName, t_loops, path, func) {
playSound(t_soundName, t_loops, false);
var _local2 = o_sounds[t_soundName];
_local2.soundEffect.cbpath = path;
_local2.soundEffect.cbfunc = func;
_local2.soundEffect.onSoundComplete = function () {
this.cbpath[func]();
this.onSoundComplete = null;
};
}
function onCallbackSoundComplete(name) {
__callbackPath[__callbackFunc](name);
}
function queueSound(t_soundName) {
__a_soundQueue.push({soundName:t_soundName, isPlaying:false, doCallback:false});
__playQueue();
}
function __playQueue() {
if (__a_soundQueue.length == 0) {
return(undefined);
}
if (!__a_soundQueue[0].isPlaying) {
playSound(__a_soundQueue[0].soundName, 1, true);
__a_soundQueue[0].isPlaying = true;
}
}
function onQueuedSoundComplete() {
if (__a_soundQueue[0].doCallback) {
onCallbackSoundComplete(__a_soundQueue[0].soundName);
}
__a_soundQueue.splice(0, 1);
__playQueue();
}
function clearQueue() {
__a_soundQueue = [__a_soundQueue[0]];
}
function get queueLength() {
return(__a_soundQueue.length);
}
function get isQueuePlaying() {
if (__a_soundQueue.length == 0) {
return(false);
}
return(true);
}
var __DEFAULTMCNAME = "soundEngine_MC";
var __DEFAULTGROUPNAME = "sound";
}
Symbol 877 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 878 MovieClip [__Packages.nickjr.diego.mazegame.Sounds] Frame 0
class nickjr.diego.mazegame.Sounds extends smashing.keithm.SoundEngine
{
var createGroup, createSound, changeVolume, playSound, queueSound, callbackSound, stopSound, __get__isQueuePlaying;
function Sounds (path) {
super(path, __DEPTH, __DO_OVERWRITE);
createGroup("music");
createSound("music0", "dda_eggisland_v4_level1.wav", "music");
createSound("music1", "dda_eggisland_v4_level2.wav", "music");
createSound("music2", "dda_eggisland_v4_level3.wav", "music");
createSound("music4", "dda_eggisland_v7_level4.wav", "music");
changeVolume(47, "music");
createSound("click", "click.wav");
createSound("amber1", "g5_diego_amber.wav");
createSound("amber2", "g5_diego_ooo_amber.wav");
createSound("amber3", "g5_diego_yay_amber.wav");
createSound("wrongFruit1", "g5_diego_oops_thats_not_the_right_fruit.wav");
createSound("wrongFruit2", "g5_diego_not_a_match_try_again.wav");
createSound("rightFruit1", "g5_diego_you_found_the_right_fruit.wav");
createSound("rightFruit2", "g5_diego_you_did_it.wav");
createSound("gobble", "g5_feedCorrect.wav");
createSound("reject", "g5_feedNOTCorrect.wav");
createSound("winLevel1", "g5_diego_you_reached_the_Maiasaura.wav");
createSound("winLevel2", "g5_diego_way_to_go_youre_getting_closer_to_egg_island.wav");
createSound("winLevel3", "g5_diego_youre_almost_to_egg_island.wav");
createSound("letsgo", "g5_diego_lets_go_amigos.wav");
createSound("fanfare", "dda_fanfare_v1_03.wav", "music");
createSound("timeout", "timeout_use_keys.WAV");
createSound("pickupFruit", "g5_fruit_pickup.wav", "", true);
createSound("pickupAmber", "dda_pickupamberv1.wav", "", true);
}
function p(name) {
playSound(name, 1);
}
function q(name) {
queueSound(name);
}
function c(name, cbpath, cbfunc) {
callbackSound(name, 1, cbpath, cbfunc);
}
function playMusic(level) {
if (level == 3) {
level = 0;
}
playSound("music" + level, 0);
}
function stopMusic(level) {
if (level == 3) {
level = 0;
}
stopSound("music" + level, 0);
}
function playTransMusic() {
}
function playOptional(t_name) {
if (!__get__isQueuePlaying()) {
queueSound(t_name);
}
}
var __DEPTH = 20;
var __DO_OVERWRITE = false;
}
Symbol 879 MovieClip [__Packages.nickjr.diego.mazegame.World] Frame 0
class nickjr.diego.mazegame.World
{
var engine, __targetPoint, __hunger_timer, __hunger_rate, __hunger_points, __force_fruit_toss, __player, __camera, loop, __entitys, __effects, __grid, loopb, __scenery, exitLeft;
function World () {
}
function init(t_engine) {
engine = t_engine;
}
function start() {
renderGrid(0);
__targetPoint = null;
__hunger_timer = __hunger_rate;
__hunger_points = 0;
__force_fruit_toss = false;
}
function end() {
}
function update(el) {
_global.oControls.update(el);
if (el > 0.2) {
el = 0.2;
}
__player.update(el);
if (__player.hasChangedCells()) {
runGridHD(el, __player);
}
__camera.update(el, __player);
if (__camera.has_moved) {
renderGrid(el);
}
loop = __entitys.length;
var _local3;
while (loop--) {
_local3 = __entitys[loop];
if (_local3.doUpdate) {
_local3.update(el);
if (_local3.isPathing()) {
trace("Pathing : " + _local3.TYPE);
runGridHD(el, _local3);
runFruitDinoHD(el, _local3);
}
if (_local3.isDrawn) {
if (__player.runHD_entity_box(_local3, el)) {
_local3.hitReact(__player);
}
}
_local3.render(__camera, el);
}
}
__player.render(__camera, el);
if (__targetPoint != null) {
__targetPoint.render(__camera, el);
}
__hunger_timer = __hunger_timer - el;
if (__hunger_timer < 0) {
__hunger_points++;
if (__hunger_points < 0) {
__hunger_points = 0;
}
__hunger_timer = __hunger_rate;
}
loop = __effects.length;
while (loop--) {
_local3 = __effects[loop];
if (!_local3.isAlive) {
__effects.splice(loop, 1);
}
_local3.update(el);
_local3.render(__camera, el);
}
if (__force_fruit_toss) {
__player.tossFruit(this, "tossedFruitCallback");
__force_fruit_toss = false;
}
}
function runFruitDinoHD(el, fruit) {
var _local4 = __entitys.length;
var _local2;
while (_local4--) {
_local2 = __entitys[_local4];
if (((_local2.TYPE == "dino") && (_local2 != fruit)) && (_local2.isAlive)) {
if (fruit.runHD_entity_box(_local2, el)) {
trace("collide : " + _local2.TYPE);
fruit.hitReact(_local2);
}
}
}
}
function feedDino(fruit, dino) {
fruit.eaten();
dino.feed();
__player.freeze();
var _local2 = dino.value - __hunger_points;
if (_local2 <= 0) {
_local2 = 1;
}
engine.addScore(_local2);
}
function dinoDoneFeeding() {
__player.unfreeze();
}
function forcePlayerTossFruit() {
__force_fruit_toss = true;
}
function tossedFruitCallback(result) {
trace("Fruit callback");
__player.unfreeze();
}
function drawTargetPoint(t_x, t_y) {
if (__targetPoint != null) {
clearTargetPoint();
}
__targetPoint = new smashing.keithm.Effect({x:t_x, y:t_y, asset:"moveTarget_mc", owner:this});
__targetPoint.spawn();
}
function clearTargetPoint() {
__targetPoint.erase();
__targetPoint = null;
}
function setTargetPoint(t_x, t_y) {
__player.setTargetPoint(__camera.left + t_x, __camera.top + t_y);
}
function runGridHD(el, entity) {
if ((entity.nextCellY() == 0) || (entity.nextCellY() == (__grid[0].length - 1))) {
entity.onGridCollision(el);
return(undefined);
}
if (!__grid[entity.nextCellX()][entity.nextCellY()].canPass(entity)) {
entity.onGridCollision(el);
}
}
function renderGrid(el) {
loop = __grid.length;
while (loop--) {
loopb = __grid[loop].length;
while (loopb--) {
if (__grid[loop][loopb].renderMe) {
__grid[loop][loopb].render(__camera, el);
}
}
}
loop = __scenery.length;
while (loop--) {
__scenery[loop].render(__camera, el);
}
}
function generate(ldata) {
__camera = new nickjr.diego.mazegame.DiegoCamera({x:ldata.camera.x, y:ldata.camera.y, dimensions:nickjr.diego.mazegame.Dimensions.getInstance()});
__camera.setBounds(0, ldata.grid_width * nickjr.diego.mazegame.Dimensions.getInstance().CELL_WIDTH, 0, ldata.grid_height * nickjr.diego.mazegame.Dimensions.getInstance().CELL_HEIGHT);
__hunger_rate = ldata.hungerRate;
ldata.player.owner = this;
ldata.player.camera = __camera;
__player = new nickjr.diego.mazegame.ents.Player(ldata.player);
__grid = [];
loop = ldata.grid_width;
while (loop--) {
__grid[loop] = [];
loopb = ldata.grid_height;
while (loopb--) {
__grid[loop][loopb] = new nickjr.diego.mazegame.cells.Cell({x:loop, y:loopb, owner:this, camera:__camera});
}
}
var _local2 = ldata.walls.length;
var _local4;
var _local5;
var _local10 = ["huge", "long", "wide", "tall"];
while (_local2--) {
ldata.walls[_local2].owner = this;
ldata.walls[_local2].camera = __camera;
_local5 = false;
loop = _local10.length;
while (loop--) {
if (ldata.walls[_local2].type.indexOf(_local10[loop]) != -1) {
__grid[ldata.walls[_local2].x][ldata.walls[_local2].y] = new nickjr.diego.mazegame.cells.Wall_Large(ldata.walls[_local2]);
loop = 0;
_local5 = true;
}
}
if (!_local5) {
__grid[ldata.walls[_local2].x][ldata.walls[_local2].y] = new nickjr.diego.mazegame.cells.Wall(ldata.walls[_local2]);
}
}
__entitys = [];
_local2 = ldata.dinos.length;
while (_local2--) {
ldata.dinos[_local2].owner = this;
ldata.dinos[_local2].camera = __camera;
if (ldata.dinos[_local2].type == "maya") {
__entitys.push(new nickjr.diego.mazegame.ents.Dino_Maya(ldata.dinos[_local2]));
} else if (ldata.dinos[_local2].type == "euo") {
__entitys.push(new nickjr.diego.mazegame.ents.Dino_Euo(ldata.dinos[_local2]));
} else if (ldata.dinos[_local2].type == "gryp") {
__entitys.push(new nickjr.diego.mazegame.ents.Dino_Gryp(ldata.dinos[_local2]));
} else if (ldata.dinos[_local2].type == "igu") {
__entitys.push(new nickjr.diego.mazegame.ents.Dino_Igu(ldata.dinos[_local2]));
} else if (ldata.dinos[_local2].type == "brach") {
__entitys.push(new nickjr.diego.mazegame.ents.Dino_Brach(ldata.dinos[_local2]));
}
}
_local2 = ldata.fruits.length;
while (_local2--) {
ldata.fruits[_local2].owner = this;
ldata.fruits[_local2].camera = __camera;
__entitys.push(new nickjr.diego.mazegame.ents.Fruit(ldata.fruits[_local2]));
}
_local2 = ldata.randomFruits.length;
while (_local2--) {
_local4 = Math.floor(Math.random() * ldata.randomFruits[_local2].length);
if (_local4 == ldata.randomFruits[_local2].length) {
_local4--;
}
ldata.randomFruits[_local2][_local4].owner = this;
ldata.randomFruits[_local2][_local4].camera = __camera;
__entitys.push(new nickjr.diego.mazegame.ents.Fruit(ldata.randomFruits[_local2][_local4]));
}
_local2 = ldata.pickups.length;
while (_local2--) {
ldata.pickups[_local2].owner = this;
ldata.pickups[_local2].camera = __camera;
__entitys.push(new nickjr.diego.mazegame.ents.Pickup(ldata.pickups[_local2]));
}
_local2 = ldata.randomPickups.length;
while (_local2--) {
_local4 = Math.floor(Math.random() * ldata.randomPickups[_local2].length);
if (_local4 == ldata.randomPickups[_local2].length) {
_local4--;
}
ldata.randomPickups[_local2][_local4].owner = this;
ldata.randomPickups[_local2][_local4].camera = __camera;
__entitys.push(new nickjr.diego.mazegame.ents.Pickup(ldata.randomPickups[_local2][_local4]));
}
__scenery = [];
_local2 = ldata.scenery.length;
while (_local2--) {
ldata.scenery[_local2].owner = this;
ldata.scenery[_local2].camera = __camera;
if (ldata.scenery[_local2].type == "ground") {
__scenery.push(new nickjr.diego.mazegame.ents.Scenery(ldata.scenery[_local2]));
} else if (ldata.scenery[_local2].type == "edge") {
__scenery.push(new nickjr.diego.mazegame.ents.Scenery_Edge(ldata.scenery[_local2]));
} else {
__scenery.push(new nickjr.diego.mazegame.ents.Scenery_Patch(ldata.scenery[_local2]));
}
}
__effects = [];
exitLeft = ldata.exitLeft;
}
function addScore(val) {
engine.addScore(val);
}
function addTimeBonus() {
var _local2 = 5 - __hunger_points;
if (_local2 < 0) {
_local2 = 0;
}
engine.addScore(_local2);
}
function levelComplete() {
engine.endLevel();
}
function runFadeOut() {
engine.runFadeOut();
}
function requestOptionalVO(t_name) {
engine.playOptionalVO(t_name);
}
function requestVO(t_name) {
engine.queueSound(t_name);
}
function requestSound(t_name) {
engine.playSound(t_name);
}
}
Symbol 880 MovieClip [__Packages.smashing.keithm.VCamera] Frame 0
class smashing.keithm.VCamera
{
var __dimensions, x, y, z, __enforce_bounds, fl, farClip, __bound_left, __bound_right, __bound_top, __bound_bottom, left, right, top, bottom;
function VCamera (t_data) {
__dimensions = t_data.dimensions;
x = (y = (z = 0));
if (t_data.x != undefined) {
x = t_data.x;
}
if (t_data.y != undefined) {
y = t_data.y;
}
if (t_data.z != undefined) {
z = t_data.z;
}
__enforce_bounds = false;
fl = fl_DEF;
farClip = __DEF_CLIP;
refresh_edges();
}
function update(el) {
if (__enforce_bounds) {
if (x < __bound_left) {
x = __bound_left;
} else if (x > __bound_right) {
x = __bound_right;
}
if (y < __bound_top) {
y = __bound_top;
} else if (y > __bound_bottom) {
y = __bound_bottom;
}
}
}
function setBounds(left, right, top, bottom) {
__enforce_bounds = true;
__bound_left = left + __dimensions.HALF_WIDTH;
__bound_right = right - __dimensions.HALF_WIDTH;
__bound_top = top + __dimensions.HALF_HEIGHT;
__bound_bottom = bottom - __dimensions.HALF_HEIGHT;
}
function refresh_edges() {
left = x - __dimensions.HALF_WIDTH;
right = x + __dimensions.HALF_WIDTH;
top = y - __dimensions.HALF_HEIGHT;
bottom = y + __dimensions.HALF_HEIGHT;
}
function get sc() {
return(__dimensions.sc);
}
function screenWidth() {
return(__dimensions.SCREEN_WIDTH);
}
function screenHeight() {
return(__dimensions.SCREEN_WIDTH);
}
function halfWidth() {
return(__dimensions.HALF_WIDTH);
}
function halfHeight() {
return(__dimensions.HALF_HEIGHT);
}
function toString() {
return((((("Camera : focus : " + x) + " , ") + y) + " , ") + z);
}
var __DEF_CLIP = 100000;
var fl_DEF = 1000;
var __EDGE_PADDING = 50;
}
Symbol 881 MovieClip [__Packages.nickjr.diego.mazegame.DiegoCamera] Frame 0
class nickjr.diego.mazegame.DiegoCamera extends smashing.keithm.VCamera
{
var x, __dimensions, y, refresh_edges, has_moved;
function DiegoCamera (t_data) {
super(t_data);
x = x * __dimensions.CELL_WIDTH;
y = y * __dimensions.CELL_HEIGHT;
refresh_edges();
has_moved = true;
}
function update(el, player) {
has_moved = false;
var _local5 = player.nextX - x;
var _local4 = player.nextY - y;
if (_local5 > __SCROLL_TETHER_H) {
x = player.nextX - __SCROLL_TETHER_H;
has_moved = true;
} else if (_local5 < (-__SCROLL_TETHER_H)) {
x = player.nextX + __SCROLL_TETHER_H;
has_moved = true;
}
if (_local4 > __SCROLL_TETHER_V) {
y = player.nextY - __SCROLL_TETHER_V;
has_moved = true;
} else if (_local4 < (-__SCROLL_TETHER_V)) {
y = player.nextY + __SCROLL_TETHER_V;
has_moved = true;
}
super.update(el);
refresh_edges();
}
var __ENFORCE_BOUNDS = true;
var __SCROLL_TETHER_H = 80;
var __SCROLL_TETHER_V = 50;
}
Symbol 882 MovieClip [__Packages.nickjr.diego.mazegame.Dimensions] Frame 0
class nickjr.diego.mazegame.Dimensions
{
static var __instance;
function Dimensions () {
}
static function init() {
__instance = new nickjr.diego.mazegame.Dimensions();
}
static function getInstance() {
return(__instance);
}
function get screenWidth() {
return(SCREEN_WIDTH);
}
function get screenHeight() {
return(SCREEN_HEIGHT);
}
function get halfWidth() {
return(HALF_WIDTH);
}
function get halfHeight() {
return(HALF_HEIGHT);
}
var SCREEN_WIDTH = 600;
var SCREEN_HEIGHT = 345;
var HALF_WIDTH = nickjr.diego.mazegame.Dimensions.prototype.SCREEN_WIDTH / 2;
var HALF_HEIGHT = 172;
var CELL_WIDTH = 60;
var CELL_HEIGHT = 60;
var CELL_WIDTH_HALF = nickjr.diego.mazegame.Dimensions.prototype.CELL_WIDTH / 2;
var CELL_HEIGHT_HALF = nickjr.diego.mazegame.Dimensions.prototype.CELL_HEIGHT / 2;
var sc = {x:nickjr.diego.mazegame.Dimensions.prototype.SCREEN_WIDTH / 2, y:172};
}
Symbol 883 MovieClip [__Packages.smashing.keithm.Renderable] Frame 0
class smashing.keithm.Renderable
{
var mc, baseWidth, baseHeight, hdWidth, hdHeight, radius, doUpdate, owner, __DEF_ASSET, assetID, startX, startY, startZ, depthInfluence, isSpawned, x, y, z, __onscreen, isDrawn, isAlive, isHidden, __flag_scaleChanged, scale, startScale, cdiffx, cdiffy, hdReg;
function Renderable (t_data) {
mc = null;
baseWidth = __DEF_WIDTH;
baseHeight = __DEF_HEIGHT;
if (__USE_DIMENSIONS_AS_HD) {
hdWidth = baseWidth / 2;
hdHeight = baseHeight / 2;
radius = hdWidth;
} else {
hdWidth = __DEF_HD_WIDTH;
hdHeight = __DEF_HD_HEIGHT;
radius = __DEF_HD_WIDTH;
}
setHDRegistration();
doUpdate = __DO_UPDATE;
init(t_data);
}
function init(t_data) {
if (t_data.owner == undefined) {
trace("ERROR! NO OWNER SENT TO ELEMENT : " + TYPE);
}
owner = t_data.owner;
if (t_data.asset == undefined) {
t_data.asset = __DEF_ASSET;
}
assetID = t_data.asset;
if (t_data.x == undefined) {
t_data.x = 0;
}
startX = t_data.x;
if (t_data.y == undefined) {
t_data.y = 0;
}
startY = t_data.y;
if (t_data.z == undefined) {
t_data.z = __DEF_Z;
}
startZ = t_data.z;
if (t_data.depthInfluence == undefined) {
t_data.depthInfluence = 0;
}
depthInfluence = t_data.depthInfluence;
if (t_data.camera != undefined) {
initScale(t_data.camera);
}
isSpawned = false;
}
function get drawWhenKilled() {
return(__DRAW_WHEN_KILLED);
}
function spawn() {
isSpawned = true;
reset();
}
function reset() {
x = startX;
y = startY;
z = startZ;
__onscreen = false;
if (((mc == undefined) || (mc == null)) || (mc == "")) {
isDrawn = false;
}
isAlive = true;
isHidden = false;
}
function onDraw(t_newmc) {
isDrawn = true;
mc = t_newmc;
if (isHidden) {
mc._visible = false;
}
if (__USE_ACTUAL_DIMENSIONS) {
baseWidth = mc._width;
baseHeight = mc._height;
setHDRegistration();
}
if (__USE_DIMENSIONS_AS_HD) {
hdWidth = baseWidth / 2;
hdHeight = baseHeight / 2;
radius = hdWidth;
}
__flag_scaleChanged = true;
mc._x = -1000 - baseWidth;
mc._y = -1000 - baseHeight;
}
function update(el) {
}
function move(el) {
}
function fullUpdate(el) {
}
function render(camera, el) {
if (isHidden || ((!isAlive) && (!__DRAW_WHEN_KILLED))) {
return(undefined);
}
updateDraw(camera);
mc._x = ((x - camera.x) * scale) + camera.__get__sc().x;
mc._y = ((y - camera.y) * scale) + camera.__get__sc().y;
if (__3D_SCALE) {
if (z < camera.z) {
return(undefined);
}
var _local3 = camera.fl / (z - camera.z);
if (scale != _local3) {
scale = _local3;
mc._xscale = (mc._yscale = 100 * (1 + (scale - startScale)));
}
}
}
function renderDirect(camera) {
mc._x = x;
mc._y = y;
}
function initScale(camera) {
startScale = (scale = camera.fl / (startZ - camera.z));
}
function updateDraw(camera) {
__onscreen = false;
if (CUSTOMDRAW) {
__onscreen = true;
}
if (z >= camera.z) {
if (!__CAREFUL_DRAW) {
if (((Math.abs((x - camera.x) * scale) < (camera.__get__sc().x + baseWidth)) && (Math.abs((y - camera.y) * scale) < (camera.__get__sc().y + baseHeight))) && ((z - camera.z) < camera.farClip)) {
__onscreen = true;
}
} else {
cdiffx = (x - camera.x) * scale;
cdiffy = (y - camera.y) * scale;
if ((((cdiffx < camera.halfWidth()) && (cdiffx > ((-baseWidth) - camera.halfWidth()))) && (cdiffy < camera.halfHeight())) && (cdiffy > ((-baseHeight) - camera.halfHeight()))) {
__onscreen = true;
}
}
}
if ((!isDrawn) && (__onscreen)) {
smashing.keithm.Viewport.getInstance().draw({element:this});
} else if (isDrawn && (!__onscreen)) {
requestErase();
}
}
function onErase(t_viewport) {
isDrawn = false;
mc = null;
if (!isSpawned) {
return(undefined);
}
if (__KILL_ON_ERASE) {
kill();
}
}
function despawn() {
isAlive = false;
isSpawned = false;
}
function requestErase() {
smashing.keithm.Viewport.getInstance().erase({element:this});
}
function requestDepthSort() {
smashing.keithm.Viewport.getInstance().requestGroupDepthSort(DRAWTYPE);
}
function requestDepthChange() {
smashing.keithm.Viewport.getInstance().requestDepthChange(this);
}
function deleteMe() {
}
function kill() {
isAlive = false;
if ((!__DRAW_WHEN_KILLED) && (isDrawn)) {
requestErase();
}
}
function hide() {
if (isDrawn) {
mc._visible = false;
}
isHidden = true;
}
function show() {
if (isDrawn) {
mc._visible = true;
}
isHidden = false;
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
function animate(t_frame, t_subFrame) {
mc.gotoAndStop(t_frame);
if (t_subFrame != undefined) {
mc.anim.gotoAndStop(t_subFrame);
}
}
function toString() {
return("Renderable: " + TYPE);
}
function drawHitBox() {
var _local3 = hdReg.x;
var _local4 = hdReg.y;
var _local2 = mc.createEmptyMovieClip("hitbox", 1);
_local2.beginFill(16751103, 50);
_local2.lineStyle(2, 16751103, 100);
_local2.moveTo(_local3 - hdWidth, _local4 - hdHeight);
_local2.lineTo(_local3 + hdWidth, _local4 - hdHeight);
_local2.lineTo(_local3 + hdWidth, _local4 + hdHeight);
_local2.lineTo(_local3 - hdWidth, _local4 + hdHeight);
_local2.lineTo(_local3 - hdWidth, _local4 - hdHeight);
_local2.endFill();
}
function drawReg() {
var _local2 = mc.createEmptyMovieClip("hitbox", 1);
_local2.beginFill(16751103, 50);
_local2.lineStyle(2, 16751103, 100);
_local2.moveTo(-5, -5);
_local2.lineTo(5, -5);
_local2.lineTo(5, 5);
_local2.lineTo(-5, 5);
_local2.lineTo(-5, -5);
}
var TYPE = "element";
var DRAWTYPE = "element";
var CUSTOMDRAW = false;
var __DEF_Z = 1000;
var __3D_SCALE = false;
var __DEF_WIDTH = 50;
var __DEF_HEIGHT = 50;
var __USE_ACTUAL_DIMENSIONS = true;
var __CAREFUL_DRAW = false;
var __DEF_HD_WIDTH = 25;
var __DEF_HD_HEIGHT = 25;
var __USE_DIMENSIONS_AS_HD = true;
var __DRAW_WHEN_KILLED = true;
var __KILL_ON_ERASE = false;
var __DO_UPDATE = true;
}
Symbol 884 MovieClip [__Packages.smashing.keithm.Viewport] Frame 0
class smashing.keithm.Viewport
{
static var __a_groups, __o_groups, __dimensions, __viewportPath, __viewportDepth, __useScrollport, __instance, __scrollportDepth, mc, scrollmc;
function Viewport (t_path, t_depth, dimensions) {
__a_groups = [];
__o_groups = {};
__dimensions = dimensions;
__viewportPath = t_path;
__viewportDepth = t_depth;
__useScrollport = false;
trace("-- Init Viewport --");
}
static function init(t_path, t_depth, dimensions) {
__instance = new smashing.keithm.Viewport(t_path, t_depth, dimensions);
}
static function getInstance() {
return(__instance);
}
function setScrollport(t_depth) {
__useScrollport = true;
__scrollportDepth = t_depth;
}
function reset() {
var _local6 = __a_groups.length;
var _local2;
var _local5 = [];
var _local3 = 0;
while (_local5.length < _local6) {
_local2 = __a_groups.length;
while (_local2--) {
if (__a_groups[_local2].index < __a_groups[_local3].index) {
_local3 = _local2;
}
}
_local5.push(__a_groups[_local3]);
__a_groups.splice(_local3, 1);
}
__a_groups = _local5;
var _local4 = __defaultMCDepth;
_local2 = 0;
while (_local2 < __a_groups.length) {
_local4 = __a_groups[_local2].init(_local4);
_local4++;
_local2++;
}
newView();
}
function newView() {
var _local1 = __a_groups.length;
while (_local1--) {
__a_groups[_local1].reset();
}
if (mc != undefined) {
mc.removeMovieClip();
}
mc = __viewportPath.createEmptyMovieClip("viewport" + __viewportDepth, __viewportDepth);
if (__useScrollport) {
if (scrollmc != undefined) {
scrollmc.removeMovieClip();
}
scrollmc = __viewportPath.createEmptyMovieClip("scrollport" + __scrollportDepth, __scrollportDepth);
scrollmc.scrollRect = new flash.geom.Rectangle(0, 0, __dimensions.SCREEN_WIDTH, __dimensions.SCREEN_HEIGHT);
}
}
function clearGroup(t_group) {
var _local2 = __o_groups[t_group].mcs;
while (_local2.length > 0) {
__eraseAsset(_local2[0].mc, t_group);
}
}
function draw(t_data) {
var _local4;
if (t_data.element != undefined) {
var _local3 = t_data.element;
if (!_local3.isSpawned) {
trace(("WARNING: despawned entity " + _local3.assetID) + " received draw request.");
return(undefined);
}
_local4 = __drawElement(_local3);
if (_local4 != undefined) {
_local3.onDraw(_local4, getInstance());
// unexpected jump
}
trace("ERROR DRAWING ASSET " + _local3.assetID);
return(undefined);
}
if (t_data.assetID == "_empty") {
return(__drawEmpty(t_data.groupName, t_data.depth + t_data.depthInfluence));
}
return(__drawAsset(t_data.assetID, t_data.groupName, t_data.depth + t_data.depthInfluence));
}
function erase(t_data) {
if (t_data.element != undefined) {
__eraseAsset(t_data.element.mc, t_data.element.DRAWTYPE);
t_data.element.onErase(getInstance());
} else {
__eraseAsset(t_data.mc, t_data.groupName);
}
}
function createGroup(t_data) {
__a_groups.push((__o_groups[t_data.name] = new smashing.keithm.ViewportGroup(t_data)));
}
function requestGroupDepthSort(t_group) {
__o_groups[t_group].requestDepthSort();
}
function requestDepthChange(t_element) {
__o_groups[t_element.DRAWTYPE].requestDepthChange(t_element);
}
function __drawElement(t_element) {
var _local5;
var _local2 = __o_groups[t_element.DRAWTYPE];
var _local7 = _local2.getDepth(t_element[_local2.sortAxis] + t_element.depthInfluence);
var _local3 = mc;
if (_local2.scrollport) {
_local3 = scrollmc;
}
if (t_element.assetID == "_empty") {
var _local4 = _local3.createEmptyMovieClip(t_element.DRAWTYPE + _local7, _local7);
} else {
var _local4 = _local3.attachMovie(t_element.assetID, t_element.assetID + _local7, _local7);
}
_local2.mcs.push({mc:_local4, depth:_local7});
_local5.initScale();
return(_local4);
}
function __drawAsset(t_asset, t_groupName, t_depth) {
var _local1 = __o_groups[t_groupName];
var _local6 = _local1.getDepth(t_depth);
var _local3 = mc;
if (_local1.scrollport) {
_local3 = scrollmc;
}
var _local2 = _local3.attachMovie(t_asset, t_asset + _local6, _local6);
_local1.mcs.push({mc:_local2, depth:_local6});
return(_local2);
}
function __drawEmpty(t_groupName, t_depth) {
var _local3 = __o_groups[t_groupName];
var _local6 = _local3.getDepth(t_depth);
var _local2 = mc;
if (_local3.scrollport) {
_local2 = scrollmc;
}
var _local1 = _local2.createEmptyMovieClip(t_groupName + _local6, _local6);
__o_groups[t_groupName].mcs.push({mc:_local1, depth:_local6});
return(_local1);
}
function __eraseAsset(t_mc, t_groupName) {
var _local2 = __o_groups[t_groupName];
var _local1 = _local2.mcs.length;
while (_local1--) {
if (_local2.mcs[_local1].mc == t_mc) {
_local2.mcs[_local1].mc.removeMovieClip();
_local2.mcs.splice(_local1, 1);
return(undefined);
}
}
}
function toString() {
return("Viewport exists");
}
static var __defaultMCDepth = 100;
}
Symbol 885 MovieClip [__Packages.smashing.keithm.ViewportGroup] Frame 0
class smashing.keithm.ViewportGroup
{
var name, mcs, index, numSlots, sortAxis, ascending, reverse, scrollport, min, max, current, isSearching, loop;
function ViewportGroup (t_data) {
name = t_data.name;
mcs = [];
index = t_data.index;
numSlots = t_data.slots;
if (t_data.sortAxis == undefined) {
t_data.sortAxis = "";
}
sortAxis = t_data.sortAxis;
if ((sortAxis != "") && (numSlots < 10000)) {
numSlots = 10000;
}
if (t_data.ascending == undefined) {
t_data.ascending = false;
}
ascending = t_data.ascending;
if (t_data.reverse == undefined) {
t_data.reverse = false;
}
reverse = t_data.reverse;
if (t_data.scrollport == undefined) {
t_data.scrollport = false;
}
scrollport = t_data.scrollport;
}
function init(t_depth) {
min = t_depth;
max = t_depth + numSlots;
reset();
return(max);
}
function reset() {
mcs = [];
if (reverse) {
current = max;
} else {
current = min;
}
}
function requestDepthChange(t_element) {
t_element.mc.swapDepths(__getChangedDepth(t_element));
}
function requestDepthSort() {
trace("Request Depth Sort not implemented yet. Better get to work!");
}
function getDepth(t_depth) {
if (sortAxis != "") {
return(__getNewDepth(t_depth));
}
increment();
return(current);
}
function increment() {
isSearching = true;
while (isSearching) {
if (reverse) {
current--;
if (current < min) {
current = max;
}
} else {
current++;
if (current > max) {
current = min;
}
}
isSearching = false;
loop = mcs.length;
while (loop--) {
if (mcs[loop].depth == current) {
isSearching = true;
loop = 0;
}
}
}
}
function __getNewDepth(depth) {
if (depth < 0) {
trace("Error : Depth cannot be under zero");
return(undefined);
}
if (ascending) {
depth = min + Math.ceil(depth);
} else {
depth = max - Math.ceil(depth);
}
loop = mcs.length;
while (loop--) {
if (mcs[loop].depth == depth) {
if (ascending) {
depth++;
} else {
depth--;
}
loop = mcs.length;
}
}
return(depth);
}
function __getChangedDepth(t_element) {
var _local2 = Math.ceil(t_element[sortAxis]);
if (_local2 < 0) {
trace("Error : Depth cannot be under zero");
return(undefined);
}
if (ascending) {
_local2 = min + _local2;
} else {
_local2 = max - _local2;
}
var _local3 = -1;
loop = mcs.length;
while (loop--) {
if (mcs[loop].mc == t_element.mc) {
_local3 = loop;
} else if (mcs[loop].depth == _local2) {
if (ascending) {
_local2++;
} else {
_local2--;
}
loop = mcs.length;
}
}
mcs[_local3].depth = _local2;
return(_local2);
}
}
Symbol 886 MovieClip [__Packages.smashing.keithm.Element] Frame 0
class smashing.keithm.Element extends smashing.keithm.Renderable
{
var mass, bounciness, startSpin, startVelocity, owner, startGravity, velocity, gravityVector, rotation, spin, isSpinning, nextX, x, nextY, y, nextZ, z, mc, hdReg, radius, hdWidth, hdHeight, TYPE;
function Element (t_data) {
super(t_data);
}
function init(t_data) {
super.init(t_data);
if (t_data.mass == undefined) {
mass = __DEF_MASS;
} else {
mass = t_data.mass;
}
if (t_data.bounce == undefined) {
bounciness = __DEF_BOUNCY;
} else {
bounciness = t_data.bounce;
}
if (t_data.spin != undefined) {
startSpin = t_data.spin;
} else {
startSpin = 0;
}
if (t_data.move != undefined) {
startVelocity = t_data.move;
} else {
startVelocity = new smashing.keithm.Point3D(0, 0, 0);
}
if (owner.gravity != undefined) {
startGravity = owner.gravity;
} else {
startGravity = new smashing.keithm.Point3D(0, 0, 0);
}
}
function reset() {
velocity = startVelocity.copy();
gravityVector = startGravity.copy();
rotation = 0;
spin = startSpin;
if (startSpin == 0) {
isSpinning = false;
} else {
isSpinning = true;
}
super.reset();
}
function update(el) {
if (__USE_GRAVITY) {
addVelocity(gravityVector, el);
}
if (spin != 0) {
isSpinning = true;
}
rotation = rotation + (spin * el);
nextX = x + (velocity.x * el);
nextY = y + (velocity.y * el);
nextZ = z + (velocity.z * el);
}
function move(el) {
x = x + (velocity.x * el);
y = y + (velocity.y * el);
z = z + (velocity.z * el);
}
function fullUpdate(el) {
if (__USE_GRAVITY) {
addVelocity(gravityVector, el);
}
if (spin != 0) {
isSpinning = true;
}
rotation = rotation + (spin * el);
nextX = (x = x + (velocity.x * el));
nextY = (y = y + (velocity.y * el));
nextZ = (z = z + (velocity.z * el));
}
function render(camera, el) {
super.render(camera, el);
if (isSpinning) {
mc._rotation = rotation;
isSpinning = false;
}
}
function runHD_entity_radius(t_target, el) {
var _local4 = (nextX + hdReg.x) - ((t_target.x + (t_target.velocity.x * el)) + t_target.hdReg.x);
var _local3 = (nextY + hdReg.y) - ((t_target.y + (t_target.velocity.y * el)) + t_target.hdReg.y);
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local5 <= (t_target.radius + radius)) {
return(true);
}
return(false);
}
function runHD_entity_box(t_target, el) {
var _local3 = {x:false, y:false};
if (Math.abs((nextX + hdReg.x) - ((t_target.x + (t_target.velocity.x * el)) + t_target.hdReg.x)) < (hdWidth + t_target.hdWidth)) {
_local3.x = true;
}
if (Math.abs((nextY + hdReg.y) - ((t_target.y + (t_target.velocity.y * el)) + t_target.hdReg.y)) < (hdHeight + t_target.hdHeight)) {
_local3.y = true;
}
if (_local3.x && (_local3.y)) {
return(true);
}
return(false);
}
function runHD_entity_3D(t_target, el) {
var _local3 = z - t_target.z;
var _local2 = (nextZ + radius) - t_target.z;
if ((_local3 * _local2) <= 0) {
return(runHD_entity_radius(t_target, el));
}
return(false);
}
function runHD_line_sphere(t_lineStart, t_lineEnd, el) {
var _local4 = new smashing.keithm.Point3D(t_lineStart.x, t_lineStart.y, 0);
var _local3 = new smashing.keithm.Point3D(t_lineEnd.x, t_lineEnd.y, 0);
var _local6 = _local4.x - _local3.x;
var _local7 = _local4.y - _local3.y;
var _local2 = getLineSeperation(_local3, {x:x, y:y}, _local6, _local7);
var _local5;
if (_local2.distance <= radius) {
_local5 = new smashing.keithm.Point3D(x + _local2.xSeparation, y + _local2.ySeparation);
return(true);
}
_local5.x = (_local5.y = 0);
return(false);
}
function runHD_line_sphere_complex(t_lineStart, t_lineEnd, el) {
var _local5 = new smashing.keithm.Point3D(t_lineStart.x, t_lineStart.y, 0);
var _local7 = new smashing.keithm.Point3D(t_lineEnd.x, t_lineEnd.y, 0);
var _local8;
var _local16 = getDistBetween(_local5, {x:x, y:y});
var _local15 = getDistBetween(_local7, {x:x, y:y});
var _local11 = getDistBetween(_local5, _local7);
var _local4 = new smashing.keithm.Point3D(_local5.x, _local5.y);
var _local9 = new smashing.keithm.Point3D(_local7.x, _local7.y);
var _local12 = _local9.x - _local4.x;
var _local13 = _local9.y - _local4.y;
var _local3 = _local12 / _local11;
var _local2 = _local13 / _local11;
var _local10;
_local4.subtractScalarMe(_local3 * radius, _local2 * radius);
_local9.addScalarMe(_local3 * radius, _local2 * radius);
var _local6 = getLineSeperation(_local5, {x:x, y:y}, _local12, _local13);
_local12 = _local9.x - _local4.x;
_local13 = _local9.y - _local4.y;
var _local14 = getLineSeperation(_local4, {x:x, y:y}, _local12, _local13);
if (_local6.distance <= radius) {
if (_local15 > _local11) {
_local8 = Math.sqrt((radius * radius) - (_local14.distance * _local14.distance));
_local3 = _local3 * _local8;
_local2 = _local2 * _local8;
(x + _local14.xSeparation) + _local3;
_local10 = (y + _local14.ySeparation) + _local2;
} else {
_local8 = Math.sqrt((radius * radius) - (_local6.distance * _local6.distance));
_local3 = _local3 * _local8;
_local2 = _local2 * _local8;
(x + _local6.xSeparation) + _local3;
_local10 = (y + _local6.ySeparation) + _local2;
if (getDistBetween(_local5, _local10) >= _local11) {
_local10.copy(_local7);
}
}
return(true);
}
_local10.x = (_local10.y = 0);
return(false);
}
function getLineSeperation(p0, s, dx, dy) {
var _local1 = new Object();
var _local5 = p0.x - s.x;
var _local6 = p0.y - s.y;
var _local7 = (dx * dx) + (dy * dy);
var _local2 = (-((_local5 * dx) + (_local6 * dy))) / _local7;
_local2 = Math.min(Math.max(_local2, 0), 1);
_local1.xSeparation = _local5 + (_local2 * dx);
_local1.ySeparation = _local6 + (_local2 * dy);
_local1.distance = Math.sqrt((_local1.xSeparation * _local1.xSeparation) + (_local1.ySeparation * _local1.ySeparation));
return(_local1);
}
function getDistBetween(p0, p1) {
return(Math.sqrt((p1.x - p0.x) * (p1.x - p0.x)) + ((p1.y - p0.y) * (p1.y - p0.y)));
}
function hitReact(t_target) {
}
function replaceVelocity(t_vector) {
velocity = t_vector.copy();
}
function inputVelocity(t_vector) {
velocity.x = velocity.x + t_vector.x;
velocity.y = velocity.y + t_vector.y;
velocity.z = velocity.z + t_vector.z;
}
function addVelocity(t_vector, el, maxVelocity, xMult, yMult, zMult) {
if (maxVelocity == undefined) {
maxVelocity = __MAX_VELOCITY;
}
zMult = 1;
yMult = zMult;
xMult = yMult;
if ((Math.abs(velocity.x) < maxVelocity) || ((velocity.x * t_vector.x) < 0)) {
velocity.x = velocity.x + ((t_vector.x * el) * xMult);
}
if ((Math.abs(velocity.y) < maxVelocity) || ((velocity.y * t_vector.y) < 0)) {
velocity.y = velocity.y + ((t_vector.y * el) * yMult);
}
if ((Math.abs(velocity.z) < maxVelocity) || ((velocity.z * t_vector.z) < 0)) {
velocity.z = velocity.z + ((t_vector.z * el) * zMult);
}
}
function decelVelocityX(el, t_friction) {
if (t_friction == undefined) {
t_friction = 1;
}
if (velocity.x < 0) {
velocity.x = velocity.x + ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.x > 0) {
velocity.x = 0;
}
return(undefined);
}
velocity.x = velocity.x - ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.x < 0) {
velocity.x = 0;
}
}
function decelVelocityY(el, t_friction) {
if (t_friction == undefined) {
t_friction = 1;
}
if (velocity.y < 0) {
velocity.y = velocity.y + ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.y > 0) {
velocity.y = 0;
}
return(undefined);
}
velocity.y = velocity.y - ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.y < 0) {
velocity.y = 0;
}
}
function decelVelocityZ(el, t_friction) {
if (t_friction == undefined) {
t_friction = 1;
}
if (velocity.z < 0) {
velocity.z = velocity.z + ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.z > 0) {
velocity.z = 0;
}
return(undefined);
}
velocity.z = velocity.z - ((__DECELERATION_DECAY * t_friction) * el);
if (velocity.z < 0) {
velocity.z = 0;
}
}
function decayVelocityX(t_decay) {
if (t_decay == undefined) {
t_decay = __COLLISION_DECAY;
}
if (bounciness) {
t_decay = t_decay / bounciness;
}
velocity.x = velocity.x * (1 - t_decay);
}
function decayVelocityY(t_decay) {
if (t_decay == undefined) {
t_decay = __COLLISION_DECAY;
}
if (bounciness) {
t_decay = t_decay / bounciness;
}
velocity.y = velocity.y * (1 - t_decay);
}
function decayVelocityZ(t_decay) {
if (t_decay == undefined) {
t_decay = __COLLISION_DECAY;
}
if (bounciness) {
t_decay = t_decay / bounciness;
}
velocity.z = velocity.z * (1 - t_decay);
}
function invertVelocityX() {
velocity.x = velocity.x * -1;
}
function invertVelocityY() {
velocity.y = velocity.y * -1;
}
function invertVelocityZ() {
velocity.z = velocity.z * -1;
}
function magnitudeToVector(t_magnitude, t_angle) {
var _local2;
var _local1;
var _local3 = t_angle * (Math.PI/180);
_local2 = t_magnitude * Math.cos(_local3);
_local2 = Math.round(_local2 * 100) / 100;
_local1 = t_magnitude * Math.sin(_local3);
_local1 = Math.round(_local1 * 100) / 100;
return(new smashing.keithm.Point3D(_local2, _local1, 0));
}
function toString() {
return("Element: " + TYPE);
}
var __DEF_MASS = 1;
var __DEF_BOUNCY = 1;
var __USE_GRAVITY = false;
var __MAX_VELOCITY = 300;
var __DECELERATION_DECAY = 100;
var __COLLISION_DECAY = 0.25;
var __DO_UPDATE = true;
}
Symbol 887 MovieClip [__Packages.smashing.keithm.Point3D] Frame 0
class smashing.keithm.Point3D
{
var x, y, z;
function Point3D (x, y, z) {
this.x = Number(x);
this.y = Number(y);
this.z = Number(z);
}
function get length() {
return(Math.sqrt(((x * x) + (y * y)) + (z * z)));
}
function set length(newLength) {
if (length != 0) {
var _local2 = newLength / length;
x = x * _local2;
y = y * _local2;
z = z * _local2;
}
//return(length);
}
function get lengthSqu() {
return(((x * x) + (y * y)) + (z * z));
}
function copy() {
return(new smashing.keithm.Point3D(x, y, z));
}
function addPoint(p) {
return(new smashing.keithm.Point3D(p.x + x, p.y + y, p.z + z));
}
function subtractPoint(p) {
return(new smashing.keithm.Point3D(x - p.x, y - p.y, z - p.z));
}
function addScalar(n) {
return(new smashing.keithm.Point3D(x + n, y + n, z + n));
}
function subtractScalar(n) {
return(new smashing.keithm.Point3D(x - n, y - n, z - n));
}
function addPointMe(p) {
x = x + p.x;
y = y + p.y;
z = z + p.z;
}
function subtractPointMe(p) {
x = x - p.x;
y = y - p.y;
z = z - p.z;
}
function addScalarMe(n) {
x = x + n;
y = y + n;
z = z + n;
}
function subtractScalarMe(n) {
x = x - n;
y = y - n;
z = z - n;
}
function multiply(n) {
var _local2 = copy();
_local2.x = _local2.x * n;
_local2.y = _local2.y * n;
_local2.z = _local2.z * n;
return(_local2);
}
function divide(n) {
var _local2 = copy();
if (n == 0) {
_local2.x = 0;
_local2.y = 0;
_local2.z = 0;
return(undefined);
}
_local2.x = _local2.x / n;
_local2.y = _local2.y / n;
_local2.z = _local2.z / n;
return(_local2);
}
function multiplyMe(n) {
x = x * n;
y = y * n;
z = z * n;
}
function divideMe(n) {
x = x / n;
y = y / n;
z = z / n;
}
function dot(p) {
return(((x * p.x) + (y * p.y)) + (z * p.z));
}
function cross(p) {
return(new smashing.keithm.Point3D((y * p.z) - (z * p.y), (z * p.x) - (x * p.z), (x * p.y) - (y * p.x)));
}
function pseudoCross() {
return(new smashing.keithm.Point3D(y, -x, z));
}
function normalize() {
if (((!x) && (!y)) && (!z)) {
return(undefined);
}
var _local2 = length;
return(new smashing.keithm.Point3D(x / _local2, y / _local2, z / _local2));
}
function normalizeMe() {
if ((!x) && (!y)) {
return(undefined);
}
var _local2 = length;
x = x / _local2;
y = y / _local2;
z = z / _local2;
}
function reverse() {
var _local2 = new smashing.keithm.Point3D(x * -1, y * -1, z * -1);
return(_local2);
}
function reverseMe() {
x = x * -1;
y = y * -1;
z = z * -1;
}
function findCosine(vOther) {
var _local3 = dot(vOther);
var _local4 = length * vOther.__get__length();
var _local2 = _local3 / _local4;
return(_local2);
}
function equals(p) {
if (((x == p.x) && (y == p.y)) && (z == p.z)) {
return(true);
}
return(false);
}
function zero() {
x = 0;
y = 0;
z = 0;
}
function distSqu(p) {
var _local4 = p.x - x;
var _local3 = p.y - y;
var _local2 = p.z - z;
return(((_local4 * _local4) + (_local3 * _local3)) + (_local2 * _local2));
}
function toString() {
var _local2 = ((((("Point3D (" + x) + ",") + y) + ",") + z) + ")";
return(_local2);
}
}
Symbol 888 MovieClip [__Packages.nickjr.diego.mazegame.Entity] Frame 0
class nickjr.diego.mazegame.Entity extends smashing.keithm.Element
{
var __cellX, __cellY, spawn, x, velocity, y, z;
function Entity (t_data) {
super(t_data);
}
function init(t_data) {
__cellX = t_data.x;
__cellY = t_data.y;
var _local3 = nickjr.diego.mazegame.Dimensions.getInstance();
t_data.x = (__cellX * _local3.CELL_WIDTH) + _local3.CELL_WIDTH_HALF;
t_data.y = (__cellY * _local3.CELL_HEIGHT) + _local3.CELL_HEIGHT_HALF;
super.init(t_data);
spawn();
}
function reset() {
super.reset();
}
function cellX() {
return(__cellX);
}
function cellY() {
return(__cellY);
}
function render(camera, el) {
x = x + (velocity.x * el);
y = y + (velocity.y * el);
z = z + (velocity.z * el);
super.render(camera, el);
}
function runHD_entity_box(t_target, el) {
if (Math.abs(__cellX - t_target.cellX()) <= 2) {
return(super.runHD_entity_box(t_target, el));
}
}
function isPathing() {
return(false);
}
function hitReact(t_target) {
}
var DRAW_WHEN_KILLED = false;
var __KILL_ON_ERASE = false;
var __3D_SCALE = false;
var __USE_GRAVITY = true;
var __DO_UPDATE = true;
}
Symbol 889 MovieClip [__Packages.nickjr.diego.mazegame.MoveableEntity] Frame 0
class nickjr.diego.mazegame.MoveableEntity extends nickjr.diego.mazegame.Entity
{
var __nextCellX, __cellX, __nextCellY, __cellY, __hasChangedCells, __cell_width, __cell_height, __is_pathing, __pathing_dir, __pathing_progress, __targetX, __targetY, __originX, __originY, nextX, nextY, prevY, y, requestDepthChange, __pathing_length, x, velocity;
function MoveableEntity (t_data) {
super(t_data);
}
function init(t_data) {
super.init(t_data);
__nextCellX = __cellX;
__nextCellY = __cellY;
__hasChangedCells = false;
__cell_width = nickjr.diego.mazegame.Dimensions.getInstance().CELL_WIDTH;
__cell_height = nickjr.diego.mazegame.Dimensions.getInstance().CELL_HEIGHT;
__is_pathing = false;
__pathing_dir = "";
__pathing_progress = 0;
__targetX = (__targetY = (__originX = (__originY = -1)));
}
function update(el) {
super.update(el);
__nextCellX = Math.floor(nextX / __cell_width);
__nextCellY = Math.floor(nextY / __cell_height);
if ((__cellX != __nextCellX) || (__cellY != __nextCellY)) {
__hasChangedCells = true;
} else {
__hasChangedCells = false;
}
}
function move(el) {
if (__hasChangedCells) {
__cellX = __nextCellX;
__cellY = __nextCellY;
}
super.move(el);
}
function render(camera, el) {
if (__hasChangedCells) {
__cellX = __nextCellX;
__cellY = __nextCellY;
}
prevY = y;
super.render(camera, el);
if (prevY != y) {
requestDepthChange();
}
if (__is_pathing) {
if (__pathing_dir == "x") {
__pathing_progress = 1 - (Math.abs(x - __targetX) / __pathing_length);
} else {
__pathing_progress = 1 - (Math.abs(y - __targetY) / __pathing_length);
}
}
}
function onGridCollision() {
__pathing_collision();
if (__cellX != __nextCellX) {
velocity.x = 0;
__nextCellX = __cellX;
}
if (__cellY != __nextCellY) {
velocity.y = 0;
__nextCellY = __cellY;
}
return(true);
}
function __pathing_start(targetx, targety) {
__originX = x;
__originY = y;
__targetX = targetx;
__targetY = targety;
if (__originX == __targetX) {
__pathing_dir = "y";
__pathing_length = Math.abs(__originY - __targetY);
} else {
__pathing_dir = "x";
__pathing_length = Math.abs(__originX - __targetX);
}
__pathing_progress = 0;
__is_pathing = true;
}
function __pathing_run() {
if (__pathing_dir == "x") {
if (__targetX < (x - __PATHING_THRESHOLD)) {
velocity.x = -__MOVE_RATE;
} else if (__targetX > (x + __PATHING_THRESHOLD)) {
velocity.x = __MOVE_RATE;
} else {
__pathing_stop();
}
} else if (__targetY < (y - __PATHING_THRESHOLD)) {
velocity.y = -__MOVE_RATE;
} else if (__targetY > (y + __PATHING_THRESHOLD)) {
velocity.y = __MOVE_RATE;
} else {
__pathing_stop();
}
}
function __pathing_collision() {
if (__pathing_dir == "x") {
__targetX = __originX;
} else {
__targetY = __originY;
}
}
function __pathing_stop() {
velocity.x = (velocity.y = 0);
__targetX = (__targetY = (__originX = (__originY = -1)));
__is_pathing = false;
__pathing_dir = "";
}
function hasChangedCells() {
return(__hasChangedCells);
}
function nextCellX() {
return(__nextCellX);
}
function nextCellY() {
return(__nextCellY);
}
function isPathing() {
return(__is_pathing);
}
var __MOVE_RATE = 110;
var __PATHING_THRESHOLD = 5;
}
Symbol 890 MovieClip [__Packages.nickjr.diego.mazegame.ents.Player] Frame 0
class nickjr.diego.mazegame.ents.Player extends nickjr.diego.mazegame.MoveableEntity
{
var __event, __hasMovedTimer, __prevAnimation, __animation, __prevDirection, __direction, owner, velocity, __moveable, __is_pathing, mc, __fruitFrame, __hasFruit, __fruit, x, nextX, y, nextY, __nextCellX, __cellX, __nextCellY, __cellY, __targetX, __targetY, __targetCellX, __cell_width, __targetCellY, __cell_height, __pathing_dir, __collisionCellX, __collisionCellY, hdReg;
function Player (t_data) {
super(t_data);
__event = "";
__pathing_stop();
__hasMovedTimer = __HAS_MOVED_TIMER;
}
function updateDraw(camera) {
super.updateDraw(camera);
}
function render(camera, el) {
super.render(camera, el);
}
function update(el) {
__prevAnimation = __animation;
__prevDirection = __direction;
if (__hasMovedTimer > 0) {
__hasMovedTimer = __hasMovedTimer - el;
if (__hasMovedTimer <= 0) {
owner.requestVO("timeout");
__hasMovedTimer = __HAS_MOVED_TIMER;
}
}
velocity.x = 0;
velocity.y = 0;
if (__moveable) {
__animation = "walk";
if (_global.bLeft) {
velocity.x = -__WALK_RATE;
__direction = "left";
} else if (_global.bRight) {
velocity.x = __WALK_RATE;
__direction = "right";
} else if (_global.bUp) {
velocity.y = -__WALK_RATE;
__direction = "up";
} else if (_global.bDown) {
velocity.y = __WALK_RATE;
__direction = "down";
} else {
__animation = "stand";
}
if (__is_pathing) {
if ((velocity.x == 0) && (velocity.y == 0)) {
__pathing_run();
} else {
__pathing_stop();
}
}
} else {
runEvent();
}
if ((__animation != __prevAnimation) || (__direction != __prevDirection)) {
animate();
if ((velocity.x != 0) || (velocity.y != 0)) {
__hasMovedTimer = 0;
}
}
super.update(el);
}
function animate() {
mc.gotoAndStop(((__animation + "_") + __direction) + __fruitFrame);
if (__hasFruit) {
mc.a.mcTorso.fruit.gotoAndStop(__fruit.frame);
}
}
function block(entity) {
if (nextX != x) {
velocity.x = 0;
}
if (nextY != y) {
velocity.y = 0;
}
if (__is_pathing) {
__pathing_stop();
}
}
function reset() {
__fruitFrame = "";
__fruit = null;
__hasFruit = false;
unfreeze();
super.reset();
}
function freeze() {
__moveable = false;
}
function unfreeze() {
__moveable = true;
}
function freezeAnimation() {
__animation = "stand";
animate();
}
function runEvent() {
if (__event == "toss") {
if (mc.a.mcTorso._currentFrame > 4) {
throwFruit();
__event = "";
}
}
}
function tossFruit(cbpath, cbfunc) {
if (!__hasFruit) {
return(undefined);
}
mc.gotoAndStop(("stand_" + __direction) + "_fruit_toss");
mc.a.mcTorso.fruit.gotoAndStop(__fruit.frame);
freeze();
__animation = "toss";
__pathing_stop();
if (cbfunc == undefined) {
__fruit.setTossCallback({}, "");
} else {
__fruit.setTossCallback(cbpath, cbfunc);
}
__event = "toss";
}
function throwFruit() {
__fruit.toss(this);
__hasFruit = false;
__fruitFrame = "";
}
function pickupFruit(t_fruit) {
if (__hasFruit) {
dropFruit();
}
__hasFruit = true;
__fruitFrame = "_fruit";
__fruit = t_fruit;
animate();
}
function dropFruit() {
__hasFruit = false;
__fruitFrame = "";
__fruit.respawn();
}
function destroyFruit() {
__hasFruit = false;
__fruitFrame = "";
__fruit.eaten();
}
function onGridCollision(el) {
if (__is_pathing) {
__pathing_collision();
}
if (__cellX != __nextCellX) {
velocity.x = 0;
__nextCellX = __cellX;
}
if (__cellY != __nextCellY) {
velocity.y = 0;
__nextCellY = __cellY;
}
super.update(el);
return(true);
}
function setTargetPoint(t_x, t_y) {
__targetX = t_x;
__targetY = t_y;
__targetCellX = Math.floor(__targetX / __cell_width);
__targetCellY = Math.floor(__targetY / __cell_height);
owner.drawTargetPoint(__targetX, __targetY);
__pathing_chooseDirection();
__hasMovedTimer = 0;
}
function __pathing_chooseDirection() {
var _local3 = __targetX - x;
var _local2 = __targetY - y;
__is_pathing = true;
if (Math.abs(_local3) > (Math.abs(_local2) + __PATHING_THRESHOLD)) {
__pathing_dir = "x";
} else if (Math.abs(_local3) < (Math.abs(_local2) - __PATHING_THRESHOLD)) {
__pathing_dir = "y";
} else {
__pathing_stop();
}
}
function __pathing_run() {
__animation = "walk";
if (__pathing_dir == "x") {
if (__targetX < (x - __PATHING_THRESHOLD)) {
velocity.x = -__WALK_RATE;
__direction = "left";
} else if (__targetX > (x + __PATHING_THRESHOLD)) {
velocity.x = __WALK_RATE;
__direction = "right";
} else {
__pathing_chooseDirection();
}
} else if (__targetY < (y - __PATHING_THRESHOLD)) {
velocity.y = -__WALK_RATE;
__direction = "up";
} else if (__targetY > (y + __PATHING_THRESHOLD)) {
velocity.y = __WALK_RATE;
__direction = "down";
} else {
__pathing_chooseDirection();
}
}
function __pathing_collision() {
if (__pathing_dir == "x") {
if (__collisionCellX == __cellX) {
__pathing_stop();
} else {
__collisionCellX = __cellX;
__pathing_dir = "y";
}
} else if (__collisionCellY == __cellY) {
__pathing_stop();
} else {
__collisionCellY = __cellY;
__pathing_dir = "x";
}
}
function __pathing_stop() {
owner.clearTargetPoint();
__targetCellX = (__targetCellY = (__collisionCellX = (__collisionCellY = (__targetX = (__targetY = -1)))));
__is_pathing = false;
__pathing_dir = "";
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
function direction() {
return(__direction);
}
function isFrozen() {
return(!__moveable);
}
function fruit() {
if (!__hasFruit) {
return("");
}
return(__fruit.frame);
}
var TYPE = "player";
var DRAWTYPE = "dynamic";
var __DEF_ASSET = "diego_mc";
var __DEF_WIDTH = 40;
var __DEF_HEIGHT = 60;
var __USE_ACTUAL_DIMENSIONS = true;
var __DEF_HD_WIDTH = 20;
var __DEF_HD_HEIGHT = 10;
var __USE_DIMENSIONS_AS_HD = false;
var __INVINCIBLE_MAX = 0.5;
var __WALK_RATE = 180;
var __PATHING_THRESHOLD = 5;
var __HAS_MOVED_TIMER = 15;
}
Symbol 891 MovieClip [__Packages.nickjr.diego.mazegame.ents.Fruit] Frame 0
class nickjr.diego.mazegame.ents.Fruit extends nickjr.diego.mazegame.MoveableEntity
{
var frame, assetID, __eaten, __pickedUp, __hide_after_anim, __toss_height, __callbackPath, __callbackFunc, doUpdate, x, startX, y, startY, isDrawn, show, mc, isHidden, owner, __pathing_collision, requestErase, __is_pathing, __pathing_progress, hdReg, hide, __cellX, __nextCellX, __cell_width, nextX, __cellY, __nextCellY, __cell_height, nextY, __pathing_start, velocity;
function Fruit (t_data) {
super(t_data);
frame = t_data.type;
assetID = (__DEF_ASSET + frame) + "_mc";
__eaten = false;
__pickedUp = false;
__hide_after_anim = false;
__toss_height = 0;
__callbackPath = {};
__callbackFunc = "";
}
function respawn() {
doUpdate = true;
__pickedUp = false;
__hide_after_anim = false;
x = startX;
y = startY;
if (isDrawn) {
show();
mc.gotoAndStop(1);
} else {
isHidden = false;
}
}
function eaten() {
__eaten = true;
__callbackFunc = "";
kill();
if (isDrawn) {
mc.gotoAndPlay("delay");
}
}
function hitReact(t_target) {
if ((__eaten || (__pickedUp)) || (t_target.isFrozen())) {
return(undefined);
}
if (t_target.TYPE == "player") {
t_target.pickupFruit(this);
owner.requestSound("pickupFruit");
grab();
} else if (t_target.TYPE == "dino") {
if (t_target.fruit == frame) {
owner.feedDino(this, t_target);
} else {
__pathing_collision();
t_target.reject(frame);
}
} else {
__pathing_collision();
}
}
function grab() {
__pickedUp = true;
__hide_after_anim = true;
mc.gotoAndPlay("pickup");
}
function update(el) {
if (__hide_after_anim) {
if (mc._currentFrame == mc._totalFrames) {
requestErase();
doUpdate = false;
__hide_after_anim = false;
return(undefined);
}
}
if (__is_pathing) {
__pathing_run();
if (__eaten) {
mc._yscale = (mc._xscale = mc._xscale - (200 * el));
}
}
super.update(el);
}
function render(camera, el) {
super.render(camera, el);
if (__is_pathing) {
if (__eaten && (__pathing_progress >= 0.5)) {
__pathing_progress = 0.5;
}
mc._y = mc._y - (__toss_height * Math.sin(((__pathing_progress * 180) * Math.PI) / 180));
}
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
function onErase() {
super.onErase();
if (__is_pathing) {
__pathing_stop();
}
if (__pickedUp || (__eaten)) {
hide();
}
}
function onDraw(newmc) {
super.onDraw(newmc);
mc.cacheAsBitmap = true;
if (__is_pathing) {
if (__eaten) {
mc.gotoAndPlay("delay");
mc._currentFrame();
} else {
mc.gotoAndStop("fly");
}
} else {
mc.gotoAndStop(1);
}
}
function kill() {
super.kill();
__hide_after_anim = true;
}
function toss(tosser) {
var _local2;
var _local5;
var _local7 = tosser.direction();
_local2 = tosser.x;
x = _local2;
_local5 = tosser.y;
y = _local5;
__cellX = (__nextCellX = Math.floor(nextX / __cell_width));
__cellY = (__nextCellY = Math.floor(nextY / __cell_height));
var _local4 = x;
var _local3 = y;
switch (_local7) {
case "left" :
_local2 = x - __cell_width;
_local4 = _local4 - 6;
break;
case "right" :
_local2 = x + __cell_width;
_local4 = _local4 + 6;
break;
case "up" :
_local5 = y - __cell_height;
_local3 = _local3 - 1;
break;
case "down" :
_local5 = y + __cell_height;
_local3 = _local3 + 1;
}
__pathing_start(_local2, _local5);
x = _local4;
y = _local3;
__toss_height = 30;
__pickedUp = false;
doUpdate = true;
if (isDrawn) {
__hide_after_anim = false;
mc.gotoAndStop("fly");
} else {
show();
}
}
function setTossCallback(cbpath, cbfunc) {
__callbackPath = cbpath;
__callbackFunc = cbfunc;
}
function onGridCollision() {
__pathing_collision();
if (__cellX != __nextCellX) {
velocity.x = 0;
__cellX = __nextCellX;
}
if (__cellY != __nextCellY) {
velocity.y = 0;
__cellY = __nextCellY;
}
return(true);
}
function __pathing_run() {
super.__pathing_run();
if (__eaten && (__pathing_progress >= 0.5)) {
velocity.x = 0;
velocity.y = 0;
}
}
function __pathing_stop() {
if (__callbackFunc != "") {
__callbackPath[__callbackFunc]();
}
super.__pathing_stop();
if (!__eaten) {
mc.gotoAndStop(1);
}
}
var TYPE = "fruit";
var DRAWTYPE = "dynamic";
var __DEF_ASSET = "fruit_";
var __DEF_WIDTH = 25;
var __DEF_HEIGHT = 25;
var __USE_ACTUAL_DIMENSIONS = true;
var __DEF_HD_WIDTH = 10;
var __DEF_HD_HEIGHT = 20;
var __USE_DIMENSIONS_AS_HD = false;
var __DRAW_WHEN_KILLED = true;
}
Symbol 892 MovieClip [__Packages.smashing.keithm.Effect] Frame 0
class smashing.keithm.Effect extends smashing.keithm.Element
{
var isDrawn, mc;
function Effect (t_data) {
super(t_data);
}
function update(el) {
if (isDrawn && (mc._currentFrame == mc._totalFrames)) {
smashing.keithm.Viewport.getInstance().erase({element:this});
return(undefined);
}
super.update(el);
}
function fullUpdate(el) {
if (isDrawn && (mc._currentFrame == mc._totalFrames)) {
smashing.keithm.Viewport.getInstance().erase({element:this});
return(undefined);
}
super.fullUpdate(el);
}
function erase() {
smashing.keithm.Viewport.getInstance().erase({element:this});
}
var TYPE = "effect";
var DRAWTYPE = "effect";
var __KILL_ON_ERASE = true;
var __USE_GRAVITY = true;
var __3D_SCALE = true;
var __DO_UPDATE = true;
}
Symbol 893 MovieClip [__Packages.nickjr.diego.mazegame.LevelData] Frame 0
class nickjr.diego.mazegame.LevelData
{
var walls, fruits, dinos, pickups, scenery, randomPickups, randomFruits;
function LevelData () {
}
function loadData(t_data) {
walls = [];
fruits = [];
dinos = [];
pickups = [];
scenery = [];
randomPickups = [];
randomFruits = [];
}
var __BLOCK_WIDTH = 10;
var __BLOCK_HEIGHT = 5;
}
Symbol 894 MovieClip [__Packages.nickjr.diego.mazegame.cells.Cell] Frame 0
class nickjr.diego.mazegame.cells.Cell extends nickjr.diego.mazegame.Entity
{
var renderMe, mc, __cellY, __cellX;
function Cell (t_data) {
super(t_data);
renderMe = RENDER_ME;
}
function canPass(entity) {
return(true);
}
function onDraw(newmc) {
super.onDraw(newmc);
mc.cacheAsBitmap = true;
}
function toString() {
return((("Cell " + __cellX) + " , ") + __cellY);
}
var TYPE = "cell";
var DRAWTYPE = "cell";
var RENDER_ME = false;
}
Symbol 895 MovieClip [__Packages.nickjr.diego.mazegame.cells.Wall] Frame 0
class nickjr.diego.mazegame.cells.Wall extends nickjr.diego.mazegame.cells.Cell
{
var assetID, renderMe, __cellY, __cellX;
function Wall (t_data) {
super(t_data);
if (t_data.type != "invis") {
assetID = t_data.type + "_mc";
} else {
renderMe = false;
}
}
function canPass(entity) {
return(false);
}
function render(camera, el) {
super.render(camera, el);
}
function toString() {
return((("Wall " + __cellX) + " , ") + __cellY);
}
var TYPE = "wall";
var RENDER_ME = true;
var __DEF_ASSET = "bush1_mc";
var __DEF_WIDTH = 60;
var __DEF_HEIGHT = 60;
var __USE_ACTUAL_DIMENSIONS = true;
}
Symbol 896 MovieClip [__Packages.nickjr.diego.mazegame.cells.Wall_Large] Frame 0
class nickjr.diego.mazegame.cells.Wall_Large extends nickjr.diego.mazegame.cells.Wall
{
var __cellY, __cellX;
function Wall_Large (t_data) {
super(t_data);
}
function toString() {
return((("Large Wall " + __cellX) + " , ") + __cellY);
}
var __DEF_WIDTH = 360;
var __DEF_HEIGHT = 250;
}
Symbol 897 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino] Frame 0
class nickjr.diego.mazegame.ents.Dino extends nickjr.diego.mazegame.Entity
{
var fruit, __fed, __requestTimer, __facing, __walking, owner, mc, __is_moving, kill, hdReg;
function Dino (t_data) {
super(t_data);
fruit = t_data.fruit;
__fed = false;
__requestTimer = 0;
if (t_data.faceLeft) {
__facing = "left";
} else {
__facing = "right";
}
if (t_data.walkLeft) {
__walking = "left";
} else {
__walking = "right";
}
}
function hitReact(t_target) {
if (__fed) {
return(undefined);
}
t_target.block(this);
if (t_target.fruit() == fruit) {
t_target.tossFruit(owner, "tossedFruitCallback");
} else {
reject(t_target.fruit());
}
}
function reject(fruit) {
if (__requestTimer <= 0) {
owner.engine.sound.p("reject");
request();
if (fruit != "") {
owner.requestOptionalVO("wrongFruit" + Math.ceil(Math.random() * 2));
}
}
}
function update(el) {
if (__requestTimer > 0) {
__requestTimer = __requestTimer - el;
if (__requestTimer <= 0) {
if (mc.request_mc._currentFrame != 1) {
mc.request_mc.gotoAndPlay("vanish");
}
}
}
if (__is_moving) {
if (mc._currentFrame == mc._totalFrames) {
owner.dinoDoneFeeding();
__is_moving = false;
}
}
}
function idle() {
mc.gotoAndStop("idle");
if (__facing == "left") {
mc._xscale = -100;
}
mc.cacheAsBitmap = true;
}
function request() {
mc.fruit = fruit;
mc.fed = false;
mc.cacheAsBitmap = false;
mc.gotoAndPlay("request");
mc.request_mc.gotoAndPlay(2);
__requestTimer = __REQUEST_TIMER_MAX;
}
function feed() {
owner.playerFeedDino(this);
owner.requestVO("rightFruit" + Math.ceil(Math.random() * 2));
owner.engine.sound.p("gobble");
if (__walking == "left") {
mc.walkLeft = true;
} else {
mc.walkLeft = false;
}
kill();
request();
__requestTimer = __REQUEST_TIMER_MAX / 2;
__fed = true;
__is_moving = true;
mc.fed = true;
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
function onDraw(newmc) {
super.onDraw(newmc);
if (__fed) {
mc.gotoAndStop(mc._totalFrames);
if (__walking == "left") {
mc._xscale = -100;
}
} else {
idle();
}
}
function get requestTimer() {
return(__requestTimer);
}
var TYPE = "dino";
var DRAWTYPE = "dynamic";
var __DEF_ASSET = "dino1_mc";
var __DEF_WIDTH = 200;
var __DEF_HEIGHT = 80;
var __USE_ACTUAL_DIMENSIONS = true;
var __DEF_HD_WIDTH = 200;
var __DEF_HD_HEIGHT = 80;
var __USE_DIMENSIONS_AS_HD = false;
var __REQUEST_TIMER_MAX = 3;
var value = 5;
}
Symbol 898 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino_Maya] Frame 0
class nickjr.diego.mazegame.ents.Dino_Maya extends nickjr.diego.mazegame.ents.Dino
{
var __hasFaded, __fed, __walking, mc, __is_moving, owner, hdReg;
function Dino_Maya (t_data) {
super(t_data);
__hasFaded = false;
}
function hitReact(t_target) {
if (__fed) {
return(undefined);
}
t_target.block(this);
t_target.freeze();
t_target.freezeAnimation();
if (__walking == "left") {
mc.walkLeft = true;
} else {
mc.walkLeft = false;
}
__is_moving = false;
__fed = true;
owner.addTimeBonus();
owner.addScore(value);
owner.engine.startNextLevelFanfare(this);
mc.gotoAndPlay("celebrate");
}
function leave() {
__is_moving = true;
mc.gotoAndPlay("walk");
}
function update(el) {
if (__is_moving) {
if ((!__hasFaded) && (mc._currentFrame >= 33)) {
owner.runsFadeOut();
__hasFaded = true;
}
if (mc._currentFrame == mc._totalFrames) {
owner.levelComplete();
}
}
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = -20;
}
var __DEF_ASSET = "dino1_mc";
var __DEF_HD_WIDTH = 60;
var __DEF_HD_HEIGHT = 50;
var __USE_DIMENSIONS_AS_HD = false;
var value = 5;
}
Symbol 899 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino_Euo] Frame 0
class nickjr.diego.mazegame.ents.Dino_Euo extends nickjr.diego.mazegame.ents.Dino
{
var __fed, __facing, x, y, requestDepthChange;
function Dino_Euo (t_data) {
super(t_data);
}
function hitReact(t_target) {
if (__fed) {
return(undefined);
}
if (((__facing == "left") && (t_target.x > x)) || ((__facing == "right") && (t_target.x < x))) {
t_target.block(this);
} else {
super.hitReact(t_target);
}
}
function feed() {
super.feed();
fakeDepth();
}
function onDraw(newmc) {
super.onDraw(newmc);
fakeDepth();
}
function fakeDepth() {
y = y + 80;
requestDepthChange();
y = y - 80;
}
var __DEF_ASSET = "dino2_mc";
var __DEF_HD_WIDTH = 110;
var __DEF_HD_HEIGHT = 40;
var __USE_DIMENSIONS_AS_HD = false;
}
Symbol 900 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino_Gryp] Frame 0
class nickjr.diego.mazegame.ents.Dino_Gryp extends nickjr.diego.mazegame.ents.Dino
{
var hdReg, y, requestDepthChange;
function Dino_Gryp (t_data) {
super(t_data);
}
function setHDRegistration() {
hdReg = {};
hdReg.x = -7;
hdReg.y = -10;
}
function feed() {
super.feed();
fakeDepth();
}
function onDraw(newmc) {
super.onDraw(newmc);
fakeDepth();
}
function fakeDepth() {
y = y + 90;
requestDepthChange();
y = y - 90;
}
var __DEF_ASSET = "dino3_mc";
var __DEF_HD_WIDTH = 90;
var __DEF_HD_HEIGHT = 35;
var __USE_DIMENSIONS_AS_HD = false;
}
Symbol 901 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino_Igu] Frame 0
class nickjr.diego.mazegame.ents.Dino_Igu extends nickjr.diego.mazegame.ents.Dino
{
var hdReg, y, requestDepthChange;
function Dino_Igu (t_data) {
super(t_data);
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 21;
}
function feed() {
super.feed();
fakeDepth();
}
function onDraw(newmc) {
super.onDraw(newmc);
fakeDepth();
}
function fakeDepth() {
y = y + 180;
requestDepthChange();
y = y - 180;
}
var __DEF_ASSET = "dino4_mc";
var __DEF_HD_WIDTH = 90;
var __DEF_HD_HEIGHT = 40;
var __USE_DIMENSIONS_AS_HD = false;
}
Symbol 902 MovieClip [__Packages.nickjr.diego.mazegame.ents.Dino_Brach] Frame 0
class nickjr.diego.mazegame.ents.Dino_Brach extends nickjr.diego.mazegame.ents.Dino
{
var __fed, y, mc, hdReg;
function Dino_Brach (t_data) {
super(t_data);
}
function hitReact(t_target) {
if (__fed) {
t_target.y = y + 10;
}
super.hitReact(t_target);
}
function eat() {
mc.gotoAndPlay("accept");
__fed = true;
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
var __DEF_ASSET = "dino5_mc";
var __DEF_HD_WIDTH = 70;
var __DEF_HD_HEIGHT = 35;
var __USE_DIMENSIONS_AS_HD = false;
}
Symbol 903 MovieClip [__Packages.nickjr.diego.mazegame.ents.Pickup] Frame 0
class nickjr.diego.mazegame.ents.Pickup extends nickjr.diego.mazegame.Entity
{
var assetID, __pickedUp, owner, mc, hdReg, doUpdate;
function Pickup (t_data) {
super(t_data);
assetID = ("pickup" + Math.ceil(Math.random() * 3)) + "_mc";
if (assetID == "pickup0_mc") {
assetID = "pickup1_mc";
}
__pickedUp = false;
}
function hitReact(t_target) {
if (__pickedUp) {
return(undefined);
}
owner.addScore(value);
if (Math.random() > 0.8) {
owner.requestOptionalVO("amber" + Math.ceil(Math.random() * 3));
}
owner.requestSound("pickupAmber");
grab();
}
function grab() {
__pickedUp = true;
mc.gotoAndPlay("pickup");
}
function update(el) {
if (__pickedUp) {
if (mc._currentFrame == mc._totalFrames) {
kill();
return(undefined);
}
}
super.update(el);
}
function setHDRegistration() {
hdReg = {};
hdReg.x = 0;
hdReg.y = 0;
}
function onDraw(newmc) {
super.onDraw(newmc);
mc.cacheAsBitmap = true;
}
function kill() {
super.kill();
doUpdate = false;
}
var TYPE = "pickup";
var DRAWTYPE = "pickup";
var __DEF_ASSET = "pickup1_mc";
var __DEF_WIDTH = 20;
var __DEF_HEIGHT = 30;
var __USE_ACTUAL_DIMENSIONS = true;
var __DEF_HD_WIDTH = 15;
var __DEF_HD_HEIGHT = 20;
var __USE_DIMENSIONS_AS_HD = false;
var __DRAW_WHEN_KILLED = false;
var value = 1;
}
Symbol 904 MovieClip [__Packages.nickjr.diego.mazegame.ents.Scenery] Frame 0
class nickjr.diego.mazegame.ents.Scenery extends smashing.keithm.Element
{
var spawn, mc;
function Scenery (t_data) {
super(t_data);
}
function init(t_data) {
var _local3 = nickjr.diego.mazegame.Dimensions.getInstance();
t_data.x = t_data.x * _local3.CELL_WIDTH;
t_data.y = t_data.y * _local3.CELL_HEIGHT;
super.init(t_data);
spawn();
}
function onDraw(newmc) {
super.onDraw(newmc);
mc.cacheAsBitmap = true;
}
var TYPE = "scenery";
var DRAWTYPE = "bg";
var __DEF_ASSET = "ground_mc";
var __DEF_WIDTH = 600;
var __DEF_HEIGHT = 300;
var __USE_ACTUAL_DIMENSIONS = false;
var __CAREFUL_DRAW = true;
}
Symbol 905 MovieClip [__Packages.nickjr.diego.mazegame.ents.Scenery_Edge] Frame 0
class nickjr.diego.mazegame.ents.Scenery_Edge extends nickjr.diego.mazegame.ents.Scenery
{
function Scenery_Edge (t_data) {
super(t_data);
}
var TYPE = "edge";
var DRAWTYPE = "edge";
var __DEF_WIDTH = 600;
var __DEF_HEIGHT = 350;
var __USE_ACTUAL_DIMENSIONS = true;
}
Symbol 906 MovieClip [__Packages.nickjr.diego.mazegame.ents.Scenery_Patch] Frame 0
class nickjr.diego.mazegame.ents.Scenery_Patch extends nickjr.diego.mazegame.ents.Scenery
{
var assetID, depthInfluence;
function Scenery_Patch (t_data) {
super(t_data);
assetID = t_data.asset + "_patch_mc";
depthInfluence = 1;
}
var TYPE = "patch";
var DRAWTYPE = "patch";
var __DEF_WIDTH = 500;
var __DEF_HEIGHT = 300;
var __USE_ACTUAL_DIMENSIONS = true;
var __DEF_ASSET = "grassy_patch_mc";
}
Symbol 907 MovieClip [__Packages.smashing.keithm.IntervalEngine] Frame 0
class smashing.keithm.IntervalEngine
{
var _uo, _uf, _update_interval, _last_update, _i, _ft, _el;
function IntervalEngine (update_object, update_function) {
_uo = update_object;
_uf = update_function;
}
function startFlat(FPS) {
_FPS = FPS;
_update_interval = 1 / FPS;
_last_update = getTimer() * 0.001;
_i = setInterval(this, "_flat_step", 0);
}
function startFlex() {
_last_update = getTimer() * 0.001;
_i = setInterval(this, "_flex_step", 0);
}
function startFast() {
_last_update = getTimer();
_i = setInterval(this, "_fast_step", 0);
}
function pause(Void) {
_is_paused = true;
}
function unpause(Void) {
_is_paused = false;
}
function reset(Void) {
if (_i != undefined) {
clearInterval(_i);
}
_ft = 0;
_last_update = getTimer() * 0.001;
_lel = _MAX_FRAMETIME / 2;
pause();
}
function _flex_step(Void) {
if (_is_paused) {
_last_update = getTimer() * 0.001;
return(undefined);
}
_el = Math.min(_MAX_FRAMETIME, (-_last_update) + ((_last_update = getTimer() * 0.001)));
_lel = _lel - Math.max(-_MAX_TIMEDIFF, Math.min(_MAX_TIMEDIFF, _lel - _el));
_uo[_uf](_lel);
}
function _flat_step(Void) {
if (_is_paused) {
return(undefined);
}
_ft = _ft + ((-_last_update) + ((_last_update = getTimer() * 0.001)));
if (_ft < _update_interval) {
return(undefined);
}
_uo[_uf](_ft);
_ft = 0;
}
function _fast_step(Void) {
_el = (-_last_update) + ((_last_update = getTimer()));
_uo[_uf](_el * 0.001);
}
function clear() {
clearInterval(_i);
}
var _MAX_TIMEDIFF = 0.005;
var _MIN_FPS = 5;
var _MAX_FRAMETIME = 1 / smashing.keithm.IntervalEngine.prototype._MIN_FPS;
var _lel = 0.2;
var _FPS = 0;
var _is_paused = false;
}
Symbol 908 MovieClip [__Packages.nickjr.diego.mazegame.levels.Level1] Frame 0
class nickjr.diego.mazegame.levels.Level1 extends nickjr.diego.mazegame.LevelData
{
var hungerRate, exitLeft, grid_width, __BLOCK_WIDTH, grid_height, __BLOCK_HEIGHT, randomFruits, pickups, randomPickups, dinos, scenery, walls, player, camera;
function Level1 () {
super();
}
function loadData() {
super.loadData();
hungerRate = 18;
exitLeft = true;
grid_width = 2 * __BLOCK_WIDTH;
grid_height = 2 * __BLOCK_HEIGHT;
randomFruits.push([{type:"apple", x:16, y:7}, {type:"apple", x:15, y:4}]);
pickups.push({type:"gem", x:13, y:2});
pickups.push({type:"gem", x:14, y:2});
pickups.push({type:"gem", x:15, y:2});
pickups.push({type:"gem", x:16, y:4});
pickups.push({type:"gem", x:16, y:2});
pickups.push({type:"gem", x:0, y:8});
pickups.push({type:"gem", x:1, y:8});
pickups.push({type:"gem", x:2, y:8});
pickups.push({type:"gem", x:5, y:2});
pickups.push({type:"gem", x:5, y:3});
pickups.push({type:"gem", x:10, y:7});
pickups.push({type:"gem", x:10, y:8});
pickups.push({type:"gem", x:11, y:8});
pickups.push({type:"gem", x:19, y:8});
pickups.push({type:"gem", x:18, y:8});
randomPickups.push([{type:"gem", x:9, y:1}, {type:"gem", x:9, y:3}]);
dinos.push({type:"euo", fruit:"apple", faceLeft:false, x:7, y:6});
dinos.push({type:"maya", faceLeft:false, walkLeft:exitLeft, x:1, y:1});
scenery.push({type:"ground", x:0, y:0});
scenery.push({type:"ground", x:10, y:0});
scenery.push({type:"ground", x:0, y:5});
scenery.push({type:"ground", x:10, y:5});
scenery.push({type:"patch", asset:"grassy", x:7, y:3});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:5});
scenery.push({type:"edge", asset:"edge_top_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:10, y:0});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:0, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:10, y:9});
scenery.push({type:"edge", asset:"edge_right_mc", x:19, y:0});
scenery.push({type:"edge", asset:"edge_right_mc", x:19, y:5});
walls.push({type:"bushtall3", x:4, y:0});
walls.push({type:"bushlong5", x:5, y:0});
walls.push({type:"invis", x:6, y:0});
walls.push({type:"invis", x:7, y:0});
walls.push({type:"invis", x:8, y:0});
walls.push({type:"invis", x:9, y:0});
walls.push({type:"bushlong5", x:10, y:0});
walls.push({type:"invis", x:11, y:0});
walls.push({type:"invis", x:12, y:0});
walls.push({type:"invis", x:13, y:0});
walls.push({type:"invis", x:14, y:0});
walls.push({type:"bushlong5", x:15, y:0});
walls.push({type:"invis", x:16, y:0});
walls.push({type:"invis", x:17, y:0});
walls.push({type:"invis", x:18, y:0});
walls.push({type:"invis", x:19, y:0});
walls.push({type:"invis", x:4, y:1});
walls.push({type:"bushtall4", x:19, y:1});
walls.push({type:"bushlong3", x:0, y:2});
walls.push({type:"invis", x:1, y:2});
walls.push({type:"invis", x:2, y:2});
walls.push({type:"invis", x:4, y:2});
walls.push({type:"bushlong3", x:8, y:2});
walls.push({type:"invis", x:9, y:2});
walls.push({type:"invis", x:10, y:2});
walls.push({type:"invis", x:19, y:2});
walls.push({type:"bushtall5", x:0, y:3});
walls.push({type:"rocktall2", x:4, y:3});
walls.push({type:"bushtall3", x:12, y:3});
walls.push({type:"bushlong4", x:13, y:3});
walls.push({type:"invis", x:14, y:3});
walls.push({type:"invis", x:15, y:3});
walls.push({type:"invis", x:16, y:3});
walls.push({type:"bushtall3", x:17, y:3});
walls.push({type:"invis", x:19, y:3});
walls.push({type:"invis", x:0, y:4});
walls.push({type:"invis", x:4, y:4});
walls.push({type:"bushlong5", x:5, y:4});
walls.push({type:"invis", x:6, y:4});
walls.push({type:"invis", x:7, y:4});
walls.push({type:"invis", x:8, y:4});
walls.push({type:"invis", x:9, y:4});
walls.push({type:"invis", x:12, y:4});
walls.push({type:"invis", x:17, y:4});
walls.push({type:"invis", x:19, y:4});
walls.push({type:"invis", x:0, y:5});
walls.push({type:"bush4", x:9, y:5});
walls.push({type:"invis", x:12, y:5});
walls.push({type:"bushtall5", x:14, y:5});
walls.push({type:"bushlong3", x:15, y:5});
walls.push({type:"invis", x:16, y:5});
walls.push({type:"invis", x:17, y:5});
walls.push({type:"bush4", x:19, y:5});
walls.push({type:"invis", x:0, y:6});
walls.push({type:"rock1", x:4, y:6});
walls.push({type:"rock1", x:5, y:6});
walls.push({type:"invis", x:14, y:6});
walls.push({type:"bush4", x:19, y:6});
walls.push({type:"bushlong2", x:0, y:7});
walls.push({type:"invis", x:1, y:7});
walls.push({type:"bush4", x:8, y:7});
walls.push({type:"bush4", x:9, y:7});
walls.push({type:"invis", x:14, y:7});
walls.push({type:"bushtall2", x:9, y:8});
walls.push({type:"invis", x:14, y:8});
walls.push({type:"bushlong2", x:8, y:9});
walls.push({type:"invis", x:9, y:9});
walls.push({type:"invis", x:14, y:9});
player = {x:6, y:2};
camera = {x:0, y:0};
}
}
Symbol 909 MovieClip [__Packages.nickjr.diego.mazegame.levels.Level2] Frame 0
class nickjr.diego.mazegame.levels.Level2 extends nickjr.diego.mazegame.LevelData
{
var hungerRate, grid_width, __BLOCK_WIDTH, grid_height, __BLOCK_HEIGHT, randomFruits, fruits, pickups, exitLeft, dinos, scenery, walls, player, camera;
function Level2 () {
super();
}
function loadData() {
super.loadData();
hungerRate = 23;
grid_width = 3 * __BLOCK_WIDTH;
grid_height = 2 * __BLOCK_HEIGHT;
randomFruits.push([{type:"apple", x:0, y:6}, {type:"apple", x:0, y:6}, {type:"apple", x:25, y:8}]);
fruits.push({type:"orange", x:15, y:8});
pickups.push({type:"gem", x:0, y:5});
pickups.push({type:"gem", x:5, y:3});
pickups.push({type:"gem", x:5, y:4});
pickups.push({type:"gem", x:4, y:4});
pickups.push({type:"gem", x:7, y:1});
pickups.push({type:"gem", x:8, y:1});
pickups.push({type:"gem", x:13, y:4});
pickups.push({type:"gem", x:16, y:3});
pickups.push({type:"gem", x:20, y:3});
pickups.push({type:"gem", x:21, y:3});
pickups.push({type:"gem", x:22, y:3});
pickups.push({type:"gem", x:27, y:3});
pickups.push({type:"gem", x:24, y:8});
exitLeft = false;
dinos.push({type:"maya", faceLeft:false, walkLeft:exitLeft, x:28, y:7});
dinos.push({type:"gryp", fruit:"apple", faceLeft:false, x:19, y:6});
dinos.push({type:"euo", fruit:"orange", faceLeft:false, x:8, y:6});
scenery.push({type:"ground", x:0, y:0});
scenery.push({type:"ground", x:10, y:0});
scenery.push({type:"ground", x:20, y:0});
scenery.push({type:"ground", x:0, y:5});
scenery.push({type:"ground", x:10, y:5});
scenery.push({type:"ground", x:20, y:5});
scenery.push({type:"ground", x:0, y:10});
scenery.push({type:"ground", x:10, y:10});
scenery.push({type:"ground", x:20, y:10});
scenery.push({type:"patch", asset:"grassy", x:21, y:5});
scenery.push({type:"patch", asset:"grassy", x:7, y:3});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:5});
scenery.push({type:"edge", asset:"edge_top_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:10, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:20, y:0});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:0, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:10, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:20, y:9});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:0});
walls.push({type:"bushtall2", x:6, y:0});
walls.push({type:"bushlong3", x:8, y:0});
walls.push({type:"invis", x:9, y:0});
walls.push({type:"invis", x:10, y:0});
walls.push({type:"bush1", x:29, y:0});
walls.push({type:"invis", x:6, y:1});
walls.push({type:"bushlong3", x:1, y:2});
walls.push({type:"invis", x:2, y:2});
walls.push({type:"invis", x:3, y:2});
walls.push({type:"bushhuge1", x:6, y:2});
walls.push({type:"invis", x:7, y:2});
walls.push({type:"invis", x:8, y:2});
walls.push({type:"invis", x:9, y:2});
walls.push({type:"invis", x:10, y:2});
walls.push({type:"bushlong6", x:13, y:2});
walls.push({type:"invis", x:14, y:2});
walls.push({type:"bushtall4", x:15, y:2});
walls.push({type:"invis", x:16, y:2});
walls.push({type:"invis", x:17, y:2});
walls.push({type:"invis", x:18, y:2});
walls.push({type:"bushlong6", x:19, y:2});
walls.push({type:"invis", x:20, y:2});
walls.push({type:"invis", x:21, y:2});
walls.push({type:"invis", x:22, y:2});
walls.push({type:"invis", x:23, y:2});
walls.push({type:"invis", x:24, y:2});
walls.push({type:"bushtall3", x:25, y:2});
walls.push({type:"bushlong2", x:27, y:2});
walls.push({type:"bushtall3", x:28, y:2});
walls.push({type:"bushtall3", x:3, y:3});
walls.push({type:"invis", x:25, y:3});
walls.push({type:"invis", x:6, y:3});
walls.push({type:"invis", x:7, y:3});
walls.push({type:"invis", x:8, y:3});
walls.push({type:"invis", x:9, y:3});
walls.push({type:"invis", x:10, y:3});
walls.push({type:"bushtall3", x:12, y:3});
walls.push({type:"bushlong3", x:13, y:3});
walls.push({type:"invis", x:14, y:3});
walls.push({type:"invis", x:15, y:3});
walls.push({type:"invis", x:25, y:3});
walls.push({type:"bushlong2", x:0, y:4});
walls.push({type:"bushtall4", x:1, y:4});
walls.push({type:"invis", x:3, y:4});
walls.push({type:"bushtall2", x:6, y:4});
walls.push({type:"invis", x:12, y:4});
walls.push({type:"invis", x:15, y:4});
walls.push({type:"invis", x:25, y:4});
walls.push({type:"invis", x:28, y:4});
walls.push({type:"bushlong4", x:24, y:4});
walls.push({type:"invis", x:25, y:4});
walls.push({type:"bushtall6", x:26, y:4});
walls.push({type:"invis", x:27, y:4});
walls.push({type:"invis", x:28, y:4});
walls.push({type:"invis", x:1, y:5});
walls.push({type:"bushlong4", x:3, y:5});
walls.push({type:"invis", x:4, y:5});
walls.push({type:"invis", x:5, y:5});
walls.push({type:"invis", x:6, y:5});
walls.push({type:"bushlong6", x:8, y:5});
walls.push({type:"invis", x:9, y:5});
walls.push({type:"invis", x:10, y:5});
walls.push({type:"invis", x:11, y:5});
walls.push({type:"invis", x:12, y:5});
walls.push({type:"invis", x:13, y:5});
walls.push({type:"invis", x:15, y:5});
walls.push({type:"bushtall3", x:17, y:5});
walls.push({type:"bushlong4", x:18, y:5});
walls.push({type:"invis", x:19, y:5});
walls.push({type:"invis", x:20, y:5});
walls.push({type:"invis", x:21, y:5});
walls.push({type:"invis", x:26, y:5});
walls.push({type:"invis", x:1, y:6});
walls.push({type:"invis", x:17, y:6});
walls.push({type:"invis", x:26, y:6});
walls.push({type:"bush1", x:29, y:6});
walls.push({type:"bushlong6", x:1, y:7});
walls.push({type:"invis", x:2, y:7});
walls.push({type:"invis", x:3, y:7});
walls.push({type:"invis", x:4, y:7});
walls.push({type:"invis", x:5, y:7});
walls.push({type:"invis", x:6, y:7});
walls.push({type:"bushlong6", x:7, y:7});
walls.push({type:"invis", x:8, y:7});
walls.push({type:"invis", x:9, y:7});
walls.push({type:"invis", x:10, y:7});
walls.push({type:"invis", x:11, y:7});
walls.push({type:"invis", x:12, y:7});
walls.push({type:"bushtall3", x:14, y:7});
walls.push({type:"bushlong3", x:15, y:7});
walls.push({type:"invis", x:16, y:7});
walls.push({type:"invis", x:17, y:7});
walls.push({type:"bushtall3", x:20, y:7});
walls.push({type:"bushlong3", x:21, y:7});
walls.push({type:"invis", x:22, y:7});
walls.push({type:"bushtall3", x:23, y:7});
walls.push({type:"invis", x:26, y:7});
walls.push({type:"invis", x:14, y:8});
walls.push({type:"invis", x:20, y:8});
walls.push({type:"invis", x:23, y:8});
walls.push({type:"bushlong4", x:26, y:8});
walls.push({type:"invis", x:27, y:8});
walls.push({type:"invis", x:28, y:8});
walls.push({type:"invis", x:29, y:8});
walls.push({type:"invis", x:14, y:9});
walls.push({type:"invis", x:20, y:9});
walls.push({type:"invis", x:23, y:9});
walls.push({type:"invis", x:26, y:9});
player = {x:24, y:3};
camera = {x:22, y:4};
}
}
Symbol 910 MovieClip [__Packages.nickjr.diego.mazegame.levels.Level3] Frame 0
class nickjr.diego.mazegame.levels.Level3 extends nickjr.diego.mazegame.LevelData
{
var hungerRate, grid_width, __BLOCK_WIDTH, grid_height, __BLOCK_HEIGHT, fruits, randomFruits, pickups, exitLeft, dinos, scenery, walls, player, camera;
function Level3 () {
super();
}
function loadData() {
super.loadData();
hungerRate = 25;
grid_width = 3 * __BLOCK_WIDTH;
grid_height = 2 * __BLOCK_HEIGHT;
fruits.push({type:"orange", x:23, y:4});
fruits.push({type:"apple", x:27, y:7});
randomFruits.push([{type:"pear", x:9, y:1}, {type:"pear", x:15, y:1}]);
pickups.push({type:"gem", x:0, y:7});
pickups.push({type:"gem", x:0, y:8});
pickups.push({type:"gem", x:8, y:1});
pickups.push({type:"gem", x:8, y:3});
pickups.push({type:"gem", x:9, y:3});
pickups.push({type:"gem", x:14, y:1});
pickups.push({type:"gem", x:18, y:4});
pickups.push({type:"gem", x:18, y:5});
pickups.push({type:"gem", x:19, y:7});
pickups.push({type:"gem", x:19, y:8});
pickups.push({type:"gem", x:20, y:2});
pickups.push({type:"gem", x:22, y:4});
pickups.push({type:"gem", x:21, y:4});
pickups.push({type:"gem", x:29, y:2});
pickups.push({type:"gem", x:29, y:3});
exitLeft = true;
dinos.push({type:"gryp", fruit:"apple", faceLeft:false, x:21, y:8});
dinos.push({type:"brach", fruit:"orange", faceLeft:false, x:25, y:2});
dinos.push({type:"euo", fruit:"pear", faceLeft:false, x:4, y:6});
dinos.push({type:"maya", faceLeft:false, walkLeft:exitLeft, x:0, y:1});
scenery.push({type:"ground", x:0, y:0});
scenery.push({type:"ground", x:10, y:0});
scenery.push({type:"ground", x:20, y:0});
scenery.push({type:"ground", x:0, y:5});
scenery.push({type:"ground", x:10, y:5});
scenery.push({type:"ground", x:20, y:5});
scenery.push({type:"ground", x:0, y:10});
scenery.push({type:"ground", x:10, y:10});
scenery.push({type:"ground", x:20, y:10});
scenery.push({type:"patch", asset:"water_left", x:24, y:2});
scenery.push({type:"patch", asset:"water", x:25, y:2});
scenery.push({type:"patch", asset:"water_right", x:26, y:2});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:5});
scenery.push({type:"edge", asset:"edge_top_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:10, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:20, y:0});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:0, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:10, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:20, y:9});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:0});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:5});
var _local6;
_local6 = 0;
walls.push({type:"bushhuge1", x:3, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"bushlong3", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"bushtall4", x:13, y:_local6});
walls.push({type:"rock1", x:16, y:_local6});
walls.push({type:"bushtall2", x:18, y:_local6});
walls.push({type:"water_left", x:24, y:_local6});
walls.push({type:"water", x:25, y:_local6});
walls.push({type:"water_right", x:26, y:_local6});
_local6 = 1;
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"bushtall5", x:16, y:_local6});
walls.push({type:"bushlong2", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"water_left", x:24, y:_local6});
walls.push({type:"water", x:25, y:_local6});
walls.push({type:"water_right", x:26, y:_local6});
_local6 = 2;
walls.push({type:"rock1", x:0, y:_local6});
walls.push({type:"mountainhuge1", x:2, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"rocktall2", x:7, y:_local6});
walls.push({type:"rocklong3", x:8, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"rocktall2", x:14, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"bushtall2", x:21, y:_local6});
_local6 = 3;
walls.push({type:"invis", x:2, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"rocktall2", x:11, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"bushlong6", x:18, y:_local6});
walls.push({type:"bushtall4", x:19, y:_local6});
walls.push({type:"invis", x:20, y:_local6});
walls.push({type:"invis", x:21, y:_local6});
walls.push({type:"invis", x:22, y:_local6});
walls.push({type:"invis", x:23, y:_local6});
walls.push({type:"water_left", x:24, y:_local6});
walls.push({type:"water", x:25, y:_local6});
walls.push({type:"water_right", x:26, y:_local6});
walls.push({type:"bushtall2", x:28, y:_local6});
_local6 = 4;
walls.push({type:"invis", x:2, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"rock1", x:20, y:_local6});
walls.push({type:"water_left", x:24, y:_local6});
walls.push({type:"water_bottom", x:25, y:_local6});
walls.push({type:"water_inner_bottomright", x:26, y:_local6});
walls.push({type:"bushlong2", x:28, y:_local6});
walls.push({type:"invis", x:29, y:_local6});
_local6 = 5;
walls.push({type:"invis", x:2, y:_local6});
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"rock1", x:9, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"water_inner_topleft", x:22, y:_local6});
walls.push({type:"water_top", x:23, y:_local6});
walls.push({type:"water_right", x:24, y:_local6});
_local6 = 6;
walls.push({type:"rocktall2", x:2, y:_local6});
walls.push({type:"rock1", x:9, y:_local6});
walls.push({type:"mountainhuge1", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"bushtall4", x:18, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"water_inner_topleft", x:21, y:_local6});
walls.push({type:"water", x:22, y:_local6});
walls.push({type:"water", x:23, y:_local6});
walls.push({type:"water_right", x:24, y:_local6});
walls.push({type:"bushtall4", x:26, y:_local6});
walls.push({type:"bushlong2", x:27, y:_local6});
walls.push({type:"bushtall2", x:28, y:_local6});
_local6 = 7;
walls.push({type:"invis", x:2, y:_local6});
walls.push({type:"bushlong7", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"invis", x:8, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"water_inner_bottomleft", x:21, y:_local6});
walls.push({type:"water_bottom", x:22, y:_local6});
walls.push({type:"water_bottom", x:23, y:_local6});
walls.push({type:"water_inner_bottomright", x:24, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"invis", x:28, y:_local6});
_local6 = 8;
walls.push({type:"rocktall2", x:4, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
_local6 = 9;
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
player = {x:28, y:1};
camera = {x:27, y:3};
}
}
Symbol 911 MovieClip [__Packages.nickjr.diego.mazegame.levels.Level4] Frame 0
class nickjr.diego.mazegame.levels.Level4 extends nickjr.diego.mazegame.LevelData
{
var hungerRate, grid_width, __BLOCK_WIDTH, grid_height, __BLOCK_HEIGHT, fruits, pickups, exitLeft, dinos, scenery, walls, player, camera;
function Level4 () {
super();
}
function loadData() {
super.loadData();
hungerRate = 18;
grid_width = 2 * __BLOCK_WIDTH;
grid_height = 2 * __BLOCK_HEIGHT;
fruits.push({type:"orange", x:0, y:4});
fruits.push({type:"apple", x:16, y:5});
fruits.push({type:"pear", x:14, y:1});
pickups.push({type:"gem", x:5, y:1});
pickups.push({type:"gem", x:6, y:1});
pickups.push({type:"gem", x:6, y:5});
pickups.push({type:"gem", x:6, y:6});
pickups.push({type:"gem", x:13, y:4});
pickups.push({type:"gem", x:14, y:4});
exitLeft = false;
dinos.push({type:"gryp", fruit:"apple", faceLeft:false, walkLeft:true, x:1, y:6});
dinos.push({type:"brach", fruit:"pear", faceLeft:true, x:13, y:7});
dinos.push({type:"gryp", fruit:"orange", faceLeft:true, walkLeft:false, x:19, y:3});
dinos.push({type:"maya", faceLeft:true, walkLeft:exitLeft, x:18, y:8});
scenery.push({type:"ground", x:0, y:0});
scenery.push({type:"ground", x:10, y:0});
scenery.push({type:"ground", x:0, y:5});
scenery.push({type:"ground", x:10, y:5});
scenery.push({type:"ground", x:0, y:10});
scenery.push({type:"ground", x:10, y:10});
scenery.push({type:"patch", asset:"water_left", x:12, y:7});
scenery.push({type:"patch", asset:"water", x:13, y:7});
scenery.push({type:"patch", asset:"water_right", x:14, y:7});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:5});
scenery.push({type:"edge", asset:"edge_top_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:10, y:0});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:0, y:9});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:10, y:9});
var _local6;
_local6 = 0;
walls.push({type:"bushtall2", x:3, y:_local6});
walls.push({type:"bushlong2", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"bushtall3", x:7, y:_local6});
walls.push({type:"rock1", x:8, y:_local6});
walls.push({type:"water_left", x:11, y:_local6});
walls.push({type:"water", x:12, y:_local6});
walls.push({type:"water_right", x:13, y:_local6});
walls.push({type:"water_left", x:19, y:_local6});
_local6 = 1;
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"water_left", x:11, y:_local6});
walls.push({type:"water", x:12, y:_local6});
walls.push({type:"water_right", x:13, y:_local6});
walls.push({type:"water_left", x:19, y:_local6});
_local6 = 2;
walls.push({type:"bushtall2", x:5, y:_local6});
walls.push({type:"bushlong2", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"rocktall2", x:9, y:_local6});
walls.push({type:"water_inner_bottomleft", x:11, y:_local6});
walls.push({type:"water", x:12, y:_local6});
walls.push({type:"water", x:13, y:_local6});
walls.push({type:"water_top", x:14, y:_local6});
walls.push({type:"water_inner_topright", x:15, y:_local6});
walls.push({type:"rocklong2", x:16, y:_local6});
walls.push({type:"invis", x:17, y:_local6});
walls.push({type:"water_inner_bottomleft", x:19, y:_local6});
_local6 = 3;
walls.push({type:"bushlong2", x:0, y:_local6});
walls.push({type:"bushtall3", x:1, y:_local6});
walls.push({type:"bushlong3", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"water_inner_bottomleft", x:12, y:_local6});
walls.push({type:"water_bottom", x:13, y:_local6});
walls.push({type:"water_bottom", x:14, y:_local6});
walls.push({type:"water_inner_bottomright", x:15, y:_local6});
_local6 = 4;
walls.push({type:"invis", x:1, y:_local6});
walls.push({type:"water_inner_topleft", x:8, y:_local6});
walls.push({type:"water_top", x:9, y:_local6});
walls.push({type:"water_inner_topright", x:10, y:_local6});
walls.push({type:"bush4", x:17, y:_local6});
walls.push({type:"bush4", x:18, y:_local6});
walls.push({type:"bush4", x:19, y:_local6});
_local6 = 5;
walls.push({type:"invis", x:1, y:_local6});
walls.push({type:"water_inner_topleft", x:3, y:_local6});
walls.push({type:"water_top", x:4, y:_local6});
walls.push({type:"water_inner_topright", x:5, y:_local6});
walls.push({type:"bushtall3", x:7, y:_local6});
walls.push({type:"water_inner_bottomleft", x:8, y:_local6});
walls.push({type:"water_bottom", x:9, y:_local6});
walls.push({type:"water_inner_bottomright", x:10, y:_local6});
walls.push({type:"rock1", x:11, y:_local6});
walls.push({type:"water_inner_topleft", x:12, y:_local6});
walls.push({type:"water_top", x:13, y:_local6});
walls.push({type:"water_top", x:14, y:_local6});
walls.push({type:"water_inner_topright", x:15, y:_local6});
walls.push({type:"water_inner_topleft", x:17, y:_local6});
walls.push({type:"water_top", x:18, y:_local6});
walls.push({type:"water_top", x:19, y:_local6});
_local6 = 6;
walls.push({type:"water_left", x:3, y:_local6});
walls.push({type:"water", x:4, y:_local6});
walls.push({type:"water_right", x:5, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"water_left", x:12, y:_local6});
walls.push({type:"water", x:13, y:_local6});
walls.push({type:"water", x:14, y:_local6});
walls.push({type:"water_bottom", x:13, y:_local6});
walls.push({type:"water_bottom", x:14, y:_local6});
walls.push({type:"water_inner_bottomright", x:15, y:_local6});
walls.push({type:"rock1", x:16, y:_local6});
walls.push({type:"water_left", x:17, y:_local6});
walls.push({type:"water", x:18, y:_local6});
walls.push({type:"water", x:19, y:_local6});
_local6 = 7;
walls.push({type:"bush4", x:0, y:_local6});
walls.push({type:"bush4", x:1, y:_local6});
walls.push({type:"water_inner_bottomleft", x:3, y:_local6});
walls.push({type:"water_bottom", x:4, y:_local6});
walls.push({type:"water_inner_bottomright", x:5, y:_local6});
walls.push({type:"rock1", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"water_inner_topleft", x:9, y:_local6});
walls.push({type:"water_inner_topright", x:10, y:_local6});
walls.push({type:"water_inner_bottomleft", x:17, y:_local6});
walls.push({type:"water_bottom", x:18, y:_local6});
walls.push({type:"water_bottom", x:19, y:_local6});
_local6 = 8;
walls.push({type:"bush4", x:1, y:_local6});
walls.push({type:"water_left", x:9, y:_local6});
walls.push({type:"water_right", x:10, y:_local6});
walls.push({type:"water_left", x:12, y:_local6});
walls.push({type:"water", x:13, y:_local6});
walls.push({type:"water_right", x:14, y:_local6});
_local6 = 9;
walls.push({type:"bush4", x:1, y:_local6});
walls.push({type:"water_left", x:9, y:_local6});
walls.push({type:"water", x:10, y:_local6});
walls.push({type:"water_top", x:11, y:_local6});
walls.push({type:"water", x:12, y:_local6});
walls.push({type:"water", x:13, y:_local6});
walls.push({type:"water_right", x:14, y:_local6});
player = {x:2, y:1};
camera = {x:27, y:3};
}
}
Symbol 912 MovieClip [__Packages.nickjr.diego.mazegame.levels.Level5] Frame 0
class nickjr.diego.mazegame.levels.Level5 extends nickjr.diego.mazegame.LevelData
{
var hungerRate, grid_width, __BLOCK_WIDTH, grid_height, __BLOCK_HEIGHT, fruits, pickups, exitLeft, dinos, scenery, walls, player, camera;
function Level5 () {
super();
}
function loadData() {
super.loadData();
hungerRate = 25;
grid_width = 3 * __BLOCK_WIDTH;
grid_height = 3 * __BLOCK_HEIGHT;
fruits.push({type:"apple", x:14, y:1});
fruits.push({type:"pear", x:25, y:6});
fruits.push({type:"banana", x:10, y:3});
fruits.push({type:"orange", x:3, y:5});
pickups.push({type:"gem", x:5, y:5});
pickups.push({type:"gem", x:8, y:9});
pickups.push({type:"gem", x:2, y:8});
pickups.push({type:"gem", x:16, y:1});
pickups.push({type:"gem", x:27, y:13});
pickups.push({type:"gem", x:29, y:13});
pickups.push({type:"gem", x:28, y:6});
pickups.push({type:"gem", x:29, y:6});
pickups.push({type:"gem", x:20, y:8});
pickups.push({type:"gem", x:20, y:9});
exitLeft = false;
dinos.push({type:"gryp", fruit:"banana", faceLeft:true, x:18, y:3});
dinos.push({type:"euo", fruit:"pear", faceLeft:true, x:4, y:2});
dinos.push({type:"igu", fruit:"orange", faceLeft:false, x:3, y:11});
dinos.push({type:"brach", fruit:"apple", faceLeft:true, x:22, y:2});
dinos.push({type:"maya", faceLeft:true, walkLeft:exitLeft, x:26, y:1});
scenery.push({type:"ground", x:0, y:0});
scenery.push({type:"ground", x:10, y:0});
scenery.push({type:"ground", x:20, y:0});
scenery.push({type:"ground", x:0, y:5});
scenery.push({type:"ground", x:10, y:5});
scenery.push({type:"ground", x:20, y:5});
scenery.push({type:"ground", x:0, y:10});
scenery.push({type:"ground", x:10, y:10});
scenery.push({type:"ground", x:20, y:10});
scenery.push({type:"patch", asset:"rocky", x:21, y:7});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:5});
scenery.push({type:"edge", asset:"edge_left_mc", x:0, y:10});
scenery.push({type:"edge", asset:"edge_top_mc", x:0, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:10, y:0});
scenery.push({type:"edge", asset:"edge_top_mc", x:20, y:0});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:0, y:14});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:10, y:14});
scenery.push({type:"edge", asset:"edge_bottom_mc", x:20, y:14});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:0});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:5});
scenery.push({type:"edge", asset:"edge_right_mc", x:29, y:10});
scenery.push({type:"patch", asset:"water_left", x:21, y:2});
scenery.push({type:"patch", asset:"water", x:22, y:2});
scenery.push({type:"patch", asset:"water_right", x:23, y:2});
var _local6 = 0;
walls.push({type:"rock1", x:1, y:_local6});
walls.push({type:"rock1", x:7, y:_local6});
walls.push({type:"bushlong6", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"bushtall3", x:15, y:_local6});
walls.push({type:"water_left", x:21, y:_local6});
walls.push({type:"water", x:22, y:_local6});
walls.push({type:"water_right", x:23, y:_local6});
walls.push({type:"bush1", x:25, y:_local6});
_local6 = 1;
walls.push({type:"rocklong3", x:2, y:_local6});
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"rocklong2", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"invis", x:15, y:_local6});
walls.push({type:"water_left", x:21, y:_local6});
walls.push({type:"water", x:22, y:_local6});
walls.push({type:"water_right", x:23, y:_local6});
_local6 = 2;
walls.push({type:"rocklong2", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"bushtall3", x:11, y:_local6});
walls.push({type:"bushtall2", x:14, y:_local6});
walls.push({type:"invis", x:15, y:_local6});
walls.push({type:"bush1", x:16, y:_local6});
walls.push({type:"bushlong3", x:25, y:_local6});
_local6 = 3;
walls.push({type:"rocklong2", x:2, y:_local6});
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"rocklong3", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"invis", x:8, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"water_left", x:21, y:_local6});
walls.push({type:"water", x:22, y:_local6});
walls.push({type:"water", x:23, y:_local6});
walls.push({type:"water_top", x:24, y:_local6});
walls.push({type:"water_top", x:25, y:_local6});
walls.push({type:"water_top", x:26, y:_local6});
walls.push({type:"water_top", x:27, y:_local6});
walls.push({type:"water_top", x:28, y:_local6});
walls.push({type:"water_top", x:29, y:_local6});
_local6 = 4;
walls.push({type:"rocklong3", x:1, y:_local6});
walls.push({type:"invis", x:2, y:_local6});
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"bushlong3", x:16, y:_local6});
walls.push({type:"invis", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"bush4", x:19, y:_local6});
walls.push({type:"bush4", x:20, y:_local6});
walls.push({type:"water_inner_bottomleft", x:21, y:_local6});
walls.push({type:"water_bottom", x:22, y:_local6});
walls.push({type:"water_bottom", x:23, y:_local6});
walls.push({type:"water_bottom", x:24, y:_local6});
walls.push({type:"water_bottom", x:25, y:_local6});
walls.push({type:"water_bottom", x:26, y:_local6});
walls.push({type:"water_bottom", x:27, y:_local6});
walls.push({type:"water_bottom", x:28, y:_local6});
walls.push({type:"water_bottom", x:29, y:_local6});
_local6 = 5;
walls.push({type:"rocktall3", x:1, y:_local6});
walls.push({type:"rock1", x:4, y:_local6});
walls.push({type:"bushlong6", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"invis", x:8, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"bushtall4", x:14, y:_local6});
walls.push({type:"bushlong6", x:15, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"invis", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"invis", x:20, y:_local6});
walls.push({type:"bushlong6", x:21, y:_local6});
walls.push({type:"invis", x:22, y:_local6});
walls.push({type:"invis", x:23, y:_local6});
walls.push({type:"invis", x:24, y:_local6});
walls.push({type:"invis", x:25, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"bushlong4", x:27, y:_local6});
walls.push({type:"invis", x:28, y:_local6});
walls.push({type:"invis", x:29, y:_local6});
walls.push({type:"invis", x:30, y:_local6});
_local6 = 6;
walls.push({type:"invis", x:1, y:_local6});
walls.push({type:"rocklong3", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"rocklong2", x:22, y:_local6});
walls.push({type:"invis", x:23, y:_local6});
walls.push({type:"rocktall2", x:26, y:_local6});
_local6 = 7;
walls.push({type:"invis", x:1, y:_local6});
walls.push({type:"rock1", x:5, y:_local6});
walls.push({type:"rock1", x:8, y:_local6});
walls.push({type:"rock1", x:10, y:_local6});
walls.push({type:"bushtall3", x:11, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"rocklong3", x:16, y:_local6});
walls.push({type:"invis", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"rock1", x:20, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"rocktall2", x:28, y:_local6});
walls.push({type:"rock1", x:29, y:_local6});
_local6 = 8;
walls.push({type:"bush3", x:1, y:_local6});
walls.push({type:"rock1", x:3, y:_local6});
walls.push({type:"rock1", x:7, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"rock1", x:16, y:_local6});
walls.push({type:"rocklong3", x:21, y:_local6});
walls.push({type:"invis", x:22, y:_local6});
walls.push({type:"invis", x:23, y:_local6});
walls.push({type:"invis", x:24, y:_local6});
walls.push({type:"rocklong2", x:25, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"invis", x:28, y:_local6});
_local6 = 9;
walls.push({type:"bush3", x:1, y:_local6});
walls.push({type:"bushlong6", x:2, y:_local6});
walls.push({type:"invis", x:3, y:_local6});
walls.push({type:"invis", x:4, y:_local6});
walls.push({type:"invis", x:5, y:_local6});
walls.push({type:"invis", x:6, y:_local6});
walls.push({type:"invis", x:7, y:_local6});
walls.push({type:"rock1", x:9, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"rock1", x:18, y:_local6});
walls.push({type:"rock1", x:21, y:_local6});
_local6 = 10;
walls.push({type:"bush3", x:1, y:_local6});
walls.push({type:"bush3", x:7, y:_local6});
walls.push({type:"bushtall2", x:8, y:_local6});
walls.push({type:"rock1", x:14, y:_local6});
walls.push({type:"rocklong3", x:15, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"invis", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"rocklong3", x:23, y:_local6});
walls.push({type:"invis", x:24, y:_local6});
walls.push({type:"invis", x:25, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"rock1", x:27, y:_local6});
walls.push({type:"rock1", x:29, y:_local6});
_local6 = 11;
walls.push({type:"bush3", x:1, y:_local6});
walls.push({type:"bush3", x:5, y:_local6});
walls.push({type:"bushlong4", x:8, y:_local6});
walls.push({type:"invis", x:9, y:_local6});
walls.push({type:"invis", x:10, y:_local6});
walls.push({type:"bushtall2", x:11, y:_local6});
walls.push({type:"rock1", x:20, y:_local6});
walls.push({type:"rock1", x:24, y:_local6});
_local6 = 12;
walls.push({type:"bush3", x:5, y:_local6});
walls.push({type:"bush3", x:6, y:_local6});
walls.push({type:"invis", x:11, y:_local6});
walls.push({type:"bushlong3", x:12, y:_local6});
walls.push({type:"invis", x:13, y:_local6});
walls.push({type:"invis", x:14, y:_local6});
walls.push({type:"rocklong2", x:15, y:_local6});
walls.push({type:"invis", x:16, y:_local6});
walls.push({type:"rocklong3", x:17, y:_local6});
walls.push({type:"invis", x:18, y:_local6});
walls.push({type:"invis", x:19, y:_local6});
walls.push({type:"invis", x:20, y:_local6});
walls.push({type:"rocklong3", x:21, y:_local6});
walls.push({type:"invis", x:22, y:_local6});
walls.push({type:"invis", x:23, y:_local6});
walls.push({type:"invis", x:24, y:_local6});
walls.push({type:"rocktall3", x:26, y:_local6});
_local6 = 13;
walls.push({type:"bush3", x:6, y:_local6});
walls.push({type:"bush3", x:9, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
walls.push({type:"rock1", x:28, y:_local6});
_local6 = 14;
walls.push({type:"bush3", x:5, y:_local6});
walls.push({type:"bush3", x:9, y:_local6});
walls.push({type:"rock1", x:22, y:_local6});
walls.push({type:"invis", x:26, y:_local6});
player = {x:13, y:1};
camera = {x:6, y:3};
}
}
Symbol 495 MovieClip Frame 8
stop();
Symbol 496 MovieClip [pickup1_mc] Frame 1
stop();
Symbol 496 MovieClip [pickup1_mc] Frame 12
stop();
Symbol 498 MovieClip [pickup2_mc] Frame 1
stop();
Symbol 498 MovieClip [pickup2_mc] Frame 12
stop();
Symbol 502 MovieClip [pickup3_mc] Frame 1
stop();
Symbol 502 MovieClip [pickup3_mc] Frame 12
stop();
Symbol 522 MovieClip Frame 21
stop();
Symbol 541 MovieClip Frame 21
stop();
Symbol 570 MovieClip Frame 23
stop();
Symbol 590 MovieClip [diego_mc] Frame 1
stop();
Symbol 622 MovieClip [dino1_mc] Frame 1
stop();
Symbol 622 MovieClip [dino1_mc] Frame 54
stop();
Symbol 622 MovieClip [dino1_mc] Frame 55
if (walkLeft) {
_xscale = -100;
} else {
_xscale = 100;
}
Symbol 622 MovieClip [dino1_mc] Frame 86
stop();
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 9
fruit_mc.gotoAndStop(_parent.fruit);
Symbol 642 MovieClip Frame 12
stop();
Symbol 671 MovieClip [dino2_mc] Frame 1
stop();
Symbol 671 MovieClip [dino2_mc] Frame 27
if (fed) {
play();
} else {
stop();
}
Symbol 671 MovieClip [dino2_mc] Frame 82
stop();
Symbol 701 MovieClip [dino3_mc] Frame 1
stop();
Symbol 701 MovieClip [dino3_mc] Frame 36
if (fed) {
play();
} else {
stop();
}
Symbol 701 MovieClip [dino3_mc] Frame 37
if (walkLeft) {
_xscale = -100;
} else {
_xscale = 100;
}
request_mc.gotoAndStop("off");
Symbol 701 MovieClip [dino3_mc] Frame 63
stop();
Symbol 738 MovieClip [dino4_mc] Frame 1
stop();
Symbol 738 MovieClip [dino4_mc] Frame 31
if (fed) {
play();
} else {
stop();
}
Symbol 738 MovieClip [dino4_mc] Frame 120
stop();
Symbol 741 MovieClip [dino5_mc] Frame 1
stop();
left_eye.gotoAndPlay(1);
right_eye.gotoAndPlay(1);
Symbol 741 MovieClip [dino5_mc] Frame 9
gotoAndStop (1);
Symbol 741 MovieClip [dino5_mc] Frame 19
if (fed) {
play();
} else {
gotoAndPlay ("settle");
}
Symbol 741 MovieClip [dino5_mc] Frame 51
stop();
Symbol 742 MovieClip [fruit_apple_mc] Frame 18
stop();
Symbol 743 MovieClip [fruit_banana_mc] Frame 15
stop();
Symbol 746 MovieClip [fruit_orange_mc] Frame 15
stop();
Symbol 747 MovieClip [fruit_pear_mc] Frame 15
stop();
Symbol 771 MovieClip [moveTarget_mc] Frame 6
stop();