STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229593 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #42314 |
BOSS NAME |
~Short description of the boss~ |
The message will go here. This is a really long one to show you how it will look. Horray! It keeps going, all the way to three whole lines! |
[name_txt] |
The Legend of Newgrounds: How to Play Gameplay is simple in this game. To move, use your arrow keys. To swing the sword, use "S," and to perform an action (such as opening a chest or closing a message), press "A." |
The Legend of Newgrounds: The Story You are Pico, and you live in the Kingdom of Newgrounds. After years of prosperity, a band of evil spam Flashes ravaged the kingdom and took over the castle, taking King Tom captive. No one knows who led the revolt... |
The Legend of Newgrounds: The Story (cont.) Your goal is to save King Tom and restore order to Newgrounds. However, you cannot even enter the castle without the magical Blam Sword, and to acquire it, you must first collect the three awards: Daily 1st, Weekly 1st, and Review Crew Pick of the Week. |
The Legend of Newgrounds: The Story (cont.) So, you must travel across the kingdom in search of these awards. One is in the Audio Portal, one in the Flash Portal, and the last can be found in the BBS. |
The Legend of Newgrounds: The Story (cont.) So who is behind the attack? That's for you to find out! |
The Legend of Newgrounds: NG Chests While adventuring, you may come across a chest labeled by "NG." These chests are hidden throughout the kingdom and usually only appear after killing all the enemies on a screen. |
The Legend of Newgrounds: NG Chests When you open one, you gain levels. Every three you collect, you get a new heart container. Rumor has it that the Clock Crew is somehow connected to these chests... |
ActionScript [AS1/AS2]
Frame 1function getNewgrounds() { if (NewgroundsAPI.isInstalled()) { NewgroundsAPI.loadNewgrounds(); } else { getURL ("http://www.newgrounds.com", "_blank"); } } stop(); NewgroundsAPI.connectMovie(109); NewgroundsAPI.addCustomEvent(1, "Level 1 Cleared"); NewgroundsAPI.addCustomEvent(2, "Level 2 Cleared"); NewgroundsAPI.addCustomEvent(3, "Level 3 Cleared"); NewgroundsAPI.addCustomEvent(4, "Level 4 Cleared"); NewgroundsAPI.addCustomEvent(5, "Level 5 Cleared"); NewgroundsAPI.addCustomEvent(6, "Game Cleared"); NewgroundsAPI.setMovieVersion("1.3"); var menu = new ContextMenu(); menu.hideBuiltInItems(); menu.builtInItems.quality = true; var cmi1 = new ContextMenuItem("Visit Newgrounds", getNewgrounds); menu.customItems.push(cmi1); _root.menu = menu;Frame 8stopAllSounds();Frame 9song = "song4"; if (music.song != song) { attachMovie(song, "music", 10); } var so = SharedObject.getLocal("ShirkDeio_Legend_of_Newgrounds", "/"); if (so.data.badge == undefined) { so.data.badge = 0; } new_mc.name_txt.text = "New Game"; new_mc.onRelease = function () { so.clear(); gotoAndStop ("overworld"); }; continue_mc.name_txt.text = "Continue"; continue_mc.onRelease = function () { gotoAndStop ("overworld"); }; howtoplay_mc.name_txt.text = "How to Play"; howtoplay_mc.onRelease = function () { gotoAndStop ("howtoplay"); }; playmoregames_mc.name_txt.text = "More Games"; playmoregames_mc.onRelease = function () { NewgroundsAPI.loadNewgrounds(); };Frame 22stop();Frame 23back_mc.name_txt.text = "Back"; back_mc.onRelease = function () { gotoAndPlay ("menu"); }; next_mc.name_txt.text = "Next"; next_mc.onRelease = function () { nextFrame(); };Frame 24back_mc.name_txt.text = "Back"; back_mc.onRelease = function () { prevFrame(); }; next_mc.name_txt.text = "Next"; next_mc.onRelease = function () { nextFrame(); };Frame 29back_mc.name_txt.text = "Back"; back_mc.onRelease = function () { prevFrame(); }; next_mc.name_txt.text = "Next"; next_mc.onRelease = function () { gotoAndPlay ("menu"); };Frame 30function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles = _root.tiles; game.tiles.setMask(mask_mc); r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * 300) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); showChests(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 3) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("A-Bot", "~Guardian of the Audio Portal~"); attachMovie("song2", "music", 10); } i++; } if (levelBeaten) { openLocks(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { tile = game[(("tile_" + r) + "_") + c]; if (tile.chest) { i = 1; while (i <= 15) { if (so.data[("chest" + i) + "open"] && (i == tile.id)) { tile.visible = true; tile.tile.gotoAndStop(tile.visibleFrame); tile.tile.tile.gotoAndStop(tile.tile.tile._totalframes); tile.openChest = true; tile.walkable = false; } i++; } } c++; } r++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; game.tiles.hud.maxhealth = hero.maxhealth; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } if (this.maxhealth != hero.maxhealth) { this.maxhealth = hero.maxhealth; hero.health = hero.maxhealth; i = 0; while (i < hero.maxhealth) { this.attachMovie("heart", "heart" + i, i); this["heart" + i]._x = i * 20; if (i >= 5) { this["heart" + i]._x = (i - 5) * 20; this["heart" + i]._y = 20; } i++; } } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object) { if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (object.speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (object.speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } object.action = "walk"; if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if ((tile == object.tileUpLeft) && (!unlocked)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (object.speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } object.action = "walk"; if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if ((tile == object.tileUpRight) && (!unlocked)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (object.speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (object.speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } object.action = "walk"; object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if ((tile == object.tileUpLeft) && (!unlocked)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (object.speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } object.action = "walk"; object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if ((tile == object.tileDownLeft) && (!unlocked)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); object.clip._x = object.x; object.clip._y = object.y; } object.clip.gotoAndStop(object.action + object.dir); if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].scene)) { scene = game[(("tile_" + object.ytile) + "_") + object.xtile].sceneName; if (game[(("tile_" + object.ytile) + "_") + object.xtile].sceneCondition) { gotoAndStop ("scene"); } } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (_local1.speed * _local1.xdir), _local1.y + (_local1.speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local3 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local3 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 3 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "move" : _local1.hit = false; if (_local1.movementDirection == undefined) { if ((_local1.xtile == 5) && (Math.floor(Math.random() * 2) == 0)) { moveRight = 1; } else { moveRight = 0; } if ((_local1.xtile < 5) || (moveRight == 1)) { if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "up"; } } else if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "up"; } } switch (_local1.movementDirection) { case "left" : moveObject(-1, 0, _local1); break; case "right" : moveObject(1, 0, _local1); break; case "up" : moveObject(0, -1, _local1); break; case "down" : moveObject(0, 1, _local1); } if (Math.floor(_local1.currentAction + 0.05) > Math.floor(_local1.currentAction)) { delete _local1.movementDirection; } _local1.currentAction = _local1.currentAction + 0.05; if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "align" : _local1.hit = false; if (_local1.xtile > 5) { _local1.movementDirection = "left"; } else if (_local1.xtile < 5) { _local1.movementDirection = "right"; } else if (_local1.ytile > 5) { _local1.movementDirection = "up"; } else { _local1.currentAction++; } switch (_local1.movementDirection) { case "left" : moveObject(-1, 0, _local1); break; case "right" : moveObject(1, 0, _local1); break; case "up" : moveObject(0, -1, _local1); break; case "down" : moveObject(0, 1, _local1); } if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "attack1" : _local1.currentAction = _local1.currentAction + 0.02; _local1.action = "attack"; _local1.dir = "down"; _local1.clip.gotoAndStop("attack1"); break; case "attack2" : _local1.currentAction = _local1.currentAction + 0.02; _local1.action = "attack"; _local1.dir = "down"; _local1.clip.gotoAndStop("attack2"); break; case "idle" : _local1.invinsible = false; _local1.currentAction = _local1.currentAction + 0.01; if (_local1.clip.hitTest(hero.clip.hero.sword) && (!_local1.hit)) { _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health > 0) { _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); } } _local1.action = "walk"; _local1.dir = "down"; _local1.clip.gotoAndStop("walkdown"); } } else { _local1.clip.gotoAndStop("die"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function showChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest && (!game[_local2].visible)) { game[_local2].tile.gotoAndStop(game[_local2].visibleFrame); game[_local2].walkable = false; game[_local2].visible = true; } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (!so.data.intro) { so.data.intro = true; scene = "intro"; gotoAndStop ("scene"); } if (overworldRooms == undefined) { var overworldRooms = new Object(); i = 1; while (i <= 61) { overworldRooms[("room" + i) + "visited"] = false; i++; } } visitedObject = overworldRooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_over", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var room1 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 10, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 13, 12, 12, 12, 12, 11, 11], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 20, 20, 20, 20, 20, 20, 20, 20, 14, 9]]; var room2 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 15, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 13, 12, 12, 12, 12, 11, 11], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 23, 23, 23, 23, 23, 23, 23, 23, 14, 9]]; var room3 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 16, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 13, 12, 12, 12, 12, 11, 11], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 34, 34, 34, 34, 34, 34, 34, 34, 14, 9]]; var room4 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 17, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 13, 12, 12, 12, 12, 11, 11], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 35, 35, 35, 35, 35, 35, 35, 35, 14, 9]]; var room5 = [[11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 18, 12, 12, 12, 12, 11, 11], [11, 12, 12, 12, 12, 13, 12, 12, 12, 12, 11, 11], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 14, 40, 40, 40, 40, 40, 40, 40, 40, 14, 9]]; var room6 = [[14, 9, 19, 19, 19, 19, 19, 19, 19, 19, 9, 14], [2, 14, 9, 9, 9, 9, 9, 9, 9, 9, 14, 21], [2, 9, 14, 9, 9, 227, 9, 9, 9, 9, 9, 21], [2, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 21], [2, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223], [2, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 21], [2, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 21], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 21], [2, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 21], [2, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 21], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 21], [2, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 9]]; var room7 = [[9, 14, 9, 14, 9, 14, 9, 14, 9, 14, 9, 14], [14, 9, 14, 9, 14, 9, 14, 9, 14, 9, 14, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25], [14, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 25], [22, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 25], [22, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25], [22, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 25], [22, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25], [22, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 25], [22, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25], [9, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 9]]; var room8 = [[9, 14, 24, 24, 24, 24, 24, 24, 24, 24, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [26, 9, 9, 9, 9, 228, 9, 9, 9, 9, 9, 9], [26, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 14], [26, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 27], [26, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 27], [26, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 27], [26, 9, 14, 9, 9, 14, 9, 9, 9, 9, 9, 27], [26, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 27], [26, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 27], [26, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 27], [9, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 9]]; var room9 = [[9, 14, 29, 29, 29, 29, 29, 29, 29, 29, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 9, 9, 9, 9, 229, 9, 9, 9, 9, 9, 9], [225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225], [28, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 30], [28, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 30], [28, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 30], [28, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 30], [28, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 30], [28, 9, 9, 9, 9, 14, 9, 14, 9, 9, 9, 30], [28, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 30], [9, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 9]]; var room10 = [[9, 14, 32, 32, 32, 32, 32, 32, 32, 32, 14, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [9, 9, 9, 9, 9, 230, 9, 9, 9, 9, 9, 9], [224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224], [31, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 33], [31, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 33], [31, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 33], [31, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 33], [31, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 33], [31, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 33], [31, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 33], [9, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 9]]; var room11 = [[9, 14, 9, 14, 9, 14, 9, 14, 9, 14, 9, 14], [14, 9, 14, 9, 14, 9, 14, 9, 14, 9, 14, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 14], [36, 9, 14, 9, 9, 9, 9, 14, 9, 9, 9, 37], [36, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 37], [36, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 37], [36, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 37], [36, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 37], [36, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 37], [36, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 37], [9, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 9]]; var room12 = [[14, 9, 39, 39, 39, 39, 39, 39, 39, 39, 9, 14], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 9, 9, 9, 9, 231, 9, 9, 9, 9, 9, 4], [226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 4], [38, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 4], [38, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 4], [38, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [38, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 4], [38, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 4], [38, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [38, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 4], [9, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 4]]; var room13 = [[2, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 54], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 54], [2, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 54], [2, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 54], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 54], [2, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 54], [2, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 54], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 54], [2, 9, 14, 9, 9, 9, 9, 14, 9, 9, 9, 54], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 54], [2, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 9]]; var room14 = [[9, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 9], [55, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 56], [55, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 56], [55, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 56], [55, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 56], [55, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 56], [55, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 56], [55, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 56], [55, 9, 9, 9, 9, 14, 9, 9, 14, 9, 9, 56], [55, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 56], [55, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 56], [9, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 9]]; var room15 = [[9, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 9], [57, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 58], [57, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 58], [57, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 58], [57, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 58], [57, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 58], [57, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 58], [57, 9, 14, 9, 9, 9, 9, 9, 9, 14, 9, 58], [57, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 58], [57, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 58], [57, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 58], [9, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 9]]; var room16 = [[9, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 9], [59, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 60], [59, 9, 14, 9, 9, 9, 14, 9, 9, 9, 9, 60], [59, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 60], [59, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 60], [59, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 60], [59, 9, 14, 9, 9, 9, 9, 9, 9, 14, 9, 60], [59, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 60], [59, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 60], [59, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 60], [59, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 60], [9, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 9]]; var room17 = [[9, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 9], [61, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 62], [61, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 62], [61, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 62], [61, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 62], [61, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 62], [9, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 9]]; var room18 = [[9, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 9], [63, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 64], [63, 9, 14, 9, 9, 9, 14, 9, 9, 9, 9, 64], [63, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 64], [63, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 64], [63, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 64], [63, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 64], [63, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 64], [63, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 64], [63, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 64], [63, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 64], [9, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 9]]; var room19 = [[9, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [65, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 4]]; var room20 = [[2, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 74], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 74], [2, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 9]]; var room21 = [[9, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 9], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [75, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 76], [9, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 9]]; var room22 = [[9, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 9], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 78], [77, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 78], [9, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 9]]; var room23 = [[9, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 9], [79, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 80], [79, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 80], [79, 9, 9, 9, 9, 9, 9, 9, 9, 14, 9, 80], [79, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 80], [79, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 80], [79, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 80], [79, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 80], [79, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 80], [79, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 80], [79, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 80], [9, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 9]]; var room24 = [[9, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 9], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [81, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 82], [9, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 9]]; var room25 = [[9, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 9], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [83, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 84], [9, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 9]]; var room26 = [[9, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [85, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 4]]; var room27 = [[2, 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 100], [2, 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, 9]]; var room28 = [[9, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 9], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 232, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [101, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 102], [9, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 9]]; var room29 = [[9, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 9], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 9, 14, 9, 14, 9, 14, 9, 9, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 9, 9, 14, 9, 14, 9, 9, 9, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [103, 9, 14, 9, 9, 9, 9, 9, 9, 14, 9, 104], [103, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 104], [9, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 9]]; var room30 = [[9, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 9], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [105, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 106], [105, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 106], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [105, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 106], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [105, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 106], [105, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 106], [9, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 9]]; var room31 = [[9, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 9], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [107, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 108], [9, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 9]]; var room32 = [[9, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 9], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 233, 9, 9, 9, 9, 9, 110], [109, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [109, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 110], [9, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 9]]; var room33 = [[9, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 4], [111, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 4], [111, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 4]]; var room34 = [[2, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 14, 9, 9, 14, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 126], [2, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 9]]; var room35 = [[9, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 9], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 128], [127, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 128], [9, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 9]]; var room36 = [[9, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 9], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [129, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 130], [9, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 9]]; var room37 = [[9, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 9], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [131, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 132], [9, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 9]]; var room38 = [[9, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 9], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 14, 9, 9, 9, 9, 14, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 14, 9, 9, 9, 14, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [133, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 134], [9, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 9]]; var room39 = [[9, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 9], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [135, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 136], [135, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 136], [9, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 9]]; var room40 = [[9, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 14, 9, 9, 14, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 4], [137, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 4]]; var room41 = [[2, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 152], [2, 9, 9, 9, 234, 9, 9, 9, 9, 9, 9, 152], [2, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 152], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 9, 14, 9, 9, 9, 9, 14, 9, 9, 9, 152], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 152], [2, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 9]]; var room42 = [[9, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 9], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 154], [153, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 154], [9, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 9]]; var room43 = [[9, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 9], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 235, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 156], [155, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [155, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 156], [9, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 9]]; var room44 = [[9, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 9], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 158], [157, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 158], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [157, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 158], [9, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 9]]; var room45 = [[9, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 9], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 160], [159, 9, 236, 9, 9, 9, 9, 14, 9, 9, 9, 160], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [159, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 160], [9, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 9]]; var room46 = [[9, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 9], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 162], [161, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [161, 9, 9, 9, 14, 9, 9, 9, 14, 9, 9, 162], [161, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 162], [9, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 9]]; var room47 = [[9, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 14, 9, 9, 9, 9, 237, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 14, 9, 9, 14, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [163, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 4]]; var room48 = [[2, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 178], [2, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 178], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 178], [2, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 9]]; var room49 = [[9, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 9], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 14, 9, 9, 14, 9, 9, 14, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [179, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 180], [9, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 9]]; var room50 = [[9, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 9], [181, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 182], [181, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 182], [181, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 182], [9, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 9]]; var room51 = [[9, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 9], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 184], [183, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 184], [9, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 9]]; var room52 = [[9, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 9], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 186], [185, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [185, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 186], [9, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 9]]; var room53 = [[9, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 9], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 14, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 188], [187, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 188], [9, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 9]]; var room54 = [[9, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 14, 9, 14, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [189, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [9, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 4]]; var room55 = [[2, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 9], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 204], [2, 238, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 9, 9, 9, 14, 9, 9, 9, 14, 9, 204], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 204], [2, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 204], [2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 204], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room56 = [[9, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 9], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [205, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 206], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room57 = [[9, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 9], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [207, 239, 9, 14, 9, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 208], [207, 9, 9, 9, 14, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [207, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 208], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room58 = [[9, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 9], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 14, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 14, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [209, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 210], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room59 = [[9, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 9], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 14, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 212], [211, 240, 9, 9, 9, 9, 9, 14, 9, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 14, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [211, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 212], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room60 = [[9, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 9], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 14, 9, 9, 9, 14, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [213, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 214], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]]; var room61 = [[9, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 241, 9, 9, 14, 9, 14, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 9, 9, 14, 9, 14, 9, 14, 9, 9, 9, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4], [215, 9, 9, 9, 9, 14, 9, 9, 9, 9, 9, 4], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room62 = [[242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 9], [9, 14, 9, 14, 9, 9, 9, 14, 9, 14, 9, 9], [14, 9, 14, 9, 14, 9, 14, 9, 14, 9, 14, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 14, 9, 9, 9, 9, 9, 14, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]; var game = {tilew:30, tileh:30, room:6, paused:false, enterKey:false, attackKey:false, song:"song3", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; game.Chest = function (id) { this.id = id; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 47; game.Chest.prototype.openChest = false; game.Chest.prototype.visible = true; game.InvisibleChest = function (id) { this.id = id; }; game.InvisibleChest.prototype.chest = true; game.InvisibleChest.prototype.walkable = true; game.InvisibleChest.prototype.visible = false; game.InvisibleChest.prototype.frame = 31; game.InvisibleChest.prototype.visibleFrame = 47; game.InvisibleChest.prototype.openChest = false; game.InvisibleFence = function (condition, frame) { if (!condition) { this.walkable = false; this.frame = frame; } else { this.walkable = true; this.frame = 31; } }; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 33; game.tile2 = function () { }; game.tile2.prototype.frame = 34; game.tile3 = function () { }; game.tile3.prototype.frame = 35; game.tile4 = function () { }; game.tile4.prototype.frame = 36; game.tile5 = function () { }; game.tile5.prototype.frame = 43; game.tile6 = function () { }; game.tile6.prototype.frame = 44; game.tile7 = function () { }; game.tile7.prototype.frame = 45; game.tile8 = function () { }; game.tile8.prototype.frame = 46; game.tile9 = function () { }; game.tile9.prototype.frame = 31; game.tile9.prototype.walkable = true; game.tile10 = function () { }; game.tile10.prototype = new game.OutDoor("dungeon2", 1, 5, 10); game.tile10.prototype.frame = 39; game.tile11 = function () { }; game.tile11.prototype.frame = 42; game.tile12 = function () { }; game.tile12.prototype.frame = 40; game.tile13 = function () { }; game.tile13.prototype.frame = 40; game.tile13.prototype.walkable = true; game.tile14 = function () { }; game.tile14.prototype.frame = 48; game.tile15 = function () { }; game.tile15.prototype = new game.OutDoor("dungeon1", 1, 5, 10); game.tile15.prototype.frame = 41; game.tile16 = function () { }; game.tile16.prototype = new game.OutDoor("dungeon4", 1, 5, 10); game.tile16.prototype.frame = 49; game.tile17 = function () { }; game.tile17.prototype = new game.OutDoor("dungeon3", 1, 5, 10); game.tile17.prototype.frame = 50; game.tile18 = function () { }; game.tile18.prototype = new game.OutDoor("dungeon5", 1, 5, 10); game.tile18.prototype.frame = 51; game.tile19 = function () { }; game.tile19.prototype = new game.Door(1, 5, 10); game.tile19.prototype.frame = 31; game.tile20 = function () { }; game.tile20.prototype = new game.Door(6, 5, 1); game.tile20.prototype.frame = 31; game.tile21 = function () { }; game.tile21.prototype = new game.Door(7, 1, 5); game.tile21.prototype.type = "x"; game.tile21.prototype.frame = 31; game.tile22 = function () { }; game.tile22.prototype = new game.Door(6, 10, 5); game.tile22.prototype.type = "x"; game.tile22.prototype.frame = 31; game.tile23 = function () { }; game.tile23.prototype = new game.Door(8, 5, 1); game.tile23.prototype.frame = 31; game.tile24 = function () { }; game.tile24.prototype = new game.Door(2, 5, 10); game.tile24.prototype.frame = 31; game.tile25 = function () { }; game.tile25.prototype = new game.Door(8, 1, 5); game.tile25.prototype.type = "x"; game.tile25.prototype.frame = 31; game.tile26 = function () { }; game.tile26.prototype = new game.Door(7, 10, 5); game.tile26.prototype.type = "x"; game.tile26.prototype.frame = 31; game.tile27 = function () { }; game.tile27.prototype = new game.Door(9, 1, 5); game.tile27.prototype.type = "x"; game.tile27.prototype.frame = 31; game.tile28 = function () { }; game.tile28.prototype = new game.Door(8, 10, 5); game.tile28.prototype.type = "x"; game.tile28.prototype.frame = 31; game.tile29 = function () { }; game.tile29.prototype = new game.Door(3, 5, 10); game.tile29.prototype.frame = 31; game.tile30 = function () { }; game.tile30.prototype = new game.Door(10, 1, 5); game.tile30.prototype.type = "x"; game.tile30.prototype.frame = 31; game.tile31 = function () { }; game.tile31.prototype = new game.Door(9, 10, 5); game.tile31.prototype.type = "x"; game.tile31.prototype.frame = 31; game.tile32 = function () { }; game.tile32.prototype = new game.Door(4, 5, 10); game.tile32.prototype.frame = 31; game.tile33 = function () { }; game.tile33.prototype = new game.Door(11, 1, 5); game.tile33.prototype.type = "x"; game.tile33.prototype.frame = 31; game.tile34 = function () { }; game.tile34.prototype = new game.Door(9, 5, 1); game.tile34.prototype.frame = 31; game.tile35 = function () { }; game.tile35.prototype = new game.Door(10, 5, 1); game.tile35.prototype.frame = 31; game.tile36 = function () { }; game.tile36.prototype = new game.Door(10, 10, 5); game.tile36.prototype.type = "x"; game.tile36.prototype.frame = 31; game.tile37 = function () { }; game.tile37.prototype = new game.Door(12, 1, 5); game.tile37.prototype.type = "x"; game.tile37.prototype.frame = 31; game.tile38 = function () { }; game.tile38.prototype = new game.Door(11, 10, 5); game.tile38.prototype.type = "x"; game.tile38.prototype.frame = 31; game.tile39 = function () { }; game.tile39.prototype = new game.Door(5, 5, 10); game.tile39.prototype.frame = 31; game.tile40 = function () { }; game.tile40.prototype = new game.Door(12, 5, 1); game.tile40.prototype.frame = 31; game.tile41 = function () { }; game.tile41.prototype = new game.Door(13, 5, 1); game.tile41.prototype.frame = 31; game.tile42 = function () { }; game.tile42.prototype = new game.Door(14, 5, 1); game.tile42.prototype.frame = 31; game.tile43 = function () { }; game.tile43.prototype = new game.Door(15, 5, 1); game.tile43.prototype.frame = 31; game.tile44 = function () { }; game.tile44.prototype = new game.Door(16, 5, 1); game.tile44.prototype.frame = 31; game.tile45 = function () { }; game.tile45.prototype = new game.Door(17, 5, 1); game.tile45.prototype.frame = 31; game.tile46 = function () { }; game.tile46.prototype = new game.Door(18, 5, 1); game.tile46.prototype.frame = 31; game.tile47 = function () { }; game.tile47.prototype = new game.Door(19, 5, 1); game.tile47.prototype.frame = 31; game.tile48 = function () { }; game.tile48.prototype = new game.Door(6, 5, 10); game.tile48.prototype.frame = 31; game.tile49 = function () { }; game.tile49.prototype = new game.Door(7, 5, 10); game.tile49.prototype.frame = 31; game.tile50 = function () { }; game.tile50.prototype = new game.Door(8, 5, 10); game.tile50.prototype.frame = 31; game.tile51 = function () { }; game.tile51.prototype = new game.Door(9, 5, 10); game.tile51.prototype.frame = 31; game.tile52 = function () { }; game.tile52.prototype = new game.Door(10, 5, 10); game.tile52.prototype.frame = 31; game.tile53 = function () { }; game.tile53.prototype = new game.Door(11, 5, 10); game.tile53.prototype.frame = 31; game.tile54 = function () { }; game.tile54.prototype = new game.Door(14, 1, 5); game.tile54.prototype.type = "x"; game.tile54.prototype.frame = 31; game.tile55 = function () { }; game.tile55.prototype = new game.Door(13, 10, 5); game.tile55.prototype.type = "x"; game.tile55.prototype.frame = 31; game.tile56 = function () { }; game.tile56.prototype = new game.Door(15, 1, 5); game.tile56.prototype.type = "x"; game.tile56.prototype.frame = 31; game.tile57 = function () { }; game.tile57.prototype = new game.Door(14, 10, 5); game.tile57.prototype.type = "x"; game.tile57.prototype.frame = 31; game.tile58 = function () { }; game.tile58.prototype = new game.Door(16, 1, 5); game.tile58.prototype.type = "x"; game.tile58.prototype.frame = 31; game.tile59 = function () { }; game.tile59.prototype = new game.Door(15, 10, 5); game.tile59.prototype.type = "x"; game.tile59.prototype.frame = 31; game.tile60 = function () { }; game.tile60.prototype = new game.Door(17, 1, 5); game.tile60.prototype.type = "x"; game.tile60.prototype.frame = 31; game.tile61 = function () { }; game.tile61.prototype = new game.Door(16, 10, 5); game.tile61.prototype.type = "x"; game.tile61.prototype.frame = 31; game.tile62 = function () { }; game.tile62.prototype = new game.Door(18, 1, 5); game.tile62.prototype.type = "x"; game.tile62.prototype.frame = 31; game.tile63 = function () { }; game.tile63.prototype = new game.Door(17, 10, 5); game.tile63.prototype.type = "x"; game.tile63.prototype.frame = 31; game.tile64 = function () { }; game.tile64.prototype = new game.Door(19, 1, 5); game.tile64.prototype.type = "x"; game.tile64.prototype.frame = 31; game.tile65 = function () { }; game.tile65.prototype = new game.Door(18, 10, 5); game.tile65.prototype.type = "x"; game.tile65.prototype.frame = 31; game.tile66 = function () { }; game.tile66.prototype = new game.Door(12, 5, 10); game.tile66.prototype.frame = 31; game.tile67 = function () { }; game.tile67.prototype = new game.Door(20, 5, 1); game.tile67.prototype.frame = 31; game.tile68 = function () { }; game.tile68.prototype = new game.Door(21, 5, 1); game.tile68.prototype.frame = 31; game.tile69 = function () { }; game.tile69.prototype = new game.Door(22, 5, 1); game.tile69.prototype.frame = 31; game.tile70 = function () { }; game.tile70.prototype = new game.Door(23, 5, 1); game.tile70.prototype.frame = 31; game.tile71 = function () { }; game.tile71.prototype = new game.Door(24, 5, 1); game.tile71.prototype.frame = 31; game.tile72 = function () { }; game.tile72.prototype = new game.Door(25, 5, 1); game.tile72.prototype.frame = 31; game.tile73 = function () { }; game.tile73.prototype = new game.Door(26, 5, 1); game.tile73.prototype.frame = 31; game.tile74 = function () { }; game.tile74.prototype = new game.Door(21, 1, 5); game.tile74.prototype.type = "x"; game.tile74.prototype.frame = 31; game.tile75 = function () { }; game.tile75.prototype = new game.Door(20, 10, 5); game.tile75.prototype.type = "x"; game.tile75.prototype.frame = 31; game.tile76 = function () { }; game.tile76.prototype = new game.Door(22, 1, 5); game.tile76.prototype.type = "x"; game.tile76.prototype.frame = 31; game.tile77 = function () { }; game.tile77.prototype = new game.Door(21, 10, 5); game.tile77.prototype.type = "x"; game.tile77.prototype.frame = 31; game.tile78 = function () { }; game.tile78.prototype = new game.Door(23, 1, 5); game.tile78.prototype.type = "x"; game.tile78.prototype.frame = 31; game.tile79 = function () { }; game.tile79.prototype = new game.Door(22, 10, 5); game.tile79.prototype.type = "x"; game.tile79.prototype.frame = 31; game.tile80 = function () { }; game.tile80.prototype = new game.Door(24, 1, 5); game.tile80.prototype.type = "x"; game.tile80.prototype.frame = 31; game.tile81 = function () { }; game.tile81.prototype = new game.Door(23, 10, 5); game.tile81.prototype.type = "x"; game.tile81.prototype.frame = 31; game.tile82 = function () { }; game.tile82.prototype = new game.Door(25, 1, 5); game.tile82.prototype.type = "x"; game.tile82.prototype.frame = 31; game.tile83 = function () { }; game.tile83.prototype = new game.Door(24, 10, 5); game.tile83.prototype.type = "x"; game.tile83.prototype.frame = 31; game.tile84 = function () { }; game.tile84.prototype = new game.Door(26, 1, 5); game.tile84.prototype.type = "x"; game.tile84.prototype.frame = 31; game.tile85 = function () { }; game.tile85.prototype = new game.Door(25, 10, 5); game.tile85.prototype.type = "x"; game.tile85.prototype.frame = 31; game.tile86 = function () { }; game.tile86.prototype = new game.Door(13, 5, 10); game.tile86.prototype.frame = 31; game.tile87 = function () { }; game.tile87.prototype = new game.Door(27, 5, 1); game.tile87.prototype.frame = 31; game.tile88 = function () { }; game.tile88.prototype = new game.Door(14, 5, 10); game.tile88.prototype.frame = 31; game.tile89 = function () { }; game.tile89.prototype = new game.Door(28, 5, 1); game.tile89.prototype.frame = 31; game.tile90 = function () { }; game.tile90.prototype = new game.Door(15, 5, 10); game.tile90.prototype.frame = 31; game.tile91 = function () { }; game.tile91.prototype = new game.Door(29, 5, 1); game.tile91.prototype.frame = 31; game.tile92 = function () { }; game.tile92.prototype = new game.Door(16, 5, 10); game.tile92.prototype.frame = 31; game.tile93 = function () { }; game.tile93.prototype = new game.Door(30, 5, 1); game.tile93.prototype.frame = 31; game.tile94 = function () { }; game.tile94.prototype = new game.Door(17, 5, 10); game.tile94.prototype.frame = 31; game.tile95 = function () { }; game.tile95.prototype = new game.Door(31, 5, 1); game.tile95.prototype.frame = 31; game.tile96 = function () { }; game.tile96.prototype = new game.Door(18, 5, 10); game.tile96.prototype.frame = 31; game.tile97 = function () { }; game.tile97.prototype = new game.Door(32, 5, 1); game.tile97.prototype.frame = 31; game.tile98 = function () { }; game.tile98.prototype = new game.Door(19, 5, 10); game.tile98.prototype.frame = 31; game.tile99 = function () { }; game.tile99.prototype = new game.Door(33, 5, 1); game.tile99.prototype.frame = 31; game.tile100 = function () { }; game.tile100.prototype = new game.Door(28, 1, 5); game.tile100.prototype.type = "x"; game.tile100.prototype.frame = 31; game.tile101 = function () { }; game.tile101.prototype = new game.Door(27, 10, 5); game.tile101.prototype.type = "x"; game.tile101.prototype.frame = 31; game.tile102 = function () { }; game.tile102.prototype = new game.Door(29, 1, 5); game.tile102.prototype.type = "x"; game.tile102.prototype.frame = 31; game.tile103 = function () { }; game.tile103.prototype = new game.Door(28, 10, 5); game.tile103.prototype.type = "x"; game.tile103.prototype.frame = 31; game.tile104 = function () { }; game.tile104.prototype = new game.Door(30, 1, 5); game.tile104.prototype.type = "x"; game.tile104.prototype.frame = 31; game.tile105 = function () { }; game.tile105.prototype = new game.Door(29, 10, 5); game.tile105.prototype.type = "x"; game.tile105.prototype.frame = 31; game.tile106 = function () { }; game.tile106.prototype = new game.Door(31, 1, 5); game.tile106.prototype.type = "x"; game.tile106.prototype.frame = 31; game.tile107 = function () { }; game.tile107.prototype = new game.Door(30, 10, 5); game.tile107.prototype.type = "x"; game.tile107.prototype.frame = 31; game.tile108 = function () { }; game.tile108.prototype = new game.Door(32, 1, 5); game.tile108.prototype.type = "x"; game.tile108.prototype.frame = 31; game.tile109 = function () { }; game.tile109.prototype = new game.Door(31, 10, 5); game.tile109.prototype.type = "x"; game.tile109.prototype.frame = 31; game.tile110 = function () { }; game.tile110.prototype = new game.Door(33, 1, 5); game.tile110.prototype.type = "x"; game.tile110.prototype.frame = 31; game.tile111 = function () { }; game.tile111.prototype = new game.Door(32, 10, 5); game.tile111.prototype.type = "x"; game.tile111.prototype.frame = 31; game.tile112 = function () { }; game.tile112.prototype = new game.Door(20, 5, 10); game.tile112.prototype.frame = 31; game.tile113 = function () { }; game.tile113.prototype = new game.Door(34, 5, 1); game.tile113.prototype.frame = 31; game.tile114 = function () { }; game.tile114.prototype = new game.Door(21, 5, 10); game.tile114.prototype.frame = 31; game.tile115 = function () { }; game.tile115.prototype = new game.Door(35, 5, 1); game.tile115.prototype.frame = 31; game.tile116 = function () { }; game.tile116.prototype = new game.Door(22, 5, 10); game.tile116.prototype.frame = 31; game.tile117 = function () { }; game.tile117.prototype = new game.Door(36, 5, 1); game.tile117.prototype.frame = 31; game.tile118 = function () { }; game.tile118.prototype = new game.Door(23, 5, 10); game.tile118.prototype.frame = 31; game.tile119 = function () { }; game.tile119.prototype = new game.Door(37, 5, 1); game.tile119.prototype.frame = 31; game.tile120 = function () { }; game.tile120.prototype = new game.Door(24, 5, 10); game.tile120.prototype.frame = 31; game.tile121 = function () { }; game.tile121.prototype = new game.Door(38, 5, 1); game.tile121.prototype.frame = 31; game.tile122 = function () { }; game.tile122.prototype = new game.Door(25, 5, 10); game.tile122.prototype.frame = 31; game.tile123 = function () { }; game.tile123.prototype = new game.Door(39, 5, 1); game.tile123.prototype.frame = 31; game.tile124 = function () { }; game.tile124.prototype = new game.Door(26, 5, 10); game.tile124.prototype.frame = 31; game.tile125 = function () { }; game.tile125.prototype = new game.Door(40, 5, 1); game.tile125.prototype.frame = 31; game.tile126 = function () { }; game.tile126.prototype = new game.Door(35, 1, 5); game.tile126.prototype.type = "x"; game.tile126.prototype.frame = 31; game.tile127 = function () { }; game.tile127.prototype = new game.Door(34, 10, 5); game.tile127.prototype.type = "x"; game.tile127.prototype.frame = 31; game.tile128 = function () { }; game.tile128.prototype = new game.Door(36, 1, 5); game.tile128.prototype.type = "x"; game.tile128.prototype.frame = 31; game.tile129 = function () { }; game.tile129.prototype = new game.Door(35, 10, 5); game.tile129.prototype.type = "x"; game.tile129.prototype.frame = 31; game.tile130 = function () { }; game.tile130.prototype = new game.Door(37, 1, 5); game.tile130.prototype.type = "x"; game.tile130.prototype.frame = 31; game.tile131 = function () { }; game.tile131.prototype = new game.Door(36, 10, 5); game.tile131.prototype.type = "x"; game.tile131.prototype.frame = 31; game.tile132 = function () { }; game.tile132.prototype = new game.Door(38, 1, 5); game.tile132.prototype.type = "x"; game.tile132.prototype.frame = 31; game.tile133 = function () { }; game.tile133.prototype = new game.Door(37, 10, 5); game.tile133.prototype.type = "x"; game.tile133.prototype.frame = 31; game.tile134 = function () { }; game.tile134.prototype = new game.Door(39, 1, 5); game.tile134.prototype.type = "x"; game.tile134.prototype.frame = 31; game.tile135 = function () { }; game.tile135.prototype = new game.Door(38, 10, 5); game.tile135.prototype.type = "x"; game.tile135.prototype.frame = 31; game.tile136 = function () { }; game.tile136.prototype = new game.Door(40, 1, 5); game.tile136.prototype.type = "x"; game.tile136.prototype.frame = 31; game.tile137 = function () { }; game.tile137.prototype = new game.Door(39, 10, 5); game.tile137.prototype.type = "x"; game.tile137.prototype.frame = 31; game.tile138 = function () { }; game.tile138.prototype = new game.Door(27, 5, 10); game.tile138.prototype.frame = 31; game.tile139 = function () { }; game.tile139.prototype = new game.Door(41, 5, 1); game.tile139.prototype.frame = 31; game.tile140 = function () { }; game.tile140.prototype = new game.Door(28, 5, 10); game.tile140.prototype.frame = 31; game.tile141 = function () { }; game.tile141.prototype = new game.Door(42, 5, 1); game.tile141.prototype.frame = 31; game.tile142 = function () { }; game.tile142.prototype = new game.Door(29, 5, 10); game.tile142.prototype.frame = 31; game.tile143 = function () { }; game.tile143.prototype = new game.Door(43, 5, 1); game.tile143.prototype.frame = 31; game.tile144 = function () { }; game.tile144.prototype = new game.Door(30, 5, 10); game.tile144.prototype.frame = 31; game.tile145 = function () { }; game.tile145.prototype = new game.Door(44, 5, 1); game.tile145.prototype.frame = 31; game.tile146 = function () { }; game.tile146.prototype = new game.Door(31, 5, 10); game.tile146.prototype.frame = 31; game.tile147 = function () { }; game.tile147.prototype = new game.Door(45, 5, 1); game.tile147.prototype.frame = 31; game.tile148 = function () { }; game.tile148.prototype = new game.Door(32, 5, 10); game.tile148.prototype.frame = 31; game.tile149 = function () { }; game.tile149.prototype = new game.Door(46, 5, 1); game.tile149.prototype.frame = 31; game.tile150 = function () { }; game.tile150.prototype = new game.Door(33, 5, 10); game.tile150.prototype.frame = 31; game.tile151 = function () { }; game.tile151.prototype = new game.Door(47, 5, 1); game.tile151.prototype.frame = 31; game.tile152 = function () { }; game.tile152.prototype = new game.Door(42, 1, 5); game.tile152.prototype.type = "x"; game.tile152.prototype.frame = 31; game.tile153 = function () { }; game.tile153.prototype = new game.Door(41, 10, 5); game.tile153.prototype.type = "x"; game.tile153.prototype.frame = 31; game.tile154 = function () { }; game.tile154.prototype = new game.Door(43, 1, 5); game.tile154.prototype.type = "x"; game.tile154.prototype.frame = 31; game.tile155 = function () { }; game.tile155.prototype = new game.Door(42, 10, 5); game.tile155.prototype.type = "x"; game.tile155.prototype.frame = 31; game.tile156 = function () { }; game.tile156.prototype = new game.Door(44, 1, 5); game.tile156.prototype.type = "x"; game.tile156.prototype.frame = 31; game.tile157 = function () { }; game.tile157.prototype = new game.Door(43, 10, 5); game.tile157.prototype.type = "x"; game.tile157.prototype.frame = 31; game.tile158 = function () { }; game.tile158.prototype = new game.Door(45, 1, 5); game.tile158.prototype.type = "x"; game.tile158.prototype.frame = 31; game.tile159 = function () { }; game.tile159.prototype = new game.Door(44, 10, 5); game.tile159.prototype.type = "x"; game.tile159.prototype.frame = 31; game.tile160 = function () { }; game.tile160.prototype = new game.Door(46, 1, 5); game.tile160.prototype.type = "x"; game.tile160.prototype.frame = 31; game.tile161 = function () { }; game.tile161.prototype = new game.Door(45, 10, 5); game.tile161.prototype.type = "x"; game.tile161.prototype.frame = 31; game.tile162 = function () { }; game.tile162.prototype = new game.Door(47, 1, 5); game.tile162.prototype.type = "x"; game.tile162.prototype.frame = 31; game.tile163 = function () { }; game.tile163.prototype = new game.Door(46, 10, 5); game.tile163.prototype.type = "x"; game.tile163.prototype.frame = 31; game.tile164 = function () { }; game.tile164.prototype = new game.Door(34, 5, 10); game.tile164.prototype.frame = 31; game.tile165 = function () { }; game.tile165.prototype = new game.Door(48, 5, 1); game.tile165.prototype.frame = 31; game.tile166 = function () { }; game.tile166.prototype = new game.Door(35, 5, 10); game.tile166.prototype.frame = 31; game.tile167 = function () { }; game.tile167.prototype = new game.Door(49, 5, 1); game.tile167.prototype.frame = 31; game.tile168 = function () { }; game.tile168.prototype = new game.Door(36, 5, 10); game.tile168.prototype.frame = 31; game.tile169 = function () { }; game.tile169.prototype = new game.Door(50, 5, 1); game.tile169.prototype.frame = 31; game.tile170 = function () { }; game.tile170.prototype = new game.Door(37, 5, 10); game.tile170.prototype.frame = 31; game.tile171 = function () { }; game.tile171.prototype = new game.Door(51, 5, 1); game.tile171.prototype.frame = 31; game.tile172 = function () { }; game.tile172.prototype = new game.Door(38, 5, 10); game.tile172.prototype.frame = 31; game.tile173 = function () { }; game.tile173.prototype = new game.Door(52, 5, 1); game.tile173.prototype.frame = 31; game.tile174 = function () { }; game.tile174.prototype = new game.Door(39, 5, 10); game.tile174.prototype.frame = 31; game.tile175 = function () { }; game.tile175.prototype = new game.Door(53, 5, 1); game.tile175.prototype.frame = 31; game.tile176 = function () { }; game.tile176.prototype = new game.Door(40, 5, 10); game.tile176.prototype.frame = 31; game.tile177 = function () { }; game.tile177.prototype = new game.Door(54, 5, 1); game.tile177.prototype.frame = 31; game.tile178 = function () { }; game.tile178.prototype = new game.Door(49, 1, 5); game.tile178.prototype.type = "x"; game.tile178.prototype.frame = 31; game.tile179 = function () { }; game.tile179.prototype = new game.Door(48, 10, 5); game.tile179.prototype.type = "x"; game.tile179.prototype.frame = 31; game.tile180 = function () { }; game.tile180.prototype = new game.Door(50, 1, 5); game.tile180.prototype.type = "x"; game.tile180.prototype.frame = 31; game.tile181 = function () { }; game.tile181.prototype = new game.Door(49, 10, 5); game.tile181.prototype.type = "x"; game.tile181.prototype.frame = 31; game.tile182 = function () { }; game.tile182.prototype = new game.Door(51, 1, 5); game.tile182.prototype.type = "x"; game.tile182.prototype.frame = 31; game.tile183 = function () { }; game.tile183.prototype = new game.Door(50, 10, 5); game.tile183.prototype.type = "x"; game.tile183.prototype.frame = 31; game.tile184 = function () { }; game.tile184.prototype = new game.Door(52, 1, 5); game.tile184.prototype.type = "x"; game.tile184.prototype.frame = 31; game.tile185 = function () { }; game.tile185.prototype = new game.Door(51, 10, 5); game.tile185.prototype.type = "x"; game.tile185.prototype.frame = 31; game.tile186 = function () { }; game.tile186.prototype = new game.Door(53, 1, 5); game.tile186.prototype.type = "x"; game.tile186.prototype.frame = 31; game.tile187 = function () { }; game.tile187.prototype = new game.Door(52, 10, 5); game.tile187.prototype.type = "x"; game.tile187.prototype.frame = 31; game.tile188 = function () { }; game.tile188.prototype = new game.Door(54, 1, 5); game.tile188.prototype.type = "x"; game.tile188.prototype.frame = 31; game.tile189 = function () { }; game.tile189.prototype = new game.Door(53, 10, 5); game.tile189.prototype.type = "x"; game.tile189.prototype.frame = 31; game.tile190 = function () { }; game.tile190.prototype = new game.Door(41, 5, 10); game.tile190.prototype.frame = 31; game.tile191 = function () { }; game.tile191.prototype = new game.Door(55, 5, 1); game.tile191.prototype.frame = 31; game.tile192 = function () { }; game.tile192.prototype = new game.Door(42, 5, 10); game.tile192.prototype.frame = 31; game.tile193 = function () { }; game.tile193.prototype = new game.Door(56, 5, 1); game.tile193.prototype.frame = 31; game.tile194 = function () { }; game.tile194.prototype = new game.Door(43, 5, 10); game.tile194.prototype.frame = 31; game.tile195 = function () { }; game.tile195.prototype = new game.Door(57, 5, 1); game.tile195.prototype.frame = 31; game.tile196 = function () { }; game.tile196.prototype = new game.Door(44, 5, 10); game.tile196.prototype.frame = 31; game.tile197 = function () { }; game.tile197.prototype = new game.Door(58, 5, 1); game.tile197.prototype.frame = 31; game.tile198 = function () { }; game.tile198.prototype = new game.Door(45, 5, 10); game.tile198.prototype.frame = 31; game.tile199 = function () { }; game.tile199.prototype = new game.Door(59, 5, 1); game.tile199.prototype.frame = 31; game.tile200 = function () { }; game.tile200.prototype = new game.Door(46, 5, 10); game.tile200.prototype.frame = 31; game.tile201 = function () { }; game.tile201.prototype = new game.Door(60, 5, 1); game.tile201.prototype.frame = 31; game.tile202 = function () { }; game.tile202.prototype = new game.Door(47, 5, 10); game.tile202.prototype.frame = 31; game.tile203 = function () { }; game.tile203.prototype = new game.Door(61, 5, 1); game.tile203.prototype.frame = 31; game.tile204 = function () { }; game.tile204.prototype = new game.Door(56, 1, 5); game.tile204.prototype.type = "x"; game.tile204.prototype.frame = 31; game.tile205 = function () { }; game.tile205.prototype = new game.Door(55, 10, 5); game.tile205.prototype.type = "x"; game.tile205.prototype.frame = 31; game.tile206 = function () { }; game.tile206.prototype = new game.Door(57, 1, 5); game.tile206.prototype.type = "x"; game.tile206.prototype.frame = 31; game.tile207 = function () { }; game.tile207.prototype = new game.Door(56, 10, 5); game.tile207.prototype.type = "x"; game.tile207.prototype.frame = 31; game.tile208 = function () { }; game.tile208.prototype = new game.Door(58, 1, 5); game.tile208.prototype.type = "x"; game.tile208.prototype.frame = 31; game.tile209 = function () { }; game.tile209.prototype = new game.Door(57, 10, 5); game.tile209.prototype.type = "x"; game.tile209.prototype.frame = 31; game.tile210 = function () { }; game.tile210.prototype = new game.Door(59, 1, 5); game.tile210.prototype.type = "x"; game.tile210.prototype.frame = 31; game.tile211 = function () { }; game.tile211.prototype = new game.Door(58, 10, 5); game.tile211.prototype.type = "x"; game.tile211.prototype.frame = 31; game.tile212 = function () { }; game.tile212.prototype = new game.Door(60, 1, 5); game.tile212.prototype.type = "x"; game.tile212.prototype.frame = 31; game.tile213 = function () { }; game.tile213.prototype = new game.Door(59, 10, 5); game.tile213.prototype.type = "x"; game.tile213.prototype.frame = 31; game.tile214 = function () { }; game.tile214.prototype = new game.Door(61, 1, 5); game.tile214.prototype.type = "x"; game.tile214.prototype.frame = 31; game.tile215 = function () { }; game.tile215.prototype = new game.Door(60, 10, 5); game.tile215.prototype.type = "x"; game.tile215.prototype.frame = 31; game.tile216 = function () { }; game.tile216.prototype = new game.Door(48, 5, 10); game.tile216.prototype.frame = 31; game.tile217 = function () { }; game.tile217.prototype = new game.Door(49, 5, 10); game.tile217.prototype.frame = 31; game.tile218 = function () { }; game.tile218.prototype = new game.Door(50, 5, 10); game.tile218.prototype.frame = 31; game.tile219 = function () { }; game.tile219.prototype = new game.Door(51, 5, 10); game.tile219.prototype.frame = 31; game.tile220 = function () { }; game.tile220.prototype = new game.Door(52, 5, 10); game.tile220.prototype.frame = 31; game.tile221 = function () { }; game.tile221.prototype = new game.Door(53, 5, 10); game.tile221.prototype.frame = 31; game.tile222 = function () { }; game.tile222.prototype = new game.Door(54, 5, 10); game.tile222.prototype.frame = 31; game.tile223 = function () { }; game.tile223.prototype = new game.InvisibleFence(so.data.level1beaten, 33); game.tile224 = function () { }; game.tile224.prototype = new game.InvisibleFence(so.data.level2beaten, 33); game.tile225 = function () { }; game.tile225.prototype = new game.InvisibleFence(so.data.level3beaten, 33); clockCrew = so.data.level4beaten && (so.data.badge >= 14); game.tile226 = function () { }; game.tile226.prototype = new game.InvisibleFence(clockCrew, 33); game.tile242 = function () { }; game.tile242.prototype.scene = true; game.tile242.prototype.sceneName = "blamsword"; game.tile242.prototype.sceneCondition = !so.data.blamSword; game.tile242.prototype.frame = 31; game.tile242.prototype.walkable = true; game.tile227 = function () { }; game.tile227.prototype = new game.Chest(1); game.tile228 = function () { }; game.tile228.prototype = new game.Chest(2); game.tile229 = function () { }; game.tile229.prototype = new game.Chest(3); game.tile230 = function () { }; game.tile230.prototype = new game.Chest(4); game.tile231 = function () { }; game.tile231.prototype = new game.Chest(5); game.tile232 = function () { }; game.tile232.prototype = new game.InvisibleChest(6); game.tile233 = function () { }; game.tile233.prototype = new game.InvisibleChest(7); game.tile234 = function () { }; game.tile234.prototype = new game.InvisibleChest(8); game.tile235 = function () { }; game.tile235.prototype = new game.InvisibleChest(9); game.tile236 = function () { }; game.tile236.prototype = new game.InvisibleChest(10); game.tile237 = function () { }; game.tile237.prototype = new game.InvisibleChest(11); game.tile238 = function () { }; game.tile238.prototype = new game.InvisibleChest(12); game.tile239 = function () { }; game.tile239.prototype = new game.InvisibleChest(13); game.tile240 = function () { }; game.tile240.prototype = new game.InvisibleChest(14); game.tile241 = function () { }; game.tile241.prototype = new game.InvisibleChest(15); var enemies = [[], [], [], [], [], [], [[1, 2, 5]], [[2, 5, 3], [2, 5, 7]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 5]], [[2, 5, 3], [2, 5, 5], [2, 5, 7]], [[2, 4, 5]], [[2, 5, 3], [1, 5, 7]], [[2, 5, 3], [1, 5, 5], [2, 5, 7]], [[1, 6, 6], [2, 5, 4]], [[1, 6, 6], [2, 5, 4]], [[2, 5, 4], [2, 5, 7]], [[1, 5, 3]], [[2, 6, 5]], [[1, 2, 5]], [[2, 5, 3], [2, 5, 7]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 5]], [[2, 5, 3], [2, 5, 4], [2, 5, 7]], [[2, 4, 5]], [[2, 5, 3], [1, 5, 7]], [[2, 5, 3], [1, 5, 5], [2, 5, 7]], [[1, 6, 7], [2, 5, 4]], [[1, 6, 6], [2, 6, 4]], [[2, 5, 4], [2, 5, 7]], [[1, 5, 3]], [[2, 6, 5]], [[1, 2, 5]], [[2, 5, 3], [2, 5, 7]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 5]], [[2, 5, 3], [2, 5, 5], [2, 5, 7]], [[2, 4, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 4], [1, 5, 5], [2, 5, 7]], [[1, 6, 6], [2, 5, 4]], [[1, 6, 6], [2, 5, 4]], [[2, 5, 4], [2, 5, 7]], [[1, 5, 3]], [[2, 6, 5]], [[1, 2, 5]], [[2, 5, 3], [2, 5, 7]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 5]], [[2, 5, 3], [2, 5, 5], [2, 5, 7]], [[2, 4, 5]], [[2, 5, 3], [1, 5, 7]], [[2, 5, 3], [1, 5, 5], [2, 5, 7]], [[1, 6, 6], [2, 5, 5]], [[1, 6, 6], [2, 5, 4]], [[2, 5, 5], [2, 5, 7]], [[1, 5, 3]], [[2, 8, 5]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; object = hero; room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { tile = game[(("tile_" + r) + "_") + c]; if (tile.chest) { i = 1; while (i <= 15) { if (so.data[("chest" + i) + "open"] && (i == tile.id)) { openChest = true; } i++; } } c++; } r++; } checkCorners(object.x, object.y - object.speed, object); if (((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (object.tileUpLeft.visible)) && (!openChest)) && (object.dir == "up")) { if (so.data.badge == undefined) { so.data.badge = 0; } if (so.data.badge < 15) { so.data.badge++; } so.data[("chest" + object.tileUpLeft.id) + "open"] = true; object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); clockCrew = so.data.level4beaten && (so.data.badge >= 14); if (game.paused) { stopClips(hero.clip); } hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } }; buildRoom(_root["room" + game.room]);Instance of Symbol 661 MovieClip in Frame 30onClipEvent (enterFrame) { if (_root.so.data.badge != this.badge) { this.badge = _root.so.data.badge; this.name = "badge" + this.badge; this.attachMovie(this.name, "badge", 1); } }Frame 37function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles.setMask(mask_mc); game.tiles = _root.tiles; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * Stage.height) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 3) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("A-Bot", "~Guardian of the Audio Portal~"); attachMovie("song2", "music", 10); pause_mc.name_txt.text = "DISABLED"; delete pause_mc.onRelease; } i++; } if (levelBeaten) { openLocks(); openChests(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } i = 0; while (i < chests[game.room].length) { chests[game.room][i].tile.tile.gotoAndStop(chests[game.room][i].tile.tile._totalframes); chests[game.room][i].openChest = true; i++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object) { if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (object.speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (object.speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } object.action = "walk"; if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (object.speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } object.action = "walk"; if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (object.speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (object.speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } object.action = "walk"; object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (object.speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } object.action = "walk"; object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); object.clip._x = object.x; object.clip._y = object.y; } object.clip.gotoAndStop(object.action + object.dir); if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (_local1.speed * _local1.xdir), _local1.y + (_local1.speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local3 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local3 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 3 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "move" : _local1.hit = false; if (_local1.movementDirection == undefined) { if ((_local1.xtile == 5) && (Math.floor(Math.random() * 2) == 0)) { moveRight = 1; } else { moveRight = 0; } if ((_local1.xtile < 5) || (moveRight == 1)) { if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "up"; } } else if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "up"; } } switch (_local1.movementDirection) { case "left" : moveObject(-1, 0, _local1); break; case "right" : moveObject(1, 0, _local1); break; case "up" : moveObject(0, -1, _local1); break; case "down" : moveObject(0, 1, _local1); } if (Math.floor(_local1.currentAction + 0.05) > Math.floor(_local1.currentAction)) { delete _local1.movementDirection; } _local1.currentAction = _local1.currentAction + 0.05; if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "align" : _local1.hit = false; if (_local1.xtile > 5) { _local1.movementDirection = "left"; } else if (_local1.xtile < 5) { _local1.movementDirection = "right"; } else if (_local1.ytile > 5) { _local1.movementDirection = "up"; } else { _local1.currentAction++; } switch (_local1.movementDirection) { case "left" : moveObject(-1, 0, _local1); break; case "right" : moveObject(1, 0, _local1); break; case "up" : moveObject(0, -1, _local1); break; case "down" : moveObject(0, 1, _local1); } if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "attack1" : _local1.currentAction = _local1.currentAction + 0.02; _local1.action = "attack"; _local1.dir = "down"; _local1.clip.gotoAndStop("attack1"); break; case "attack2" : _local1.currentAction = _local1.currentAction + 0.02; _local1.action = "attack"; _local1.dir = "down"; _local1.clip.gotoAndStop("attack2"); break; case "idle" : _local1.invinsible = false; _local1.currentAction = _local1.currentAction + 0.01; if (_local1.clip.hitTest(hero.clip.hero.sword) && (!_local1.hit)) { _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health > 0) { _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); } } _local1.action = "walk"; _local1.dir = "down"; _local1.clip.gotoAndStop("walkdown"); } } else { _local1.clip.gotoAndStop("die"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function openChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest) { game[_local2].openChest = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (level1rooms == undefined) { var level1rooms = new Object(); i = 1; while (i <= 21) { level1rooms[("room" + i) + "visited"] = false; i++; } } visitedObject = level1rooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_d1", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var levelBeaten = so.data.level1beaten; if (levelBeaten) { i = 1; while (i <= 21) { visitedObject[("room" + i) + "visited"] = true; i++; } } var room1 = [[55, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 58], [48, 61, 60, 2, 61, 2, 2, 61, 2, 61, 2, 50], [48, 2, 61, 2, 61, 60, 2, 2, 61, 2, 61, 50], [48, 2, 61, 2, 61, 2, 61, 2, 2, 61, 2, 50], [48, 61, 60, 2, 2, 2, 61, 2, 61, 2, 2, 50], [48, 61, 2, 2, 60, 61, 2, 61, 61, 2, 61, 4], [48, 2, 61, 61, 61, 2, 60, 61, 2, 61, 2, 50], [48, 61, 2, 2, 61, 2, 2, 61, 2, 2, 61, 50], [48, 60, 61, 2, 2, 61, 61, 2, 61, 60, 2, 50], [48, 2, 61, 61, 2, 60, 61, 60, 2, 2, 61, 50], [48, 2, 60, 61, 60, 61, 61, 2, 61, 60, 2, 50], [56, 49, 49, 49, 49, 63, 49, 49, 49, 49, 49, 57]]; var room2 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 60, 61, 2, 60, 2, 60, 61, 2, 61, 60, 50], [48, 60, 61, 2, 61, 60, 2, 61, 2, 60, 61, 50], [48, 2, 60, 61, 61, 61, 60, 2, 2, 61, 60, 50], [48, 2, 61, 61, 2, 60, 61, 60, 2, 2, 2, 50], [5, 60, 60, 61, 2, 60, 61, 60, 61, 2, 61, 20], [48, 2, 61, 60, 2, 2, 2, 61, 2, 2, 61, 50], [48, 60, 2, 61, 61, 2, 2, 60, 61, 2, 60, 50], [48, 61, 2, 61, 60, 2, 61, 2, 60, 2, 61, 50], [48, 61, 60, 2, 2, 61, 60, 61, 60, 2, 60, 50], [48, 2, 61, 60, 61, 2, 61, 60, 61, 2, 60, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room10 = [[59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [55, 1, 1, 1, 58, 59, 59, 59, 59, 59, 59, 59], [48, 61, 60, 2, 50, 59, 59, 59, 59, 59, 59, 59], [21, 60, 61, 18, 50, 59, 59, 59, 59, 59, 59, 59], [48, 61, 2, 60, 50, 59, 59, 59, 59, 59, 59, 59], [48, 60, 2, 61, 50, 59, 59, 59, 59, 59, 59, 59], [56, 49, 49, 49, 57, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59]]; var room3 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 60, 60, 2, 61, 60, 61, 2, 2, 2, 60, 50], [48, 61, 61, 60, 2, 61, 61, 60, 2, 2, 61, 50], [48, 60, 61, 60, 2, 2, 61, 60, 61, 2, 2, 50], [48, 60, 61, 60, 61, 2, 60, 2, 61, 61, 60, 50], [7, 2, 60, 2, 61, 2, 61, 2, 61, 60, 61, 8], [48, 2, 61, 61, 2, 2, 60, 61, 2, 61, 61, 50], [48, 2, 60, 61, 60, 61, 2, 61, 60, 61, 2, 50], [48, 60, 2, 61, 60, 2, 61, 60, 61, 60, 2, 50], [48, 61, 61, 60, 2, 61, 60, 60, 61, 2, 60, 50], [48, 60, 60, 2, 61, 60, 2, 60, 60, 61, 60, 50], [56, 49, 49, 49, 49, 6, 49, 49, 49, 49, 49, 57]]; var room4 = [[55, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 58], [48, 60, 61, 60, 2, 61, 61, 60, 2, 60, 2, 50], [48, 60, 61, 60, 61, 2, 60, 2, 61, 61, 60, 50], [48, 2, 2, 61, 2, 60, 61, 2, 60, 61, 60, 50], [48, 2, 61, 61, 60, 2, 60, 60, 2, 60, 61, 50], [48, 2, 60, 2, 61, 60, 2, 2, 60, 2, 61, 9], [48, 60, 2, 60, 2, 61, 60, 2, 2, 60, 61, 50], [48, 60, 2, 61, 60, 2, 60, 2, 61, 60, 60, 50], [48, 2, 60, 61, 61, 60, 2, 61, 60, 61, 60, 50], [48, 2, 61, 2, 2, 61, 2, 2, 61, 2, 60, 50], [48, 61, 2, 60, 61, 2, 60, 60, 60, 2, 60, 50], [56, 49, 49, 49, 49, 11, 49, 49, 49, 49, 49, 57]]; var room5 = [[55, 1, 1, 1, 1, 22, 1, 1, 1, 1, 1, 58], [48, 60, 61, 60, 60, 61, 60, 2, 60, 60, 60, 50], [48, 61, 60, 61, 60, 60, 61, 60, 2, 60, 61, 50], [48, 2, 2, 61, 2, 60, 2, 61, 2, 60, 61, 50], [48, 60, 60, 2, 60, 60, 2, 61, 60, 2, 60, 50], [48, 2, 61, 2, 60, 2, 61, 2, 61, 2, 61, 50], [48, 60, 60, 60, 61, 2, 2, 60, 60, 60, 61, 50], [48, 61, 2, 2, 60, 61, 2, 61, 60, 2, 61, 50], [48, 61, 60, 2, 61, 60, 61, 2, 60, 61, 61, 50], [48, 60, 2, 61, 61, 60, 2, 61, 60, 2, 60, 50], [48, 61, 61, 60, 2, 61, 60, 61, 60, 2, 60, 50], [56, 49, 49, 49, 49, 12, 49, 49, 49, 49, 49, 57]]; var room11 = [[59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 55, 1, 1, 1, 1, 1, 58, 59, 59, 59], [59, 59, 48, 60, 60, 61, 60, 2, 50, 59, 59, 59], [59, 59, 48, 61, 60, 19, 2, 60, 50, 59, 59, 59], [59, 59, 48, 61, 60, 2, 2, 60, 50, 59, 59, 59], [59, 59, 48, 60, 61, 61, 60, 2, 50, 59, 59, 59], [59, 59, 56, 49, 49, 23, 49, 49, 57, 59, 59, 59]]; var room6 = [[55, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 58], [48, 60, 61, 2, 60, 61, 2, 60, 61, 61, 60, 50], [48, 2, 61, 60, 2, 61, 60, 61, 2, 61, 60, 50], [48, 2, 2, 60, 61, 2, 61, 2, 60, 2, 60, 50], [48, 61, 60, 60, 60, 2, 60, 2, 61, 60, 2, 50], [48, 2, 60, 61, 61, 2, 2, 60, 61, 2, 60, 50], [48, 61, 2, 61, 60, 61, 60, 2, 61, 60, 2, 50], [48, 61, 60, 2, 60, 61, 60, 2, 2, 61, 60, 50], [48, 60, 2, 60, 60, 60, 61, 60, 2, 60, 60, 50], [48, 61, 61, 60, 2, 61, 60, 2, 61, 60, 2, 50], [48, 60, 61, 2, 60, 61, 2, 61, 2, 61, 60, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room7 = [[55, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 58], [48, 2, 60, 61, 60, 60, 2, 61, 60, 2, 60, 50], [48, 60, 61, 60, 2, 60, 60, 60, 61, 60, 60, 50], [48, 2, 61, 2, 60, 60, 61, 61, 60, 60, 2, 50], [48, 60, 61, 60, 60, 2, 61, 60, 60, 2, 60, 50], [14, 61, 60, 61, 2, 60, 61, 2, 61, 2, 60, 50], [48, 61, 60, 60, 2, 2, 2, 61, 2, 61, 2, 50], [48, 60, 61, 60, 2, 61, 2, 61, 2, 60, 61, 50], [48, 60, 2, 61, 2, 60, 61, 2, 61, 2, 61, 50], [48, 2, 61, 2, 61, 60, 2, 60, 60, 61, 2, 50], [48, 60, 61, 2, 60, 61, 2, 60, 61, 60, 61, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room8 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 60, 60, 2, 60, 2, 61, 2, 61, 2, 61, 50], [48, 2, 60, 2, 60, 61, 60, 60, 2, 61, 60, 50], [48, 2, 60, 2, 60, 61, 2, 60, 2, 60, 60, 50], [48, 60, 61, 60, 2, 60, 61, 60, 2, 2, 60, 50], [17, 60, 61, 60, 2, 61, 61, 60, 2, 61, 2, 50], [48, 61, 60, 2, 60, 2, 2, 61, 60, 2, 60, 50], [48, 2, 60, 61, 2, 60, 61, 60, 60, 60, 61, 50], [48, 2, 60, 61, 60, 60, 60, 2, 60, 2, 61, 50], [48, 60, 2, 60, 61, 60, 60, 2, 60, 60, 2, 50], [48, 61, 60, 2, 61, 60, 60, 60, 60, 61, 60, 50], [56, 49, 49, 49, 49, 16, 49, 49, 49, 49, 49, 57]]; var room9 = [[55, 1, 25, 1, 1, 1, 1, 1, 1, 26, 1, 58], [48, 60, 61, 60, 60, 2, 60, 60, 60, 2, 61, 50], [48, 60, 2, 2, 60, 60, 61, 60, 60, 60, 2, 50], [48, 2, 60, 61, 60, 60, 2, 60, 2, 60, 61, 50], [48, 60, 2, 61, 2, 60, 2, 60, 61, 2, 2, 50], [48, 60, 61, 60, 60, 60, 61, 60, 60, 2, 60, 24], [48, 61, 60, 60, 60, 61, 2, 60, 60, 61, 60, 50], [48, 2, 60, 60, 61, 60, 60, 60, 2, 60, 60, 50], [48, 60, 60, 61, 60, 61, 2, 60, 61, 60, 60, 50], [48, 2, 61, 60, 2, 61, 60, 2, 60, 61, 2, 50], [48, 60, 60, 60, 60, 2, 61, 2, 61, 60, 61, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room12 = [[55, 1, 1, 1, 1, 58, 55, 1, 1, 31, 1, 58], [48, 60, 61, 60, 2, 50, 48, 61, 60, 61, 60, 50], [48, 2, 60, 60, 61, 50, 48, 2, 60, 61, 60, 50], [48, 61, 2, 60, 61, 50, 48, 2, 60, 61, 2, 50], [48, 60, 60, 60, 60, 50, 48, 60, 60, 60, 61, 50], [29, 2, 60, 61, 2, 50, 48, 60, 61, 61, 60, 30], [48, 60, 61, 61, 2, 50, 48, 60, 2, 2, 60, 50], [48, 61, 61, 2, 61, 50, 48, 60, 2, 61, 60, 50], [48, 2, 2, 61, 2, 50, 48, 60, 2, 61, 2, 50], [48, 61, 60, 2, 2, 50, 48, 61, 60, 2, 61, 50], [48, 61, 2, 61, 2, 50, 48, 61, 61, 2, 60, 50], [56, 49, 27, 49, 49, 57, 56, 49, 49, 28, 49, 57]]; var room13 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 61, 2, 60, 61, 61, 2, 60, 61, 2, 61, 50], [48, 60, 61, 2, 61, 60, 2, 61, 60, 61, 2, 50], [48, 2, 60, 61, 2, 60, 60, 61, 60, 61, 61, 50], [48, 2, 60, 61, 60, 2, 2, 60, 61, 2, 61, 50], [48, 60, 2, 60, 61, 2, 60, 61, 2, 60, 61, 50], [48, 60, 61, 2, 60, 2, 61, 60, 61, 60, 2, 50], [48, 60, 2, 61, 61, 60, 2, 61, 2, 60, 2, 50], [48, 61, 60, 2, 61, 2, 61, 61, 60, 2, 60, 50], [48, 2, 60, 60, 61, 2, 60, 61, 2, 60, 2, 50], [48, 61, 60, 2, 61, 60, 2, 2, 60, 61, 2, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 36, 49, 57]]; var room14 = [[55, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 58], [48, 60, 61, 2, 2, 60, 60, 61, 2, 60, 60, 50], [48, 61, 60, 2, 2, 60, 61, 60, 2, 60, 61, 50], [48, 61, 60, 2, 61, 60, 2, 60, 61, 60, 61, 50], [48, 60, 2, 61, 60, 2, 60, 61, 60, 2, 2, 50], [34, 61, 60, 2, 60, 2, 60, 61, 60, 2, 60, 50], [48, 60, 61, 60, 2, 61, 60, 2, 60, 61, 60, 50], [48, 60, 2, 2, 60, 61, 60, 2, 61, 60, 2, 50], [48, 60, 60, 2, 61, 60, 60, 2, 60, 61, 60, 50], [48, 60, 61, 60, 60, 2, 60, 61, 2, 60, 61, 50], [48, 60, 61, 2, 61, 60, 2, 2, 60, 61, 60, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room21 = [[59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 55, 1, 1, 1, 58], [59, 59, 59, 59, 59, 59, 59, 48, 60, 61, 2, 50], [59, 59, 59, 59, 59, 59, 59, 48, 2, 61, 60, 50], [59, 59, 59, 59, 59, 59, 59, 48, 32, 2, 61, 33], [59, 59, 59, 59, 59, 59, 59, 48, 2, 60, 2, 50], [59, 59, 59, 59, 59, 59, 59, 48, 61, 2, 61, 50], [59, 59, 59, 59, 59, 59, 59, 56, 49, 49, 49, 57], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59]]; var room15 = [[55, 1, 1, 1, 1, 38, 1, 1, 1, 1, 1, 58], [48, 60, 61, 2, 61, 60, 2, 61, 2, 61, 60, 50], [48, 2, 61, 61, 60, 2, 2, 61, 61, 60, 2, 50], [48, 2, 60, 61, 61, 2, 60, 2, 61, 2, 60, 50], [48, 2, 61, 2, 60, 61, 61, 2, 60, 61, 61, 50], [48, 2, 60, 61, 2, 2, 61, 60, 2, 61, 61, 39], [48, 60, 2, 61, 60, 2, 60, 2, 61, 61, 60, 50], [48, 61, 2, 61, 60, 2, 61, 60, 61, 60, 61, 50], [48, 60, 60, 2, 60, 60, 2, 60, 60, 61, 60, 50], [48, 2, 61, 60, 60, 61, 2, 60, 61, 60, 2, 50], [48, 60, 60, 60, 2, 61, 2, 60, 60, 60, 60, 50], [56, 49, 49, 49, 49, 37, 49, 49, 49, 49, 49, 57]]; var room16 = [[59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [55, 1, 1, 1, 58, 59, 59, 59, 59, 59, 59, 59], [48, 2, 60, 61, 50, 59, 59, 59, 59, 59, 59, 59], [48, 60, 61, 60, 50, 59, 59, 59, 59, 59, 59, 59], [40, 60, 2, 41, 50, 59, 59, 59, 59, 59, 59, 59], [48, 60, 61, 60, 50, 59, 59, 59, 59, 59, 59, 59], [48, 61, 2, 2, 50, 59, 59, 59, 59, 59, 59, 59], [56, 49, 49, 49, 57, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59]]; var room17 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 60, 60, 60, 61, 2, 61, 60, 60, 61, 60, 50], [48, 60, 2, 60, 61, 60, 60, 2, 2, 60, 60, 50], [48, 61, 2, 61, 61, 60, 2, 61, 60, 2, 2, 50], [48, 61, 60, 2, 60, 61, 61, 2, 60, 61, 2, 50], [43, 2, 60, 61, 2, 60, 61, 61, 2, 60, 61, 44], [48, 2, 60, 2, 60, 60, 60, 61, 2, 60, 60, 50], [48, 61, 61, 60, 60, 2, 61, 2, 60, 60, 60, 50], [48, 2, 60, 60, 61, 60, 60, 2, 61, 60, 61, 50], [48, 2, 61, 60, 2, 2, 60, 61, 2, 60, 61, 50], [48, 60, 60, 61, 2, 60, 61, 60, 2, 2, 60, 50], [56, 49, 49, 49, 49, 42, 49, 49, 49, 49, 49, 57]]; var room18 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 61, 2, 61, 61, 60, 2, 61, 60, 60, 2, 50], [48, 60, 2, 61, 60, 2, 61, 60, 61, 60, 60, 50], [48, 2, 61, 60, 2, 60, 60, 2, 60, 61, 60, 50], [48, 2, 61, 61, 60, 2, 61, 2, 60, 2, 61, 50], [45, 2, 61, 61, 2, 61, 60, 2, 2, 60, 61, 50], [48, 60, 2, 60, 61, 2, 60, 61, 60, 60, 2, 50], [48, 60, 61, 2, 60, 61, 60, 61, 2, 60, 61, 50], [48, 60, 2, 2, 61, 60, 2, 61, 60, 61, 2, 50], [48, 60, 61, 60, 2, 60, 2, 61, 2, 60, 60, 50], [48, 61, 61, 60, 60, 60, 2, 60, 60, 60, 61, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room19 = [[55, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 58], [48, 2, 2, 61, 60, 60, 60, 2, 60, 61, 60, 50], [48, 60, 61, 2, 60, 60, 61, 60, 2, 60, 2, 50], [48, 61, 60, 2, 61, 60, 61, 60, 2, 61, 2, 50], [48, 60, 2, 60, 60, 61, 60, 2, 60, 61, 60, 50], [48, 61, 60, 2, 60, 60, 61, 2, 60, 60, 2, 46], [48, 61, 60, 2, 60, 60, 61, 61, 60, 60, 2, 50], [48, 61, 2, 2, 2, 60, 60, 61, 2, 60, 61, 50], [48, 60, 61, 60, 2, 61, 60, 2, 61, 2, 60, 50], [48, 61, 61, 60, 2, 60, 60, 61, 60, 2, 60, 50], [48, 61, 60, 2, 61, 60, 61, 2, 60, 61, 2, 50], [56, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 57]]; var room20 = [[55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 58], [48, 60, 61, 2, 61, 60, 61, 2, 60, 61, 2, 50], [48, 2, 61, 60, 2, 61, 2, 60, 61, 2, 60, 50], [48, 2, 61, 60, 60, 2, 61, 61, 60, 60, 60, 50], [48, 2, 61, 2, 2, 61, 60, 60, 60, 2, 60, 50], [48, 60, 60, 60, 61, 61, 2, 61, 60, 60, 2, 50], [48, 60, 2, 60, 60, 61, 60, 60, 2, 61, 60, 50], [48, 60, 61, 2, 61, 2, 60, 60, 60, 2, 61, 50], [48, 2, 60, 60, 61, 60, 61, 60, 2, 61, 2, 50], [48, 2, 61, 60, 2, 61, 61, 2, 60, 61, 60, 50], [48, 60, 2, 60, 2, 60, 60, 61, 60, 2, 60, 50], [56, 49, 49, 49, 49, 62, 49, 49, 49, 49, 49, 57]]; var game = {tilew:30, tileh:30, room:1, paused:false, enterKey:false, attackKey:false, song:"song1", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.clip.hit.play(); hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; var chests = new Array(); game.Chest = function (room) { this.room = room; this.name = keys[room][0][1]; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 19; game.Chest.prototype.openChest = false; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 1; game.tile1.prototype.walkable = false; game.tile2 = function () { }; game.tile2.prototype.frame = 5; game.tile2.prototype.walkable = true; game.tile3 = function () { }; game.tile3.prototype = new game.LockDoor(3, 5, 10, 1, "tile_0_5"); game.tile4 = function () { }; game.tile4.prototype = new game.Door(2, 1, 5); game.tile4.prototype.type = "x"; game.tile4.prototype.frame = 14; game.tile5 = function () { }; game.tile5.prototype = new game.Door(1, 10, 5); game.tile5.prototype.type = "x"; game.tile5.prototype.frame = 12; game.tile6 = function () { }; game.tile6.prototype = new game.TrapDoor(1, 5, 1); game.tile6.prototype.frame = 17; game.tile7 = function () { }; game.tile7.prototype = new game.TrapDoor(4, 10, 5); game.tile7.prototype.type = "x"; game.tile7.prototype.frame = 16; game.tile8 = function () { }; game.tile8.prototype = new game.TrapDoor(7, 1, 5); game.tile8.prototype.type = "x"; game.tile8.prototype.frame = 18; game.tile9 = function () { }; game.tile9.prototype = new game.Door(3, 1, 5); game.tile9.prototype.type = "x"; game.tile9.prototype.frame = 14; game.tile10 = function () { }; game.tile10.prototype = new game.Door(5, 5, 10); game.tile11 = function () { }; game.tile11.prototype = new game.Door(6, 5, 1); game.tile11.prototype.frame = 13; game.tile12 = function () { }; game.tile12.prototype = new game.Door(4, 5, 1); game.tile12.prototype.frame = 13; game.tile13 = function () { }; game.tile13.prototype = new game.TrapDoor(4, 5, 10); game.tile14 = function () { }; game.tile14.prototype = new game.Door(3, 10, 5); game.tile14.prototype.type = "x"; game.tile14.prototype.frame = 12; game.tile15 = function () { }; game.tile15.prototype = new game.Door(8, 5, 10); game.tile16 = function () { }; game.tile16.prototype = new game.Door(7, 5, 1); game.tile16.prototype.frame = 13; game.tile17 = function () { }; game.tile17.prototype = new game.LockDoor(9, 10, 5, 8, "tile_5_0"); game.tile17.prototype.type = "x"; game.tile17.prototype.frame = 8; game.tile20 = function () { }; game.tile20.prototype = new game.TrapDoor(10, 1, 5); game.tile20.prototype.type = "x"; game.tile20.prototype.frame = 18; game.tile21 = function () { }; game.tile21.prototype = new game.Door(2, 10, 5); game.tile21.prototype.type = "x"; game.tile21.prototype.frame = 12; game.tile22 = function () { }; game.tile22.prototype = new game.TrapDoor(11, 5, 10); game.tile23 = function () { }; game.tile23.prototype = new game.Door(5, 5, 1); game.tile24 = function () { }; game.tile24.prototype = new game.Door(8, 1, 5); game.tile24.prototype.type = "x"; game.tile24.prototype.frame = 14; game.tile25 = function () { }; game.tile25.prototype = new game.Door(12, 2, 10); game.tile26 = function () { }; game.tile26.prototype = new game.LockDoor(12, 9, 10, 9, "tile_0_9"); game.tile27 = function () { }; game.tile27.prototype = new game.Door(9, 10, 1); game.tile27.prototype.frame = 13; game.tile28 = function () { }; game.tile28.prototype = new game.Door(9, 9, 1); game.tile28.prototype.frame = 13; game.tile29 = function () { }; game.tile29.prototype = new game.Door(21, 10, 5); game.tile29.prototype.type = "x"; game.tile29.prototype.frame = 12; game.tile30 = function () { }; game.tile30.prototype = new game.Door(14, 1, 5); game.tile30.prototype.type = "x"; game.tile30.prototype.frame = 14; game.tile31 = function () { }; game.tile31.prototype = new game.Door(13, 9, 10); game.tile33 = function () { }; game.tile33.prototype = new game.Door(12, 1, 5); game.tile33.prototype.type = "x"; game.tile33.prototype.frame = 14; game.tile34 = function () { }; game.tile34.prototype = new game.TrapDoor(12, 10, 5); game.tile34.prototype.type = "x"; game.tile34.prototype.frame = 16; game.tile35 = function () { }; game.tile35.prototype = new game.TrapDoor(15, 5, 10); game.tile36 = function () { }; game.tile36.prototype = new game.TrapDoor(12, 9, 1); game.tile36.prototype.frame = 17; game.tile37 = function () { }; game.tile37.prototype = new game.Door(14, 5, 1); game.tile37.prototype.frame = 13; game.tile38 = function () { }; game.tile38.prototype = new game.Door(17, 5, 10); game.tile39 = function () { }; game.tile39.prototype = new game.TrapDoor(16, 1, 5); game.tile39.prototype.type = "x"; game.tile39.prototype.frame = 18; game.tile40 = function () { }; game.tile40.prototype = new game.Door(15, 10, 5); game.tile40.prototype.type = "x"; game.tile40.prototype.frame = 12; game.tile42 = function () { }; game.tile42.prototype = new game.Door(15, 5, 1); game.tile42.prototype.frame = 13; game.tile43 = function () { }; game.tile43.prototype = new game.Door(19, 10, 5); game.tile43.prototype.type = "x"; game.tile43.prototype.frame = 12; game.tile44 = function () { }; game.tile44.prototype = new game.Door(18, 1, 5); game.tile44.prototype.type = "x"; game.tile44.prototype.frame = 14; game.tile45 = function () { }; game.tile45.prototype = new game.TrapDoor(17, 10, 5); game.tile45.prototype.type = "x"; game.tile45.prototype.frame = 16; game.tile46 = function () { }; game.tile46.prototype = new game.Door(17, 1, 5); game.tile46.prototype.type = "x"; game.tile46.prototype.frame = 14; game.tile47 = function () { }; game.tile47.prototype = new game.LockDoor(20, 5, 10, 19, "tile_0_5"); game.tile48 = function () { }; game.tile48.prototype.frame = 2; game.tile49 = function () { }; game.tile49.prototype.frame = 3; game.tile50 = function () { }; game.tile50.prototype.frame = 4; game.tile51 = function () { }; game.tile51.prototype.frame = 20; game.tile52 = function () { }; game.tile52.prototype.frame = 21; game.tile53 = function () { }; game.tile53.prototype.frame = 22; game.tile54 = function () { }; game.tile54.prototype.frame = 23; game.tile55 = function () { }; game.tile55.prototype.frame = 24; game.tile56 = function () { }; game.tile56.prototype.frame = 25; game.tile57 = function () { }; game.tile57.prototype.frame = 26; game.tile58 = function () { }; game.tile58.prototype.frame = 27; game.tile59 = function () { }; game.tile59.prototype.frame = 28; game.tile60 = function () { }; game.tile60.prototype.frame = 29; game.tile60.prototype.walkable = true; game.tile61 = function () { }; game.tile61.prototype.frame = 30; game.tile61.prototype.walkable = true; game.tile62 = function () { }; game.tile62.prototype = new game.TrapDoor(19, 5, 1); game.tile62.prototype.frame = 17; game.tile63 = function () { }; game.tile63.prototype = new game.OutDoor("overworld", 2, 5, 7); game.tile63.prototype.type = ""; game.tile63.prototype.frame = 13; game.tile18 = function () { }; game.tile18.prototype = new game.Chest(1); game.tile19 = function () { }; game.tile19.prototype = new game.Chest(8); game.tile32 = function () { }; game.tile32.prototype = new game.Chest(9); game.tile41 = function () { }; game.tile41.prototype = new game.Chest(19); var enemies = [[], [], [[1, 5, 3], [2, 8, 7]], [[2, 5, 3], [2, 8, 7]], [[2, 5, 5]], [[2, 3, 5], [1, 5, 5], [2, 8, 5]], [[1, 3, 5], [2, 7, 7]], [[2, 5, 5]], [[1, 7, 5], [2, 8, 7], [2, 3, 2]], [[2, 3, 7], [1, 7, 7]], [], [], [[2, 3, 1], [2, 7, 7]], [[2, 5, 3], [1, 3, 7], [2, 3, 3], [2, 8, 3]], [[2, 8, 3], [1, 8, 7]], [[2, 3, 3], [2, 3, 7]], [], [[2, 5, 3]], [[1, 5, 3], [1, 8, 7]], [[2, 5, 9], [2, 3, 7]], [[3, 5, 5]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; game.enemy3 = function () { }; game.enemy3.prototype = new game.Enemy(); game.enemy3.prototype.speed = 5; game.enemy3.prototype.health = 5; game.enemy3.prototype.actionOrder = ["move", "move", "move", "attack1", "move", "move", "attack1", "move", "move", "move", "align", "attack1", "attack2", "idle", "move"]; game.enemy3.prototype.currentAction = 0; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; i = 0; while (i < chests[game.room].length) { if (chests[game.room][i].openChest) { openChest = true; } i++; } if (levelBeaten) { openChest = true; } object = hero; checkCorners(object.x, object.y - object.speed, object); if ((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (!openChest)) && (object.dir == "up")) { object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; inventory[0].push([object.tileUpLeft.room, object.tileUpLeft.name, false, object.tileUpLeft.bluekey]); if (chests[game.room] == undefined) { chests[game.room] = new Array(); } chests[game.room].push(object.tileUpLeft); game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); if (game.paused) { stopClips(hero.clip); } }; buildRoom(_root["room" + game.room]);Frame 44function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles = _root.tiles; game.tiles.setMask(mask_mc); r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * Stage.height) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 4) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("\"Me\"", "~Guardian of the Flash Portal~"); attachMovie("song2", "music", 10); pause_mc.name_txt.text = "DISABLED"; delete pause_mc.onRelease; } i++; } if (levelBeaten) { openLocks(); openChests(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } i = 0; while (i < chests[game.room].length) { chests[game.room][i].tile.tile.gotoAndStop(chests[game.room][i].tile.tile._totalframes); chests[game.room][i].openChest = true; i++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object) { if (!object.clip.spinning) { speed = object.speed; } else { speed = object.spinspeed; } if (object.action == "barge") { speed = object.bargespeed; } if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); object.clip._x = object.x; object.clip._y = object.y; } if ((object.action != "spin") && (object.action != "barge")) { object.clip.gotoAndStop(object.action + object.dir); } else if (object.action == "barge") { if (getDistance(object.clip, hero.clip).xdist > 0) { object.clip.gotoAndStop(object.action + "right"); } else { object.clip.gotoAndStop(object.action + "left"); } } else { object.clip.gotoAndStop(object.action); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!_local1.clip.spinning) { speed = _local1.speed; } else { speed = _local1.spinspeed; } if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (speed * _local1.xdir), _local1.y + (speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local3 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local3 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 4 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "move" : _local1.hit = false; if (_local1.movementDirection == undefined) { if ((_local1.xtile == 5) && (Math.floor(Math.random() * 2) == 0)) { moveRight = 1; } else { moveRight = 0; } if ((_local1.xtile < 5) || (moveRight == 1)) { if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "right"; } else { _local1.movementDirection = "up"; } } else if (_local1.ytile <= 5) { if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "down"; } } else if (Math.floor(Math.random() * 2) == 0) { _local1.movementDirection = "left"; } else { _local1.movementDirection = "up"; } } if (_local1.action != "barge") { switch (_local1.movementDirection) { case "left" : moveObject(-1, 0, _local1); break; case "right" : moveObject(1, 0, _local1); break; case "up" : moveObject(0, -1, _local1); break; case "down" : moveObject(0, 1, _local1); } } if (Math.floor(_local1.currentAction + 0.05) > Math.floor(_local1.currentAction)) { delete _local1.movementDirection; } _local1.currentAction = _local1.currentAction + 0.05; dist = getDistance(_local1.clip, hero.clip); if (((dist.totaldist < 100) && (Math.abs(dist.ydist) < 10)) && (!hero.invinsible)) { _local1.action = "barge"; if (dist.xdist > 0) { moveObject(-1, 0, _local1); } else { moveObject(1, 0, _local1); } } else { _local1.action = "walk"; } if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "spin" : _local1.hit = false; _local1.action = "spin"; if ((((!_local1.upleft) && (!_local1.downleft)) && (_local1.xdir == -1)) || (((!_local1.upright) && (!_local1.downright)) && (_local1.xdir == 1))) { _local1.xdir = _local1.xdir * -1; } if ((((!_local1.upleft) && (!_local1.upright)) && (_local1.ydir == -1)) || (((!_local1.downleft) && (!_local1.downright)) && (_local1.ydir == 1))) { _local1.ydir = _local1.ydir * -1; } if (_local1.clip.spinning) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.clip.gotoAndStop("spin"); } if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } _local1.currentAction = _local1.currentAction + 0.0025; break; case "dizzy" : _local1.invinsible = false; _local1.currentAction = _local1.currentAction + 0.0075; if (_local1.clip.hitTest(hero.clip.hero.sword) && (!_local1.hit)) { _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health > 0) { _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); } } _local1.action = "dizzy"; _local1.dir = "down"; _local1.clip.gotoAndStop(_local1.action); } } else { _local1.clip.gotoAndStop("die"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom, notile) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); if (notile.health == undefined) { health = hero.health; } else { health = notile.health; } _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function openChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest) { game[_local2].openChest = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (level2rooms == undefined) { var level2rooms = new Object(); i = 1; while (i <= 22) { level2rooms[("room" + i) + "visited"] = false; i++; } } visitedObject = level2rooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_d2", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var levelBeaten = so.data.level2beaten; if (levelBeaten) { i = 1; while (i <= 22) { visitedObject[("room" + i) + "visited"] = true; i++; } } var room1 = [[5, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [12, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 14], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 61, 3, 3, 3, 3, 3, 7]]; var room2 = [[5, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 16, 3, 3, 3, 3, 3, 7]]; var room3 = [[18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 5, 1, 1, 1, 8, 18, 18, 18, 18], [18, 18, 18, 2, 10, 11, 9, 4, 18, 18, 18, 18], [18, 18, 18, 2, 9, 55, 10, 4, 18, 18, 18, 18], [18, 18, 18, 2, 10, 10, 11, 4, 18, 18, 18, 18], [18, 18, 18, 2, 9, 11, 10, 4, 18, 18, 18, 18], [18, 18, 18, 2, 11, 11, 9, 4, 18, 18, 18, 18], [18, 18, 18, 6, 3, 17, 3, 7, 18, 18, 18, 18]]; var room4 = [[5, 1, 1, 1, 1, 19, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 20], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room5 = [[5, 1, 1, 1, 1, 21, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 22, 3, 3, 3, 3, 3, 7]]; var room6 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 56, 9, 11, 11, 9, 11, 4], [23, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 24, 3, 3, 3, 3, 3, 7]]; var room7 = [[5, 1, 1, 1, 1, 25, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 26], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room8 = [[5, 1, 1, 1, 1, 27, 1, 1, 1, 1, 1, 8], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [6, 3, 3, 3, 3, 28, 3, 3, 3, 3, 3, 7]]; var room9 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 58, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 30], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 29, 3, 3, 3, 3, 3, 7]]; var room10 = [[5, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [31, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room11 = [[18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18], [18, 18, 18, 5, 1, 1, 1, 8, 18, 18, 18, 18], [18, 18, 18, 2, 10, 11, 9, 4, 18, 18, 18, 18], [18, 18, 18, 2, 9, 60, 10, 4, 18, 18, 18, 18], [18, 18, 18, 2, 10, 10, 11, 4, 18, 18, 18, 18], [18, 18, 18, 2, 9, 11, 10, 4, 18, 18, 18, 18], [18, 18, 18, 2, 11, 11, 9, 4, 18, 18, 18, 18], [18, 18, 18, 6, 3, 33, 3, 7, 18, 18, 18, 18]]; var room12 = [[5, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [34, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room13 = [[5, 1, 1, 1, 1, 36, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 37, 3, 3, 3, 3, 3, 7]]; var room14 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 57, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 39], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 38, 3, 3, 3, 3, 3, 7]]; var room15 = [[5, 1, 1, 1, 1, 41, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [40, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room16 = [[5, 1, 1, 1, 1, 42, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 43, 3, 3, 3, 3, 3, 7]]; var room17 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 59, 9, 11, 11, 9, 11, 4], [44, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 45, 3, 3, 3, 3, 3, 7]]; var room18 = [[5, 1, 1, 1, 1, 46, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 47], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room19 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [48, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 49, 3, 3, 3, 3, 3, 7]]; var room20 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 51], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 50, 3, 3, 3, 3, 3, 7]]; var room21 = [[5, 1, 1, 1, 1, 52, 1, 1, 1, 1, 1, 8], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [6, 3, 3, 3, 3, 53, 3, 3, 3, 3, 3, 7]]; var room22 = [[5, 1, 1, 1, 1, 54, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var game = {tilew:30, tileh:30, room:1, paused:false, enterKey:false, attackKey:false, song:"song1", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.clip.hit.play(); hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; _root.heroHealth = hero.health; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; var chests = new Array(); game.Chest = function (room) { this.room = room; this.name = keys[room][0][1]; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 19; game.Chest.prototype.openChest = false; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 1; game.tile2 = function () { }; game.tile2.prototype.frame = 2; game.tile3 = function () { }; game.tile3.prototype.frame = 3; game.tile4 = function () { }; game.tile4.prototype.frame = 4; game.tile5 = function () { }; game.tile5.prototype.frame = 24; game.tile6 = function () { }; game.tile6.prototype.frame = 25; game.tile7 = function () { }; game.tile7.prototype.frame = 26; game.tile8 = function () { }; game.tile8.prototype.frame = 27; game.tile9 = function () { }; game.tile9.prototype.frame = 5; game.tile9.prototype.walkable = true; game.tile10 = function () { }; game.tile10.prototype.frame = 29; game.tile10.prototype.walkable = true; game.tile11 = function () { }; game.tile11.prototype.frame = 30; game.tile11.prototype.walkable = true; game.tile12 = function () { }; game.tile12.prototype = new game.Door(4, 10, 5); game.tile12.prototype.type = "x"; game.tile12.prototype.frame = 12; game.tile13 = function () { }; game.tile13.prototype = new game.Door(2, 5, 10); game.tile14 = function () { }; game.tile14.prototype = new game.Door(12, 1, 5); game.tile14.prototype.type = "x"; game.tile14.prototype.frame = 14; game.tile15 = function () { }; game.tile15.prototype = new game.TrapDoor(3, 5, 10); game.tile16 = function () { }; game.tile16.prototype = new game.TrapDoor(1, 5, 1); game.tile16.prototype.frame = 17; game.tile17 = function () { }; game.tile17.prototype = new game.Door(2, 5, 1); game.tile17.prototype.frame = 13; game.tile18 = function () { }; game.tile18.prototype.frame = 28; game.tile19 = function () { }; game.tile19.prototype = new game.LockDoor(5, 5, 10, 4, "tile_0_5"); game.tile20 = function () { }; game.tile20.prototype = new game.Door(1, 1, 5); game.tile20.prototype.type = "x"; game.tile20.prototype.frame = 14; game.tile21 = function () { }; game.tile21.prototype = new game.TrapDoor(6, 5, 10); game.tile22 = function () { }; game.tile22.prototype = new game.TrapDoor(4, 5, 1); game.tile22.prototype.frame = 17; game.tile23 = function () { }; game.tile23.prototype = new game.Door(7, 10, 5); game.tile23.prototype.frame = 12; game.tile23.prototype.type = "x"; game.tile24 = function () { }; game.tile24.prototype = new game.Door(5, 5, 1); game.tile24.prototype.frame = 13; game.tile25 = function () { }; game.tile25.prototype = new game.LockDoor(8, 5, 10, 7, "tile_0_5"); game.tile26 = function () { }; game.tile26.prototype = new game.Door(6, 1, 5); game.tile26.prototype.type = "x"; game.tile26.prototype.frame = 14; game.tile27 = function () { }; game.tile27.prototype = new game.TrapDoor(9, 5, 10); game.tile28 = function () { }; game.tile28.prototype = new game.TrapDoor(7, 5, 1); game.tile28.prototype.frame = 13; game.tile29 = function () { }; game.tile29.prototype = new game.Door(8, 5, 1); game.tile29.prototype.frame = 13; game.tile30 = function () { }; game.tile30.prototype = new game.Door(10, 1, 5); game.tile30.prototype.type = "x"; game.tile30.prototype.frame = 14; game.tile31 = function () { }; game.tile31.prototype = new game.Door(9, 10, 5); game.tile31.prototype.frame = 12; game.tile31.prototype.type = "x"; game.tile32 = function () { }; game.tile32.prototype = new game.LockDoor(11, 5, 10, 10, "tile_0_5"); game.tile33 = function () { }; game.tile33.prototype = new game.Door(10, 5, 1); game.tile33.prototype.frame = 13; game.tile34 = function () { }; game.tile34.prototype = new game.Door(1, 10, 5); game.tile34.prototype.frame = 12; game.tile34.prototype.type = "x"; game.tile35 = function () { }; game.tile35.prototype = new game.LockDoor(13, 5, 10, 12, "tile_0_5"); game.tile35.prototype.frame = 37; game.tile36 = function () { }; game.tile36.prototype = new game.TrapDoor(14, 5, 10); game.tile37 = function () { }; game.tile37.prototype = new game.TrapDoor(12, 5, 1); game.tile37.prototype.frame = 13; game.tile38 = function () { }; game.tile38.prototype = new game.Door(13, 5, 1); game.tile38.prototype.frame = 13; game.tile39 = function () { }; game.tile39.prototype = new game.Door(15, 1, 5); game.tile39.prototype.type = "x"; game.tile39.prototype.frame = 14; game.tile40 = function () { }; game.tile40.prototype = new game.Door(14, 10, 5); game.tile40.prototype.frame = 12; game.tile40.prototype.type = "x"; game.tile41 = function () { }; game.tile41.prototype = new game.LockDoor(16, 5, 10, 15, "tile_0_5"); game.tile41.prototype.frame = 37; game.tile42 = function () { }; game.tile42.prototype = new game.TrapDoor(17, 5, 10); game.tile43 = function () { }; game.tile43.prototype = new game.TrapDoor(15, 5, 1); game.tile43.prototype.frame = 13; game.tile44 = function () { }; game.tile44.prototype = new game.Door(18, 10, 5); game.tile44.prototype.frame = 12; game.tile44.prototype.type = "x"; game.tile45 = function () { }; game.tile45.prototype = new game.Door(16, 5, 1); game.tile45.prototype.frame = 13; game.tile46 = function () { }; game.tile46.prototype = new game.LockDoor(19, 5, 10, 18, "tile_0_5"); game.tile46.prototype.frame = 37; game.tile47 = function () { }; game.tile47.prototype = new game.Door(17, 1, 5); game.tile47.prototype.type = "x"; game.tile47.prototype.frame = 14; game.tile48 = function () { }; game.tile48.prototype = new game.TrapDoor(20, 10, 5); game.tile48.prototype.frame = 16; game.tile48.prototype.type = "x"; game.tile49 = function () { }; game.tile49.prototype = new game.TrapDoor(18, 5, 1); game.tile49.prototype.frame = 17; game.tile50 = function () { }; game.tile50.prototype = new game.TrapDoor(21, 5, 1); game.tile50.prototype.frame = 17; game.tile51 = function () { }; game.tile51.prototype = new game.TrapDoor(19, 1, 5); game.tile51.prototype.type = "x"; game.tile51.prototype.frame = 18; game.tile52 = function () { }; game.tile52.prototype = new game.TrapDoor(20, 5, 10); game.tile53 = function () { }; game.tile53.prototype = new game.TrapDoor(22, 5, 1); game.tile53.prototype.frame = 17; game.tile54 = function () { }; game.tile54.prototype = new game.TrapDoor(21, 5, 10); game.tile55 = function () { }; game.tile55.prototype = new game.Chest(4); game.tile56 = function () { }; game.tile56.prototype = new game.Chest(12); game.tile56.prototype.frame = 38; game.tile56.prototype.bluekey = true; game.tile57 = function () { }; game.tile57.prototype = new game.Chest(7); game.tile58 = function () { }; game.tile58.prototype = new game.Chest(15); game.tile58.prototype.frame = 38; game.tile58.prototype.bluekey = true; game.tile59 = function () { }; game.tile59.prototype = new game.Chest(10); game.tile60 = function () { }; game.tile60.prototype = new game.Chest(18); game.tile60.prototype.frame = 38; game.tile60.prototype.bluekey = true; game.tile61 = function () { }; game.tile61.prototype = new game.OutDoor("overworld", 1, 5, 7); game.tile61.prototype.type = ""; game.tile61.prototype.frame = 13; var enemies = [[], [], [[2, 2, 5], [2, 7, 5]], [], [[1, 2, 7]], [[2, 2, 5], [1, 7, 5]], [], [[2, 2, 5], [2, 2, 7], [2, 4, 7]], [[1, 2, 5], [1, 7, 5]], [], [[1, 5, 7], [2, 7, 7], [1, 7, 5]], [], [[1, 5, 5]], [[1, 2, 5], [2, 7, 5]], [], [[2, 5, 7], [2, 7, 7], [2, 7, 5]], [[1, 2, 5], [1, 7, 5]], [], [[1, 2, 5], [2, 2, 7], [1, 4, 7]], [[1, 4, 2], [1, 6, 2]], [[2, 3, 2], [2, 5, 2], [2, 7, 2]], [[1, 3, 5], [1, 5, 5], [1, 7, 5]], [[4, 5, 7]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; game.enemy4 = function () { }; game.enemy4.prototype = new game.Enemy(); game.enemy4.prototype.speed = 5; game.enemy4.prototype.spinspeed = 8; game.enemy4.prototype.bargespeed = 10; game.enemy4.prototype.health = 7; game.enemy4.prototype.ydir = 1; game.enemy4.prototype.dir = "up"; game.enemy4.prototype.width = 20; game.enemy4.prototype.actionOrder = ["move", "move", "move", "move", "spin", "dizzy", "move", "move", "move", "move", "move", "move", "move", "move", "spin", "dizzy", "move", "move"]; game.enemy4.prototype.currentAction = 0; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; i = 0; while (i < chests[game.room].length) { if (chests[game.room][i].openChest) { openChest = true; } i++; } if (levelBeaten) { openChest = true; } object = hero; checkCorners(object.x, object.y - object.speed, object); if ((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (!openChest)) && (object.dir == "up")) { object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; inventory[0].push([object.tileUpLeft.room, object.tileUpLeft.name, false, object.tileUpLeft.bluekey]); if (chests[game.room] == undefined) { chests[game.room] = new Array(); } chests[game.room].push(object.tileUpLeft); if (object.tileUpLeft.bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); if (game.paused) { stopClips(hero.clip); } }; buildRoom(_root["room" + game.room]);Frame 51function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles = _root.tiles; game.tiles.setMask(mask_mc); r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * Stage.height) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 5) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("Piconjo", "~Guardian of the BBS~"); attachMovie("song2", "music", 10); pause_mc.name_txt.text = "DISABLED"; delete pause_mc.onRelease; } i++; } if (levelBeaten) { openLocks(); openChests(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } i = 0; while (i < chests[game.room].length) { chests[game.room][i].tile.tile.gotoAndStop(chests[game.room][i].tile.tile._totalframes); chests[game.room][i].openChest = true; i++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object, spd) { if (spd == undefined) { speed = object.speed; } else { speed = spd; } if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } if (object.action != "run") { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } if (object.action != "run") { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpRight) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } if (object.action != "run") { object.action = "walk"; } object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } if (object.action != "run") { object.action = "walk"; } object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); if ((object.isMirrored != undefined) && (object.isMirrored.action != "attack")) { ob2 = object.isMirrored; newx = object.clip._x - object.x; newy = object.clip._y - object.y; if (newx != 0) { if (newx > 0) { newx = 1; } else { newx = -1; } } if (newy != 0) { if (newy > 0) { newy = 1; } else { newy = -1; } } moveObject(newx, 0, ob2); moveObject(0, newy, ob2); } object.clip._x = object.x; object.clip._y = object.y; } if (object.action != "run") { object.clip.gotoAndStop(object.action + object.dir); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!_local1.clip.spinning) { speed = _local1.speed; } else { speed = _local1.spinspeed; } if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (speed * _local1.xdir), _local1.y + (speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local3 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local3 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 5 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "move" : if (Math.abs(getDistance(_local1.clip, hero.clip).totaldist) < 150) { hero.isMirrored = _local1; } else { hero.isMirrored = false; } if (_local1.action != "attack") { _local1.clip.attacking = false; if ((hero.action != "idle") && (hero.isMirrored)) { _local1.action = hero.action; moveObject(0, 0, _local1); } else if (_local1.x > (hero.x + 5)) { moveObject(-1, 0, _local1); } else if (_local1.x < (hero.x - 5)) { moveObject(1, 0, _local1); } else if (_local1.y > (hero.y + 5)) { moveObject(0, -1, _local1); } else if (_local1.y < (hero.y - 5)) { moveObject(0, 1, _local1); } } if (Math.abs(getDistance(_local1.clip, hero.clip).totaldist) < 50) { _local1.action = "attack"; moveObject(0, 0, _local1); if (((_local1.clip.hitbox.hitTest(hero.clip) && (_local1.clip.attacking)) && (hero.action != "attack")) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } else if ((_local1.clip.hitbox.hitTest(hero.clip) && (_local1.clip.attacking)) && (hero.action == "attack")) { hero.initBounce = 0; hero.oppositedir = _local1.dir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 5, hero, hero.oppositedir, 50); } } _local1.currentAction = _local1.currentAction + 0.0025; break; case "align" : hero.isMirrored = false; _local1.hit = false; _local1.heroHit = false; _local1.clip.gotoAndStop("run1"); _local1.action = "run"; if (_local1.x > 70) { moveObject(-1, 0, _local1); } else if (hero.y > (_local1.y + 5)) { moveObject(0, 1, _local1); } else if (hero.y < (_local1.y - 5)) { moveObject(0, -1, _local1); } else { _local1.currentAction++; } if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth("left"); } break; case "run" : _local1.clip.gotoAndStop("run2"); _local1.action = "run"; if (_local1.x < 300) { moveObject(1, 0, _local1, 10); if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth("right"); _local1.heroHit = true; _local1.currentAction++; } } else { _local1.currentAction++; } break; case "dizzy" : _local1.invinsible = false; _local1.currentAction = _local1.currentAction + 0.0075; if (_local1.heroHit) { _local1.currentAction++; } else { if (_local1.hit) { break; } _local1.action = "dizzy"; _local1.dir = "down"; _local1.clip.gotoAndStop(_local1.action); if (!_local1.clip.hitTest(hero.clip.hero.sword)) { break; } _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health <= 0) { break; } _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); } } } else { _local1.clip.gotoAndStop("die"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function openChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest) { game[_local2].openChest = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (level3rooms == undefined) { var level3rooms = new Object(); i = 1; while (i <= 21) { level3rooms[("room" + i) + "visited"] = false; i++; } } visitedObject = level3rooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_d3", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var levelBeaten = so.data.level3beaten; if (levelBeaten) { i = 1; while (i <= 1) { visitedObject[("room" + i) + "visited"] = true; i++; } } var room1 = [[5, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 63, 3, 3, 3, 3, 3, 7]]; var room2 = [[5, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 14], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room3 = [[5, 1, 1, 1, 1, 15, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [16, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 17], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 18, 3, 3, 3, 3, 3, 7]]; var room4 = [[5, 1, 1, 1, 1, 19, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [20, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room5 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 60, 10, 11, 9, 11, 11, 21], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room6 = [[5, 1, 1, 1, 1, 22, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [23, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 24], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 25, 3, 3, 3, 3, 3, 7]]; var room7 = [[5, 1, 1, 1, 1, 26, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [27, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 28], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 29, 3, 3, 3, 3, 3, 7]]; var room8 = [[5, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 8], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [31, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 32], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [6, 3, 3, 3, 3, 33, 3, 3, 3, 3, 3, 7]]; var room9 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [34, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room10 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 35], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 36, 3, 3, 3, 3, 3, 7]]; var room11 = [[5, 1, 1, 1, 1, 37, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [38, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 39], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 40, 3, 3, 3, 3, 3, 7]]; var room12 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [41, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 42, 3, 3, 3, 3, 3, 7]]; var room13 = [[5, 1, 1, 1, 1, 43, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 44, 3, 3, 3, 3, 3, 7]]; var room14 = [[5, 1, 1, 1, 1, 45, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 9, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 46], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room15 = [[5, 1, 1, 1, 1, 47, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [48, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 49], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 50, 3, 3, 3, 3, 3, 7]]; var room16 = [[5, 1, 1, 1, 1, 51, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [52, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7]]; var room17 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 9, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 61, 10, 11, 9, 11, 11, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 53, 3, 3, 3, 3, 3, 7]]; var room18 = [[5, 1, 1, 1, 1, 54, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 55, 3, 3, 3, 3, 3, 7]]; var room19 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 62, 10, 11, 9, 11, 11, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 56, 3, 3, 3, 3, 3, 7]]; var room20 = [[5, 1, 1, 1, 1, 57, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 58, 3, 3, 3, 3, 3, 7]]; var room21 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [6, 3, 3, 3, 3, 59, 3, 3, 3, 3, 3, 7]]; var game = {tilew:30, tileh:30, room:1, paused:false, enterKey:false, attackKey:false, song:"song1", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.clip.hit.play(); hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; _root.heroHealth = hero.health; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; var chests = new Array(); game.Chest = function (room) { this.room = room; this.name = keys[room][0][1]; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 19; game.Chest.prototype.openChest = false; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 1; game.tile2 = function () { }; game.tile2.prototype.frame = 2; game.tile3 = function () { }; game.tile3.prototype.frame = 3; game.tile4 = function () { }; game.tile4.prototype.frame = 4; game.tile5 = function () { }; game.tile5.prototype.frame = 24; game.tile6 = function () { }; game.tile6.prototype.frame = 25; game.tile7 = function () { }; game.tile7.prototype.frame = 26; game.tile8 = function () { }; game.tile8.prototype.frame = 27; game.tile9 = function () { }; game.tile9.prototype.frame = 5; game.tile9.prototype.walkable = true; game.tile10 = function () { }; game.tile10.prototype.frame = 29; game.tile10.prototype.walkable = true; game.tile11 = function () { }; game.tile11.prototype.frame = 30; game.tile11.prototype.walkable = true; game.tile12 = function () { }; game.tile12.prototype = new game.Door(3, 5, 10); game.tile13 = function () { }; game.tile13.prototype = new game.TrapDoor(6, 5, 10); game.tile14 = function () { }; game.tile14.prototype = new game.TrapDoor(3, 1, 5); game.tile14.prototype.type = "x"; game.tile14.prototype.frame = 18; game.tile15 = function () { }; game.tile15.prototype = new game.TrapDoor(7, 5, 10); game.tile16 = function () { }; game.tile16.prototype = new game.TrapDoor(2, 10, 5); game.tile16.prototype.type = "x"; game.tile16.prototype.frame = 16; game.tile17 = function () { }; game.tile17.prototype = new game.TrapDoor(4, 1, 5); game.tile17.prototype.type = "x"; game.tile17.prototype.frame = 18; game.tile18 = function () { }; game.tile18.prototype = new game.Door(1, 5, 1); game.tile18.prototype.frame = 13; game.tile19 = function () { }; game.tile19.prototype = new game.TrapDoor(8, 5, 10); game.tile20 = function () { }; game.tile20.prototype = new game.TrapDoor(3, 10, 5); game.tile20.prototype.type = "x"; game.tile20.prototype.frame = 16; game.tile21 = function () { }; game.tile21.prototype = new game.TrapDoor(6, 1, 5); game.tile21.prototype.type = "x"; game.tile21.prototype.frame = 18; game.tile22 = function () { }; game.tile22.prototype = new game.TrapDoor(10, 5, 10); game.tile23 = function () { }; game.tile23.prototype = new game.TrapDoor(5, 10, 5); game.tile23.prototype.type = "x"; game.tile23.prototype.frame = 16; game.tile24 = function () { }; game.tile24.prototype = new game.TrapDoor(7, 1, 5); game.tile24.prototype.type = "x"; game.tile24.prototype.frame = 18; game.tile25 = function () { }; game.tile25.prototype = new game.TrapDoor(2, 5, 1); game.tile25.prototype.frame = 17; game.tile26 = function () { }; game.tile26.prototype = new game.TrapDoor(11, 5, 10); game.tile27 = function () { }; game.tile27.prototype = new game.TrapDoor(6, 10, 5); game.tile27.prototype.type = "x"; game.tile27.prototype.frame = 16; game.tile28 = function () { }; game.tile28.prototype = new game.TrapDoor(8, 1, 5); game.tile28.prototype.type = "x"; game.tile28.prototype.frame = 18; game.tile29 = function () { }; game.tile29.prototype = new game.TrapDoor(3, 5, 1); game.tile29.prototype.frame = 17; game.tile30 = function () { }; game.tile30.prototype = new game.TrapDoor(12, 5, 10); game.tile31 = function () { }; game.tile31.prototype = new game.TrapDoor(7, 10, 5); game.tile31.prototype.type = "x"; game.tile31.prototype.frame = 16; game.tile32 = function () { }; game.tile32.prototype = new game.TrapDoor(9, 1, 5); game.tile32.prototype.type = "x"; game.tile32.prototype.frame = 18; game.tile33 = function () { }; game.tile33.prototype = new game.TrapDoor(4, 5, 1); game.tile33.prototype.frame = 17; game.tile34 = function () { }; game.tile34.prototype = new game.TrapDoor(8, 10, 5); game.tile34.prototype.type = "x"; game.tile34.prototype.frame = 16; game.tile35 = function () { }; game.tile35.prototype = new game.TrapDoor(11, 1, 5); game.tile35.prototype.type = "x"; game.tile35.prototype.frame = 18; game.tile36 = function () { }; game.tile36.prototype = new game.TrapDoor(6, 5, 1); game.tile36.prototype.frame = 17; game.tile37 = function () { }; game.tile37.prototype = new game.LockDoor(13, 5, 10, 11, "tile_0_5"); game.tile38 = function () { }; game.tile38.prototype = new game.TrapDoor(10, 10, 5); game.tile38.prototype.type = "x"; game.tile38.prototype.frame = 16; game.tile39 = function () { }; game.tile39.prototype = new game.TrapDoor(12, 1, 5); game.tile39.prototype.type = "x"; game.tile39.prototype.frame = 18; game.tile40 = function () { }; game.tile40.prototype = new game.TrapDoor(7, 5, 1); game.tile40.prototype.frame = 17; game.tile41 = function () { }; game.tile41.prototype = new game.TrapDoor(11, 10, 5); game.tile41.prototype.type = "x"; game.tile41.prototype.frame = 16; game.tile42 = function () { }; game.tile42.prototype = new game.TrapDoor(8, 5, 1); game.tile42.prototype.frame = 17; game.tile43 = function () { }; game.tile43.prototype = new game.Door(15, 5, 10); game.tile44 = function () { }; game.tile44.prototype = new game.Door(11, 5, 1); game.tile44.prototype.frame = 13; game.tile45 = function () { }; game.tile45.prototype = new game.TrapDoor(17, 5, 10); game.tile46 = function () { }; game.tile46.prototype = new game.TrapDoor(15, 1, 5); game.tile46.prototype.type = "x"; game.tile46.prototype.frame = 18; game.tile47 = function () { }; game.tile47.prototype = new game.Door(18, 5, 10); game.tile48 = function () { }; game.tile48.prototype = new game.Door(14, 10, 5); game.tile48.prototype.type = "x"; game.tile48.prototype.frame = 12; game.tile49 = function () { }; game.tile49.prototype = new game.LockDoor(16, 1, 5, 15, "tile_5_11"); game.tile49.prototype.type = "x"; game.tile49.prototype.frame = 10; game.tile50 = function () { }; game.tile50.prototype = new game.Door(13, 5, 1); game.tile50.prototype.frame = 13; game.tile51 = function () { }; game.tile51.prototype = new game.TrapDoor(19, 5, 10); game.tile52 = function () { }; game.tile52.prototype = new game.TrapDoor(15, 10, 5); game.tile52.prototype.type = "x"; game.tile52.prototype.frame = 12; game.tile53 = function () { }; game.tile53.prototype = new game.Door(14, 5, 1); game.tile53.prototype.frame = 13; game.tile54 = function () { }; game.tile54.prototype = new game.TrapDoor(20, 5, 10); game.tile55 = function () { }; game.tile55.prototype = new game.TrapDoor(15, 5, 1); game.tile55.prototype.frame = 17; game.tile56 = function () { }; game.tile56.prototype = new game.TrapDoor(16, 5, 1); game.tile56.prototype.frame = 17; game.tile57 = function () { }; game.tile57.prototype = new game.LockDoor(21, 5, 10, 20, "tile_0_5"); game.tile58 = function () { }; game.tile58.prototype = new game.Door(18, 5, 1); game.tile58.prototype.frame = 13; game.tile59 = function () { }; game.tile59.prototype = new game.TrapDoor(20, 5, 1); game.tile59.prototype.frame = 17; game.tile60 = function () { }; game.tile60.prototype = new game.Chest(11); game.tile61 = function () { }; game.tile61.prototype = new game.Chest(15); game.tile62 = function () { }; game.tile62.prototype = new game.Chest(20); game.tile63 = function () { }; game.tile63.prototype = new game.OutDoor("overworld", 4, 5, 7); game.tile63.prototype.frame = 13; var enemies = [[], [], [[1, 2, 5]], [[2, 5, 4], [2, 5, 6]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 6]], [[2, 5, 5]], [[2, 5, 4], [2, 5, 5], [2, 5, 6]], [[2, 4, 5]], [[2, 5, 4], [1, 5, 6]], [[2, 5, 4], [1, 5, 5], [2, 5, 6]], [[1, 6, 6], [2, 5, 4]], [[1, 6, 6], [2, 5, 4]], [[2, 5, 4], [2, 5, 6]], [[1, 5, 5]], [[2, 6, 5]], [[1, 5, 5]], [[2, 5, 4], [2, 5, 6]], [[1, 5, 5]], [[2, 5, 4], [1, 5, 7]], [[2, 5, 5]], [[5, 5, 1]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; game.enemy5 = function () { }; game.enemy5.prototype = new game.Enemy(); game.enemy5.prototype.speed = hero.speed; game.enemy5.prototype.health = 5; game.enemy5.prototype.ydir = 1; game.enemy5.prototype.action = "idle"; game.enemy5.prototype.dir = "down"; game.enemy5.prototype.width = 15; game.enemy5.prototype.actionOrder = ["move", "align", "run", "dizzy", "move"]; game.enemy5.prototype.currentAction = 0; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; i = 0; while (i < chests[game.room].length) { if (chests[game.room][i].openChest) { openChest = true; } i++; } if (levelBeaten) { openChest = true; } object = hero; checkCorners(object.x, object.y - object.speed, object); if ((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (!openChest)) && (object.dir == "up")) { object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; inventory[0].push([object.tileUpLeft.room, object.tileUpLeft.name, false, object.tileUpLeft.bluekey]); if (chests[game.room] == undefined) { chests[game.room] = new Array(); } chests[game.room].push(object.tileUpLeft); if (object.tileUpLeft.bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); if (game.paused) { stopClips(hero.clip); } }; buildRoom(_root["room" + game.room]);Frame 58function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles = _root.tiles; game.tiles.setMask(mask_mc); r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * Stage.height) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 6) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("Wade Fulp", "~Troubled Brother of King Tom~"); attachMovie("song2", "music", 10); pause_mc.name_txt.text = "DISABLED"; delete pause_mc.onRelease; } i++; } if (levelBeaten) { openLocks(); openChests(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } i = 0; while (i < chests[game.room].length) { chests[game.room][i].tile.tile.gotoAndStop(chests[game.room][i].tile.tile._totalframes); chests[game.room][i].openChest = true; i++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object, spd) { if (spd == undefined) { speed = object.speed; } else { speed = spd; } if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } if (object.action != "run") { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } if (object.action != "run") { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } if (object.action != "run") { object.action = "walk"; } object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } if (object.action != "run") { object.action = "walk"; } object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); if ((object.isMirrored != undefined) && (object.isMirrored.action != "attack")) { ob2 = object.isMirrored; newx = object.clip._x - object.x; newy = object.clip._y - object.y; if (newx != 0) { if (newx > 0) { newx = 1; } else { newx = -1; } } if (newy != 0) { if (newy > 0) { newy = 1; } else { newy = -1; } } moveObject(newx, 0, ob2); moveObject(0, newy, ob2); } object.clip._x = object.x; object.clip._y = object.y; } if (object.action != "run") { object.clip.gotoAndStop(object.action + object.dir); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!_local1.clip.spinning) { speed = _local1.speed; } else { speed = _local1.spinspeed; } if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (speed * _local1.xdir), _local1.y + (speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local3 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local3 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local3 = Math.floor((Math.random() * 4) + 1); switch (_local3) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 6 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "idle" : _local1.invinsible = true; _local1.hit = false; if (!_local1.attacking) { _local1.clip.gotoAndStop("idle" + _local1.dir); } if (getDistance(_local1.clip, hero.clip).totaldist < 75) { _local1.clip.gotoAndStop("attack" + _local1.dir); _local1.attacking = true; } _local1.currentAction = _local1.currentAction + 0.025; break; case "boomerang" : _local1.clip.gotoAndStop("boomerang" + _local1.dir); if ((game.tiles.swordspin.hitTest(hero.clip.hitbox) || (_local1.clip.hitTest(hero.clip.hitbox))) && (!hero.invinsible)) { if (getDistance(_local1.clip, hero.clip).ydist > 0) { hero.loseHealth("up"); } else { hero.loseHealth("down"); } } break; case "summon" : _local1.clip.gotoAndStop("summon"); break; case "swfcheck" : _local1.clip.gotoAndStop("idle" + _local1.dir); if (_local1.enemy1 && (_local1.enemy2)) { _local1.invinsible = false; if ((_local1.clip.hitTest(hero.clip.hero.sword) && (!_local1.invinsible)) && (!_local1.hit)) { _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health > 0) { _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); _local1.currentAction++; } } } else { i = 1; while (i <= 2) { _local2 = (("enemy_" + game.room) + "_") + i; removeMovieClip(game[_local2].clip); delete game[_local2]; delete enemies[game.room][i]; i++; } _local1.currentAction++; } } } else { so.data.level4beaten = true; NewgroundsAPI.logCustomEvent("Level 4 Cleared"); scene = "end"; gotoAndStop ("scene"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function openChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest) { game[_local2].openChest = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (level4rooms == undefined) { var level4rooms = new Object(); i = 1; while (i <= 2) { level4rooms[("room" + i) + "visited"] = false; i++; } } visitedObject = level4rooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_d4", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var levelBeaten = so.data.level4beaten; if (levelBeaten) { i = 1; while (i <= 1) { visitedObject[("room" + i) + "visited"] = true; i++; } } var room1 = [[5, 1, 1, 1, 1, 12, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 16, 3, 3, 3, 3, 3, 7]]; var room2 = [[5, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 8], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [6, 3, 3, 3, 3, 14, 3, 3, 3, 3, 3, 7]]; var room3 = [[17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17], [17, 17, 17, 5, 1, 1, 1, 8, 17, 17, 17, 17], [17, 17, 17, 2, 10, 11, 9, 4, 17, 17, 17, 17], [17, 17, 17, 2, 9, 9, 10, 4, 17, 17, 17, 17], [17, 17, 17, 2, 10, 10, 11, 4, 17, 17, 17, 17], [17, 17, 17, 2, 9, 11, 10, 4, 17, 17, 17, 17], [17, 17, 17, 2, 11, 11, 9, 4, 17, 17, 17, 17], [17, 17, 17, 6, 3, 15, 3, 7, 17, 17, 17, 17]]; var game = {tilew:30, tileh:30, room:1, paused:false, enterKey:false, attackKey:false, song:"song1", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.clip.hit.play(); hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; _root.heroHealth = hero.health; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; var chests = new Array(); game.Chest = function (room) { this.room = room; this.name = keys[room][0][1]; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 19; game.Chest.prototype.openChest = false; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 1; game.tile2 = function () { }; game.tile2.prototype.frame = 2; game.tile3 = function () { }; game.tile3.prototype.frame = 3; game.tile4 = function () { }; game.tile4.prototype.frame = 4; game.tile5 = function () { }; game.tile5.prototype.frame = 24; game.tile6 = function () { }; game.tile6.prototype.frame = 25; game.tile7 = function () { }; game.tile7.prototype.frame = 26; game.tile8 = function () { }; game.tile8.prototype.frame = 27; game.tile9 = function () { }; game.tile9.prototype.frame = 5; game.tile9.prototype.walkable = true; game.tile10 = function () { }; game.tile10.prototype.frame = 29; game.tile10.prototype.walkable = true; game.tile11 = function () { }; game.tile11.prototype.frame = 30; game.tile11.prototype.walkable = true; game.tile12 = function () { }; game.tile12.prototype = new game.Door(2, 5, 10); game.tile13 = function () { }; game.tile13.prototype = new game.TrapDoor(3, 5, 10); game.tile14 = function () { }; game.tile14.prototype = new game.TrapDoor(1, 5, 1); game.tile14.prototype.frame = 17; game.tile15 = function () { }; game.tile15.prototype = new game.Door(2, 5, 1); game.tile15.prototype.frame = 13; game.tile16 = function () { }; game.tile16.prototype = new game.OutDoor("overworld", 3, 5, 7); game.tile16.prototype.frame = 13; game.tile17 = function () { }; game.tile17.prototype.frame = 28; var enemies = [[], [], [[6, 5, 2]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; game.enemy6 = function () { }; game.enemy6.prototype = new game.Enemy(); game.enemy6.prototype.speed = 5; game.enemy6.prototype.health = 16; game.enemy6.prototype.ydir = 1; game.enemy6.prototype.action = "idle"; game.enemy6.prototype.dir = "down"; game.enemy6.prototype.width = 15; game.enemy6.prototype.actionOrder = ["idle", "boomerang", "idle", "boomerang", "boomerang", "summon", "swfcheck"]; game.enemy6.prototype.currentAction = 0; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; i = 0; while (i < chests[game.room].length) { if (chests[game.room][i].openChest) { openChest = true; } i++; } if (levelBeaten) { openChest = true; } object = hero; checkCorners(object.x, object.y - object.speed, object); if ((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (!openChest)) && (object.dir == "up")) { object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; inventory[0].push([object.tileUpLeft.room, object.tileUpLeft.name, false, object.tileUpLeft.bluekey]); if (chests[game.room] == undefined) { chests[game.room] = new Array(); } chests[game.room].push(object.tileUpLeft); if (object.tileUpLeft.bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); if (game.paused) { stopClips(hero.clip); } }; buildRoom(_root["room" + game.room]);Frame 65function buildRoom(room) { visitedObject[("room" + game.room) + "visited"] = true; if (music.song != game.song) { attachMovie(game.song, "music", 10); } _root.createEmptyMovieClip("tiles", 0); tiles.createEmptyMovieClip("back", 0); game.tiles = _root.tiles; game.tiles.setMask(mask_mc); r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var name = ((("tile_" + r) + "_") + c); game[name] = new game["tile" + room[r][c]](); game[name].depth = (((r * game.tileh) * Stage.height) + (c * game.tilew)) + 1; if (((game[name].walkable || (game[name].lockdoor)) || (game[name].trapdoor)) || (game[name].chest)) { game.tiles.back.attachMovie("tile", name, game[name].depth); game.tiles.back[name]._x = c * game.tilew; game.tiles.back[name]._y = r * game.tileh; game[name].tile = game.tiles.back[name]; game.tiles.back[name].gotoAndStop(game[name].frame); } else { game.tiles.attachMovie("tile", name, game[name].depth); game.tiles[name]._x = c * game.tilew; game.tiles[name]._y = r * game.tileh; game[name].tile = game.tiles[name]; game.tiles[name].gotoAndStop(game[name].frame); } c++; } r++; } hero.x = (game.tilew * hero.xtile) + (game.tilew / 2); hero.y = (game.tileh * hero.ytile) + (game.tileh / 2); hero.initX = hero.xtile; hero.initY = hero.ytile; hero.depth = ((hero.y * 300) + hero.x) + 1; game.tiles.attachMovie(hero.swordType, "theGuy", hero.depth); hero.clip = game.tiles.theGuy; hero.clip._x = hero.x; hero.clip._y = hero.y; hero.clip.gotoAndStop(hero.action + hero.dir); game.tiles.createEmptyMovieClip("enemyCheck", 1E15); game.tiles.enemyCheck.onEnterFrame = function () { opentraps = true; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; if ((("." + game[name].clip) != ".") && (!trapdoors[game.room])) { opentraps = false; } i++; } if (opentraps || (levelBeaten)) { openTraps(); delete this.onEnterFrame; removeMovieClip(this); } }; i = 0; while (i < enemies[game.room].length) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game["enemy" + enemies[game.room][i][0]](); game[name].type = enemies[game.room][i][0]; game[name].xtile = enemies[game.room][i][1]; game[name].ytile = enemies[game.room][i][2]; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; if (game[name].type != 7) { game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(setInvinsible, 2, this.object, 200); } else { this.object.action = "die"; moveObject(0, 0, this.object); } } }; } else if (levelBeaten) { removeMovieClip(game[name].clip); delete game[name]; } else { showBossMessage("Strawberry Clock", "~Mysterious Clock General~"); attachMovie("song2", "music", 10); pause_mc.name_txt.text = "DISABLED"; delete pause_mc.onRelease; } i++; } if (levelBeaten) { openLocks(); openChests(); } i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; name = inventory[0][i][1]; unlocked = inventory[0][i][2]; bluekey = inventory[0][i][3]; if ((room == game.room) && (unlocked)) { game[name].walkable = true; game[name].door = true; frame = game.tiles.back[name].tile._totalframes; game.tiles.back[name].tile.gotoAndStop(frame); } if (!unlocked) { if (bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } i++; } i = 0; while (i < chests[game.room].length) { chests[game.room][i].tile.tile.gotoAndStop(chests[game.room][i].tile.tile._totalframes); chests[game.room][i].openChest = true; i++; } game.tiles.createEmptyMovieClip("hud", 100000); game.tiles.hud._x = 390; game.tiles.hud._y = 5; i = 0; while (i < hero.maxhealth) { game.tiles.hud.attachMovie("heart", "heart" + i, i); game.tiles.hud["heart" + i]._x = i * 20; if (i >= 5) { game.tiles.hud["heart" + i]._x = (i - 5) * 20; game.tiles.hud["heart" + i]._y = 20; } i++; } game.tiles.hud.onEnterFrame = function () { i = 0; while (i < hero.maxhealth) { if (hero.health > i) { this["heart" + i].gotoAndStop("full"); } else { this["heart" + i].gotoAndStop("empty"); } i++; } }; } function checkKeys() { if ((hero.action != "attack") && (hero.action != "die")) { hero.action = "idle"; left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); if (left && (!right)) { moveObject(-1, 0, hero); } if (right && (!left)) { moveObject(1, 0, hero); } if (up && (!down)) { moveObject(0, -1, hero); } if (down && (!up)) { moveObject(0, 1, hero); } } hero.clip.gotoAndStop(hero.action + hero.dir); } function moveObject(xdir, ydir, object) { if (!object.clip.spinning) { speed = object.speed; } else { speed = object.spinspeed; } if (object.action == "barge") { speed = object.bargespeed; } if (!game.paused) { if (object.action != "die") { left = Key.isDown(37); right = Key.isDown(39); up = Key.isDown(38); down = Key.isDown(40); checkCorners(object.x + (speed * xdir), object.y, object); if (xdir == -1) { if (object.upleft && (object.downleft)) { object.x = object.x + (speed * xdir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.y--; } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.y++; } else { object.x = (object.xtile * game.tilew) + object.width; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "left"; } if (((object.tileUpLeft == object.tileDownLeft) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (xdir == 1) { if (object.upright && (object.downright)) { object.x = object.x + (speed * xdir); } else if (object.upright || (object.tileUpRight.lockdoor)) { object.y--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.y++; } else { object.x = (((object.xtile + 1) * game.tilew) - object.width) - 1; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } if ((!up) && (!down)) { object.dir = "right"; } if (((object.tileUpRight == object.tileDownRight) && (object.tileUpRight.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } checkCorners(object.x, object.y + (speed * ydir), object); if (ydir == -1) { if (object.upleft && (object.upright)) { object.y = object.y + (speed * ydir); } else if (object.upleft || (object.tileUpLeft.lockdoor)) { object.x--; } else if (object.upright || (object.tileUpRight.lockdoor)) { object.x++; } else { object.y = (object.ytile * game.tileh) + object.height; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } object.dir = "up"; if (((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } if (ydir == 1) { if (object.downleft && (object.downright)) { object.y = object.y + (speed * ydir); } else if (object.downleft || (object.tileDownLeft.lockdoor)) { object.x--; } else if (object.downright || (object.tileDownRight.lockdoor)) { object.x++; } else { object.y = (((object.ytile + 1) * game.tileh) - object.height) - 1; } if ((object.action != "spin") && (object.action != "barge")) { object.action = "walk"; } object.dir = "down"; if (((object.tileDownLeft == object.tileDownRight) && (object.tileDownLeft.lockdoor)) && (object == hero)) { i = 0; while (i < inventory[0].length) { room = inventory[0][i][0]; tile = game[inventory[0][i][1]]; unlocked = inventory[0][i][2]; if (((tile == object.tileUpLeft) && (!unlocked)) && (room == game.room)) { unlockDoor(tile); inventory[0][i][2] = true; } i++; } } } object.xtile = Math.floor(object.x / game.tilew); object.ytile = Math.floor(object.y / game.tileh); object.clip._x = object.x; object.clip._y = object.y; } if ((object.action != "spin") && (object.action != "barge")) { object.clip.gotoAndStop(object.action + object.dir); } else if (object.action == "barge") { if (getDistance(object.clip, hero.clip).xdist > 0) { object.clip.gotoAndStop(object.action + "right"); } else { object.clip.gotoAndStop(object.action + "left"); } } else { object.clip.gotoAndStop(object.action); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].door)) { changeMap(); } if ((object == hero) && (game[(("tile_" + object.ytile) + "_") + object.xtile].outdoor)) { changeArea(); } object.depth = ((object.y * 300) + object.x) + 1; object.clip.swapDepths(object.depth); return(true); } } function checkCorners(x, y, object) { object.leftX = Math.floor((x - object.width) / game.tilew); object.rightX = Math.floor((x + object.width) / game.tilew); object.upY = Math.floor((y - object.height) / game.tileh); object.downY = Math.floor((y + object.height) / game.tileh); object.tileUpLeft = game[(("tile_" + object.upY) + "_") + object.leftX]; object.tileUpRight = game[(("tile_" + object.upY) + "_") + object.rightX]; object.tileDownLeft = game[(("tile_" + object.downY) + "_") + object.leftX]; object.tileDownRight = game[(("tile_" + object.downY) + "_") + object.rightX]; object.upleft = game[(("tile_" + object.upY) + "_") + object.leftX].walkable; object.upright = game[(("tile_" + object.upY) + "_") + object.rightX].walkable; object.downleft = game[(("tile_" + object.downY) + "_") + object.leftX].walkable; object.downright = game[(("tile_" + object.downY) + "_") + object.rightX].walkable; } function moveEnemy() { i = 0; while (i < enemies[game.room].length) { var _local2 = (("enemy_" + game.room) + "_") + i; var _local1 = game[_local2]; if (!_local1.clip.spinning) { speed = _local1.speed; } else { speed = _local1.spinspeed; } if (!game.paused) { playClips(_local1.clip); checkCorners(_local1.x + (speed * _local1.xdir), _local1.y + (speed * _local1.ydir), _local1); switch (_local1.type) { case 1 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { var _local6 = Math.floor((Math.random() * 4) + 1); switch (_local6) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 2 : if ((getDistance(_local1.clip, hero.clip).totaldist > 100) || (_local1.clip.hitTest(hero.clip.hitbox))) { var _local6 = Math.random() * 100; if ((((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) && (_local6 > _local1.turnchance)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local6 = Math.floor((Math.random() * 4) + 1); switch (_local6) { case 1 : _local1.xdir = -1; _local1.ydir = 0; break; case 2 : _local1.xdir = 1; _local1.ydir = 0; break; case 3 : _local1.xdir = 0; _local1.ydir = -1; break; case 4 : _local1.xdir = 0; _local1.ydir = 1; } } } else { distance = getDistance(_local1.clip, hero.clip); if (Math.abs(distance.xdist) > 10) { if (distance.xdist < 0) { _local1.xdir = 1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = -1; _local1.ydir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } else if (distance.ydist < 0) { _local1.ydir = 1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.ydir = -1; _local1.xdir = 0; moveObject(_local1.xdir, _local1.ydir, _local1); } } break; case 7 : if (_local1.health > 0) { _local1.invinsible = true; if (_local1.currentAction > _local1.actionOrder.length) { _local1.currentAction = 0; } switch (_local1.actionOrder[Math.floor(_local1.currentAction)]) { case "move" : _local1.clip.gotoAndStop("idle"); _local1.clip._rotation = 0; _local1.b = 0; _local1.hit = false; if (_local1.x < (hero.x - 5)) { moveObject(1, 0, _local1); } else if (_local1.x > (hero.x + 5)) { moveObject(-1, 0, _local1); } if (_local1.y < (hero.y - 5)) { moveObject(0, 1, _local1); } else if (_local1.y > (hero.y + 5)) { moveObject(0, -1, _local1); } _local1.currentAction = _local1.currentAction + 0.005; if (_local1.clip.hitbox.hitTest(hero.clip.hitbox) && (!hero.invinsible)) { hero.loseHealth(_local1.dir); } break; case "b" : var _local3 = hero.x - _local1.x; var _local4 = hero.y - _local1.y; var _local5 = Math.atan2(_local4, _local3); _local1.clip._rotation = Number(((_local5 * 360) / (Math.PI*2)) + 90); _local1.clip.gotoAndStop("b"); if (_local1.b >= 5) { _local1.b = 0; _local1.currentAction++; } break; case "summon" : _local1.clip.gotoAndStop("summon"); _local1.clip._rotation = 0; _local1.b = 0; break; case "jam" : _local1.clip.gotoAndStop("jam"); _local1.clip._rotation = 0; _local1.b = 0; if (!(_local1.clip.hitTest(hero.clip.hero.sword) && (!_local1.hit))) { break; } _local1.hit = true; _local1.health = _local1.health - hero.attack; if (_local1.health <= 0) { break; } _local1.initInvinsible = 0; _local1.invinsibleInterval = setInterval(setInvinsible, 5, _local1, 200); } } else { _local1.clip.gotoAndStop("die"); } break; default : if (((_local1.upleft && (_local1.upright)) && (_local1.downleft)) && (_local1.downright)) { moveObject(_local1.xdir, _local1.ydir, _local1); } else { _local1.xdir = _local1.xdir * -1; _local1.ydir = _local1.ydir * -1; } } } else { stopClips(_local1.clip); } i++; } } function checkAttack() { if ((game.attackKey && (hero.action != "attack")) && (!game.paused)) { hero.action = "attack"; } } function changeMap(sameRoom, notile) { if (sameRoom == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; } d = 0; removeMovieClip(game.tiles); if (sameRoom == undefined) { game.room = game[_local2].newroom; } buildRoom(_root["room" + game.room]); if (sameRoom == undefined) { } } function resetArea() { for (i in initHero) { hero[i] = initHero[i]; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; removeMovieClip(game.tiles); game.room = initGame.room; buildRoom(_root["room" + game.room]); } function changeArea(notile) { if (notile == undefined) { var _local2 = (("tile_" + hero.ytile) + "_") + hero.xtile; if (game[_local2].type == "x") { hero.xtile = game[_local2].newX; } else if (game[_local2].type == "y") { hero.ytile = game[_local2].newY; } else { hero.xtile = game[_local2].newX; hero.ytile = game[_local2].newY; } hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); _root.newroom = {room:game[_local2].newroom, xtile:hero.xtile, ytile:hero.ytile, health:hero.health}; gotoAndStop(game[_local2].newarea); } else { hero.xtile = notile.newX; hero.ytile = notile.newY; hero.x = (hero.xtile * game.tilew) + hero.width; hero.y = (((hero.ytile + 1) * game.tileh) - object.height) - 1; hero.clip._x = hero.x; hero.clip._y = hero.y; d = 0; removeMovieClip(game.tiles); if (notile.health == undefined) { health = hero.health; } else { health = notile.health; } _root.newroom = {room:notile.newroom, xtile:hero.xtile, ytile:hero.ytile, health:health}; gotoAndStop(notile.newarea); } } function fall(object) { object.xtile = object.initX; object.ytile = object.initY; object.x = (object.xtile * game.tilew) + (game.tilew / 2); object.y = (object.ytile * game.tileh) + (game.tileh / 2); object.clip._x = object.x; object.clip._y = object.y; } function showMessage(txt) { game.showingMessage = true; attachMovie("message", "msg", this.getNextHighestDepth()); msg.text_txt.text = ""; msg._y = Stage.height - msg._height; msg.txt = txt; msg.continue_mc._visible = false; msg.onEnterFrame = function () { enterTooLong = 0; if (game.enterKey) { msg.text_txt.text = msg.txt; msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } }; _root.letterNumber = 0; game.paused = true; var sound = new Sound(); showMessageInterval = setInterval(showLetter, 10, msg, sound); } function showLetter(msg, sound) { sound.attachSound("beep1"); sound.start(); txtArray = msg.txt.split(""); msg.text_txt.text = msg.text_txt.text + txtArray[_root.letterNumber]; if ((_root.letterNumber + 1) < txtArray.length) { _root.letterNumber++; } else { msg.onEnterFrame = function () { if (game.enterKey) { game.paused = false; game.showingMessage = false; removeMovieClip(msg); } }; game.enterKey = false; msg.continue_mc._visible = true; sound.attachSound("beep2"); sound.start(); clearInterval(showMessageInterval); } } function showBossMessage(name, desc) { game.paused = true; attachMovie("messageBoss", "bossMsg", this.getNextHighestDepth()); bossMsg._x = Stage.height / 2; bossMsg._y = Stage.height / 2; bossMsg.txt_mc.name_txt.text = name; bossMsg.txt_mc.desc_txt.text = desc; bossMsg.onEnterFrame = function () { if (this._currentframe == this._totalframes) { game.paused = false; removeMovieClip(this); } }; } function bounceBack(object, dir, max) { if (!game.paused) { if (object.oppositedir == "left") { moveObject(-1, 0, object); } else if (object.oppositedir == "right") { moveObject(1, 0, object); } else if (object.oppositedir == "up") { moveObject(0, -1, object); } else if (object.oppositedir == "down") { moveObject(0, 1, object); } object.initBounce++; if (object.initBounce == max) { clearInterval(object.bounceInterval); } } } function setInvinsible(object, max) { if (!game.paused) { object.invinsible = true; object.clip._alpha = 50; object.initInvinsible++; if (object.initInvinsible == max) { object.invinsible = false; object.clip._alpha = 100; clearInterval(object.invinsibleInterval); } } } function unlockDoor(tile) { tile.walkable = true; tile.door = true; tile.tile.tile.play(); removeMovieClip(game.tiles.key); } function openTraps() { room = _root["room" + game.room]; trapdoors[game.room] = true; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].trapdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.play(); } c++; } r++; } } function openLocks() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].lockdoor) { game[_local2].walkable = true; game[_local2].door = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function openChests() { room = _root["room" + game.room]; r = 0; while (r < room.length) { c = 0; while (c < room[0].length) { var _local2 = (("tile_" + r) + "_") + c; if (game[_local2].chest) { game[_local2].openChest = true; game.tiles.back[_local2].tile.gotoAndStop(game.tiles.back[_local2].tile._totalframes); } c++; } r++; } } function getDistance(object1, object2) { xdist = object1._x - object2._x; ydist = object1._y - object2._y; totaldist = Math.sqrt((xdist * xdist) + (ydist * ydist)); return({xdist:xdist, ydist:ydist, totaldist:totaldist}); } function stopClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function stopAllClips(object) { object.stop(); object.stoppedByFunction = true; for (name in object) { if (typeof(object[name]) == "movieclip") { stopAllClips(object[name]); } } } function playClips(object) { for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } function playAllClips(object) { if (object.stoppedByFunction) { object.play(); } for (name in object) { if (typeof(object[name]) == "movieclip") { playAllClips(object[name]); } } } stop(); if (level5rooms == undefined) { var level5rooms = new Object(); i = 1; while (i <= 22) { level5rooms[("room" + i) + "visited"] = false; i++; } } visitedObject = level5rooms; pause_mc.name_txt.text = "Pause/Map"; pause_mc.onRelease = function () { if (!game.paused) { game.paused = true; game.tiles.attachMovie("map_d5", "map", game.tiles.getNextHighestDepth()); game.tiles.map._x = Stage.height / 2; game.tiles.map._y = Stage.height / 2; for (mc in game.tiles.map) { if ((typeof(game.tiles.map[mc]) == "movieclip") && (game.tiles.map[mc] != game.tiles.map["room" + game.room])) { if (visitedObject[mc + "visited"]) { game.tiles.map[mc].stop(); } else { game.tiles.map[mc].gotoAndStop(61); } } } } else { game.paused = false; game.tiles.map["room" + game.room].gotoAndStop(1); removeMovieClip(game.tiles.map); } }; music_mc.name_txt.text = "Music On/Off"; music_mc.onRelease = function () { if (music.music.getVolume() == 100) { music.music.setVolume(0); } else { music.music.setVolume(100); } }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(game.tiles); delete _root.newroom; gotoAndPlay ("menu"); }; var levelBeaten = so.data.level5beaten; if (levelBeaten) { i = 1; while (i <= 22) { visitedObject[("room" + i) + "visited"] = true; i++; } } var room1 = [[5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8], [2, 10, 9, 11, 10, 9, 10, 9, 11, 9, 10, 4], [2, 11, 11, 10, 11, 9, 11, 10, 11, 10, 10, 4], [2, 9, 10, 10, 11, 10, 10, 9, 9, 11, 11, 4], [2, 9, 10, 10, 10, 11, 9, 11, 11, 9, 11, 4], [2, 11, 11, 10, 10, 9, 10, 11, 9, 11, 11, 4], [2, 10, 10, 9, 10, 11, 9, 9, 9, 10, 10, 4], [2, 9, 11, 9, 9, 10, 10, 10, 9, 10, 9, 4], [2, 11, 9, 9, 10, 10, 11, 9, 10, 9, 11, 4], [2, 9, 10, 11, 10, 11, 9, 11, 10, 11, 9, 4], [2, 11, 9, 10, 11, 11, 9, 9, 11, 10, 9, 4], [6, 3, 3, 3, 3, 12, 3, 3, 3, 3, 3, 7]]; var game = {tilew:30, tileh:30, room:1, paused:false, enterKey:false, attackKey:false, song:"song1", showingMessage:false}; var hero = {speed:3, xtile:5, ytile:10, dir:"up", action:"idle", health:5, width:12.5, height:12.5, invinsible:false, attacking:false}; hero.maxhealth = 5; if (so.data.badge > 0) { hero.maxhealth = hero.maxhealth + Math.floor(so.data.badge / 3); } so.data.hero.maxhealth = hero.maxhealth; if (so.data.blamSword) { hero.swordType = "hero2"; hero.attack = 2; } else { hero.swordType = "hero"; hero.attack = 1; } initGame = new Object(); initHero = new Object(); for (i in game) { initGame[i] = game[i]; } for (i in hero) { initHero[i] = hero[i]; } if (_root.newroom != undefined) { game.room = _root.newroom.room; hero.xtile = _root.newroom.xtile; hero.ytile = _root.newroom.ytile; hero.health = _root.newroom.health; } hero.loseHealth = function (oppositedir) { hero.health--; if (hero.health > 0) { hero.clip.hit.play(); hero.initBounce = 0; hero.oppositedir = oppositedir; clearInterval(hero.bounceInterval); hero.bounceInterval = setInterval(bounceBack, 1, hero, hero.oppositedir, 50); hero.initInvinsible = 0; clearInterval(hero.invinsibleInterval); hero.invinsibleInterval = setInterval(setInvinsible, 5, hero, 200); } else { hero.action = "die"; moveObject(0, 0, hero); } }; game.Door = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.Door.prototype.frame = 11; game.Door.prototype.walkable = true; game.Door.prototype.type = "y"; game.Door.prototype.door = true; game.Hole = function () { }; game.Hole.prototype.frame = 4; game.Hole.prototype.walkable = true; game.Hole.prototype.hole = true; var keys = new Array(); var inventory = new Array(); inventory[0] = new Array(); game.LockDoor = function (newroom, newX, newY, room, name) { this.newroom = newroom; this.newX = newX; this.newY = newY; if (keys[room] == undefined) { keys[room] = new Array(); } keys[room].push([this, name]); }; game.LockDoor.prototype.frame = 7; game.LockDoor.prototype.walkable = false; game.LockDoor.prototype.type = "y"; game.LockDoor.prototype.door = false; game.LockDoor.prototype.lockdoor = true; var trapdoors = new Array(); game.TrapDoor = function (newroom, newX, newY) { this.newroom = newroom; this.newX = newX; this.newY = newY; }; game.TrapDoor.prototype.frame = 15; game.TrapDoor.prototype.walkable = false; game.TrapDoor.prototype.type = "y"; game.TrapDoor.prototype.door = false; game.TrapDoor.prototype.trapdoor = true; game.OutDoor = function (newarea, newroom, newX, newY) { this.newarea = newarea; this.newroom = newroom; this.newX = newX; this.newY = newY; _root.heroHealth = hero.health; }; game.OutDoor.prototype.frame = 11; game.OutDoor.prototype.type = "y"; game.OutDoor.prototype.walkable = true; game.OutDoor.prototype.outdoor = true; var chests = new Array(); game.Chest = function (room) { this.room = room; this.name = keys[room][0][1]; }; game.Chest.prototype.chest = true; game.Chest.prototype.walkable = false; game.Chest.prototype.frame = 19; game.Chest.prototype.openChest = false; game.tile0 = function () { }; game.tile0.prototype = new game.Hole(); game.tile1 = function () { }; game.tile1.prototype.frame = 1; game.tile2 = function () { }; game.tile2.prototype.frame = 2; game.tile3 = function () { }; game.tile3.prototype.frame = 3; game.tile4 = function () { }; game.tile4.prototype.frame = 4; game.tile5 = function () { }; game.tile5.prototype.frame = 24; game.tile6 = function () { }; game.tile6.prototype.frame = 25; game.tile7 = function () { }; game.tile7.prototype.frame = 26; game.tile8 = function () { }; game.tile8.prototype.frame = 27; game.tile9 = function () { }; game.tile9.prototype.frame = 5; game.tile9.prototype.walkable = true; game.tile10 = function () { }; game.tile10.prototype.frame = 29; game.tile10.prototype.walkable = true; game.tile11 = function () { }; game.tile11.prototype.frame = 30; game.tile11.prototype.walkable = true; game.tile12 = function () { }; game.tile12.prototype = new game.TrapDoor(1, 5, 5); game.tile12.prototype.frame = 17; var enemies = [[], [[7, 5, 5]]]; game.Enemy = function () { }; game.Enemy.prototype.action = "walk"; game.Enemy.prototype.dir = "down"; game.Enemy.prototype.xdir = 1; game.Enemy.prototype.ydir = 0; game.Enemy.prototype.speed = 2; game.Enemy.prototype.turnchance = 3; game.Enemy.prototype.health = 2; game.Enemy.prototype.width = 12.5; game.Enemy.prototype.height = 12.5; game.enemy1 = function () { }; game.enemy1.prototype = new game.Enemy(); game.enemy1.prototype.health = 3; game.enemy2 = function () { }; game.enemy2.prototype = new game.Enemy(); game.enemy2.prototype.xdir = 0; game.enemy2.prototype.ydir = 1; game.enemy7 = function () { }; game.enemy7.prototype = new game.Enemy(); game.enemy7.prototype.speed = 1; game.enemy7.prototype.health = 10; game.enemy7.prototype.width = 20; game.enemy7.prototype.actionOrder = ["move", "b", "b", "summon", "move", "b", "jam", "move"]; game.enemy7.prototype.currentAction = 0; var d = 1; var enterTooLong = 0; var attackTooLong = 0; Key.removeListener(key); delete key; var key = new Object(); key.onKeyDown = function () { if (hero.action != "die") { if (Key.isDown(83)) { attackTooLong++; if (attackTooLong <= 1) { game.attackKey = true; } else { game.attackKey = false; } } if (Key.isDown(65)) { enterTooLong++; if (enterTooLong <= 1) { game.enterKey = true; openChest = false; i = 0; while (i < chests[game.room].length) { if (chests[game.room][i].openChest) { openChest = true; } i++; } if (levelBeaten) { openChest = true; } object = hero; checkCorners(object.x, object.y - object.speed, object); if ((((object.tileUpLeft == object.tileUpRight) && (object.tileUpLeft.chest)) && (!openChest)) && (object.dir == "up")) { object.tileUpLeft.tile.tile.play(); object.tileUpLeft.openChest = true; inventory[0].push([object.tileUpLeft.room, object.tileUpLeft.name, false, object.tileUpLeft.bluekey]); if (chests[game.room] == undefined) { chests[game.room] = new Array(); } chests[game.room].push(object.tileUpLeft); if (object.tileUpLeft.bluekey) { game.tiles.attachMovie("bluekey", "key", game.tiles.getNextHighestDepth()); } else { game.tiles.attachMovie("key", "key", game.tiles.getNextHighestDepth()); } game.tiles.key._y = Stage.height - (game.tiles.key._height / 2); game.tiles.key._x = 10; } } else { game.enterKey = false; } } } }; key.onKeyUp = function () { if (Key.getCode() == 83) { game.attackKey = false; attackTooLong = 0; } if (Key.getCode() == 65) { game.enterKey = false; enterTooLong = 0; } }; Key.addListener(key); this.onEnterFrame = function () { checkKeys(); moveEnemy(); checkAttack(); if (game.paused) { stopClips(hero.clip); } }; buildRoom(_root["room" + game.room]);Frame 72stop(); removeMovieClip(game.tiles); attachMovie(scene, "sceneMC", 11); sceneMC._x = (sceneMC._y = 180); song = "song3"; if (music.song != song) { attachMovie(song, "music", 10); }Symbol 29 MovieClip Frame 60gotoAndPlay (2);Symbol 41 Buttonon (press) { if (NewgroundsAPI.isInstalled()) { NewgroundsAPI.loadNewgrounds(); } else { getURL ("http://www.newgrounds.com", "_blank"); } }Symbol 47 MovieClip Frame 10gotoAndPlay (1);Symbol 63 Buttonon (press) { if (NewgroundsAPI.isInstalled()) { NewgroundsAPI.loadNewgrounds("collection/picoday2008"); } else { getURL ("http://www.newgrounds.com/collection/picoday2008", "_blank"); } }Symbol 65 MovieClip Frame 1stop();Symbol 76 Buttonon (press) { nextFrame(); }Symbol 97 MovieClip Frame 12stop();Symbol 122 Buttonon (press) { if (NewgroundsAPI.isInstalled()) { NewgroundsAPI.loadNewgrounds("collection/pico"); } else { getURL ("http://www.newgrounds.com", "_blank"); } }Symbol 137 MovieClip Frame 15stop();Symbol 178 Buttonon (press) { getURL ("http://www.newgrounds.com/collection/pico", "_blank"); }Symbol 181 MovieClip Frame 1_quality = "MEDIUM";Symbol 181 MovieClip Frame 225_quality = "HIGH"; _root.play();Symbol 182 MovieClip Frame 1function startAd(ngad_url) { System.security.allowDomain("70.87.128.99"); System.security.allowInsecureDomain("70.87.128.99"); System.security.allowDomain("ads.shizmoo.com"); System.security.allowInsecureDomain("ads.shizmoo.com"); System.security.allowDomain("www.cpmstar.com"); System.security.allowInsecureDomain("www.cpmstar.com"); System.security.allowDomain("server.cpmstar.com"); System.security.allowInsecureDomain("server.cpmstar.com"); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!"); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), "GET"); } }; var _local1 = 731; var _local2 = 3; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.isInstalled()) { if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function () { startAd(NewgroundsAPI.getAdURL()); }; } else { filepath = _url.split("\\"); if (filepath.length < 2) { filepath = _url.split("/"); filepath.shift(); filepath.shift(); filepath.shift(); filepath[0] = filepath[0].split("|").join(":"); } filepath.pop(); msg = "Hey there!\r"; msg = msg + "I couldn't help but notice you are using our snazzy \r"; msg = msg + "Pico Day preloader.\r\r"; msg = msg + "Well, it seems like there was a problem with your API\r"; msg = msg + "installation because we can't seem to find the \r"; msg = msg + (("NewgroundsAPI.as file in " + filepath.join("\\")) + newline); msg = msg + "Make sure when you download the API from Newgrounds\r"; msg = msg + "you unzip everything into this folder."; trace(msg); } stop();Instance of Symbol 54 MovieClip in Symbol 182 MovieClip Frame 1onClipEvent (enterFrame) { loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); gotoAndStop(loaded); if (loaded == 100) { _parent.play(); } }Symbol 182 MovieClip Frame 9stop();Symbol 182 MovieClip Frame 10stop();Symbol 1008 MovieClip [__Packages.NewgroundsAPI] Frame 0class NewgroundsAPI { static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format; function NewgroundsAPI () { } static function connectMovie(id) { if (!id) { SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)"); } else if (!tracker_id) { SendMessage("Connecting to API gateway..."); tracker_id = id; host = _url.split("/")[2].toLowerCase(); if (host.length < 1) { host = "localhost"; } var _local2 = new Object(); SendEvent(MOVIE_VIEWS); } } static function setMovieVersion(movie_version) { if (!movie_version) { SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)"); } else { version = movie_version; } } static function debugMode() { debug = true; } static function addCustomEvent(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else if (!stat_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { custom_events[stat_name] = CUSTOM_STATS + stat_id; SendMessage("Created custom event: " + stat_name); } } static function addCustomLink(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else if (!stat_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { custom_links[stat_name] = CUSTOM_STATS + stat_id; SendMessage((("Created custom link " + stat_id) + ": ") + stat_name); } } static function loadMySite() { SendLink(AUTHOR_SITE); } static function loadNewgrounds(special) { if (special) { var _local1 = {page:special}; } SendLink(NEWGROUNDS, _local1); } static function logCustomEvent(event_name) { if (!event_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)"); } else if (!custom_events[event_name]) { SendError("Attempted to log undefined custom event: " + event_name); } else { SendEvent(custom_events[event_name]); } } static function loadCustomLink(link_name) { if (!link_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)"); } else if (!custom_links[link_name]) { SendError("Attempted to open undefined custom link: " + link_name); } else { SendLink(custom_links[link_name]); } } static function getAdURL() { return(movie_options.ad_url); } static function getMovieURL() { if (movie_options.movie_url) { return(movie_options.movie_url); } return("Newgrounds.com"); } static function getNewVersionURL() { return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION); } static function SendEvent(id) { SendStat(id, false); } static function SendLink(id, extra) { SendStat(id, true, extra); } static function ReadGatewayData(params) { for (var _local2 in params) { params[_local2] = unescape(params[_local2]); movie_options[_local2] = params[_local2]; } if (params.settings_loaded) { SendMessage("You have successfully connected to the Newgrounds API gateway!"); SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'"); if (movie_options.message) { SendMessage(movie_options.message); } if (movie_options.ad_url) { SendMessage("Your movie has been approved to run Flash Ads"); onAdsApproved(movie_options.ad_url); } if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) { SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!"); onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL()); } if (movie_options.deny_host) { SendMessage("You have blocked 'localHost' in your API settings."); SendMessage("If you wish to test your movie you will need to remove this block."); onDenyHost(host, getMovieURL(), getNewVersionURL()); } if (movie_options.request_portal_url == 1) { var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url); var _local3 = new XML(); _local3.ignoreWhite = true; _local3.load(_local4); } } else if (!movie_options.settings_loaded) { SendError("Could not establish connection to the API gateway."); } } static function SendStat(stat_id, open_in_browser, extra) { if (!tracker_id) { SendError("API calls cannot be made without a valid movie id."); SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?"); } else { var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id; for (var _local9 in extra) { _local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9])); } trace(_local7); if (debug) { _local7 = _local7 + "&debug=1"; } if (open_in_browser) { getURL (_local7, "_blank"); } else { var _local10 = new XML(); _local10.ignoreWhite = true; _local10.onLoad = function (success) { var _local6 = new Object(); var _local3 = 0; while (_local3 < this.firstChild.childNodes.length) { var _local4 = this.firstChild.childNodes[_local3]; var _local5 = _local4.nodeName; var _local2 = _local4.attributes.value; if (_local2 == Number(_local2)) { _local2 = Number(_local2); } _local6[_local5] = _local2; _local3++; } NewgroundsAPI.ReadGatewayData(_local6); }; _local10.load(_local7); } } } static function SendError(msg) { trace("[NEWGROUNDS API ERROR] :: " + msg); } static function SendMessage(msg) { trace("[NEWGROUNDS API] :: " + msg); } static function InitTextFormats() { if (!error_format) { error_format = new TextFormat(); error_format.font = "Arial Black"; error_format.size = 48; error_format.color = 16711680 /* 0xFF0000 */; } if (!header_format) { header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.size = 24; header_format.color = 16777215 /* 0xFFFFFF */; } if (!normal_format) { normal_format = new TextFormat(); normal_format.font = "Arial"; normal_format.bold = true; normal_format.size = 12; normal_format.color = 16777215 /* 0xFFFFFF */; } if (!link_format) { link_format = new TextFormat(); link_format.color = 16776960 /* 0xFFFF00 */; link_format.underline = true; } } static function onNewVersionAvailable(version, movie_url, redirect_url) { InitTextFormats(); var _local2 = new Object(); _local2.x = Stage.width / 2; _local2.y = Stage.height / 2; _root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var _local3 = (("Version " + version) + " is now available at:") + newline; var _local5 = _local3.length; _local3 = _local3 + movie_url; var _local4 = _local3.length; _root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = "New Version Available!"; _root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format); _root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = _local3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format); } static function onDenyHost(hostname, movie_url, redirect_url) { InitTextFormats(); _root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var _local2 = ("This movie has not been approved for use on " + hostname) + "."; _local2 = _local2 + "\r\rFor an aproved copy, please visit:\r"; var _local4 = _local2.length; _local2 = _local2 + movie_url; var _local3 = _local2.length; _root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = "ERROR!"; _root.NGAPI_deny_host_overlay.error.setTextFormat(error_format); _root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = _local2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format); } static function isInstalled() { return(true); } static function onAdsApproved(ad_url) { } static var movie_options = new Object(); static var custom_events = new Object(); static var custom_links = new Object(); static var MOVIE_VIEWS = 1; static var AUTHOR_SITE = 2; static var NEWGROUNDS = 3; static var NEW_VERSION = 4; static var CUSTOM_STATS = 50; static var GATEWAY_URL = "http://www.ngads.com/gateway.php"; }Symbol 186 MovieClip [trophy3] Frame 50stop(); _root.showMessage("Congratulations! You have received the Review Crew trophy! Go get the Blam Sword!"); _root.levelBeaten = true; _root.so.data.level3beaten = true; _root.NewgroundsAPI.logCustomEvent("Level 3 Cleared"); this.onEnterFrame = function () { if (!_root.game.showingMessage) { _root.scene = "blamsword"; _root.gotoAndStop("scene"); } };Symbol 190 MovieClip [trophy4] Frame 50stop(); _root.showMessage("Congratulations(?) You received the Turd of the Week trophy! You completed whole game!"); _root.levelBeaten = true; _root.so.data.level5beaten = true; _root.NewgroundsAPI.logCustomEvent("Level 5 Cleared"); _root.NewgroundsAPI.logCustomEvent("Game Cleared"); this.onEnterFrame = function () { if (!_root.game.showingMessage) { _root.changeArea({newarea:"overworld", newroom:5, newX:5, newY:7}); } };Symbol 241 MovieClip Frame 10stop(); this.onEnterFrame = function () { this._alpha = this._alpha - 5; if (this._alpha <= 0) { if (Math.floor(Math.random() * 5) == 0) { depth = _root.game.tiles.getNextHighestDepth(); _root.game.tiles.attachMovie("heart", "heart" + depth, depth); _root.game.tiles["heart" + depth]._x = _parent._x; _root.game.tiles["heart" + depth]._y = _parent._y; _root.game.tiles["heart" + depth].gotoAndStop("full"); _root.game.tiles["heart" + depth].onEnterFrame = function () { if (this.hitTest(_root.hero.clip.hitbox)) { if (_root.hero.health < _root.hero.maxhealth) { _root.hero.health++; } removeMovieClip(this); } }; } removeMovieClip(_parent); } };Symbol 248 MovieClip Frame 8stop(); this.onEnterFrame = function () { this._alpha = this._alpha - 5; if (this._alpha <= 0) { if (Math.floor(Math.random() * 5) == 0) { depth = _root.game.tiles.getNextHighestDepth(); _root.game.tiles.attachMovie("heart", "heart" + depth, depth); _root.game.tiles["heart" + depth]._x = _parent._x; _root.game.tiles["heart" + depth]._y = _parent._y; _root.game.tiles["heart" + depth].gotoAndStop("full"); _root.game.tiles["heart" + depth].onEnterFrame = function () { if (this.hitTest(_root.hero.clip.hitbox)) { if (_root.hero.health < _root.hero.maxhealth) { _root.hero.health++; } removeMovieClip(this); } }; } removeMovieClip(_parent); } };Symbol 259 MovieClip Frame 9stop(); this.onEnterFrame = function () { this._alpha = this._alpha - 5; if (this._alpha <= 0) { if (Math.floor(Math.random() * 5) == 0) { depth = _root.game.tiles.getNextHighestDepth(); _root.game.tiles.attachMovie("heart", "heart" + depth, depth); _root.game.tiles["heart" + depth]._x = _parent._x; _root.game.tiles["heart" + depth]._y = _parent._y; _root.game.tiles["heart" + depth].gotoAndStop("full"); _root.game.tiles["heart" + depth].onEnterFrame = function () { if (this.hitTest(_root.hero.clip.hitbox)) { if (_root.hero.health < _root.hero.maxhealth) { _root.hero.health++; } removeMovieClip(this); } }; } removeMovieClip(_parent); } };Symbol 319 MovieClip Frame 22_parent.wavesHit = false; _root.game.tiles.attachMovie("enemy3_wave", "wave" + _parent.waves, 96300 + _parent.waves); _root.game.tiles["wave" + _parent.waves]._x = _parent._x - 15; _root.game.tiles["wave" + _parent.waves]._y = _parent._y - 55; _root.game.tiles["wave" + _parent.waves]._xscale = (_root.game.tiles["wave" + _parent.waves]._yscale = 50); _root.game.tiles["wave" + _parent.waves].onEnterFrame = function () { if ((this.hitTest(_root.hero.clip) && (!_root.hero.invinsible)) && (!_parent.wavesHit)) { xdif = _root.hero.clip._x - this._x; ydif = _root.hero.clip._y - this._y; if ((xdif > 0) && (ydif > 0)) { if (xdif > ydif) { oppositedir = "right"; } else { oppositedir = "down"; } } else if (xdif > 0) { if (xdif > Math.abs(ydif)) { oppositedir = "right"; } else { oppositedir = "up"; } } else if (ydif > 0) { if (Math.abs(xdif) > ydif) { oppositedir = "left"; } else { oppositedir = "down"; } } else if (Math.abs(xdif) > Math.abs(ydif)) { oppositedir = "left"; } else { oppositedir = "up"; } _root.hero.loseHealth(oppositedir); _parent.wavesHit = true; } if (!_root.game.paused) { this._xscale = this._xscale + 10; this._yscale = this._yscale + 10; this._alpha = this._alpha - 2; } if (this._alpha < 0) { removeMovieClip(this); } }; _parent.waves++; _root.game.tiles.attachMovie("enemy3_wave", "wave" + _parent.waves, 96300 + _parent.waves); _root.game.tiles["wave" + _parent.waves]._x = _parent._x + 15; _root.game.tiles["wave" + _parent.waves]._y = _parent._y - 55; _root.game.tiles["wave" + _parent.waves]._xscale = (_root.game.tiles["wave" + _parent.waves]._yscale = 50); _root.game.tiles["wave" + _parent.waves].onEnterFrame = function () { if ((this.hitTest(_root.hero.clip) && (!_root.hero.invinsible)) && (!_parent.wavesHit)) { xdif = _root.hero.clip._x - this._x; ydif = _root.hero.clip._y - this._y; if ((xdif > 0) && (ydif > 0)) { if (xdif > ydif) { oppositedir = "right"; } else { oppositedir = "down"; } } else if (xdif > 0) { if (xdif > Math.abs(ydif)) { oppositedir = "right"; } else { oppositedir = "up"; } } else if (ydif > 0) { if (Math.abs(xdif) > ydif) { oppositedir = "left"; } else { oppositedir = "down"; } } else if (Math.abs(xdif) > Math.abs(ydif)) { oppositedir = "left"; } else { oppositedir = "up"; } _root.hero.loseHealth(oppositedir); _parent.wavesHit = true; } if (!_root.game.paused) { this._xscale = this._xscale + 10; this._yscale = this._yscale + 10; this._alpha = this._alpha - 2; } if (this._alpha < 0) { removeMovieClip(this); } }; _parent.waves++;Symbol 319 MovieClip Frame 45stop();Symbol 328 MovieClip Frame 27name = "cd" + _parent.cds; _root.game.tiles.attachMovie("enemy3_cd", name, 96400 + _parent.cds); _root.game.tiles[name]._x = _parent._x; _root.game.tiles[name]._y = _parent._y - 55; _root.game.tiles[name]._xscale = (_root.game.tiles[name]._yscale = 30); _root.game.tiles[name].onEnterFrame = function () { if (this.hitTest(_root.hero.clip) && (!_root.hero.invinsible)) { xdif = _root.hero.clip._x - this._x; ydif = _root.hero.clip._y - this._y; if ((xdif > 0) && (ydif > 0)) { if (xdif > ydif) { oppositedir = "right"; } else { oppositedir = "down"; } } else if (xdif > 0) { if (xdif > Math.abs(ydif)) { oppositedir = "right"; } else { oppositedir = "up"; } } else if (ydif > 0) { if (Math.abs(xdif) > ydif) { oppositedir = "left"; } else { oppositedir = "down"; } } else if (Math.abs(xdif) > Math.abs(ydif)) { oppositedir = "left"; } else { oppositedir = "up"; } _root.hero.loseHealth(oppositedir); } if (!_root.game.paused) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; this._x = this._x - 2; this._y = this._y + 4; } if (this._y > (Stage.height + 50)) { removeMovieClip(this); } }; _parent.cds++;Symbol 328 MovieClip Frame 33name = "cd" + _parent.cds; _root.game.tiles.attachMovie("enemy3_cd", name, 96400 + _parent.cds); _root.game.tiles[name]._x = _parent._x; _root.game.tiles[name]._y = _parent._y - 55; _root.game.tiles[name]._xscale = (_root.game.tiles[name]._yscale = 30); _root.game.tiles[name].onEnterFrame = function () { if (this.hitTest(_root.hero.clip) && (!_root.hero.invinsible)) { xdif = _root.hero.clip._x - this._x; ydif = _root.hero.clip._y - this._y; if ((xdif > 0) && (ydif > 0)) { if (xdif > ydif) { oppositedir = "right"; } else { oppositedir = "down"; } } else if (xdif > 0) { if (xdif > Math.abs(ydif)) { oppositedir = "right"; } else { oppositedir = "up"; } } else if (ydif > 0) { if (Math.abs(xdif) > ydif) { oppositedir = "left"; } else { oppositedir = "down"; } } else if (Math.abs(xdif) > Math.abs(ydif)) { oppositedir = "left"; } else { oppositedir = "up"; } _root.hero.loseHealth(oppositedir); } if (!_root.game.paused) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; this._y = this._y + 4; } if (this._y > (Stage.height + 50)) { removeMovieClip(this); } }; _parent.cds++;Symbol 328 MovieClip Frame 39name = "cd" + _parent.cds; _root.game.tiles.attachMovie("enemy3_cd", name, 96400 + _parent.cds); _root.game.tiles[name]._x = _parent._x; _root.game.tiles[name]._y = _parent._y - 55; _root.game.tiles[name]._xscale = (_root.game.tiles[name]._yscale = 30); _root.game.tiles[name].onEnterFrame = function () { if (this.hitTest(_root.hero.clip) && (!_root.hero.invinsible)) { xdif = _root.hero.clip._x - this._x; ydif = _root.hero.clip._y - this._y; if ((xdif > 0) && (ydif > 0)) { if (xdif > ydif) { oppositedir = "right"; } else { oppositedir = "down"; } } else if (xdif > 0) { if (xdif > Math.abs(ydif)) { oppositedir = "right"; } else { oppositedir = "up"; } } else if (ydif > 0) { if (Math.abs(xdif) > ydif) { oppositedir = "left"; } else { oppositedir = "down"; } } else if (Math.abs(xdif) > Math.abs(ydif)) { oppositedir = "left"; } else { oppositedir = "up"; } _root.hero.loseHealth(oppositedir); } if (!_root.game.paused) { this._xscale = this._xscale + 0.5; this._yscale = this._yscale + 0.5; this._x = this._x + 2; this._y = this._y + 4; } if (this._y > (Stage.height + 50)) { removeMovieClip(this); } }; _parent.cds++;Symbol 336 MovieClip Frame 1_root.game.tiles.attachMovie("trophy1", "trophy", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.trophy._x = Stage.height / 2; _root.game.tiles.trophy._y = Stage.height / 2; removeMovieClip(_root.music);Symbol 336 MovieClip Frame 25stop(); removeMovieClip(this._parent);Symbol 337 MovieClip [enemy3] Frame 1stop(); waves = 0; cds = 0;Symbol 370 MovieClip Frame 21_parent.spinning = true;Symbol 370 MovieClip Frame 26gotoAndPlay (21);Symbol 377 MovieClip Frame 1_parent.spinning = false;Symbol 384 MovieClip Frame 11_root.game.tiles.attachMovie("trophy2", "trophy", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.trophy._x = Stage.height / 2; _root.game.tiles.trophy._y = Stage.height / 2; removeMovieClip(_root.music);Symbol 384 MovieClip Frame 36stop(); removeMovieClip(this._parent);Symbol 385 MovieClip [enemy4] Frame 1stop(); this.spinning = false;Symbol 432 MovieClip Frame 19gotoAndPlay (10);Symbol 438 MovieClip Frame 5_parent.attacking = true;Symbol 438 MovieClip Frame 10_parent.attacking = false; _parent.object.action = "idle";Symbol 449 MovieClip Frame 5_parent.attacking = true;Symbol 449 MovieClip Frame 14_parent.attacking = false; _parent.object.action = "idle";Symbol 462 MovieClip Frame 5_parent.attacking = true;Symbol 462 MovieClip Frame 14_parent.attacking = true; _parent.object.action = "idle";Symbol 470 MovieClip Frame 11_root.game.tiles.attachMovie("trophy3", "trophy", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.trophy._x = Stage.height / 2; _root.game.tiles.trophy._y = Stage.height / 2; removeMovieClip(_root.music);Symbol 470 MovieClip Frame 36stop(); removeMovieClip(this._parent);Symbol 471 MovieClip [enemy5] Frame 1stop();Symbol 515 MovieClip Frame 10_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 519 MovieClip Frame 14_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 523 MovieClip Frame 12_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 527 MovieClip Frame 10_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 538 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", 9999999999); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 543 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 550 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 580 MovieClip Frame 1stop();Symbol 580 MovieClip Frame 10stop(); this._parent.tile.door = true;Symbol 591 MovieClip Frame 1stop();Symbol 591 MovieClip Frame 6stop();Symbol 595 MovieClip Frame 1stop();Symbol 595 MovieClip Frame 40stop();Symbol 617 MovieClip Frame 1stop();Symbol 617 MovieClip Frame 10stop(); this._parent.tile.door = true;Symbol 620 MovieClip Frame 1stop();Symbol 620 MovieClip Frame 40stop();Symbol 661 MovieClip Frame 1if (_root.so.data.badge == undefined) { _root.so.data.badge = 0; } badge = _root.so.data.badge; name = "badge" + badge; attachMovie(name, "badge", 1);Symbol 662 MovieClip Frame 1stop();Symbol 662 MovieClip Frame 40stop();Symbol 662 MovieClip Frame 41stop();Symbol 682 MovieClip [trophy1] Frame 50stop(); _root.showMessage("Congratulations! You have received the Daily 1st trophy! Only 2 more trophies to go!"); _root.levelBeaten = true; _root.so.data.level1beaten = true; _root.NewgroundsAPI.logCustomEvent("Level 1 Cleared"); this.onEnterFrame = function () { if (!_root.game.showingMessage) { _root.changeArea({newarea:"overworld", newroom:2, newX:5, newY:7}); } };Symbol 686 MovieClip [trophy2] Frame 50stop(); _root.showMessage("Congratulations! You have received the Weekly 1st trophy! You only need the Review Crew Pick now!"); _root.levelBeaten = true; _root.so.data.level2beaten = true; _root.NewgroundsAPI.logCustomEvent("Level 2 Cleared"); this.onEnterFrame = function () { if (!_root.game.showingMessage) { _root.changeArea({newarea:"overworld", newroom:1, newX:5, newY:7}); } };Symbol 716 MovieClip [gameover] Frame 1removeMovieClip(_root.music); _root.game.tiles.setMask(null); bg_mc.onRollOver = function () { };Symbol 716 MovieClip [gameover] Frame 69stop(); continue_mc.name_txt.text = "Continue"; continue_mc.onRelease = function () { _root.resetArea(); removeMovieClip(this._parent); }; quit_mc.name_txt.text = "Quit"; quit_mc.onRelease = function () { removeMovieClip(_root.game.tiles); _root.gotoAndPlay("menu"); removeMovieClip(this._parent); };Symbol 724 MovieClip Frame 24_parent.object.b++; depth = 96400 + _parent.object.b; _parent._parent.createEmptyMovieClip("b" + depth, depth); _parent._parent["b" + depth].attachMovie("b", "b", depth); mc = _parent._parent["b" + depth]; mc._x = _parent._x; mc._y = _parent._y; mc._rotation = _parent._rotation; mc.onEnterFrame = function () { this.b._y = this.b._y - 5; this.b._rotation = this.b._rotation - 5; if (this.b.hitTest(_root.hero.clip.hitbox) && (!_root.hero.invinsible)) { _root.hero.loseHealth("down"); } };Symbol 725 MovieClip Frame 14clock = Math.floor(Math.random() * 3) + 1; depth = 96400 /* 0x017890 */; _parent._parent.createEmptyMovieClip("clock" + depth, depth); _parent._parent["clock" + depth].attachMovie("clock" + clock, "clock", depth); mc = _parent._parent["clock" + depth]; mc._x = _parent._x + 50; mc._y = _parent._y; var xd = (_root.hero.x - mc._x); var yd = (_root.hero.y - mc._y); var radAngle = Math.atan2(yd, xd); mc._rotation = Number(((radAngle * 360) / (Math.PI*2)) + 90); mc.counter = 0; mc.action = (Math.random() * 50) + 50; mc.onEnterFrame = function () { this.counter++; if (this.counter >= this.action) { this.clock._y = this.clock._y - 10; if (this.clock.hitTest(_root.hero.clip.hitbox) && (!_root.hero.invinsible)) { _root.hero.loseHealth("down"); } } else { var _local3 = _root.hero.x - this._x; var _local4 = _root.hero.y - this._y; var _local5 = Math.atan2(_local4, _local3); this._rotation = Number(((_local5 * 360) / (Math.PI*2)) + 90); } };Symbol 725 MovieClip Frame 42clock = Math.floor(Math.random() * 3) + 1; depth = 96401 /* 0x017891 */; _parent._parent.createEmptyMovieClip("clock" + depth, depth); _parent._parent["clock" + depth].attachMovie("clock" + clock, "clock", depth); mc = _parent._parent["clock" + depth]; mc._x = _parent._x - 50; mc._y = _parent._y; var xd = (_root.hero.x - mc._x); var yd = (_root.hero.y - mc._y); var radAngle = Math.atan2(yd, xd); mc._rotation = Number(((radAngle * 360) / (Math.PI*2)) + 90); mc.counter = 0; mc.action = (Math.random() * 50) + 50; mc.onEnterFrame = function () { this.counter++; if (this.counter >= this.action) { this.clock._y = this.clock._y - 10; if (this.clock.hitTest(_root.hero.clip.hitbox) && (!_root.hero.invinsible)) { _root.hero.loseHealth("down"); } } else { var _local3 = _root.hero.x - this._x; var _local4 = _root.hero.y - this._y; var _local5 = Math.atan2(_local4, _local3); this._rotation = Number(((_local5 * 360) / (Math.PI*2)) + 90); } };Symbol 725 MovieClip Frame 56_parent.object.currentAction++;Symbol 734 MovieClip Frame 25_parent.play(); stop();Symbol 735 MovieClip Frame 49gotoAndStop (51);Symbol 735 MovieClip Frame 51hero = _root.hero; newX = hero.x; newY = hero.y; _parent.object.x = newX; _parent.object.y = newY; _root.moveObject(0, 0, _parent.object); play();Symbol 735 MovieClip Frame 72hero = _root.hero; if (_parent.hitTest(hero.clip.hitbox)) { hero.loseHealth("down"); gotoAndPlay (150); } else { _parent.object.invinsible = false; }Symbol 735 MovieClip Frame 151stop();Symbol 735 MovieClip Frame 153stop(); _parent.object.currentAction++;Symbol 742 MovieClip Frame 11_root.game.tiles.attachMovie("trophy4", "trophy", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.trophy._x = Stage.height / 2; _root.game.tiles.trophy._y = Stage.height / 2; removeMovieClip(_root.music);Symbol 742 MovieClip Frame 36stop(); removeMovieClip(this._parent);Symbol 743 MovieClip [enemy7] Frame 1stop();Symbol 786 MovieClip Frame 10_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 790 MovieClip Frame 14_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 794 MovieClip Frame 12_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 798 MovieClip Frame 10_root.hero.action = "idle"; _root.game.attackKey = false;Symbol 809 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", 9999999999); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 814 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 820 MovieClip Frame 10stop(); _root.game.tiles.attachMovie("gameover", "gameover", _root.game.tiles.getNextHighestDepth()); _root.game.tiles.gameover._x = Stage.width / 2; _root.game.tiles.gameover._y = Stage.height / 2;Symbol 833 MovieClip [blamsword] Frame 270stop(); _root.so.data.blamSword = true; _root.showMessage("You've acquired the magical blam sword! Now you can save the king! Go to the castle!"); this.onEnterFrame = function () { if (!_root.game.showingMessage) { _root.changeArea({newarea:"overworld", newroom:9, newX:5, newY:10}); removeMovieClip(this); } };Symbol 869 MovieClip Frame 10if (_root.getDistance(_parent, _root.hero.clip).totaldist < 75) { if (_root.getDistance(_parent, _root.hero.clip).ydist > 0) { _root.hero.loseHealth("up"); } else { _root.hero.loseHealth("down"); } }Symbol 869 MovieClip Frame 15stop(); _parent.object.attacking = false;Symbol 871 MovieClip Frame 10if (_root.getDistance(_parent, _root.hero.clip).totaldist < 75) { if (_root.getDistance(_parent, _root.hero.clip).ydist > 0) { _root.hero.loseHealth("up"); } else { _root.hero.loseHealth("down"); } }Symbol 871 MovieClip Frame 15stop(); _parent.object.attacking = false;Symbol 883 MovieClip Frame 15stop(); depth = _parent.getDepth() + 1; _root.game.tiles.attachMovie("swordspin", "swordspin", depth); mc = _root.game.tiles.swordspin; mc._x = _parent._x; mc._y = _parent._y; mc.onEnterFrame = function () { if (!_root.game.paused) { this._y = this._y + 3; } }; this.onEnterFrame = function () { if (!_root.game.paused) { _root.moveObject(0, 1, _parent.object); this._alpha = this._alpha - 5; if (this._alpha <= 0) { nextFrame(); _parent.object.y = 170; _parent._y = 170; this.onEnterFrame = function () { if (!_root.game.paused) { if (this._alpha < 100) { this._alpha = this._alpha + 5; _root.moveObject(0, 1, _parent.object); } else if (this._alpha >= 100) { play(); delete this.onEnterFrame; } } }; } } };Symbol 883 MovieClip Frame 16mc = _root.game.tiles.swordspin; mc.swapDepths(_parent.getDepth() - 1);Symbol 883 MovieClip Frame 17mc = _root.game.tiles.swordspin; removeMovieClip(mc);Symbol 883 MovieClip Frame 21stop(); _parent.object.currentAction++; _parent.object.dir = "up";Symbol 893 MovieClip Frame 15stop(); depth = _parent.getDepth() - 1; _root.game.tiles.attachMovie("swordspin", "swordspin", depth); mc = _root.game.tiles.swordspin; mc._x = _parent._x; mc._y = _parent._y; mc.onEnterFrame = function () { if (!_root.game.paused) { this._y = this._y - 3; } }; this.onEnterFrame = function () { if (!_root.game.paused) { _root.moveObject(0, -1, _parent.object); this._alpha = this._alpha - 5; if (this._alpha <= 0) { nextFrame(); _parent.object.y = 190; _parent._y = 190; this.onEnterFrame = function () { if (!_root.game.paused) { if (this._alpha < 100) { this._alpha = this._alpha + 5; _root.moveObject(0, -1, _parent.object); } else if (this._alpha >= 100) { play(); delete this.onEnterFrame; } } }; } } };Symbol 893 MovieClip Frame 16mc = _root.game.tiles.swordspin; mc.swapDepths(_parent.getDepth() + 1);Symbol 893 MovieClip Frame 17mc = _root.game.tiles.swordspin; removeMovieClip(mc);Symbol 893 MovieClip Frame 21stop(); _parent.object.currentAction++; _parent.object.dir = "down";Symbol 896 MovieClip Frame 26game = _root.game; hero = _root.hero; enemies = _root.enemies; i = 1; while (i <= 2) { name = (("enemy_" + game.room) + "_") + i; game[name] = new game.enemy2(); game[name].type = 2; game[name].xtile = 3 + (4 * (i - 1)); game[name].ytile = 5; game[name].x = (game.tilew * game[name].xtile) + (game.tilew / 2); game[name].y = (game.tileh * game[name].ytile) + (game.tileh / 2); game[name].depth = ((game[name].y * 300) + game[name].x) + 1; game[name].parent = _parent; game[name].parent.object["enemy" + i] = false; game[name].i = i; enemies[game.room][i] = new Array(); enemies[game.room][i][0] = game[name].type; enemies[game.room][i][1] = game[name].xtile; enemies[game.room][i][2] = game[name].ytile; game.tiles.attachMovie("enemy" + game[name].type, name, game[name].depth); game[name].clip = game.tiles[name]; game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; game[name].clip.gotoAndStop(game[name].action + game[name].dir); game[name].clip.object = game[name]; game[name].clip.onEnterFrame = function () { if (((this.hitTest(hero.clip.hitbox) && (!this.hitTest(hero.clip.hero.sword))) && (!hero.invinsible)) && (this.object.action != "die")) { hero.loseHealth(this.object.dir); } else if (this.hitTest(hero.clip.hero.sword) && (!this.object.invinsible)) { this.object.health = this.object.health - hero.attack; if (this.object.health > 0) { this.object.initBounce = 0; this.object.oppositedir = hero.dir; this.object.bounceInterval = setInterval(_root.bounceBack, 5, this.object, this.object.oppositedir, 50); this.object.initInvinsible = 0; this.object.invinsibleInterval = setInterval(_root.setInvinsible, 5, this.object, 200); } else { this.object.action = "die"; this.object.parent.object["enemy" + this.object.i] = true; moveObject(0, 0, this.object); } } }; i++; }Symbol 896 MovieClip Frame 35function addCurrentAction(me) { if (!_root.game.paused) { clearInterval(addCurrentActionInterval); _parent.object.currentAction++; } else { me.onEnterFrame = function () { if (!_root.game.paused) { clearInterval(addCurrentActionInterval); _parent.object.currentAction++; delete this.onEnterFrame; } }; } } stop(); addCurrentActionInterval = setInterval(addCurrentAction, 3000, this);Symbol 897 MovieClip [enemy6] Frame 1stop();Symbol 931 MovieClip [end] Frame 25stop(); img.onRelease = function () { play(); };Symbol 931 MovieClip [end] Frame 50stop(); img.onRelease = function () { play(); };Symbol 931 MovieClip [end] Frame 75stop(); img.onRelease = function () { play(); };Symbol 931 MovieClip [end] Frame 100stop(); img.onRelease = function () { play(); };Symbol 931 MovieClip [end] Frame 125stop(); img.onRelease = function () { play(); };Symbol 931 MovieClip [end] Frame 150stop(); img.onRelease = function () { nextFrame(); };Symbol 973 MovieClip [intro] Frame 25stop(); img.onRelease = function () { play(); };Symbol 973 MovieClip [intro] Frame 50stop(); img.onRelease = function () { play(); };Symbol 973 MovieClip [intro] Frame 75stop(); img.onRelease = function () { play(); };Symbol 973 MovieClip [intro] Frame 100stop(); img.onRelease = function () { play(); };Symbol 973 MovieClip [intro] Frame 125stop(); img.onRelease = function () { _root.changeArea({newarea:"overworld", newroom:8, newX:5, newY:9}); removeMovieClip(this._parent); removeMovieClip(this); };Symbol 981 MovieClip [song2] Frame 1stop(); var song = "song2"; var music = new Sound(); music.attachSound(song + "intro"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.attachSound(song + "loop"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.start(); } }; } }; this.onUnload = function () { music.stop(); };Symbol 982 MovieClip [song1] Frame 1stop(); var song = "song1"; var music = new Sound(); music.attachSound(song + "intro"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.attachSound(song + "loop"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.start(); } }; } }; this.onUnload = function () { music.stop(); };Symbol 983 MovieClip [song3] Frame 1stop(); var song = "song3"; var music = new Sound(); music.attachSound(song + "loop"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.start(); } }; this.onUnload = function () { music.stop(); };Symbol 984 MovieClip [song4] Frame 1stop(); var song = "song4"; var music = new Sound(); music.attachSound(song + "loop"); music.start(); this.onEnterFrame = function () { if (music.position >= (music.duration - 50)) { music.stop(); music.start(); } }; this.onUnload = function () { music.stop(); };
Library Items
Symbol 1 Graphic | Used by:6 | |
Symbol 2 Graphic | Used by:6 | |
Symbol 3 Graphic | Used by:6 | |
Symbol 4 Graphic | Used by:6 | |
Symbol 5 Graphic | Used by:6 | |
Symbol 6 MovieClip [enemy3_cd] | Uses:1 2 3 4 5 | |
Symbol 7 Graphic | Used by:13 | |
Symbol 8 Graphic | Used by:13 | |
Symbol 9 Graphic | Used by:13 | |
Symbol 10 Graphic | Used by:13 | |
Symbol 11 Graphic | Used by:13 | |
Symbol 12 Graphic | Used by:13 | |
Symbol 13 MovieClip [enemy3_wave] | Uses:7 8 9 10 11 12 | |
Symbol 14 ShapeTweening | Used by:22 | |
Symbol 15 Font | Used by:16 17 | |
Symbol 16 EditableText | Uses:15 | Used by:18 |
Symbol 17 EditableText | Uses:15 | Used by:18 |
Symbol 18 MovieClip | Uses:16 17 | Used by:22 |
Symbol 19 Graphic | Used by:22 | |
Symbol 20 ShapeTweening | Used by:22 | |
Symbol 21 Graphic | Used by:22 | |
Symbol 22 MovieClip [messageBoss] | Uses:14 18 19 20 21 | |
Symbol 23 Graphic | Used by:30 | |
Symbol 24 ShapeTweening | Used by:29 | |
Symbol 25 Graphic | Used by:29 | |
Symbol 26 ShapeTweening | Used by:29 | |
Symbol 27 Graphic | Used by:29 | |
Symbol 28 Graphic | Used by:29 | |
Symbol 29 MovieClip | Uses:24 25 26 27 28 | Used by:30 558 559 561 |
Symbol 30 MovieClip [map_over] | Uses:23 29 | |
Symbol 31 Graphic | Used by:34 | |
Symbol 32 Graphic | Used by:33 | |
Symbol 33 MovieClip | Uses:32 | Used by:34 64 |
Symbol 34 MovieClip | Uses:31 33 | Used by:181 182 |
Symbol 35 Graphic | Used by:181 182 | |
Symbol 36 Graphic | Used by:37 | |
Symbol 37 MovieClip | Uses:36 | Used by:181 182 |
Symbol 38 Graphic | Used by:41 79 111 122 178 186 190 682 686 896 | |
Symbol 39 Graphic | Used by:41 79 | |
Symbol 40 Graphic | Used by:41 79 | |
Symbol 41 Button | Uses:38 39 40 | Used by:182 |
Symbol 42 Graphic | Used by:54 | |
Symbol 43 ShapeTweening | Used by:54 | |
Symbol 44 Graphic | Used by:54 | |
Symbol 45 Graphic | Used by:46 | |
Symbol 46 MovieClip | Uses:45 | Used by:47 |
Symbol 47 MovieClip | Uses:46 | Used by:54 78 |
Symbol 48 Graphic | Used by:49 | |
Symbol 49 MovieClip | Uses:48 | Used by:51 |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 MovieClip | Uses:49 50 | Used by:54 |
Symbol 52 Graphic | Used by:54 74 76 78 | |
Symbol 53 Graphic | Used by:54 78 | |
Symbol 54 MovieClip | Uses:42 43 44 47 51 52 53 | Used by:182 |
Symbol 55 Graphic | Used by:104 182 | |
Symbol 56 Graphic | Used by:64 | |
Symbol 57 Graphic | Used by:58 | |
Symbol 58 MovieClip | Uses:57 | Used by:64 181 |
Symbol 59 Graphic | Used by:60 | |
Symbol 60 MovieClip | Uses:59 | Used by:64 181 |
Symbol 61 Graphic | Used by:63 | |
Symbol 62 Graphic | Used by:63 | |
Symbol 63 Button | Uses:61 62 | Used by:64 |
Symbol 64 MovieClip | Uses:56 33 58 60 63 | Used by:65 |
Symbol 65 MovieClip | Uses:64 | Used by:182 |
Symbol 66 Graphic | Used by:74 76 78 | |
Symbol 67 Graphic | Used by:74 76 | |
Symbol 68 Graphic | Used by:74 76 78 | |
Symbol 69 Graphic | Used by:70 74 76 | |
Symbol 70 MovieClip | Uses:69 | Used by:74 76 |
Symbol 71 Graphic | Used by:74 76 78 | |
Symbol 72 Graphic | Used by:74 76 78 | |
Symbol 73 Sound | Used by:74 76 181 | |
Symbol 74 Button | Uses:66 67 68 52 70 71 72 69 73 | Used by:182 |
Symbol 75 Sound | Used by:182 | |
Symbol 76 Button | Uses:66 67 68 52 70 71 72 69 73 | Used by:182 |
Symbol 77 ShapeTweening | Used by:181 | |
Symbol 78 MovieClip | Uses:66 53 47 68 52 71 72 | Used by:181 |
Symbol 79 MovieClip | Uses:38 39 40 | Used by:181 |
Symbol 80 Graphic | Used by:97 181 | |
Symbol 81 Sound | Used by:181 | |
Symbol 82 ShapeTweening | Used by:181 | |
Symbol 83 Sound | Used by:181 | |
Symbol 84 ShapeTweening | Used by:181 | |
Symbol 85 Graphic | Used by:86 181 328 557 687 Timeline | |
Symbol 86 MovieClip | Uses:85 | Used by:181 |
Symbol 87 ShapeTweening | Used by:181 | |
Symbol 88 Graphic | Used by:181 | |
Symbol 89 ShapeTweening | Used by:97 | |
Symbol 90 ShapeTweening | Used by:97 | |
Symbol 91 ShapeTweening | Used by:97 | |
Symbol 92 ShapeTweening | Used by:97 | |
Symbol 93 ShapeTweening | Used by:97 | |
Symbol 94 ShapeTweening | Used by:97 | |
Symbol 95 ShapeTweening | Used by:97 | |
Symbol 96 ShapeTweening | Used by:97 | |
Symbol 97 MovieClip | Uses:89 90 91 92 93 94 95 96 80 | Used by:181 |
Symbol 98 Graphic | Used by:181 | |
Symbol 99 Graphic | Used by:100 | |
Symbol 100 MovieClip | Uses:99 | Used by:181 |
Symbol 101 Sound | Used by:181 | |
Symbol 102 Graphic | Used by:103 | |
Symbol 103 MovieClip | Uses:102 | Used by:181 |
Symbol 104 MovieClip | Uses:55 | Used by:181 |
Symbol 105 Graphic | Used by:106 | |
Symbol 106 MovieClip | Uses:105 | Used by:181 |
Symbol 107 Sound | Used by:181 | |
Symbol 108 Sound | Used by:181 | |
Symbol 109 Graphic | Used by:111 122 178 | |
Symbol 110 Graphic | Used by:111 122 178 | |
Symbol 111 Button | Uses:38 109 110 | Used by:181 |
Symbol 112 Graphic | Used by:181 | |
Symbol 113 Graphic | Used by:117 | |
Symbol 114 Graphic | Used by:117 143 155 167 | |
Symbol 115 Graphic | Used by:117 | |
Symbol 116 Graphic | Used by:117 143 155 167 | |
Symbol 117 MovieClip | Uses:113 114 115 116 | Used by:181 |
Symbol 118 Graphic | Used by:181 | |
Symbol 119 Graphic | Used by:181 | |
Symbol 120 Graphic | Used by:181 | |
Symbol 121 Graphic | Used by:181 | |
Symbol 122 Button | Uses:38 109 110 | Used by:181 |
Symbol 123 Graphic | Used by:137 | |
Symbol 124 Graphic | Used by:137 | |
Symbol 125 Graphic | Used by:137 | |
Symbol 126 Graphic | Used by:137 | |
Symbol 127 Graphic | Used by:137 | |
Symbol 128 Graphic | Used by:137 | |
Symbol 129 Graphic | Used by:137 | |
Symbol 130 Graphic | Used by:137 | |
Symbol 131 Graphic | Used by:137 | |
Symbol 132 Graphic | Used by:137 | |
Symbol 133 Graphic | Used by:137 | |
Symbol 134 Graphic | Used by:137 | |
Symbol 135 Graphic | Used by:137 | |
Symbol 136 Graphic | Used by:137 | |
Symbol 137 MovieClip | Uses:123 124 125 126 127 128 129 130 131 132 133 134 135 136 | Used by:181 |
Symbol 138 Graphic | Used by:181 | |
Symbol 139 Graphic | Used by:181 | |
Symbol 140 Graphic | Used by:181 | |
Symbol 141 Graphic | Used by:143 | |
Symbol 142 Graphic | Used by:143 | |
Symbol 143 MovieClip | Uses:141 114 142 116 | Used by:181 |
Symbol 144 Graphic | Used by:181 | |
Symbol 145 Graphic | Used by:181 | |
Symbol 146 Graphic | Used by:181 | |
Symbol 147 Graphic | Used by:181 | |
Symbol 148 Graphic | Used by:181 | |
Symbol 149 Graphic | Used by:181 | |
Symbol 150 Graphic | Used by:181 | |
Symbol 151 Graphic | Used by:181 | |
Symbol 152 Graphic | Used by:181 | |
Symbol 153 Graphic | Used by:155 | |
Symbol 154 Graphic | Used by:155 | |
Symbol 155 MovieClip | Uses:153 114 154 116 | Used by:181 |
Symbol 156 Graphic | Used by:181 | |
Symbol 157 Graphic | Used by:181 | |
Symbol 158 Graphic | Used by:181 | |
Symbol 159 Graphic | Used by:181 | |
Symbol 160 Graphic | Used by:181 | |
Symbol 161 Graphic | Used by:181 | |
Symbol 162 Graphic | Used by:181 | |
Symbol 163 Graphic | Used by:181 | |
Symbol 164 Graphic | Used by:181 | |
Symbol 165 Graphic | Used by:167 | |
Symbol 166 Graphic | Used by:167 | |
Symbol 167 MovieClip | Uses:165 114 166 116 | Used by:181 |
Symbol 168 Graphic | Used by:181 | |
Symbol 169 Graphic | Used by:181 | |
Symbol 170 Graphic | Used by:181 | |
Symbol 171 Graphic | Used by:181 | |
Symbol 172 Graphic | Used by:181 | |
Symbol 173 Graphic | Used by:181 | |
Symbol 174 Graphic | Used by:181 | |
Symbol 175 Graphic | Used by:181 | |
Symbol 176 Graphic | Used by:181 | |
Symbol 177 Sound | Used by:181 | |
Symbol 178 Button | Uses:38 109 110 | Used by:181 |
Symbol 179 Graphic | Used by:180 | |
Symbol 180 MovieClip | Uses:179 | Used by:181 |
Symbol 181 MovieClip | Uses:34 37 77 78 79 80 35 81 82 83 84 86 87 88 97 98 100 101 103 104 106 107 108 111 112 117 118 119 120 121 122 137 138 139 140 143 144 145 146 147 148 149 150 151 152 155 156 157 158 159 160 161 162 163 164 167 168 169 170 171 172 173 174 175 176 58 73 60 177 178 180 85 | Used by:182 |
Symbol 182 MovieClip | Uses:34 35 37 41 54 55 65 74 75 76 181 | Used by:Timeline |
Symbol 1008 MovieClip [__Packages.NewgroundsAPI] | ||
Symbol 183 ShapeTweening | Used by:186 | |
Symbol 184 Graphic | Used by:186 | |
Symbol 185 ShapeTweening | Used by:186 | |
Symbol 186 MovieClip [trophy3] | Uses:183 184 185 38 | Used by:Timeline |
Symbol 187 ShapeTweening | Used by:190 | |
Symbol 188 Graphic | Used by:190 | |
Symbol 189 ShapeTweening | Used by:190 | |
Symbol 190 MovieClip [trophy4] | Uses:187 188 189 38 | Used by:Timeline |
Symbol 191 Graphic | Used by:192 | |
Symbol 192 MovieClip [badge1] | Uses:191 | Used by:Timeline |
Symbol 193 Graphic | Used by:194 | |
Symbol 194 MovieClip [badge2] | Uses:193 | Used by:Timeline |
Symbol 195 Graphic | Used by:196 | |
Symbol 196 MovieClip [badge3] | Uses:195 | Used by:Timeline |
Symbol 197 Graphic | Used by:198 | |
Symbol 198 MovieClip [badge4] | Uses:197 | Used by:Timeline |
Symbol 199 Graphic | Used by:200 | |
Symbol 200 MovieClip [badge5] | Uses:199 | Used by:Timeline |
Symbol 201 Graphic | Used by:202 | |
Symbol 202 MovieClip [badge6] | Uses:201 | Used by:Timeline |
Symbol 203 Graphic | Used by:204 | |
Symbol 204 MovieClip [badge7] | Uses:203 | Used by:Timeline |
Symbol 205 Graphic | Used by:206 | |
Symbol 206 MovieClip [badge8] | Uses:205 | Used by:Timeline |
Symbol 207 Graphic | Used by:208 | |
Symbol 208 MovieClip [badge9] | Uses:207 | Used by:Timeline |
Symbol 209 Graphic | Used by:210 | |
Symbol 210 MovieClip [badge10] | Uses:209 | Used by:Timeline |
Symbol 211 Graphic | Used by:212 | |
Symbol 212 MovieClip [badge11] | Uses:211 | Used by:Timeline |
Symbol 213 Graphic | Used by:214 | |
Symbol 214 MovieClip [badge12] | Uses:213 | Used by:Timeline |
Symbol 215 Graphic | Used by:216 | |
Symbol 216 MovieClip [badge13] | Uses:215 | Used by:Timeline |
Symbol 217 Graphic | Used by:218 | |
Symbol 218 MovieClip [badge14] | Uses:217 | Used by:Timeline |
Symbol 219 Graphic | Used by:220 | |
Symbol 220 MovieClip [badge15] | Uses:219 | Used by:Timeline |
Symbol 221 Graphic | Used by:222 | |
Symbol 222 MovieClip | Uses:221 | Used by:224 227 229 |
Symbol 223 Graphic | Used by:224 | |
Symbol 224 MovieClip | Uses:222 223 | Used by:260 |
Symbol 225 Graphic | Used by:226 947 | |
Symbol 226 MovieClip | Uses:225 | Used by:227 229 |
Symbol 227 MovieClip | Uses:226 222 | Used by:260 |
Symbol 228 Graphic | Used by:229 | |
Symbol 229 MovieClip | Uses:222 226 228 | Used by:260 |
Symbol 230 Graphic | Used by:231 | |
Symbol 231 MovieClip | Uses:230 | Used by:241 268 |
Symbol 232 Graphic | Used by:241 | |
Symbol 233 Graphic | Used by:241 | |
Symbol 234 Graphic | Used by:241 | |
Symbol 235 Graphic | Used by:241 | |
Symbol 236 Graphic | Used by:241 | |
Symbol 237 Graphic | Used by:241 | |
Symbol 238 Graphic | Used by:241 | |
Symbol 239 Graphic | Used by:241 | |
Symbol 240 Graphic | Used by:241 | |
Symbol 241 MovieClip | Uses:231 232 233 234 235 236 237 238 239 240 | Used by:260 271 |
Symbol 242 Graphic | Used by:243 | |
Symbol 243 MovieClip | Uses:242 | Used by:248 269 |
Symbol 244 Graphic | Used by:248 | |
Symbol 245 Graphic | Used by:248 | |
Symbol 246 Graphic | Used by:248 | |
Symbol 247 Graphic | Used by:248 | |
Symbol 248 MovieClip | Uses:243 244 245 246 247 | Used by:260 271 |
Symbol 249 Graphic | Used by:250 | |
Symbol 250 MovieClip | Uses:249 | Used by:259 270 |
Symbol 251 Graphic | Used by:259 | |
Symbol 252 Graphic | Used by:259 | |
Symbol 253 Graphic | Used by:259 | |
Symbol 254 Graphic | Used by:259 | |
Symbol 255 Graphic | Used by:259 | |
Symbol 256 Graphic | Used by:259 | |
Symbol 257 Graphic | Used by:259 | |
Symbol 258 Graphic | Used by:259 | |
Symbol 259 MovieClip | Uses:250 251 252 253 254 255 256 257 258 | Used by:260 271 |
Symbol 260 MovieClip [enemy1] | Uses:224 227 229 241 248 259 | Used by:Timeline |
Symbol 261 Graphic | Used by:268 | |
Symbol 262 Graphic | Used by:268 | |
Symbol 263 Graphic | Used by:268 | |
Symbol 264 Graphic | Used by:268 | |
Symbol 265 Graphic | Used by:268 | |
Symbol 266 Graphic | Used by:268 | |
Symbol 267 Graphic | Used by:268 | |
Symbol 268 MovieClip | Uses:231 261 262 263 264 265 266 267 | Used by:271 |
Symbol 269 MovieClip | Uses:243 | Used by:271 |
Symbol 270 MovieClip | Uses:250 | Used by:271 |
Symbol 271 MovieClip [enemy2] | Uses:268 269 270 241 248 259 | Used by:Timeline |
Symbol 272 Graphic | Used by:273 481 509 516 522 524 759 784 787 793 795 931 973 | |
Symbol 273 MovieClip | Uses:272 | Used by:337 385 471 743 897 |
Symbol 274 Graphic | Used by:294 319 328 336 | |
Symbol 275 Graphic | Used by:279 | |
Symbol 276 Graphic | Used by:279 | |
Symbol 277 Graphic | Used by:279 | |
Symbol 278 Graphic | Used by:279 | |
Symbol 279 MovieClip | Uses:275 276 277 278 | Used by:294 307 314 319 328 336 |
Symbol 280 Graphic | Used by:281 | |
Symbol 281 MovieClip | Uses:280 | Used by:294 307 314 319 328 336 |
Symbol 282 Graphic | Used by:283 | |
Symbol 283 MovieClip | Uses:282 | Used by:294 319 328 336 |
Symbol 284 Graphic | Used by:285 | |
Symbol 285 MovieClip | Uses:284 | Used by:294 307 314 319 328 336 |
Symbol 286 Graphic | Used by:287 | |
Symbol 287 MovieClip | Uses:286 | Used by:294 319 328 336 |
Symbol 288 Graphic | Used by:289 | |
Symbol 289 MovieClip | Uses:288 | Used by:294 319 328 336 |
Symbol 290 Graphic | Used by:291 | |
Symbol 291 MovieClip | Uses:290 | Used by:294 319 328 336 |
Symbol 292 Graphic | Used by:293 | |
Symbol 293 MovieClip | Uses:292 | Used by:294 319 328 336 |
Symbol 294 MovieClip | Uses:274 279 281 283 285 287 289 291 293 | Used by:337 |
Symbol 295 Graphic | Used by:296 | |
Symbol 296 MovieClip | Uses:295 | Used by:307 |
Symbol 297 Graphic | Used by:298 | |
Symbol 298 MovieClip | Uses:297 | Used by:307 |
Symbol 299 Graphic | Used by:300 | |
Symbol 300 MovieClip | Uses:299 | Used by:307 |
Symbol 301 Graphic | Used by:302 | |
Symbol 302 MovieClip | Uses:301 | Used by:307 |
Symbol 303 Graphic | Used by:304 | |
Symbol 304 MovieClip | Uses:303 | Used by:307 |
Symbol 305 Graphic | Used by:306 | |
Symbol 306 MovieClip | Uses:305 | Used by:307 |
Symbol 307 MovieClip | Uses:296 285 298 300 302 279 281 304 306 | Used by:337 |
Symbol 308 Graphic | Used by:309 | |
Symbol 309 MovieClip | Uses:308 | Used by:314 |
Symbol 310 Graphic | Used by:311 | |
Symbol 311 MovieClip | Uses:310 | Used by:314 |
Symbol 312 Graphic | Used by:313 | |
Symbol 313 MovieClip | Uses:312 | Used by:314 |
Symbol 314 MovieClip | Uses:279 281 285 309 311 313 | Used by:337 |
Symbol 315 Graphic | Used by:319 | |
Symbol 316 Graphic | Used by:319 | |
Symbol 317 Graphic | Used by:319 | |
Symbol 318 Graphic | Used by:319 | |
Symbol 319 MovieClip | Uses:274 279 281 283 285 287 289 291 293 315 316 317 318 | Used by:337 |
Symbol 320 ShapeTweening | Used by:328 | |
Symbol 321 ShapeTweening | Used by:328 | |
Symbol 322 ShapeTweening | Used by:328 | |
Symbol 323 ShapeTweening | Used by:328 | |
Symbol 324 ShapeTweening | Used by:328 | |
Symbol 325 ShapeTweening | Used by:328 | |
Symbol 326 ShapeTweening | Used by:328 | |
Symbol 327 ShapeTweening | Used by:328 | |
Symbol 328 MovieClip | Uses:274 279 281 283 285 287 289 291 293 320 321 322 85 323 324 325 326 327 | Used by:337 |
Symbol 329 Graphic | Used by:336 | |
Symbol 330 Graphic | Used by:336 | |
Symbol 331 Graphic | Used by:336 | |
Symbol 332 Graphic | Used by:336 | |
Symbol 333 Graphic | Used by:336 | |
Symbol 334 Graphic | Used by:336 | |
Symbol 335 Graphic | Used by:336 | |
Symbol 336 MovieClip | Uses:274 279 281 283 285 287 289 291 293 329 330 331 332 333 334 335 | Used by:337 |
Symbol 337 MovieClip [enemy3] | Uses:273 294 307 314 319 328 336 | Used by:Timeline |
Symbol 338 Graphic | Used by:339 | |
Symbol 339 MovieClip | Uses:338 | Used by:385 |
Symbol 340 Graphic | Used by:344 | |
Symbol 341 Graphic | Used by:344 | |
Symbol 342 Graphic | Used by:344 | |
Symbol 343 Graphic | Used by:344 | |
Symbol 344 MovieClip | Uses:340 341 342 343 | Used by:385 |
Symbol 345 Graphic | Used by:349 | |
Symbol 346 Graphic | Used by:349 | |
Symbol 347 Graphic | Used by:349 | |
Symbol 348 Graphic | Used by:349 | |
Symbol 349 MovieClip | Uses:345 346 347 348 | Used by:385 |
Symbol 350 Graphic | Used by:354 | |
Symbol 351 Graphic | Used by:354 | |
Symbol 352 Graphic | Used by:354 | |
Symbol 353 Graphic | Used by:354 | |
Symbol 354 MovieClip | Uses:350 351 352 353 | Used by:385 |
Symbol 355 Graphic | Used by:370 | |
Symbol 356 Graphic | Used by:370 | |
Symbol 357 Graphic | Used by:370 | |
Symbol 358 Graphic | Used by:370 | |
Symbol 359 Graphic | Used by:370 | |
Symbol 360 Graphic | Used by:370 | |
Symbol 361 Graphic | Used by:370 | |
Symbol 362 Graphic | Used by:370 | |
Symbol 363 Graphic | Used by:370 | |
Symbol 364 Graphic | Used by:370 | |
Symbol 365 Graphic | Used by:370 | |
Symbol 366 Graphic | Used by:370 | |
Symbol 367 Graphic | Used by:370 | |
Symbol 368 Graphic | Used by:370 | |
Symbol 369 Graphic | Used by:370 | |
Symbol 370 MovieClip | Uses:355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | Used by:385 |
Symbol 371 Graphic | Used by:372 | |
Symbol 372 MovieClip | Uses:371 | Used by:385 |
Symbol 373 Graphic | Used by:377 | |
Symbol 374 Graphic | Used by:377 | |
Symbol 375 Graphic | Used by:377 | |
Symbol 376 Graphic | Used by:377 | |
Symbol 377 MovieClip | Uses:373 374 375 376 | Used by:385 |
Symbol 378 Graphic | Used by:384 | |
Symbol 379 Graphic | Used by:384 | |
Symbol 380 Graphic | Used by:384 | |
Symbol 381 Graphic | Used by:384 | |
Symbol 382 Graphic | Used by:384 | |
Symbol 383 Graphic | Used by:384 | |
Symbol 384 MovieClip | Uses:378 379 380 381 382 383 | Used by:385 |
Symbol 385 MovieClip [enemy4] | Uses:273 339 344 349 354 370 372 377 384 | Used by:Timeline |
Symbol 386 Graphic | Used by:387 | |
Symbol 387 MovieClip | Uses:386 | Used by:396 406 407 409 449 462 470 |
Symbol 388 Graphic | Used by:389 | |
Symbol 389 MovieClip | Uses:388 | Used by:396 403 406 407 408 409 432 438 462 463 464 470 |
Symbol 390 Graphic | Used by:391 | |
Symbol 391 MovieClip | Uses:390 | Used by:396 406 407 409 449 462 470 |
Symbol 392 Graphic | Used by:393 | |
Symbol 393 MovieClip | Uses:392 | Used by:396 403 406 407 408 409 432 438 449 462 463 464 470 |
Symbol 394 Graphic | Used by:395 | |
Symbol 395 MovieClip | Uses:394 | Used by:396 407 462 470 |
Symbol 396 MovieClip | Uses:387 389 391 393 395 | Used by:471 |
Symbol 397 Graphic | Used by:398 | |
Symbol 398 MovieClip | Uses:397 | Used by:403 408 432 438 463 464 |
Symbol 399 Graphic | Used by:400 | |
Symbol 400 Button | Uses:399 | Used by:403 408 432 438 463 464 |
Symbol 401 Graphic | Used by:402 | |
Symbol 402 MovieClip | Uses:401 | Used by:403 408 432 438 463 464 |
Symbol 403 MovieClip | Uses:393 398 400 389 402 | Used by:471 |
Symbol 404 Graphic | Used by:405 | |
Symbol 405 Button | Uses:404 | Used by:406 409 449 |
Symbol 406 MovieClip | Uses:391 393 405 387 389 | Used by:471 |
Symbol 407 MovieClip | Uses:387 389 391 393 395 | Used by:471 |
Symbol 408 MovieClip | Uses:393 398 400 389 402 | Used by:471 |
Symbol 409 MovieClip | Uses:391 393 405 387 389 | Used by:471 |
Symbol 410 Graphic | Used by:411 | |
Symbol 411 MovieClip | Uses:410 | Used by:432 463 464 |
Symbol 412 Graphic | Used by:432 | |
Symbol 413 Graphic | Used by:432 | |
Symbol 414 Graphic | Used by:432 | |
Symbol 415 Graphic | Used by:432 | |
Symbol 416 Graphic | Used by:432 | |
Symbol 417 Graphic | Used by:432 | |
Symbol 418 Graphic | Used by:432 | |
Symbol 419 Graphic | Used by:432 | |
Symbol 420 Graphic | Used by:432 | |
Symbol 421 Graphic | Used by:432 | |
Symbol 422 Graphic | Used by:432 | |
Symbol 423 Graphic | Used by:432 | |
Symbol 424 Graphic | Used by:432 | |
Symbol 425 Graphic | Used by:432 | |
Symbol 426 Graphic | Used by:432 | |
Symbol 427 Graphic | Used by:432 | |
Symbol 428 Graphic | Used by:432 | |
Symbol 429 Graphic | Used by:432 | |
Symbol 430 Graphic | Used by:432 | |
Symbol 431 Graphic | Used by:432 | |
Symbol 432 MovieClip | Uses:393 398 400 389 402 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | Used by:471 |
Symbol 433 Graphic | Used by:438 | |
Symbol 434 Graphic | Used by:438 | |
Symbol 435 Graphic | Used by:438 527 798 | |
Symbol 436 Graphic | Used by:438 527 798 | |
Symbol 437 Graphic | Used by:438 527 798 | |
Symbol 438 MovieClip | Uses:393 398 400 389 402 433 434 435 436 437 | Used by:471 |
Symbol 439 Graphic | Used by:440 | |
Symbol 440 MovieClip | Uses:439 | Used by:449 462 |
Symbol 441 Graphic | Used by:442 | |
Symbol 442 Button | Uses:441 | Used by:449 |
Symbol 443 Graphic | Used by:449 523 794 | |
Symbol 444 Graphic | Used by:449 523 794 | |
Symbol 445 Graphic | Used by:449 523 794 | |
Symbol 446 Graphic | Used by:449 523 794 | |
Symbol 447 Graphic | Used by:449 523 794 | |
Symbol 448 Graphic | Used by:449 523 794 | |
Symbol 449 MovieClip | Uses:440 391 393 405 387 442 443 444 445 446 447 448 | Used by:471 |
Symbol 450 Graphic | Used by:462 519 790 | |
Symbol 451 Graphic | Used by:462 519 790 | |
Symbol 452 Graphic | Used by:462 | |
Symbol 453 Graphic | Used by:462 519 790 | |
Symbol 454 Graphic | Used by:462 519 790 | |
Symbol 455 Graphic | Used by:462 519 790 | |
Symbol 456 Graphic | Used by:462 519 790 | |
Symbol 457 Graphic | Used by:462 519 790 | |
Symbol 458 Graphic | Used by:462 | |
Symbol 459 Graphic | Used by:462 519 790 | |
Symbol 460 Graphic | Used by:462 519 790 | |
Symbol 461 Graphic | Used by:462 519 790 | |
Symbol 462 MovieClip | Uses:387 389 391 395 393 450 451 452 453 454 455 440 456 457 458 459 460 461 | Used by:471 |
Symbol 463 MovieClip | Uses:393 398 400 389 402 411 | Used by:471 |
Symbol 464 MovieClip | Uses:393 398 400 389 402 411 | Used by:471 |
Symbol 465 Graphic | Used by:470 | |
Symbol 466 Graphic | Used by:470 | |
Symbol 467 Graphic | Used by:470 | |
Symbol 468 Graphic | Used by:470 | |
Symbol 469 Graphic | Used by:470 | |
Symbol 470 MovieClip | Uses:387 389 391 393 395 465 466 467 468 469 | Used by:471 |
Symbol 471 MovieClip [enemy5] | Uses:273 396 403 406 407 408 409 432 438 449 462 463 464 470 | Used by:Timeline |
Symbol 472 Graphic | Used by:474 | |
Symbol 473 Graphic | Used by:474 | |
Symbol 474 MovieClip [heart] | Uses:472 473 | Used by:Timeline |
Symbol 475 Graphic | Used by:476 | |
Symbol 476 MovieClip | Uses:475 | Used by:480 483 487 496 503 508 515 519 523 527 |
Symbol 477 Graphic | Used by:480 | |
Symbol 478 Graphic | Used by:479 | |
Symbol 479 MovieClip | Uses:478 | Used by:480 483 496 503 519 527 |
Symbol 480 MovieClip | Uses:476 477 479 | Used by:551 |
Symbol 481 MovieClip | Uses:272 | Used by:551 |
Symbol 482 Graphic | Used by:483 | |
Symbol 483 MovieClip | Uses:482 479 476 | Used by:551 |
Symbol 484 Graphic | Used by:485 | |
Symbol 485 MovieClip | Uses:484 | Used by:487 508 515 519 523 |
Symbol 486 Graphic | Used by:487 | |
Symbol 487 MovieClip | Uses:485 476 486 | Used by:551 |
Symbol 488 Graphic | Used by:489 539 766 810 | |
Symbol 489 MovieClip | Uses:488 | Used by:496 515 527 |
Symbol 490 Graphic | Used by:491 540 767 811 | |
Symbol 491 Button | Uses:490 | Used by:496 515 527 |
Symbol 492 Graphic | Used by:493 | |
Symbol 493 MovieClip | Uses:492 | Used by:496 503 515 519 527 |
Symbol 494 Graphic | Used by:495 | |
Symbol 495 MovieClip | Uses:494 | Used by:496 515 527 |
Symbol 496 MovieClip | Uses:476 489 491 493 495 479 | Used by:551 |
Symbol 497 Graphic | Used by:498 528 799 | |
Symbol 498 MovieClip | Uses:497 | Used by:503 508 519 523 |
Symbol 499 Graphic | Used by:500 531 775 802 | |
Symbol 500 MovieClip | Uses:499 | Used by:503 508 519 523 |
Symbol 501 Graphic | Used by:502 | |
Symbol 502 MovieClip | Uses:501 | Used by:503 519 |
Symbol 503 MovieClip | Uses:498 493 500 479 476 502 | Used by:551 |
Symbol 504 Graphic | Used by:505 520 | |
Symbol 505 MovieClip | Uses:504 | Used by:508 |
Symbol 506 Graphic | Used by:507 521 | |
Symbol 507 MovieClip | Uses:506 | Used by:508 |
Symbol 508 MovieClip | Uses:485 500 476 505 498 507 | Used by:551 |
Symbol 509 MovieClip | Uses:272 | Used by:515 |
Symbol 510 Graphic | Used by:515 786 | |
Symbol 511 Graphic | Used by:515 | |
Symbol 512 Graphic | Used by:515 786 | |
Symbol 513 Graphic | Used by:515 786 | |
Symbol 514 Graphic | Used by:515 786 | |
Symbol 515 MovieClip | Uses:485 489 491 493 495 476 509 510 511 512 513 514 | Used by:551 |
Symbol 516 MovieClip | Uses:272 | Used by:519 |
Symbol 517 Graphic | Used by:519 | |
Symbol 518 Graphic | Used by:519 | |
Symbol 519 MovieClip | Uses:498 493 500 479 502 476 450 451 516 517 453 454 455 485 456 457 518 459 460 461 | Used by:551 |
Symbol 520 Button | Uses:504 | Used by:523 |
Symbol 521 Button | Uses:506 | Used by:523 |
Symbol 522 MovieClip | Uses:272 | Used by:523 |
Symbol 523 MovieClip | Uses:485 500 476 520 498 521 522 443 444 445 446 447 448 | Used by:551 |
Symbol 524 MovieClip | Uses:272 | Used by:527 |
Symbol 525 Graphic | Used by:527 | |
Symbol 526 Graphic | Used by:527 | |
Symbol 527 MovieClip | Uses:476 489 491 493 495 479 524 525 526 435 436 437 | Used by:551 |
Symbol 528 MovieClip | Uses:497 | Used by:538 |
Symbol 529 Graphic | Used by:530 | |
Symbol 530 MovieClip | Uses:529 | Used by:538 543 |
Symbol 531 MovieClip | Uses:499 | Used by:538 |
Symbol 532 Graphic | Used by:533 | |
Symbol 533 MovieClip | Uses:532 | Used by:538 543 |
Symbol 534 Graphic | Used by:535 | |
Symbol 535 MovieClip | Uses:534 | Used by:538 543 |
Symbol 536 Graphic | Used by:537 | |
Symbol 537 MovieClip | Uses:536 | Used by:538 |
Symbol 538 MovieClip | Uses:528 530 531 533 535 537 | Used by:551 |
Symbol 539 MovieClip | Uses:488 | Used by:543 |
Symbol 540 MovieClip | Uses:490 | Used by:543 |
Symbol 541 Graphic | Used by:542 | |
Symbol 542 MovieClip | Uses:541 | Used by:543 |
Symbol 543 MovieClip | Uses:535 539 540 530 542 533 | Used by:551 |
Symbol 544 Graphic | Used by:550 | |
Symbol 545 Graphic | Used by:550 820 | |
Symbol 546 Graphic | Used by:550 | |
Symbol 547 Graphic | Used by:550 | |
Symbol 548 Graphic | Used by:550 | |
Symbol 549 Graphic | Used by:550 | |
Symbol 550 MovieClip | Uses:544 545 546 547 548 549 | Used by:551 |
Symbol 551 MovieClip [hero2] | Uses:480 481 483 487 496 503 508 515 519 523 527 538 543 550 | Used by:Timeline |
Symbol 552 Graphic | Used by:553 | |
Symbol 553 MovieClip [key] | Uses:552 | Used by:595 Timeline |
Symbol 554 Graphic | Used by:555 | |
Symbol 555 MovieClip [bluekey] | Uses:554 | Used by:620 Timeline |
Symbol 556 Graphic | Used by:558 559 | |
Symbol 557 MovieClip | Uses:85 | Used by:558 559 561 |
Symbol 558 MovieClip [map_d1] | Uses:556 29 557 | Used by:Timeline |
Symbol 559 MovieClip [map_d2] | Uses:556 29 557 | Used by:Timeline |
Symbol 560 Graphic | Used by:561 | |
Symbol 561 MovieClip [map_d3] | Uses:560 29 557 | Used by:Timeline |
Symbol 562 Graphic | Used by:569 | |
Symbol 563 Font | Used by:564 | |
Symbol 564 EditableText | Uses:563 | Used by:569 |
Symbol 565 Graphic | Used by:566 | |
Symbol 566 MovieClip | Uses:565 | Used by:567 |
Symbol 567 MovieClip | Uses:566 | Used by:569 931 973 |
Symbol 568 Graphic | Used by:569 | |
Symbol 569 MovieClip [message] | Uses:562 564 567 568 | Used by:Timeline |
Symbol 570 Graphic | Used by:678 | |
Symbol 571 Graphic | Used by:678 | |
Symbol 572 Graphic | Used by:678 | |
Symbol 573 Graphic | Used by:678 | |
Symbol 574 Graphic | Used by:678 | |
Symbol 575 Graphic | Used by:678 | |
Symbol 576 Graphic | Used by:580 | |
Symbol 577 Graphic | Used by:580 | |
Symbol 578 ShapeTweening | Used by:580 | |
Symbol 579 Graphic | Used by:580 | |
Symbol 580 MovieClip | Uses:576 577 578 579 | Used by:678 |
Symbol 581 Graphic | Used by:678 | |
Symbol 582 Graphic | Used by:678 | |
Symbol 583 Graphic | Used by:678 | |
Symbol 584 Graphic | Used by:678 | |
Symbol 585 Graphic | Used by:591 | |
Symbol 586 Graphic | Used by:591 | |
Symbol 587 Graphic | Used by:591 | |
Symbol 588 Graphic | Used by:591 | |
Symbol 589 Graphic | Used by:591 | |
Symbol 590 Graphic | Used by:591 | |
Symbol 591 MovieClip | Uses:585 586 587 588 589 590 | Used by:678 |
Symbol 592 Graphic | Used by:595 | |
Symbol 593 Graphic | Used by:595 620 | |
Symbol 594 Graphic | Used by:595 | |
Symbol 595 MovieClip | Uses:592 593 594 553 | Used by:678 |
Symbol 596 Graphic | Used by:678 | |
Symbol 597 Graphic | Used by:678 | |
Symbol 598 Graphic | Used by:678 | |
Symbol 599 Graphic | Used by:678 | |
Symbol 600 Graphic | Used by:678 | |
Symbol 601 Graphic | Used by:678 | |
Symbol 602 Graphic | Used by:678 | |
Symbol 603 Graphic | Used by:678 | |
Symbol 604 Graphic | Used by:678 | |
Symbol 605 Graphic | Used by:678 | |
Symbol 606 Graphic | Used by:678 | |
Symbol 607 Graphic | Used by:662 678 833 | |
Symbol 608 Graphic | Used by:678 | |
Symbol 609 Graphic | Used by:678 | |
Symbol 610 Graphic | Used by:678 | |
Symbol 611 Graphic | Used by:678 | |
Symbol 612 Graphic | Used by:678 | |
Symbol 613 Graphic | Used by:617 | |
Symbol 614 Graphic | Used by:617 | |
Symbol 615 ShapeTweening | Used by:617 | |
Symbol 616 Graphic | Used by:617 | |
Symbol 617 MovieClip | Uses:613 614 615 616 | Used by:678 |
Symbol 618 Graphic | Used by:620 | |
Symbol 619 Graphic | Used by:620 | |
Symbol 620 MovieClip | Uses:618 593 619 555 | Used by:678 |
Symbol 621 Graphic | Used by:637 | |
Symbol 622 Graphic | Used by:623 | |
Symbol 623 MovieClip | Uses:622 | Used by:637 652 673 |
Symbol 624 Bitmap | Used by:625 626 627 628 629 630 631 664 | |
Symbol 625 Graphic | Uses:624 | Used by:637 |
Symbol 626 Graphic | Uses:624 | Used by:632 |
Symbol 627 Graphic | Uses:624 | Used by:632 |
Symbol 628 Graphic | Uses:624 | Used by:632 |
Symbol 629 Graphic | Uses:624 | Used by:632 |
Symbol 630 Graphic | Uses:624 | Used by:632 |
Symbol 631 Graphic | Uses:624 | Used by:632 |
Symbol 632 MovieClip | Uses:626 627 628 629 630 631 | Used by:637 |
Symbol 633 Graphic | Used by:636 | |
Symbol 634 Graphic | Used by:635 | |
Symbol 635 MovieClip | Uses:634 | Used by:636 |
Symbol 636 MovieClip | Uses:633 635 | Used by:637 |
Symbol 637 MovieClip | Uses:621 623 625 632 636 | Used by:678 |
Symbol 638 Graphic | Used by:652 | |
Symbol 639 Graphic | Used by:642 | |
Symbol 640 Graphic | Used by:641 | |
Symbol 641 MovieClip | Uses:640 | Used by:642 |
Symbol 642 MovieClip | Uses:639 641 | Used by:652 |
Symbol 643 Graphic | Used by:644 | |
Symbol 644 MovieClip | Uses:643 | Used by:650 |
Symbol 645 Graphic | Used by:650 | |
Symbol 646 Graphic | Used by:647 | |
Symbol 647 MovieClip | Uses:646 | Used by:648 |
Symbol 648 MovieClip | Uses:647 | Used by:650 |
Symbol 649 Graphic | Used by:650 | |
Symbol 650 MovieClip | Uses:644 645 648 649 | Used by:652 |
Symbol 651 Graphic | Used by:652 | |
Symbol 652 MovieClip | Uses:638 623 642 650 651 | Used by:678 |
Symbol 653 Graphic | Used by:678 | |
Symbol 654 Graphic | Used by:678 | |
Symbol 655 Graphic | Used by:678 | |
Symbol 656 Graphic | Used by:678 | |
Symbol 657 Graphic | Used by:678 | |
Symbol 658 Graphic | Used by:662 | |
Symbol 659 Graphic | Used by:662 | |
Symbol 660 Graphic | Used by:662 | |
Symbol 661 MovieClip | Used by:662 Timeline | |
Symbol 662 MovieClip | Uses:607 658 659 660 661 | Used by:678 |
Symbol 663 Graphic | Used by:678 | |
Symbol 664 Graphic | Uses:624 | Used by:670 |
Symbol 665 Graphic | Used by:669 | |
Symbol 666 Graphic | Used by:669 | |
Symbol 667 Graphic | Used by:669 | |
Symbol 668 Graphic | Used by:669 | |
Symbol 669 MovieClip | Uses:665 666 667 668 | Used by:670 |
Symbol 670 MovieClip | Uses:664 669 | Used by:678 |
Symbol 671 Graphic | Used by:673 | |
Symbol 672 Graphic | Used by:673 | |
Symbol 673 MovieClip | Uses:671 623 672 | Used by:678 |
Symbol 674 Graphic | Used by:677 | |
Symbol 675 Graphic | Used by:676 | |
Symbol 676 MovieClip | Uses:675 | Used by:677 |
Symbol 677 MovieClip | Uses:674 676 | Used by:678 |
Symbol 678 MovieClip [tile] | Uses:570 571 572 573 574 575 580 581 582 583 584 591 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 617 620 637 652 653 654 655 656 657 662 663 670 673 677 | Used by:Timeline |
Symbol 679 ShapeTweening | Used by:682 | |
Symbol 680 Graphic | Used by:682 | |
Symbol 681 ShapeTweening | Used by:682 | |
Symbol 682 MovieClip [trophy1] | Uses:679 680 681 38 | Used by:Timeline |
Symbol 683 ShapeTweening | Used by:686 | |
Symbol 684 Graphic | Used by:686 | |
Symbol 685 ShapeTweening | Used by:686 | |
Symbol 686 MovieClip [trophy2] | Uses:683 684 685 38 | Used by:Timeline |
Symbol 687 MovieClip | Uses:85 | Used by:716 |
Symbol 688 ShapeTweening | Used by:716 | |
Symbol 689 ShapeTweening | Used by:716 | |
Symbol 690 ShapeTweening | Used by:716 | |
Symbol 691 ShapeTweening | Used by:716 | |
Symbol 692 ShapeTweening | Used by:716 | |
Symbol 693 ShapeTweening | Used by:716 | |
Symbol 694 Graphic | Used by:716 | |
Symbol 695 Graphic | Used by:716 | |
Symbol 696 ShapeTweening | Used by:716 | |
Symbol 697 Graphic | Used by:716 | |
Symbol 698 ShapeTweening | Used by:716 | |
Symbol 699 Graphic | Used by:716 | |
Symbol 700 Graphic | Used by:716 | |
Symbol 701 Graphic | Used by:716 | |
Symbol 702 ShapeTweening | Used by:716 | |
Symbol 703 ShapeTweening | Used by:716 | |
Symbol 704 ShapeTweening | Used by:716 | |
Symbol 705 ShapeTweening | Used by:716 | |
Symbol 706 ShapeTweening | Used by:716 | |
Symbol 707 ShapeTweening | Used by:716 | |
Symbol 708 ShapeTweening | Used by:716 | |
Symbol 709 ShapeTweening | Used by:716 | |
Symbol 710 Graphic | Used by:716 | |
Symbol 711 Graphic | Used by:714 | |
Symbol 712 Font | Used by:713 | |
Symbol 713 EditableText | Uses:712 | Used by:714 |
Symbol 714 MovieClip | Uses:711 713 | Used by:716 Timeline |
Symbol 715 Graphic | Used by:716 | |
Symbol 716 MovieClip [gameover] | Uses:687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 714 715 | Used by:Timeline |
Symbol 717 Graphic | Used by:720 | |
Symbol 718 Graphic | Used by:719 | |
Symbol 719 MovieClip | Uses:718 | Used by:720 |
Symbol 720 MovieClip | Uses:717 719 | Used by:723 724 725 |
Symbol 721 Graphic | Used by:722 | |
Symbol 722 MovieClip | Uses:721 | Used by:723 724 725 748 750 752 |
Symbol 723 MovieClip | Uses:720 722 | Used by:734 735 743 |
Symbol 724 MovieClip | Uses:720 722 | Used by:743 |
Symbol 725 MovieClip | Uses:720 722 | Used by:743 |
Symbol 726 Graphic | Used by:727 | |
Symbol 727 MovieClip | Uses:726 | Used by:735 |
Symbol 728 Graphic | Used by:729 | |
Symbol 729 MovieClip | Uses:728 | Used by:734 735 |
Symbol 730 Graphic | Used by:734 | |
Symbol 731 Graphic | Used by:734 | |
Symbol 732 Graphic | Used by:734 | |
Symbol 733 Graphic | Used by:734 | |
Symbol 734 MovieClip | Uses:729 723 730 731 732 733 | Used by:735 |
Symbol 735 MovieClip | Uses:727 723 729 734 | Used by:743 |
Symbol 736 Graphic | Used by:742 | |
Symbol 737 Graphic | Used by:742 | |
Symbol 738 Graphic | Used by:742 | |
Symbol 739 Graphic | Used by:742 | |
Symbol 740 Graphic | Used by:742 | |
Symbol 741 Graphic | Used by:742 | |
Symbol 742 MovieClip | Uses:736 737 738 739 740 741 | Used by:743 |
Symbol 743 MovieClip [enemy7] | Uses:723 273 724 725 735 742 | Used by:Timeline |
Symbol 744 Graphic | Used by:745 | |
Symbol 745 MovieClip | Uses:744 | Used by:746 |
Symbol 746 MovieClip [b] | Uses:745 | Used by:Timeline |
Symbol 747 Graphic | Used by:748 | |
Symbol 748 MovieClip [clock1] | Uses:747 722 | Used by:Timeline |
Symbol 749 Graphic | Used by:750 | |
Symbol 750 MovieClip [clock2] | Uses:749 722 | Used by:Timeline |
Symbol 751 Graphic | Used by:752 | |
Symbol 752 MovieClip [clock3] | Uses:751 722 | Used by:Timeline |
Symbol 753 Graphic | Used by:754 | |
Symbol 754 MovieClip | Uses:753 | Used by:758 761 765 772 778 783 786 790 794 798 |
Symbol 755 Graphic | Used by:758 | |
Symbol 756 Graphic | Used by:757 | |
Symbol 757 MovieClip | Uses:756 | Used by:758 761 772 778 790 798 |
Symbol 758 MovieClip | Uses:754 755 757 | Used by:821 |
Symbol 759 MovieClip | Uses:272 | Used by:821 |
Symbol 760 Graphic | Used by:761 | |
Symbol 761 MovieClip | Uses:760 757 754 | Used by:821 |
Symbol 762 Graphic | Used by:763 | |
Symbol 763 MovieClip | Uses:762 | Used by:765 783 786 790 794 |
Symbol 764 Graphic | Used by:765 | |
Symbol 765 MovieClip | Uses:763 754 764 | Used by:821 833 |
Symbol 766 MovieClip | Uses:488 | Used by:772 786 798 |
Symbol 767 Button | Uses:490 | Used by:772 786 798 |
Symbol 768 Graphic | Used by:769 | |
Symbol 769 MovieClip | Uses:768 | Used by:772 778 786 790 798 831 |
Symbol 770 Graphic | Used by:771 | |
Symbol 771 MovieClip | Uses:770 | Used by:772 786 798 |
Symbol 772 MovieClip | Uses:754 766 767 769 771 757 | Used by:821 |
Symbol 773 Graphic | Used by:774 | |
Symbol 774 MovieClip | Uses:773 | Used by:778 783 790 794 831 |
Symbol 775 MovieClip | Uses:499 | Used by:778 783 790 794 831 |
Symbol 776 Graphic | Used by:777 | |
Symbol 777 MovieClip | Uses:776 | Used by:778 790 831 |
Symbol 778 MovieClip | Uses:774 769 775 757 754 777 | Used by:821 |
Symbol 779 Graphic | Used by:780 791 | |
Symbol 780 MovieClip | Uses:779 | Used by:783 |
Symbol 781 Graphic | Used by:782 792 | |
Symbol 782 MovieClip | Uses:781 | Used by:783 |
Symbol 783 MovieClip | Uses:763 775 754 780 774 782 | Used by:821 833 |
Symbol 784 MovieClip | Uses:272 | Used by:786 |
Symbol 785 Graphic | Used by:786 | |
Symbol 786 MovieClip | Uses:763 766 767 769 771 754 784 510 785 512 513 514 | Used by:821 |
Symbol 787 MovieClip | Uses:272 | Used by:790 |
Symbol 788 Graphic | Used by:790 | |
Symbol 789 Graphic | Used by:790 | |
Symbol 790 MovieClip | Uses:774 769 775 757 777 754 450 451 787 788 453 454 455 763 456 457 789 459 460 461 | Used by:821 |
Symbol 791 Button | Uses:779 | Used by:794 |
Symbol 792 Button | Uses:781 | Used by:794 |
Symbol 793 MovieClip | Uses:272 | Used by:794 |
Symbol 794 MovieClip | Uses:763 775 754 791 774 792 793 443 444 445 446 447 448 | Used by:821 |
Symbol 795 MovieClip | Uses:272 | Used by:798 |
Symbol 796 Graphic | Used by:798 | |
Symbol 797 Graphic | Used by:798 | |
Symbol 798 MovieClip | Uses:754 766 767 769 771 757 795 796 797 435 436 437 | Used by:821 |
Symbol 799 MovieClip | Uses:497 | Used by:809 |
Symbol 800 Graphic | Used by:801 | |
Symbol 801 MovieClip | Uses:800 | Used by:809 814 |
Symbol 802 MovieClip | Uses:499 | Used by:809 |
Symbol 803 Graphic | Used by:804 | |
Symbol 804 MovieClip | Uses:803 | Used by:809 814 |
Symbol 805 Graphic | Used by:806 | |
Symbol 806 MovieClip | Uses:805 | Used by:809 814 |
Symbol 807 Graphic | Used by:808 | |
Symbol 808 MovieClip | Uses:807 | Used by:809 |
Symbol 809 MovieClip | Uses:799 801 802 804 806 808 | Used by:821 |
Symbol 810 MovieClip | Uses:488 | Used by:814 |
Symbol 811 MovieClip | Uses:490 | Used by:814 |
Symbol 812 Graphic | Used by:813 | |
Symbol 813 MovieClip | Uses:812 | Used by:814 |
Symbol 814 MovieClip | Uses:806 810 811 801 813 804 | Used by:821 |
Symbol 815 Graphic | Used by:820 | |
Symbol 816 Graphic | Used by:820 | |
Symbol 817 Graphic | Used by:820 | |
Symbol 818 Graphic | Used by:820 | |
Symbol 819 Graphic | Used by:820 | |
Symbol 820 MovieClip | Uses:815 545 816 817 818 819 | Used by:821 |
Symbol 821 MovieClip [hero] | Uses:758 759 761 765 772 778 783 786 790 794 798 809 814 820 | Used by:Timeline |
Symbol 822 Graphic | Used by:833 | |
Symbol 823 Graphic | Used by:824 | |
Symbol 824 MovieClip | Uses:823 | Used by:827 |
Symbol 825 Graphic | Used by:826 | |
Symbol 826 MovieClip | Uses:825 | Used by:827 |
Symbol 827 MovieClip | Uses:824 826 | Used by:833 987 |
Symbol 828 Graphic | Used by:833 | |
Symbol 829 Graphic | Used by:833 | |
Symbol 830 Graphic | Used by:833 | |
Symbol 831 MovieClip | Uses:774 769 777 775 | Used by:833 |
Symbol 832 Graphic | Used by:833 | |
Symbol 833 MovieClip [blamsword] | Uses:607 822 827 828 783 765 829 830 831 832 | Used by:Timeline |
Symbol 834 Graphic | Used by:835 | |
Symbol 835 MovieClip [badge0] | Uses:834 | Used by:Timeline |
Symbol 836 Graphic | Used by:851 | |
Symbol 837 Graphic | Used by:838 | |
Symbol 838 MovieClip | Uses:837 | Used by:851 869 883 893 896 |
Symbol 839 Graphic | Used by:840 | |
Symbol 840 MovieClip | Uses:839 | Used by:851 869 883 893 896 |
Symbol 841 Graphic | Used by:842 | |
Symbol 842 MovieClip | Uses:841 | Used by:851 869 883 893 896 |
Symbol 843 Graphic | Used by:844 | |
Symbol 844 MovieClip | Uses:843 | Used by:851 869 883 893 896 |
Symbol 845 Graphic | Used by:846 860 | |
Symbol 846 MovieClip | Uses:845 | Used by:851 869 883 893 896 |
Symbol 847 Graphic | Used by:848 861 | |
Symbol 848 MovieClip | Uses:847 | Used by:851 883 893 896 |
Symbol 849 Graphic | Used by:850 | |
Symbol 850 MovieClip | Uses:849 | Used by:851 869 883 893 896 |
Symbol 851 MovieClip | Uses:836 838 840 842 844 846 848 850 | Used by:897 |
Symbol 852 Graphic | Used by:853 | |
Symbol 853 MovieClip | Uses:852 | Used by:865 871 883 893 |
Symbol 854 Graphic | Used by:855 | |
Symbol 855 MovieClip | Uses:854 | Used by:865 871 883 893 |
Symbol 856 Graphic | Used by:857 | |
Symbol 857 MovieClip | Uses:856 | Used by:865 871 883 893 |
Symbol 858 Graphic | Used by:859 | |
Symbol 859 MovieClip | Uses:858 | Used by:865 871 883 893 |
Symbol 860 MovieClip | Uses:845 | Used by:865 871 883 893 |
Symbol 861 MovieClip | Uses:847 | Used by:865 883 893 |
Symbol 862 Graphic | Used by:863 | |
Symbol 863 MovieClip | Uses:862 | Used by:865 871 883 893 |
Symbol 864 Graphic | Used by:865 | |
Symbol 865 MovieClip | Uses:853 855 857 859 860 861 863 864 | Used by:897 |
Symbol 866 Graphic | Used by:867 870 | |
Symbol 867 MovieClip | Uses:866 | Used by:869 896 |
Symbol 868 Graphic | Used by:869 871 883 893 896 | |
Symbol 869 MovieClip | Uses:867 868 838 840 846 842 850 844 | Used by:897 |
Symbol 870 MovieClip | Uses:866 | Used by:871 |
Symbol 871 MovieClip | Uses:870 859 857 853 855 860 863 868 | Used by:897 |
Symbol 872 Graphic | Used by:883 893 | |
Symbol 873 Graphic | Used by:883 | |
Symbol 874 Graphic | Used by:883 | |
Symbol 875 Graphic | Used by:883 | |
Symbol 876 Graphic | Used by:883 893 | |
Symbol 877 Graphic | Used by:883 | |
Symbol 878 Graphic | Used by:883 | |
Symbol 879 Graphic | Used by:883 | |
Symbol 880 Graphic | Used by:883 | |
Symbol 881 Graphic | Used by:883 | |
Symbol 882 Graphic | Used by:883 | |
Symbol 883 MovieClip | Uses:868 838 840 842 872 846 848 850 844 873 874 875 876 877 859 853 855 878 860 879 857 863 880 881 882 861 | Used by:897 |
Symbol 884 Graphic | Used by:893 | |
Symbol 885 Graphic | Used by:893 | |
Symbol 886 Graphic | Used by:893 | |
Symbol 887 Graphic | Used by:893 | |
Symbol 888 Graphic | Used by:893 | |
Symbol 889 Graphic | Used by:893 | |
Symbol 890 Graphic | Used by:893 | |
Symbol 891 Graphic | Used by:893 | |
Symbol 892 Graphic | Used by:893 | |
Symbol 893 MovieClip | Uses:859 863 853 855 884 860 861 857 868 885 886 887 888 876 838 840 842 872 846 889 844 890 850 891 892 848 | Used by:897 |
Symbol 894 Graphic | Used by:896 | |
Symbol 895 ShapeTweening | Used by:896 | |
Symbol 896 MovieClip | Uses:868 838 840 842 894 846 848 844 850 867 895 38 | Used by:897 |
Symbol 897 MovieClip [enemy6] | Uses:273 851 865 869 871 883 893 896 | Used by:Timeline |
Symbol 898 Graphic | Used by:902 | |
Symbol 899 Graphic | Used by:902 | |
Symbol 900 Graphic | Used by:902 | |
Symbol 901 Graphic | Used by:902 | |
Symbol 902 MovieClip [swordspin] | Uses:898 899 900 901 | Used by:Timeline |
Symbol 903 Bitmap | Used by:904 | |
Symbol 904 Graphic | Uses:903 | Used by:905 |
Symbol 905 MovieClip | Uses:904 | Used by:906 |
Symbol 906 MovieClip | Uses:905 | Used by:907 |
Symbol 907 MovieClip | Uses:906 | Used by:931 973 Timeline |
Symbol 908 Graphic | Used by:916 | |
Symbol 909 Graphic | Used by:915 | |
Symbol 910 Graphic | Used by:911 | |
Symbol 911 MovieClip | Uses:910 | Used by:914 |
Symbol 912 Graphic | Used by:913 | |
Symbol 913 MovieClip | Uses:912 | Used by:914 |
Symbol 914 MovieClip | Uses:911 913 | Used by:915 |
Symbol 915 MovieClip | Uses:909 914 | Used by:916 |
Symbol 916 MovieClip | Uses:908 915 | Used by:931 973 |
Symbol 917 Graphic | Used by:918 | |
Symbol 918 MovieClip | Uses:917 | Used by:931 |
Symbol 919 Graphic | Used by:920 | |
Symbol 920 MovieClip | Uses:919 | Used by:931 |
Symbol 921 Graphic | Used by:922 | |
Symbol 922 MovieClip | Uses:921 | Used by:931 |
Symbol 923 Graphic | Used by:924 | |
Symbol 924 MovieClip | Uses:923 | Used by:931 |
Symbol 925 Graphic | Used by:926 | |
Symbol 926 MovieClip | Uses:925 | Used by:931 |
Symbol 927 Graphic | Used by:928 | |
Symbol 928 MovieClip | Uses:927 | Used by:931 |
Symbol 929 Graphic | Used by:930 | |
Symbol 930 MovieClip | Uses:929 | Used by:931 |
Symbol 931 MovieClip [end] | Uses:272 907 916 918 567 920 922 924 926 928 930 | Used by:Timeline |
Symbol 932 Graphic | Used by:933 | |
Symbol 933 MovieClip | Uses:932 | Used by:973 |
Symbol 934 Graphic | Used by:937 | |
Symbol 935 Graphic | Used by:936 | |
Symbol 936 MovieClip | Uses:935 | Used by:937 |
Symbol 937 MovieClip | Uses:934 936 | Used by:973 |
Symbol 938 Graphic | Used by:939 | |
Symbol 939 MovieClip | Uses:938 | Used by:973 |
Symbol 940 Graphic | Used by:950 | |
Symbol 941 Graphic | Used by:942 | |
Symbol 942 MovieClip | Uses:941 | Used by:950 |
Symbol 943 Graphic | Used by:944 | |
Symbol 944 MovieClip | Uses:943 | Used by:950 |
Symbol 945 Graphic | Used by:946 | |
Symbol 946 MovieClip | Uses:945 | Used by:947 950 |
Symbol 947 MovieClip | Uses:225 946 | Used by:950 |
Symbol 948 Graphic | Used by:949 | |
Symbol 949 MovieClip | Uses:948 | Used by:950 |
Symbol 950 MovieClip | Uses:940 942 944 946 947 949 | Used by:973 |
Symbol 951 Graphic | Used by:952 | |
Symbol 952 MovieClip | Uses:951 | Used by:973 |
Symbol 953 Graphic | Used by:958 | |
Symbol 954 Graphic | Used by:955 | |
Symbol 955 MovieClip | Uses:954 | Used by:958 |
Symbol 956 Graphic | Used by:957 | |
Symbol 957 MovieClip | Uses:956 | Used by:958 |
Symbol 958 MovieClip | Uses:953 955 957 | Used by:973 |
Symbol 959 Graphic | Used by:960 | |
Symbol 960 MovieClip | Uses:959 | Used by:973 |
Symbol 961 Graphic | Used by:970 | |
Symbol 962 Graphic | Used by:967 | |
Symbol 963 Graphic | Used by:964 | |
Symbol 964 MovieClip | Uses:963 | Used by:967 |
Symbol 965 Graphic | Used by:966 | |
Symbol 966 MovieClip | Uses:965 | Used by:967 |
Symbol 967 MovieClip | Uses:962 964 966 | Used by:970 |
Symbol 968 Graphic | Used by:969 | |
Symbol 969 MovieClip | Uses:968 | Used by:970 |
Symbol 970 MovieClip | Uses:961 967 969 | Used by:973 |
Symbol 971 Graphic | Used by:972 | |
Symbol 972 MovieClip | Uses:971 | Used by:973 |
Symbol 973 MovieClip [intro] | Uses:272 907 916 933 567 937 939 950 952 958 960 970 972 | Used by:Timeline |
Symbol 974 Sound [song1intro] | Used by:Timeline | |
Symbol 975 Sound [song3loop] | Used by:Timeline | |
Symbol 976 Sound [song2loop] | Used by:Timeline | |
Symbol 977 Sound [song4loop] | Used by:Timeline | |
Symbol 978 Sound [song1loop] | Used by:Timeline | |
Symbol 979 Sound [beep1] | Used by:Timeline | |
Symbol 980 Sound [song2intro] | Used by:Timeline | |
Symbol 981 MovieClip [song2] | Used by:Timeline | |
Symbol 982 MovieClip [song1] | Used by:Timeline | |
Symbol 983 MovieClip [song3] | Used by:Timeline | |
Symbol 984 MovieClip [song4] | Used by:Timeline | |
Symbol 985 Sound [beep2] | Used by:Timeline | |
Symbol 986 Graphic | Used by:987 | |
Symbol 987 MovieClip | Uses:986 827 | Used by:993 |
Symbol 988 Bitmap | Used by:989 | |
Symbol 989 Graphic | Uses:988 | Used by:992 |
Symbol 990 Graphic | Used by:992 | |
Symbol 991 Graphic | Used by:992 | |
Symbol 992 MovieClip | Uses:989 990 991 | Used by:993 |
Symbol 993 MovieClip | Uses:987 992 | Used by:Timeline |
Symbol 994 ShapeTweening | Used by:Timeline | |
Symbol 995 Graphic | Used by:Timeline | |
Symbol 996 Font | Used by:997 998 999 1000 1001 1002 1003 | |
Symbol 997 Text | Uses:996 | Used by:Timeline |
Symbol 998 Text | Uses:996 | Used by:Timeline |
Symbol 999 Text | Uses:996 | Used by:Timeline |
Symbol 1000 Text | Uses:996 | Used by:Timeline |
Symbol 1001 Text | Uses:996 | Used by:Timeline |
Symbol 1002 Text | Uses:996 | Used by:Timeline |
Symbol 1003 Text | Uses:996 | Used by:Timeline |
Symbol 1004 Graphic | Used by:Timeline | |
Symbol 1005 Graphic | Used by:Timeline | |
Symbol 1006 Graphic | Used by:1007 | |
Symbol 1007 MovieClip | Uses:1006 | Used by:Timeline |
Instance Names
"PDL" | Frame 1 | Symbol 182 MovieClip |
"new_mc" | Frame 9 | Symbol 714 MovieClip |
"continue_mc" | Frame 9 | Symbol 714 MovieClip |
"howtoplay_mc" | Frame 9 | Symbol 714 MovieClip |
"playmoregames_mc" | Frame 9 | Symbol 714 MovieClip |
"next_mc" | Frame 23 | Symbol 714 MovieClip |
"back_mc" | Frame 23 | Symbol 714 MovieClip |
"pause_mc" | Frame 30 | Symbol 714 MovieClip |
"music_mc" | Frame 30 | Symbol 714 MovieClip |
"quit_mc" | Frame 30 | Symbol 714 MovieClip |
"mask_mc" | Frame 30 | Symbol 1007 MovieClip |
"name_txt" | Symbol 18 MovieClip Frame 1 | Symbol 16 EditableText |
"desc_txt" | Symbol 18 MovieClip Frame 1 | Symbol 17 EditableText |
"txt_mc" | Symbol 22 MovieClip [messageBoss] Frame 1 | Symbol 18 MovieClip |
"room1" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room2" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room3" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room4" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room5" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room6" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room8" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room9" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room10" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room12" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room7" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room11" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room13" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room15" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room16" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room17" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room19" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room14" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room18" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room20" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room22" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room23" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room24" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room26" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room21" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room25" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room27" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room29" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room30" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room31" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room33" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room28" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room32" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room34" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room36" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room37" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room38" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room40" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room35" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room39" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room41" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room43" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room44" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room45" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room47" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room42" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room46" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room48" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room50" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room51" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room52" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room54" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room49" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room53" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room55" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room57" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room58" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room59" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room61" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room56" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"room60" | Symbol 30 MovieClip [map_over] Frame 1 | Symbol 29 MovieClip |
"ng_ad" | Symbol 182 MovieClip Frame 1 | Symbol 65 MovieClip |
"hitbox" | Symbol 337 MovieClip [enemy3] Frame 1 | Symbol 273 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 1 | Symbol 294 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 2 | Symbol 307 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 4 | Symbol 314 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 5 | Symbol 319 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 6 | Symbol 328 MovieClip |
"clip" | Symbol 337 MovieClip [enemy3] Frame 7 | Symbol 336 MovieClip |
"hitbox" | Symbol 385 MovieClip [enemy4] Frame 1 | Symbol 273 MovieClip |
"hitbox" | Symbol 471 MovieClip [enemy5] Frame 1 | Symbol 273 MovieClip |
"hitbox" | Symbol 471 MovieClip [enemy5] Frame 10 | Symbol 273 MovieClip |
"sword" | Symbol 515 MovieClip Frame 5 | Symbol 509 MovieClip |
"sword" | Symbol 519 MovieClip Frame 4 | Symbol 516 MovieClip |
"sword" | Symbol 523 MovieClip Frame 5 | Symbol 522 MovieClip |
"sword" | Symbol 527 MovieClip Frame 5 | Symbol 524 MovieClip |
"hitbox" | Symbol 551 MovieClip [hero2] Frame 1 | Symbol 481 MovieClip |
"hero" | Symbol 551 MovieClip [hero2] Frame 9 | Symbol 515 MovieClip |
"hero" | Symbol 551 MovieClip [hero2] Frame 10 | Symbol 519 MovieClip |
"hero" | Symbol 551 MovieClip [hero2] Frame 11 | Symbol 523 MovieClip |
"hero" | Symbol 551 MovieClip [hero2] Frame 12 | Symbol 527 MovieClip |
"room1" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room2" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room10" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room3" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room4" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room7" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room6" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room8" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room21" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room14" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room13" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room15" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room19" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room17" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room18" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room9" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room5" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room11" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room12" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room20" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room16" | Symbol 558 MovieClip [map_d1] Frame 1 | Symbol 29 MovieClip |
"room4" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room1" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room12" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room5" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room2" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room13" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room6" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room3" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room14" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room10" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room21" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room18" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room11" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room20" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room19" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room22" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room7" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room8" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room9" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room15" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room16" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room17" | Symbol 559 MovieClip [map_d2] Frame 1 | Symbol 29 MovieClip |
"room1" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room2" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room3" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room4" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room5" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room6" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room7" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room8" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room9" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room10" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room11" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room12" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room13" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room14" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room15" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room16" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room17" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room18" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room19" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room20" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"room21" | Symbol 561 MovieClip [map_d3] Frame 1 | Symbol 29 MovieClip |
"text_txt" | Symbol 569 MovieClip [message] Frame 1 | Symbol 564 EditableText |
"continue_mc" | Symbol 569 MovieClip [message] Frame 1 | Symbol 567 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 7 | Symbol 580 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 15 | Symbol 591 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 19 | Symbol 595 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 37 | Symbol 617 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 38 | Symbol 620 MovieClip |
"tile" | Symbol 678 MovieClip [tile] Frame 47 | Symbol 662 MovieClip |
"name_txt" | Symbol 714 MovieClip Frame 1 | Symbol 713 EditableText |
"bg_mc" | Symbol 716 MovieClip [gameover] Frame 1 | Symbol 687 MovieClip |
"continue_mc" | Symbol 716 MovieClip [gameover] Frame 69 | Symbol 714 MovieClip |
"quit_mc" | Symbol 716 MovieClip [gameover] Frame 69 | Symbol 714 MovieClip |
"hitbox" | Symbol 743 MovieClip [enemy7] Frame 1 | Symbol 273 MovieClip |
"sword" | Symbol 786 MovieClip Frame 5 | Symbol 784 MovieClip |
"sword" | Symbol 790 MovieClip Frame 4 | Symbol 787 MovieClip |
"sword" | Symbol 794 MovieClip Frame 5 | Symbol 793 MovieClip |
"sword" | Symbol 798 MovieClip Frame 5 | Symbol 795 MovieClip |
"hitbox" | Symbol 821 MovieClip [hero] Frame 1 | Symbol 759 MovieClip |
"hero" | Symbol 821 MovieClip [hero] Frame 9 | Symbol 786 MovieClip |
"hero" | Symbol 821 MovieClip [hero] Frame 10 | Symbol 790 MovieClip |
"hero" | Symbol 821 MovieClip [hero] Frame 11 | Symbol 794 MovieClip |
"hero" | Symbol 821 MovieClip [hero] Frame 12 | Symbol 798 MovieClip |
"hitbox" | Symbol 897 MovieClip [enemy6] Frame 1 | Symbol 273 MovieClip |
"img" | Symbol 931 MovieClip [end] Frame 1 | Symbol 916 MovieClip |
"img" | Symbol 973 MovieClip [intro] Frame 1 | Symbol 916 MovieClip |
"img" | Symbol 973 MovieClip [intro] Frame 26 | Symbol 937 MovieClip |
"img" | Symbol 973 MovieClip [intro] Frame 51 | Symbol 950 MovieClip |
"img" | Symbol 973 MovieClip [intro] Frame 76 | Symbol 958 MovieClip |
"img" | Symbol 973 MovieClip [intro] Frame 101 | Symbol 970 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "enemy3_cd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 13 as "enemy3_wave" |
ExportAssets (56) | Timeline Frame 1 | Symbol 22 as "messageBoss" |
ExportAssets (56) | Timeline Frame 1 | Symbol 30 as "map_over" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1008 as "__Packages.NewgroundsAPI" |
ExportAssets (56) | Timeline Frame 2 | Symbol 186 as "trophy3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 190 as "trophy4" |
ExportAssets (56) | Timeline Frame 2 | Symbol 192 as "badge1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 194 as "badge2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 196 as "badge3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 198 as "badge4" |
ExportAssets (56) | Timeline Frame 2 | Symbol 200 as "badge5" |
ExportAssets (56) | Timeline Frame 2 | Symbol 202 as "badge6" |
ExportAssets (56) | Timeline Frame 2 | Symbol 204 as "badge7" |
ExportAssets (56) | Timeline Frame 2 | Symbol 206 as "badge8" |
ExportAssets (56) | Timeline Frame 2 | Symbol 208 as "badge9" |
ExportAssets (56) | Timeline Frame 2 | Symbol 210 as "badge10" |
ExportAssets (56) | Timeline Frame 2 | Symbol 212 as "badge11" |
ExportAssets (56) | Timeline Frame 2 | Symbol 214 as "badge12" |
ExportAssets (56) | Timeline Frame 2 | Symbol 216 as "badge13" |
ExportAssets (56) | Timeline Frame 2 | Symbol 218 as "badge14" |
ExportAssets (56) | Timeline Frame 2 | Symbol 220 as "badge15" |
ExportAssets (56) | Timeline Frame 2 | Symbol 260 as "enemy1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 271 as "enemy2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 337 as "enemy3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 385 as "enemy4" |
ExportAssets (56) | Timeline Frame 2 | Symbol 471 as "enemy5" |
ExportAssets (56) | Timeline Frame 2 | Symbol 474 as "heart" |
ExportAssets (56) | Timeline Frame 2 | Symbol 551 as "hero2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 553 as "key" |
ExportAssets (56) | Timeline Frame 2 | Symbol 555 as "bluekey" |
ExportAssets (56) | Timeline Frame 2 | Symbol 558 as "map_d1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 559 as "map_d2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 561 as "map_d3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 569 as "message" |
ExportAssets (56) | Timeline Frame 2 | Symbol 678 as "tile" |
ExportAssets (56) | Timeline Frame 2 | Symbol 682 as "trophy1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 686 as "trophy2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 716 as "gameover" |
ExportAssets (56) | Timeline Frame 2 | Symbol 743 as "enemy7" |
ExportAssets (56) | Timeline Frame 2 | Symbol 746 as "b" |
ExportAssets (56) | Timeline Frame 2 | Symbol 748 as "clock1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 750 as "clock2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 752 as "clock3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 821 as "hero" |
ExportAssets (56) | Timeline Frame 2 | Symbol 833 as "blamsword" |
ExportAssets (56) | Timeline Frame 2 | Symbol 835 as "badge0" |
ExportAssets (56) | Timeline Frame 2 | Symbol 897 as "enemy6" |
ExportAssets (56) | Timeline Frame 2 | Symbol 902 as "swordspin" |
ExportAssets (56) | Timeline Frame 2 | Symbol 931 as "end" |
ExportAssets (56) | Timeline Frame 2 | Symbol 973 as "intro" |
ExportAssets (56) | Timeline Frame 2 | Symbol 974 as "song1intro" |
ExportAssets (56) | Timeline Frame 2 | Symbol 975 as "song3loop" |
ExportAssets (56) | Timeline Frame 3 | Symbol 976 as "song2loop" |
ExportAssets (56) | Timeline Frame 3 | Symbol 977 as "song4loop" |
ExportAssets (56) | Timeline Frame 4 | Symbol 978 as "song1loop" |
ExportAssets (56) | Timeline Frame 5 | Symbol 979 as "beep1" |
ExportAssets (56) | Timeline Frame 6 | Symbol 980 as "song2intro" |
ExportAssets (56) | Timeline Frame 7 | Symbol 981 as "song2" |
ExportAssets (56) | Timeline Frame 7 | Symbol 982 as "song1" |
ExportAssets (56) | Timeline Frame 7 | Symbol 983 as "song3" |
ExportAssets (56) | Timeline Frame 7 | Symbol 984 as "song4" |
ExportAssets (56) | Timeline Frame 7 | Symbol 985 as "beep2" |
Labels
"preloader" | Frame 1 |
"menu" | Frame 9 |
"howtoplay" | Frame 23 |
"overworld" | Frame 30 |
"dungeon1" | Frame 37 |
"dungeon2" | Frame 44 |
"dungeon3" | Frame 51 |
"dungeon4" | Frame 58 |
"dungeon5" | Frame 65 |
"scene" | Frame 72 |
"walkleft" | Symbol 260 MovieClip [enemy1] Frame 1 |
"walkdown" | Symbol 260 MovieClip [enemy1] Frame 2 |
"walkup" | Symbol 260 MovieClip [enemy1] Frame 3 |
"walkright" | Symbol 260 MovieClip [enemy1] Frame 4 |
"dieleft" | Symbol 260 MovieClip [enemy1] Frame 5 |
"diedown" | Symbol 260 MovieClip [enemy1] Frame 6 |
"dieup" | Symbol 260 MovieClip [enemy1] Frame 7 |
"dieright" | Symbol 260 MovieClip [enemy1] Frame 8 |
"walkleft" | Symbol 271 MovieClip [enemy2] Frame 1 |
"walkdown" | Symbol 271 MovieClip [enemy2] Frame 2 |
"walkup" | Symbol 271 MovieClip [enemy2] Frame 3 |
"walkright" | Symbol 271 MovieClip [enemy2] Frame 4 |
"dieleft" | Symbol 271 MovieClip [enemy2] Frame 5 |
"diedown" | Symbol 271 MovieClip [enemy2] Frame 6 |
"dieup" | Symbol 271 MovieClip [enemy2] Frame 7 |
"dieright" | Symbol 271 MovieClip [enemy2] Frame 8 |
"walkdown" | Symbol 337 MovieClip [enemy3] Frame 1 |
"walkleft" | Symbol 337 MovieClip [enemy3] Frame 2 |
"walkright" | Symbol 337 MovieClip [enemy3] Frame 3 |
"walkup" | Symbol 337 MovieClip [enemy3] Frame 4 |
"attack1" | Symbol 337 MovieClip [enemy3] Frame 5 |
"attack2" | Symbol 337 MovieClip [enemy3] Frame 6 |
"die" | Symbol 337 MovieClip [enemy3] Frame 7 |
"idle" | Symbol 385 MovieClip [enemy4] Frame 1 |
"walkleft" | Symbol 385 MovieClip [enemy4] Frame 2 |
"walkright" | Symbol 385 MovieClip [enemy4] Frame 3 |
"walkup" | Symbol 385 MovieClip [enemy4] Frame 4 |
"walkdown" | Symbol 385 MovieClip [enemy4] Frame 5 |
"spin" | Symbol 385 MovieClip [enemy4] Frame 6 |
"bargeleft" | Symbol 385 MovieClip [enemy4] Frame 7 |
"bargeright" | Symbol 385 MovieClip [enemy4] Frame 8 |
"dizzy" | Symbol 385 MovieClip [enemy4] Frame 9 |
"die" | Symbol 385 MovieClip [enemy4] Frame 10 |
"idledown" | Symbol 471 MovieClip [enemy5] Frame 1 |
"walkleft" | Symbol 471 MovieClip [enemy5] Frame 2 |
"walkright" | Symbol 471 MovieClip [enemy5] Frame 3 |
"walkup" | Symbol 471 MovieClip [enemy5] Frame 4 |
"walkdown" | Symbol 471 MovieClip [enemy5] Frame 5 |
"idleleft" | Symbol 471 MovieClip [enemy5] Frame 6 |
"idleright" | Symbol 471 MovieClip [enemy5] Frame 7 |
"idleup" | Symbol 471 MovieClip [enemy5] Frame 8 |
"dizzy" | Symbol 471 MovieClip [enemy5] Frame 9 |
"attackleft" | Symbol 471 MovieClip [enemy5] Frame 10 |
"attackright" | Symbol 471 MovieClip [enemy5] Frame 11 |
"attackup" | Symbol 471 MovieClip [enemy5] Frame 12 |
"attackdown" | Symbol 471 MovieClip [enemy5] Frame 13 |
"run1" | Symbol 471 MovieClip [enemy5] Frame 14 |
"run2" | Symbol 471 MovieClip [enemy5] Frame 15 |
"die" | Symbol 471 MovieClip [enemy5] Frame 16 |
"empty" | Symbol 474 MovieClip [heart] Frame 1 |
"full" | Symbol 474 MovieClip [heart] Frame 2 |
"idleleft" | Symbol 551 MovieClip [hero2] Frame 1 |
"idledown" | Symbol 551 MovieClip [hero2] Frame 2 |
"idleup" | Symbol 551 MovieClip [hero2] Frame 3 |
"idleright" | Symbol 551 MovieClip [hero2] Frame 4 |
"walkleft" | Symbol 551 MovieClip [hero2] Frame 5 |
"walkdown" | Symbol 551 MovieClip [hero2] Frame 6 |
"walkup" | Symbol 551 MovieClip [hero2] Frame 7 |
"walkright" | Symbol 551 MovieClip [hero2] Frame 8 |
"attackleft" | Symbol 551 MovieClip [hero2] Frame 9 |
"attackdown" | Symbol 551 MovieClip [hero2] Frame 10 |
"attackup" | Symbol 551 MovieClip [hero2] Frame 11 |
"attackright" | Symbol 551 MovieClip [hero2] Frame 12 |
"diedown" | Symbol 551 MovieClip [hero2] Frame 13 |
"dieright" | Symbol 551 MovieClip [hero2] Frame 14 |
"dieleft" | Symbol 551 MovieClip [hero2] Frame 15 |
"dieup" | Symbol 551 MovieClip [hero2] Frame 16 |
"idle" | Symbol 743 MovieClip [enemy7] Frame 1 |
"b" | Symbol 743 MovieClip [enemy7] Frame 2 |
"summon" | Symbol 743 MovieClip [enemy7] Frame 3 |
"jam" | Symbol 743 MovieClip [enemy7] Frame 4 |
"die" | Symbol 743 MovieClip [enemy7] Frame 5 |
"idleleft" | Symbol 821 MovieClip [hero] Frame 1 |
"idledown" | Symbol 821 MovieClip [hero] Frame 2 |
"idleup" | Symbol 821 MovieClip [hero] Frame 3 |
"idleright" | Symbol 821 MovieClip [hero] Frame 4 |
"walkleft" | Symbol 821 MovieClip [hero] Frame 5 |
"walkdown" | Symbol 821 MovieClip [hero] Frame 6 |
"walkup" | Symbol 821 MovieClip [hero] Frame 7 |
"walkright" | Symbol 821 MovieClip [hero] Frame 8 |
"attackleft" | Symbol 821 MovieClip [hero] Frame 9 |
"attackdown" | Symbol 821 MovieClip [hero] Frame 10 |
"attackup" | Symbol 821 MovieClip [hero] Frame 11 |
"attackright" | Symbol 821 MovieClip [hero] Frame 12 |
"diedown" | Symbol 821 MovieClip [hero] Frame 13 |
"dieright" | Symbol 821 MovieClip [hero] Frame 14 |
"dieleft" | Symbol 821 MovieClip [hero] Frame 15 |
"dieup" | Symbol 821 MovieClip [hero] Frame 16 |
"idledown" | Symbol 897 MovieClip [enemy6] Frame 1 |
"idleup" | Symbol 897 MovieClip [enemy6] Frame 2 |
"attackdown" | Symbol 897 MovieClip [enemy6] Frame 3 |
"attackup" | Symbol 897 MovieClip [enemy6] Frame 4 |
"boomerangdown" | Symbol 897 MovieClip [enemy6] Frame 5 |
"boomerangup" | Symbol 897 MovieClip [enemy6] Frame 6 |
"summon" | Symbol 897 MovieClip [enemy6] Frame 7 |
|