STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228130
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/96875784?noj=FRM96875784-15DC" width="1" height="1"></div>

Hello Kitty Bees In My Garden.swf

This is the info page for
Flash #23524

(Click the ID number above for more basic data on this flash file.)


Text
Bees in my Garden

copyright c1976, 2005 SANRIO CO., LTD.

START

START

INSTRUCTIONS

INSTRUCTIONS

GAME INSTRUCTION

<p align="left"></p>

copyright 1976, 2005 SANRIO CO., LTD.

Lives

WELL DONE

Go to Level 2

Go to Level 2

Go to Level 2

Go to Level 3

Go to Level 3

Go to Level 3

Go to Level 4

Go to Level 4

Go to Level 4

Goto Level 2

Go to Level 5

Go to Level 5

Go to Level 5

Go to Level 6

Go to Level 6

Go to Level 6

Go to Level 7

Go to Level 7

Go to Level 7

Go to Level 8

Go to Level 8

Go to Level 8

Game Over

Play Again

Play Again

Play Again

CONGRATULATION!

http://www.dreamcortex.com

Play again

Main Menu

Mani  Menu

Copyright © 2004 Dream Cortex.
All Rights Reserved.

ActionScript [AS1/AS2]

Frame 1
function buildMap(map) { _root.attachMovie("empty", "tiles", ++d); game.clip = _root.tiles; game.clip._x = gameInitial_x; game.clip._y = gameInitial_y; var mapWidth = map[0].length; var mapHeight = map.length; var i = 0; while (i < mapHeight) { var j = 0; while (j < mapWidth) { var name = ((("t_" + i) + "_") + j); game[name] = new game["Tile" + map[i][j]](); game.clip.attachMovie("tile", name, (i * 100) + (j * 2)); game.clip[name]._x = j * game.tileW; game.clip[name]._y = i * game.tileH; game.clip[name].gotoAndStop(game[name].frame); j++; } i++; } game.items = myItems; var i = 0; while (i < game.items.length) { var name = ((("item" + game.items[i][2]) + "_") + game.items[i][1]); game[name] = new game["Item" + game.items[i][0]](); game[name].position = i; game.clip.attachMovie("item", name, 10001 + i); game[name].clip = game.clip[name]; game[name].clip._x = (game.items[i][1] * game.tileW) + (game.tileW / 2); game[name].clip._y = (game.items[i][2] * game.tileH) + (game.tileH / 2); game[name].clip.gotoAndStop(game.items[i][0]); i++; } _root.points = game.points; var enemies = myEnemies; game.currentEnemies = enemies.length; var i = 0; while (i < game.currentEnemies) { var name = ("enemy" + i); game[name] = new game["Enemyp" + enemies[i][0]](); game.clip.attachMovie("enemy1", name, 10012 + i); game[name].clip = game.clip[name]; game[name].xtile = enemies[i][1]; game[name].ytile = enemies[i][2]; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; i++; } game.clip.attachMovie("char", "char", 1000); char.clip = game.clip.char; char.x = (char.xtile * game.tileW) + (game.tileW / 2); char.y = (char.ytile * game.tileH) + (game.tileH / 2); char.width = char.clip._width / 2; char.height = char.clip._height / 2; char.clip._x = char.x; char.clip._y = char.y; } function enemyBrain() { var i = 0; while (i < 5) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; mylifes.gotoAndStop(_root.lifes); if (lifes == 0) { removeMovieClip(_root.tiles); _root.gotoAndStop(35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function starting_point() { char.x = (startingXtile * game.tileW) + (game.tileW / 2); char.y = (startingYtile * game.tileH) + (game.tileH / 2); char.clip._x = char.x; char.clip._y = char.y; } function detectKeys() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoAndStop(1); } else { ob.clip.mychar.play(); } enemyBrain(); } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoAndStop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = true; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; if ((game.points = true)) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoAndStop(4); game.Tile2.prototype.walkable = true; } } if (((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) && (_root.unlock)) { removeMovieClip(_root.tiles); _root.unlock = false; _root.nextFrame(); } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } gameInitial_x = 75; gameInitial_y = 106; hurt = false; unlock = false; lifes = 4; infiniteLife = false; stop(); var tempLv = 0;
Frame 2
fscommand ("allowscale", true); myMap1 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 1, 1, 1, 1, 1, 1, 5, 5], [5, 5, 1, 0, 0, 1, 0, 1, 5, 5], [5, 5, 1, 0, 0, 0, 2, 1, 5, 5], [5, 5, 1, 0, 0, 1, 0, 1, 5, 5], [5, 5, 1, 1, 1, 1, 1, 1, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 4; unlockX = 6; char = {xtile:3, ytile:4, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; myEnemies = [[1, 4, 4]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 0; game.Enemyp1.prototype.yMove = -1; game.Enemyp1.prototype.speed = 0.5; myItems = [[1, 3, 3]]; game.Item1 = function () { }; game.Item1.prototype.points = false; unlock = true; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 2
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys(); } }
Frame 3
stop();
Frame 4
fscommand ("allowscale", true); myMap1 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 1, 0, 1, 2, 0, 1, 0, 1, 5], [5, 1, 0, 0, 0, 0, 0, 0, 1, 5], [5, 1, 0, 1, 0, 0, 1, 0, 1, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 3; unlockX = 4; char = {xtile:2, ytile:4, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[2, 4, 5], [2, 7, 5]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 1; game.Enemyp1.prototype.yMove = 0; game.Enemyp1.prototype.speed = 1; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 0; game.Enemyp2.prototype.yMove = 1; game.Enemyp2.prototype.speed = 1; myItems = [[1, 7, 4]]; game.Item1 = function () { }; game.Item1.prototype.points = false; unlock = true; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 4
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys(); } }
Frame 5
stop();
Frame 6
fscommand ("allowscale", true); myMap1 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 1, 0, 1, 2, 0, 1, 0, 1, 5], [5, 1, 0, 0, 0, 0, 0, 0, 1, 5], [5, 1, 0, 1, 0, 0, 1, 0, 1, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 3; unlockX = 4; char = {xtile:2, ytile:4, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[2, 4, 5], [2, 5, 5], [2, 7, 5]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 1; game.Enemyp1.prototype.yMove = 0; game.Enemyp1.prototype.speed = 1; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 0; game.Enemyp2.prototype.yMove = 1; game.Enemyp2.prototype.speed = 1; myItems = [[1, 7, 4]]; game.Item1 = function () { }; game.Item1.prototype.points = false; unlock = true; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 6
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys(); } }
Frame 7
stop();
Frame 8
fscommand ("allowscale", true); myMap1 = [[1, 1, 5, 5, 5, 5, 5, 5, 1, 1], [1, 2, 1, 5, 5, 5, 5, 1, 0, 1], [1, 0, 1, 5, 5, 5, 5, 1, 0, 1], [1, 0, 0, 1, 1, 1, 1, 1, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [5, 1, 0, 0, 0, 0, 0, 0, 1, 5], [5, 5, 1, 0, 0, 1, 1, 1, 5, 5], [5, 5, 5, 1, 1, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 1; unlockX = 1; char = {xtile:8, ytile:1, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[1, 1, 4], [3, 1, 3], [2, 2, 5]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 1; game.Enemyp1.prototype.yMove = 0; game.Enemyp1.prototype.speed = 2; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 1; game.Enemyp2.prototype.yMove = 0; game.Enemyp2.prototype.speed = 1; game.Enemyp3 = function () { }; game.Enemyp3.prototype.xMove = 1; game.Enemyp3.prototype.yMove = 1; game.Enemyp3.prototype.speed = 1; myItems = [[1, 4, 6]]; game.Item1 = function () { }; game.Item1.prototype.points = false; unlock = true; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 8
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys(); } }
Frame 9
stop();
Frame 10
function buildMap(map) { function enemyBrain() { var i = 0; while (i < 5) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; mylifes.gotoAndStop(_root.lifes); if (_root.lifes == 0) { removeMovieClip(_root.tiles); _root.gotoAndStop(35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function detectKeys() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoAndStop(1); } else { ob.clip.mychar.play(); } enemyBrain(); } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoAndStop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = true; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; var name = "enemy3"; game[name] = new game.Enemyp3(); game.clip.attachMovie("enemy1", name, 10005); game[name].clip = game.clip[name]; game[name].xtile = 4; game[name].ytile = 2; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; if ((game.points = true)) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoAndStop(4); game.Tile2.prototype.walkable = true; } } if ((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) { removeMovieClip(_root.tiles); _root.gotoAndStop(11); } if ((_root.char.ytile == 4) && (_root.char.xtile == 4)) { var name = "enemy3"; game[name].xMove = 0; game[name].yMove = -1; game[name].speed = 0.5; } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } _root.attachMovie("empty", "tiles", ++d); game.clip = _root.tiles; game.clip._x = gameInitial_x; game.clip._y = gameInitial_y; var mapWidth = map[0].length; var mapHeight = map.length; var i = 0; while (i < mapHeight) { var j = 0; while (j < mapWidth) { var name = ((("t_" + i) + "_") + j); game[name] = new game["Tile" + map[i][j]](); game.clip.attachMovie("tile", name, (i * 100) + (j * 2)); game.clip[name]._x = j * game.tileW; game.clip[name]._y = i * game.tileH; game.clip[name].gotoAndStop(game[name].frame); j++; } i++; } game.items = myItems; var i = 0; while (i < game.items.length) { var name = ((("item" + game.items[i][2]) + "_") + game.items[i][1]); game[name] = new game["Item" + game.items[i][0]](); game[name].position = i; game.clip.attachMovie("item", name, 10001 + i); game[name].clip = game.clip[name]; game[name].clip._x = (game.items[i][1] * game.tileW) + (game.tileW / 2); game[name].clip._y = (game.items[i][2] * game.tileH) + (game.tileH / 2); game[name].clip.gotoAndStop(game.items[i][0]); i++; } var enemies = myEnemies; game.currentEnemies = enemies.length; var i = 0; while (i < game.currentEnemies) { var name = ("enemy" + i); game[name] = new game["Enemyp" + enemies[i][0]](); game.clip.attachMovie("enemy1", name, 10021 + i); game[name].clip = game.clip[name]; game[name].xtile = enemies[i][1]; game[name].ytile = enemies[i][2]; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; i++; } game.clip.attachMovie("char", "char", 1000); char.clip = game.clip.char; char.x = (char.xtile * game.tileW) + (game.tileW / 2); char.y = (char.ytile * game.tileH) + (game.tileH / 2); char.width = char.clip._width / 2; char.height = char.clip._height / 2; char.clip._x = char.x; char.clip._y = char.y; } function enemyBrain() { var i = 0; while (i < 5) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; mylifes.gotoAndStop(_root.lifes); if (_root.lifes == 0) { removeMovieClip(_root.tiles); _root.gotoAndStop(35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function detectKeys() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoAndStop(1); } else { ob.clip.mychar.play(); } enemyBrain(); } function moveChar(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoAndStop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = true; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; var name = "enemy3"; game[name] = new game.Enemyp3(); game.clip.attachMovie("enemy1", name, 10005); game[name].clip = game.clip[name]; game[name].xtile = 4; game[name].ytile = 2; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; if ((game.points = true)) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoAndStop(4); game.Tile2.prototype.walkable = true; } } if ((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) { removeMovieClip(_root.tiles); _root.gotoAndStop(11); } if ((_root.char.ytile == 4) && (_root.char.xtile == 4)) { var name = "enemy3"; game[name].xMove = 0; game[name].yMove = -1; game[name].speed = 0.5; } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } fscommand ("allowscale", true); myMap1 = [[5, 5, 5, 5, 1, 5, 5, 5, 5, 5], [5, 5, 5, 1, 2, 1, 5, 5, 5, 5], [5, 5, 1, 0, 0, 0, 1, 5, 5, 5], [5, 5, 5, 1, 0, 1, 1, 1, 1, 5], [5, 5, 1, 0, 0, 0, 0, 0, 0, 1], [5, 5, 5, 1, 0, 1, 1, 0, 1, 5], [5, 5, 5, 1, 0, 1, 5, 1, 5, 5], [5, 5, 1, 0, 0, 1, 5, 5, 5, 5], [5, 5, 5, 1, 1, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 1; unlockX = 4; char = {xtile:3, ytile:7, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoAndStop(_root.lifes); myEnemies = [[1, 3, 4], [2, 4, 2]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 1; game.Enemyp1.prototype.yMove = 0; game.Enemyp1.prototype.speed = 1; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 1; game.Enemyp2.prototype.yMove = 0; game.Enemyp2.prototype.speed = 1; game.Enemyp3 = function () { }; game.Enemyp3.prototype.xMove = 0; game.Enemyp3.prototype.yMove = 1; game.Enemyp3.prototype.speed = 1; myItems = [[1, 7, 5]]; game.Item1 = function () { }; game.Item1.prototype.points = false; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 10
onClipEvent (enterFrame) { if (!_root.hurt) { _parent.detectKeys(); } }
Frame 11
if (_root.tempLv == 8) { gotoAndStop (15); } else if (_root.tempLv == 9) { gotoAndStop (40); } stop();
Frame 12
function enemyBrain6() { var i = 0; while (i < 5) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar6(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; mylifes.gotoAndStop(_root.lifes); if (_root.lifes == 0) { removeMovieClip(_root.tiles); _root.gotoAndStop(35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function detectKeys_6() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar6(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar6(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar6(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar6(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoAndStop(1); } else { ob.clip.mychar.play(); } enemyBrain6(); } function moveChar6(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoandstop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = true; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; var name = "enemy3"; game[name] = new game.Enemyp1(); game.clip.attachMovie("enemy1", name, 10025); game[name].clip = game.clip[name]; game[name].xtile = 2; game[name].ytile = 2; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; var name = "enemy4"; game[name] = new game.Enemyp2(); game.clip.attachMovie("enemy1", name, 10026); game[name].clip = game.clip[name]; game[name].xtile = 2; game[name].ytile = 2; game[name].width = game.clip[name]._width / 2; game[name].height = game.clip[name]._height / 2; game[name].x = (game[name].xtile * game.tileW) + (game.tileW / 2); game[name].y = (game[name].ytile * game.tileH) + (game.tileH / 2); game[name].clip._x = game[name].x; game[name].clip._y = game[name].y; var name = "enemy2"; game[name].xMove = 1; game[name].yMove = 0; game[name].speed = 2; if ((game.points = true)) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoandstop(4); game.Tile2.prototype.walkable = true; } } if ((_root.char.ytile == 4) && (_root.char.xtile == 2)) { var name = "enemy3"; game[name].xMove = 0; game[name].yMove = -1; game[name].speed = 1.2; var name = "enemy4"; game[name].xMove = 0; game[name].yMove = -1; game[name].speed = 1.5; } if ((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) { removeMovieClip(_root.tiles); _root.gotoAndStop(13); } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } fscommand ("allowscale", true); myMap1 = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 1, 2, 1, 1, 0, 0, 0, 1, 5], [5, 1, 0, 1, 1, 0, 0, 0, 1, 5], [5, 1, 0, 0, 0, 0, 0, 0, 1, 5], [5, 1, 0, 1, 1, 1, 1, 0, 1, 5], [5, 1, 0, 1, 0, 0, 0, 0, 1, 5], [5, 1, 1, 1, 1, 1, 1, 1, 1, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]]; game = {tileW:45, tileH:45, currentMap:1, points:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; unlockY = 2; unlockX = 2; char = {xtile:4, ytile:6, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[3, 7, 4], [2, 6, 2], [2, 5, 2]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 0; game.Enemyp1.prototype.yMove = 1; game.Enemyp1.prototype.speed = 2; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 0; game.Enemyp2.prototype.yMove = 1; game.Enemyp2.prototype.speed = 0.5; game.Enemyp3 = function () { }; game.Enemyp3.prototype.xMove = 0; game.Enemyp3.prototype.yMove = 1; game.Enemyp3.prototype.speed = 1; myItems = [[1, 7, 2]]; game.Item1 = function () { }; game.Item1.prototype.points = false; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 12
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys_6(); } }
Frame 13
if (_root.tempLv == 8) { gotoAndStop (15); } stop();
Frame 14
function enemyBrain7() { var i = 0; while (i < 10) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; youdied.gotoandplay(2); mylifes.gotoandstop(_root.lifes); if (_root.lifes == 0) { removeMovieClip(_root.tiles); gotoAndStop (35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function detectKeys_7() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar7(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar7(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar7(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar7(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoandstop(1); } else { ob.clip.mychar.play(); } enemyBrain7(); } function moveChar7(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoandstop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = game.points + itemname.points; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; } if (game.points == 1) { openwallname = "t_1_6"; game.clip[openwallname].gotoandstop(1); openwallname = "t_3_3"; game.clip[openwallname].gotoandstop(1); openwallname2 = "t_2_3"; game.clip[openwallname2].gotoandstop(1); openwallname3 = "t_1_3"; game.clip[openwallname3].gotoandstop(1); game.Tile7.prototype.walkable = true; } if (game.points == 1) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoandstop(4); game.Tile2.prototype.walkable = true; } if ((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) { trace("here"); _root.tempLv = 8; removeMovieClip(_root.tiles); gotoAndStop (15); } if (((((((_root.char.ytile == 7) && (_root.char.xtile == 2)) || ((_root.char.ytile == 1) && (_root.char.xtile == 9))) || ((_root.char.ytile == 5) && (_root.char.xtile == 4))) || ((_root.char.ytile == 0) && (_root.char.xtile == 0))) || ((_root.char.ytile == 7) && (_root.char.xtile == 2))) || ((_root.char.ytile == 7) && (_root.char.xtile == 3))) { _root.char.speed = 0.5; } else { _root.char.speed = 3; } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } if (_root.tempLv == 8) { gotoAndStop (16); } fscommand ("allowscale", true); myMap1 = [[6, 0, 1, 0, 1, 0, 1, 0, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 6], [1, 0, 1, 0, 1, 0, 1, 0, 1, 0], [1, 0, 1, 0, 0, 0, 1, 0, 1, 1], [1, 1, 1, 1, 0, 1, 1, 1, 1, 1], [1, 0, 0, 0, 6, 0, 0, 1, 1, 1], [1, 1, 1, 0, 1, 1, 1, 0, 0, 1], [1, 2, 6, 6, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; game = {tileW:45, tileH:45, currentMap:1, points:0, wallkey:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; game.Tile6 = function () { }; game.Tile6.prototype.walkable = true; game.Tile6.prototype.frame = 6; game.Tile7 = function () { }; game.Tile7.prototype.walkable = false; game.Tile7.prototype.frame = 2; unlockY = 7; unlockX = 1; char = {xtile:8, ytile:6, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[1, 1, 2], [1, 3, 2], [3, 3, 1], [3, 5, 5], [3, 2, 7], [1, 7, 1], [2, 5, 2]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 0; game.Enemyp1.prototype.yMove = 1; game.Enemyp1.prototype.speed = 1.5; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 0; game.Enemyp2.prototype.yMove = 1; game.Enemyp2.prototype.speed = 0.5; game.Enemyp3 = function () { }; game.Enemyp3.prototype.xMove = 1; game.Enemyp3.prototype.yMove = 0; game.Enemyp3.prototype.speed = 1; game.Enemyp4 = function () { }; game.Enemyp4.prototype.xMove = 0; game.Enemyp4.prototype.yMove = 1; game.Enemyp4.prototype.speed = 1.5; game.Enemyp5 = function () { }; game.Enemyp5.prototype.xMove = 1; game.Enemyp5.prototype.yMove = 0; game.Enemyp5.prototype.speed = 0.5; myItems = [[1, 1, 0], [2, 3, 0], [3, 5, 0], [4, 7, 0]]; myRandom = (math.random() * 3) + 1; myRandom = math.round(myRandom); game.Item1 = function () { }; if (myRandom == 1) { game.Item1.prototype.points = 1; } else { game.Item1.prototype.points = 0; } game.Item2 = function () { }; if (myRandom == 2) { game.Item2.prototype.points = 1; } else { game.Item2.prototype.points = 0; } game.Item3 = function () { }; if (myRandom == 3) { game.Item3.prototype.points = 1; } else { game.Item3.prototype.points = 0; } game.Item4 = function () { }; if (myRandom == 4) { game.Item4.prototype.points = 1; } else { game.Item4.prototype.points = 0; } _root.buildMap(_root["myMap" + game.currentMap]); stop(); trace("lv7 loaded");
Instance of Symbol 27 MovieClip [empty] in Frame 14
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys_7(); } }
Frame 15
stop();
Frame 16
function enemyBrain8() { var i = 0; while (i < 10) { var name = ("enemy" + i); var ob = game[name]; getMyCorners(ob.x + (ob.speed * ob.xMove), ob.y + (ob.speed * ob.yMove), ob); if (((ob.downleft and ob.upleft) and ob.downright) and ob.upleft) { moveChar(ob, ob.xMove, ob.yMove); } else { ob.xMove = -ob.xMove; ob.yMove = -ob.yMove; } if (!_root.infiniteLife) { var xdist = (ob.x - char.x); var ydist = (ob.y - char.y); if (math.sqrt((xdist * xdist) + (ydist * ydist)) < (ob.width + char.width)) { _root.lifes = _root.lifes - 1; youdied.gotoandplay(2); mylifes.gotoandstop(_root.lifes); if (_root.lifes == 0) { removeMovieClip(_root.tiles); gotoAndStop (35); } if (!_root.hurt) { char.clip.gotoAndPlay("hurt"); return(undefined); } } } i++; } } function detectKeys_8() { var ob = _root.char; var keypressed = false; if (key.isDown(39)) { keyPressed = _root.moveChar8(ob, 1, 0); } else if (key.isDown(37)) { keyPressed = _root.moveChar8(ob, -1, 0); } else if (key.isDown(38)) { keyPressed = _root.moveChar8(ob, 0, -1); } else if (key.isDown(40)) { keyPressed = _root.moveChar8(ob, 0, 1); } if (!KeyPressed) { ob.clip.mychar.gotoandstop(1); } else { ob.clip.mychar.play(); } enemyBrain8(); } function moveChar8(ob, dirx, diry) { getMyCorners(ob.x, ob.y + (ob.speed * diry), ob); if (diry == -1) { if (ob.upleft and ob.upright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = (ob.ytile * game.tileH) + ob.height; } } if (diry == 1) { if (ob.downleft and ob.downright) { ob.y = ob.y + (ob.speed * diry); } else { ob.y = ((ob.ytile + 1) * game.tileH) - ob.height; } } getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob); if (dirx == -1) { if (ob.downleft and ob.upleft) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = (ob.xtile * game.tileW) + ob.width; } } if (dirx == 1) { if (ob.upright and ob.downright) { ob.x = ob.x + (ob.speed * dirx); } else { ob.x = ((ob.xtile + 1) * game.tileW) - ob.width; } } ob.clip._x = ob.x; ob.clip._y = ob.y; ob.clip.gotoandstop((dirx + (diry * 2)) + 3); ob.xtile = Math.floor(ob.clip._x / game.tileW); ob.ytile = Math.floor(ob.clip._y / game.tileH); var itemname = game[(("item" + ob.ytile) + "_") + ob.xtile]; if (itemname and (ob == _root.char)) { game.points = game.points + itemname.points; removeMovieClip(itemname.clip); game.items[itemname.position] = 0; delete game[(("item" + ob.ytile) + "_") + ob.xtile]; } if (game.points == 1) { openwallname = "t_1_6"; game.clip[openwallname].gotoandstop(1); openwallname = "t_3_3"; game.clip[openwallname].gotoandstop(1); openwallname2 = "t_2_3"; game.clip[openwallname2].gotoandstop(1); openwallname3 = "t_1_3"; game.clip[openwallname3].gotoandstop(1); game.Tile7.prototype.walkable = true; } if (game.points == 2) { opendoorname = (("t_" + unlockY) + "_") + unlockX; game.clip[opendoorname].gotoandstop(4); game.Tile2.prototype.walkable = true; } if ((_root.char.ytile == unlockY) && (_root.char.xtile == unlockX)) { _root.tempLv = 9; removeMovieClip(_root.tiles); gotoAndStop (40); } if ((((((((_root.char.ytile == 7) && (_root.char.xtile == 2)) || ((_root.char.ytile == 7) && (_root.char.xtile == 3))) || ((_root.char.ytile == 7) && (_root.char.xtile == 6))) || ((_root.char.ytile == 1) && (_root.char.xtile == 7))) || ((_root.char.ytile == 2) && (_root.char.xtile == 4))) || ((_root.char.ytile == 3) && (_root.char.xtile == 4))) || ((_root.char.ytile == 3) && (_root.char.xtile == 2))) { _root.char.speed = 0.5; } else { _root.char.speed = 3; } return(true); } function getMyCorners(x, y, ob) { ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH); ob.upY = Math.floor((y - ob.height) / game.tileH); ob.leftX = Math.floor((x - ob.width) / game.tileW); ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW); ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable; ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable; ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable; ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable; } removeMovieClip(_root.tiles); fscommand ("allowscale", true); myMap1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 7, 0, 0, 7, 6, 0, 1], [1, 0, 0, 7, 6, 0, 0, 1, 0, 1], [1, 0, 6, 7, 6, 0, 0, 0, 1, 1], [1, 2, 0, 1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 0, 0, 0, 1], [1, 0, 1, 1, 0, 1, 0, 0, 1, 1], [1, 0, 6, 6, 0, 0, 6, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; game = {tileW:45, tileH:45, currentMap:1, points:0, wallkey:false}; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = false; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.frame = 3; game.Tile5 = function () { }; game.Tile5.prototype.walkable = false; game.Tile5.prototype.frame = 5; game.Tile6 = function () { }; game.Tile6.prototype.walkable = true; game.Tile6.prototype.frame = 6; game.Tile7 = function () { }; game.Tile7.prototype.walkable = false; game.Tile7.prototype.frame = 2; unlockY = 4; unlockX = 1; char = {xtile:1, ytile:6, speed:3}; startingXtile = char.xtile; startingYtile = char.ytile; mylifes.gotoandstop(_root.lifes); myEnemies = [[2, 1, 2], [2, 2, 1], [5, 1, 1], [3, 2, 2], [3, 1, 3], [3, 6, 7], [3, 7, 4], [2, 6, 2], [2, 5, 2], [2, 7, 4]]; game.Enemyp1 = function () { }; game.Enemyp1.prototype.xMove = 0; game.Enemyp1.prototype.yMove = 1; game.Enemyp1.prototype.speed = 2; game.Enemyp2 = function () { }; game.Enemyp2.prototype.xMove = 0; game.Enemyp2.prototype.yMove = 1; game.Enemyp2.prototype.speed = 0.5; game.Enemyp3 = function () { }; game.Enemyp3.prototype.xMove = 1; game.Enemyp3.prototype.yMove = 0; game.Enemyp3.prototype.speed = 1; game.Enemyp4 = function () { }; game.Enemyp4.prototype.xMove = 0; game.Enemyp4.prototype.yMove = 1; game.Enemyp4.prototype.speed = 1.5; game.Enemyp5 = function () { }; game.Enemyp5.prototype.xMove = 1; game.Enemyp5.prototype.yMove = 0; game.Enemyp5.prototype.speed = 0.5; myItems = [[1, 8, 1], [2, 6, 3]]; game.Item1 = function () { }; game.Item1.prototype.points = 1; game.Item2 = function () { }; game.Item2.prototype.points = 1; _root.buildMap(_root["myMap" + game.currentMap]); stop();
Instance of Symbol 27 MovieClip [empty] in Frame 16
onClipEvent (enterFrame) { if (!_root.hurt) { _root.detectKeys_8(); } }
Frame 35
stop();
Frame 40
stop();
Frame 45
stop();
Symbol 10 MovieClip [item] Frame 1
stop();
Symbol 10 MovieClip [item] Frame 2
stop();
Symbol 10 MovieClip [item] Frame 3
stop();
Symbol 10 MovieClip [item] Frame 4
stop();
Symbol 14 MovieClip Frame 15
gotoAndPlay (1);
Symbol 24 MovieClip [char] Frame 1
stop();
Symbol 24 MovieClip [char] Frame 6
_root.hurt = true;
Symbol 24 MovieClip [char] Frame 66
_root.hurt = false; _root.starting_point();
Symbol 54 Button
on (release, keyPress "<Enter>") { gotoAndPlay (1); }
Symbol 61 Button
on (release) { instruction.gotoAndPlay("open_instruction"); }
Symbol 73 Button
on (rollOver) { lMouseover = true; } on (rollOut) { lMouseover = false; }
Symbol 76 Button
on (rollOver) { lMouseover = true; } on (rollOut) { lMouseover = false; }
Symbol 78 MovieClip Frame 1
instructionContent = ""; instructionContent = "MOVEMENT"; instructionContent = instructionContent + "<br><br>Up arrow - up<br>Down arrow - down<br>Left arrow - left<br>Right arrow - right"; instructionContent = instructionContent + "<br><br>Navigate around the garden and pick up the letter box and head home. Avoid the bees!"; instructionField = instructionContent;
Instance of Symbol 74 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) { if (lMouseover) { _parent.instructionField.scroll = _parent.instructionField.scroll - 1; } }
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) { if (lMouseover) { _parent.instructionField.scroll = _parent.instructionField.scroll + 1; } }
Symbol 78 MovieClip Frame 2
_parent.instructionField.scroll = 15; stop();
Symbol 83 Button
on (release) { gotoAndPlay ("close_instruction"); }
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
Symbol 84 MovieClip Frame 15
stop();
Symbol 84 MovieClip Frame 28
gotoAndStop (1);
Symbol 92 MovieClip Frame 4
stop();
Symbol 99 Button
on (release) { _root.gotoAndStop(4); }
Symbol 103 Button
on (release) { _root.gotoAndStop(6); }
Symbol 109 Button
on (release) { _root.gotoAndStop(8); }
Symbol 113 Button
on (release) { _root.gotoAndStop(10); }
Symbol 117 Button
on (release) { _root.gotoAndStop(12); }
Symbol 121 Button
on (release) { _root.gotoAndStop(14); }
Symbol 125 Button
on (release) { _root.gotoAndStop(14); }
Symbol 131 Button
on (release) { gotoAndStop (1); }
Symbol 133 Button
on (release) { gotoAndStop (1); }
Symbol 138 Button
on (release) { gotoAndStop (1); }

Library Items

Symbol 1 GraphicUsed by:8
Symbol 2 GraphicUsed by:8
Symbol 3 GraphicUsed by:8
Symbol 4 SoundUsed by:8
Symbol 5 GraphicUsed by:8
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClip [tile]Uses:1 2 3 4 5 7
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [item]Uses:9
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:12 13Used by:15
Symbol 15 MovieClipUses:14Used by:16 20
Symbol 16 MovieClipUses:15Used by:24
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:20
Symbol 20 MovieClipUses:15 17 19Used by:24
Symbol 21 GraphicUsed by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:21 22Used by:24
Symbol 24 MovieClip [char]Uses:16 20 23
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClip [enemy1]Uses:25
Symbol 27 MovieClip [empty]Used by:Timeline
Symbol 28 GraphicUsed by:83  Timeline
Symbol 29 GraphicUsed by:50
Symbol 30 GraphicUsed by:50
Symbol 31 GraphicUsed by:50
Symbol 32 GraphicUsed by:50
Symbol 33 FontUsed by:34
Symbol 34 TextUses:33Used by:50  Timeline
Symbol 35 GraphicUsed by:50
Symbol 36 FontUsed by:37 52 53 56 58 65 86
Symbol 37 TextUses:36Used by:50
Symbol 38 GraphicUsed by:41
Symbol 39 GraphicUsed by:41
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:38 39 40Used by:50
Symbol 42 GraphicUsed by:45
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:42 43 44Used by:50
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:46 47 48Used by:50
Symbol 50 MovieClipUses:29 30 31 32 34 35 37 41 45 49Used by:Timeline
Symbol 51 GraphicUsed by:54
Symbol 52 TextUses:36Used by:54
Symbol 53 TextUses:36Used by:54
Symbol 54 ButtonUses:51 52 53Used by:Timeline
Symbol 55 GraphicUsed by:61
Symbol 56 TextUses:36Used by:61
Symbol 57 GraphicUsed by:61
Symbol 58 TextUses:36Used by:61
Symbol 59 GraphicUsed by:61
Symbol 60 GraphicUsed by:61
Symbol 61 ButtonUses:55 56 57 58 59 60Used by:Timeline
Symbol 62 GraphicUsed by:64
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:62 63Used by:84
Symbol 65 TextUses:36Used by:84
Symbol 66 FontUsed by:67
Symbol 67 EditableTextUses:66Used by:78
Symbol 68 GraphicUsed by:73 76
Symbol 69 GraphicUsed by:73
Symbol 70 GraphicUsed by:73 76
Symbol 71 GraphicUsed by:73 76
Symbol 72 GraphicUsed by:73 76
Symbol 73 ButtonUses:68 69 70 71 72Used by:74
Symbol 74 MovieClipUses:73Used by:78
Symbol 75 GraphicUsed by:76
Symbol 76 ButtonUses:68 75 70 71 72Used by:77
Symbol 77 MovieClipUses:76Used by:78
Symbol 78 MovieClipUses:67 74 77Used by:84
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:83
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 ButtonUses:80 82 28Used by:84
Symbol 84 MovieClipUses:64 65 78 83Used by:Timeline
Symbol 85 GraphicUsed by:Timeline
Symbol 86 TextUses:36Used by:Timeline
Symbol 87 GraphicUsed by:Timeline
Symbol 88 GraphicUsed by:Timeline
Symbol 89 FontUsed by:90
Symbol 90 TextUses:89Used by:92
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:90 91Used by:Timeline
Symbol 93 FontUsed by:94 95 96 97 100 101 102 104 105 106 110 111 112 114 115 116 118 119 120 122 123 124 126 127 128 132 134 135 139
Symbol 94 TextUses:93Used by:Timeline
Symbol 95 TextUses:93Used by:99
Symbol 96 TextUses:93Used by:99
Symbol 97 TextUses:93Used by:99
Symbol 98 GraphicUsed by:99 103 109 113 117 121 125
Symbol 99 ButtonUses:95 96 97 98Used by:Timeline
Symbol 100 TextUses:93Used by:103
Symbol 101 TextUses:93Used by:103
Symbol 102 TextUses:93Used by:103
Symbol 103 ButtonUses:100 101 102 98Used by:Timeline
Symbol 104 TextUses:93Used by:109
Symbol 105 TextUses:93Used by:109
Symbol 106 TextUses:93Used by:109
Symbol 107 FontUsed by:108 130 136 137
Symbol 108 TextUses:107Used by:109
Symbol 109 ButtonUses:104 105 106 98 108Used by:Timeline
Symbol 110 TextUses:93Used by:113
Symbol 111 TextUses:93Used by:113
Symbol 112 TextUses:93Used by:113
Symbol 113 ButtonUses:110 111 112 98Used by:Timeline
Symbol 114 TextUses:93Used by:117
Symbol 115 TextUses:93Used by:117
Symbol 116 TextUses:93Used by:117
Symbol 117 ButtonUses:114 115 116 98Used by:Timeline
Symbol 118 TextUses:93Used by:121
Symbol 119 TextUses:93Used by:121
Symbol 120 TextUses:93Used by:121
Symbol 121 ButtonUses:118 119 120 98Used by:Timeline
Symbol 122 TextUses:93Used by:125
Symbol 123 TextUses:93Used by:125
Symbol 124 TextUses:93Used by:125
Symbol 125 ButtonUses:122 123 124 98Used by:Timeline
Symbol 126 TextUses:93Used by:Timeline
Symbol 127 TextUses:93Used by:131 133
Symbol 128 TextUses:93Used by:131 133
Symbol 129 GraphicUsed by:131 133 138
Symbol 130 TextUses:107Used by:131 133 138
Symbol 131 ButtonUses:127 128 129 130Used by:Timeline
Symbol 132 TextUses:93Used by:Timeline
Symbol 133 ButtonUses:127 128 129 130Used by:Timeline
Symbol 134 TextUses:93Used by:Timeline
Symbol 135 TextUses:93Used by:138
Symbol 136 TextUses:107Used by:138
Symbol 137 TextUses:107Used by:138
Symbol 138 ButtonUses:135 136 137 129 130Used by:Timeline
Symbol 139 TextUses:93Used by:Timeline

Instance Names

"instruction"Frame 1Symbol 84 MovieClip
"mylifes"Frame 2Symbol 92 MovieClip
"mylifes"Frame 4Symbol 92 MovieClip
"mylifes"Frame 6Symbol 92 MovieClip
"mylifes"Frame 8Symbol 92 MovieClip
"mylifes"Frame 10Symbol 92 MovieClip
"mylifes"Frame 12Symbol 92 MovieClip
"mylifes"Frame 14Symbol 92 MovieClip
"mylifes"Frame 16Symbol 92 MovieClip
"scrollBox"Symbol 84 MovieClip Frame 15Symbol 78 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 8 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 10 as "item"
ExportAssets (56)Timeline Frame 1Symbol 24 as "char"
ExportAssets (56)Timeline Frame 1Symbol 26 as "enemy1"
ExportAssets (56)Timeline Frame 1Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 2Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 4Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 6Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 8Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 10Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 12Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 14Symbol 27 as "empty"
ExportAssets (56)Timeline Frame 16Symbol 27 as "empty"

Labels

"gameOverFrame"Frame 35
"winFrame"Frame 40
"hurt"Symbol 24 MovieClip [char] Frame 6
"hide_instruction"Symbol 84 MovieClip Frame 1
"open_instruction"Symbol 84 MovieClip Frame 2
"display_instruction"Symbol 84 MovieClip Frame 15
"close_instruction"Symbol 84 MovieClip Frame 16

Dynamic Text Variables

instructionFieldSymbol 67 EditableText"<p align="left"></p>"




http://swfchan.com/5/23524/info.shtml
Created: 26/5 -2019 04:07:38 Last modified: 26/5 -2019 04:07:38 Server time: 15/05 -2024 09:42:21