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

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

Hannah vs The Zombies.swf

This is the info page for
Flash #116024

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


Text
000%

PLAY

Health Remaining

Start  Game

Start  Game

Instructions

Instructions

Play

$20

$40

$10

$250

CASH

$1200

Barricades

/

0

0

Traps

0

0

Gunmen

0

0

Bodycount

0

Volume

15

15

Currently

$150

$150

Hannah and the zombies

Hannah and the zombies

GAME PAUSED

Play More Games

Play More Games

Volume

Watch the counter
Zombies can't survive in daylight!

This Dancer
Heals your wounds each
day and reinforces your
barricades

This is you!
You are allergic to Zombies!

This Dancer
Is a smarty pants and helps
your Backup target vital areas

Zombies
Slow and stupid
but numerous

Backup
Improve with experience,
so protect your best!

Zombies grow stronger
each night!

Slow down Zombie
advances using
barricades.

Detonate on contact

Provide stationary
fire support

Gun upgrades
improve your
personal sniper's rifle

Health Status
Everytime a Zombie
reaches the character
you lose a life.

ActionScript [AS1/AS2]

Frame 1
_root.mastervolume = new Sound(); _root.volumesave = 0; _root.tipsshown = false;
Frame 2
stop();
Frame 3
Frame 10
function buildMap(map) { _root.attachMovie("mouse", "mouse", 4); _root.attachMovie("empty", "tiles", 3); _root.tiles.attachMovie("empty", "back", 1); _root.tiles.attachMovie("empty", "gore", 2); game.clip = _root.tiles; game.clip._x = 425; game.clip._y = 50; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } game.clip.back.cacheAsBitmap = true; } function updatetile(map, ty, tx) { game.clip = _root.tiles; var _local2 = (("t_" + ty) + "_") + tx; game[_local2] = new game["Tile" + map[ty][tx]](); if (game[_local2].walkable) { var _local3 = game.clip.back; } else { var _local3 = game.clip; } game[_local2].depth = (((((tx + ty) * game.tileW) / 2) * 300) + ((tx - ty) * game.tileW)) + 1; _local3.attachMovie("tile", _local2, game[_local2].depth); _local3[_local2]._x = (tx - ty) * game.tileW; _local3[_local2]._y = ((tx + ty) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local3[_local2].gotoAndStop(game[_local2].frame); } function updatemap(map) { game.clip = _root.tiles; game.clip._x = 425; game.clip._y = 50; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } } function getTarget() { if ((((game.xmouse >= 0) && (game.ymouse >= 0)) && (game.xmouse <= (myMap1[1].length - 1))) && (game.ymouse <= (myMap1.length - 1))) { if (prepped == "None") { systxt("Nothing Selected"); } else if (_root.cash < _root.prepcost) { systxt("You can't afford that!"); } else if (((prepped == "Wood") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].buildable)) && (_root.barricades < _root.barricadesmax)) { systxt("Place Wood Tile"); myMap1[game.ymouse][game.xmouse] = 4; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.barricades++; } else if (((prepped == "Stone") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].buildable)) && (_root.barricades < _root.barricadesmax)) { systxt("Place Stone Tile"); myMap1[game.ymouse][game.xmouse] = 3; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.barricades++; } else if ((((prepped == "Trap") && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstower)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstrap)) && (_root.traps < _root.trapsmax)) { myMap1[game.ymouse][game.xmouse] = 5; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.traps++; } else if (((((prepped == "Defender") && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstower)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstrap)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].entry)) && (_root.gunmen < _root.gunmenmax)) { placedefender(game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.gunmen++; } else if ((prepped == "Wood") || (prepped == "Stone")) { systxt("Cannot Build here"); } } } function spawnnpc(num) { var _local4 = Math.floor(_root["enemyarray" + num][6] - (_root["enemyarray" + num][4] / 4)); if (_local4 < 0) { _local4 = 0; } var _local8 = Math.floor((_root["enemyarray" + num][5] / 2) - _local4); _root["mon" + num] = {hp:_root["enemyarray" + num][3], maxhp:_root["enemyarray" + num][3], xtile:_root["enemyarray" + num][1], ytile:_root["enemyarray" + num][2], speed:_local8, moving:false, width:8, height:8}; var _local2 = _root["mon" + num]; _local2.x = _local2.xtile * game.tileW; _local2.y = _local2.ytile * game.tileW; _local2.xiso = _local2.x - _local2.y; _local2.yiso = (_local2.x + _local2.y) / 2; _local2.depthshift = (game.tileW - _local2.height) / 2; _local2.depth = (((_local2.yiso - _local2.depthshift) * 300) + _local2.xiso) + 1; game.clip.attachMovie("monster", "mon" + num, _local2.depth); _local2.clip = game.clip["mon" + num]; _local2.clip._x = _local2.xiso; _local2.clip._y = _local2.yiso; game[(("t_" + _local2.ytile) + "_") + _local2.xtile].containstower = true; game[(("t_" + _local2.ytile) + "_") + _local2.xtile].npcnum = num; _local2.clip.gotoAndStop(_local2.frame); } function huetile(tile, colour) { col = new Color(tile); col.setRGB(colour); col.reduceRGB(50); } function unhuetile(tile) { col = new Color(tile); col.reduceRGB(100); } function updatecash() { _root.menubar.cashdisp.text = "$" + _root.cash; if (_root.cash < 250) { _root.menubar.gunman.enabled = false; _root.menubar.gunmangraph._alpha = 50; } else { _root.menubar.gunman.enabled = true; _root.menubar.gunmangraph._alpha = 100; } if (_root.cash < 100) { _root.menubar.refill.enabled = false; _root.menubar.refill._alpha = 50; } else { _root.menubar.refill.enabled = true; _root.menubar.refill._alpha = 100; } if (_root.cash < 50) { _root.menubar.barricade2.enabled = false; _root.menubar.barricade2._alpha = 50; } else { _root.menubar.barricade2.enabled = true; _root.menubar.barricade2._alpha = 100; } if (_root.cash < 25) { _root.menubar.barricade1.enabled = false; _root.menubar.barricade1._alpha = 50; _root.menubar.trap.enabled = false; _root.menubar.trap._alpha = 50; } else { _root.menubar.barricade1.enabled = true; _root.menubar.barricade1._alpha = 100; _root.menubar.trap.enabled = true; _root.menubar.trap._alpha = 100; } } function placedefender(ty, tx, hardcore) { _root.defenders++; var _local4 = ty; var _local5 = tx; _root["defender" + _root.defenders] = {hp:50, maxhp:50, xtile:_local5, ytile:_local4, speed:0, moving:false, width:8, height:8}; if (hardcore) { _root["defender" + _root.defenders].hp = 5000000 /* 0x4C4B40 */; } var _local3 = _root["defender" + _root.defenders]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; game.clip.attachMovie("sprite_defender", "defender" + _root.defenders, _local3.depth); _local3.clip = game.clip["defender" + _root.defenders]; _local3.clip.cacheAsBitmap = true; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.game[(("t_" + _local4) + "_") + _local5].isawall = true; _root.game[(("t_" + _local4) + "_") + _local5].buildable = false; _root.game[(("t_" + _local4) + "_") + _local5].hp = _root["defender" + _root.defenders].hp; _local3.clip.gotoAndStop("south"); _local3.clip.mynum = _root.defenders; _root["defender" + _root.defenders].shooting = false; _root["defender" + _root.defenders].shootingdelay = 24; _local3.clip.onEnterFrame = function () { if (_root.currentphase == "hi") { if (random(100) == 0) { game.clip["defender" + this.mynum].gotoAndStop("look south"); } } else { myx = _root["defender" + this.mynum].xtile; myy = _root["defender" + this.mynum].ytile; _root["defender" + this.mynum].hp = _root.game[(("t_" + myy) + "_") + myx].hp; if (_root["defender" + this.mynum].hp <= 0) { spawnzombies(1, true, myx, myy); _root.game[(("t_" + myy) + "_") + myx].buildable = true; _root.game[(("t_" + myy) + "_") + myx].isawall = false; bob = _root["defender" + this.mynum]; _root.gunmen--; delete bob; _root.game.clip["defender" + this.mynum].removeMovieClip(); } else if (_root.game[(("t_" + (myy + 1)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + myx].containszombienum; zy = myy + 1; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + myx].containszombienum; zy = myy + 2; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + myx].containszombienum; zy = myy + 3; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + myx].containszombienum; zy = myy - 1; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + myx].containszombienum; zy = myy - 2; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + myx].containszombienum; zy = myy - 3; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 1)].containszombienum; zy = myy; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 2)].containszombienum; zy = myy; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 3)].containszombienum; zy = myy; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 1)].containszombienum; zy = myy; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 2)].containszombienum; zy = myy; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 3)].containszombienum; zy = myy; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 1)].containszombienum; zy = myy + 1; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 2)].containszombienum; zy = myy + 1; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 1)].containszombienum; zy = myy + 2; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 1)].containszombienum; zy = myy - 1; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 1)].containszombienum; zy = myy - 2; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 2)].containszombienum; zy = myy - 1; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 1)].containszombienum; zy = myy + 1; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 1)].containszombienum; zy = myy + 2; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 2)].containszombienum; zy = myy + 1; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 1)].containszombienum; zy = myy - 1; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 1)].containszombienum; zy = myy - 2; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 2)].containszombienum; zy = myy - 1; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 4)].containszombienum; zy = myy; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 4)].containszombienum; zy = myy; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + myx].containszombienum; zy = myy - 4; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + myx].containszombienum; zy = myy + 4; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx + 1)].containszombienum; zy = myy - 3; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx + 1)].containszombienum; zy = myy + 3; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 2)].containszombienum; zy = myy - 2; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 2)].containszombienum; zy = myy + 2; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 3)].containszombienum; zy = myy - 1; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 3)].containszombienum; zy = myy + 1; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 3)].containszombienum; zy = myy - 1; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 2)].containszombienum; zy = myy - 2; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx - 1)].containszombienum; zy = myy - 3; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx - 1)].containszombienum; zy = myy + 3; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 2)].containszombienum; zy = myy + 2; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 3)].containszombienum; zy = myy + 1; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + myx].containszombienum; zy = myy; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } } }; } function shoot(znum, zy, zx, dnum, dy, dx, direct) { if (((_root["defender" + dnum].shootingdelay == 0) && (_root.ammo > 0)) && (!playershot)) { _root.menubar.ammo.text = _root.ammo; game.clip["defender" + dnum].gotoAndStop("attack " + direct); _root["defender" + dnum].shootingdelay = 30; if (direct == "north") { _root["defender" + dnum].killdir = "south"; } else if (direct == "south") { _root["defender" + dnum].killdir = "north"; } else if (direct == "west") { _root["defender" + dnum].killdir = "east"; } else if (direct == "east") { _root["defender" + dnum].killdir = "west"; } } else if (_root["defender" + dnum].shootingdelay == 22) { _root["zombie" + znum].hp = _root["zombie" + znum].hp - 20; if (_root.secondstatus == "Alive") { _root["zombie" + znum].hp = _root["zombie" + znum].hp - 10; } if (_root.myMap1[zy][zx] == 0) { _root.myMap1[zy][zx] = 15; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] > 12) && (_root.myMap1[zy][zx] < 22)) { _root.myMap1[zy][zx] = _root.myMap1[zy][zx] + 1; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] == 0)) { _root.myMap1[zy - 1][zx] = 15; _root.updatetile(_root.myMap1, zy - 1, zx); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] > 12)) && (_root.myMap1[zy - 1][zx] > 22)) { _root.myMap1[zy - 1][zx] = _root.myMap1[zy - 1][zx] + 1; _root.updatetile(_root.myMap1, zy - 1, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] == 0)) { _root.myMap1[zy][zx - 1] = 15; _root.updatetile(_root.myMap1, zy, zx - 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx - 1); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] == 0)) { _root.myMap1[zy][zx + 1] = 15; _root.updatetile(_root.myMap1, zy, zx + 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx + 1); } dp = game.clip["zombie" + znum].depth; rtx = _root["zombie" + znum].xtile * game.tileW; rty = _root["zombie" + znum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; _root["defender" + dnum].shootingdelay--; if (_root["zombie" + znum].hp <= 0) { _root.game[(("t_" + zy) + "_") + zx].containszombie = false; dp = game.clip["zombie" + znum].depth; rtx = _root["zombie" + znum].xtile * game.tileW; rty = _root["zombie" + znum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; if (_root.myMap1[zy][zx] == 0) { _root.myMap1[zy][zx] = 15; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] > 12) && (_root.myMap1[zy][zx] < 22)) { _root.myMap1[zy][zx] = _root.myMap1[zy][zx] + 1; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] == 0)) { _root.myMap1[zy - 1][zx] = 15; _root.updatetile(_root.myMap1, zy - 1, zx); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] > 12)) && (_root.myMap1[zy - 1][zx] > 22)) { _root.myMap1[zy - 1][zx] = _root.myMap1[zy - 1][zx] + 1; _root.updatetile(_root.myMap1, zy - 1, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] == 0)) { _root.myMap1[zy][zx - 1] = 15; _root.updatetile(_root.myMap1, zy, zx - 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx - 1); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] == 0)) { _root.myMap1[zy][zx + 1] = 15; _root.updatetile(_root.myMap1, zy, zx + 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx + 1); } game.clip["zombie" + znum].removeMovieClip(); game.clip.attachMovie("sprite_brit_guard", "zombie" + znum, dp); game.clip["zombie" + znum]._x = rtxiso; game.clip["zombie" + znum]._y = rtyiso; game.clip["zombie" + znum].gotoAndStop("die " + _root["defender" + dnum].killdir); _root.bodycount++; _root.spawnedzombies--; _root.cash = _root.cash + (_root.zombiecashaward + _root.currentday); _root.menubar.cashdisp.text = "$" + _root.cash; _root.menubar.bodycount.text = _root.bodycount; } } else if ((_root["defender" + dnum].shootingdelay == 30) && (_root.ammo <= 0)) { _root["defender" + dnum].shootingdelay = 0; } else { _root["defender" + dnum].shootingdelay--; } } function nightspawn() { spawnedzombies = _root.spawnedzombies; var _local2 = 15 + _root.currentday; if (_local2 > 25) { _local2 = 25; } if (_root.currentday < 3) { if ((spawnedzombies + 1) < _local2) { spawnzombies(1); _root.spawnedzombies++; } } else if (_root.currentday < 8) { if ((spawnedzombies + 2) < _local2) { spawnzombies(2); _root.spawnedzombies = _root.spawnedzombies + 2; } } else if (_root.currentday < 12) { if ((spawnedzombies + 3) < _local2) { spawnzombies(3); _root.spawnedzombies = _root.spawnedzombies + 3; } } else if (_root.currentday < 14) { if ((spawnedzombies + 4) < _local2) { spawnzombies(4); _root.spawnedzombies = _root.spawnedzombies + 4; } } else if (_root.currentday < 18) { if ((spawnedzombies + 5) < _local2) { spawnzombies(5); _root.spawnedzombies = _root.spawnedzombies + 5; } } else if ((spawnedzombies + 6) < _local2) { spawnzombies(6); _root.spawnedzombies = _root.spawnedzombies + 6; } _root.zombietimer = 80 - (_root.currentday * 2); if (_root.zombietimer < 24) { _root.zombietimer = 24; } } function placeplayer() { var _local3 = 14; var _local4 = 11; char = 1; _root.player = {hp:13, maxhp:13, xtile:_local4, ytile:_local3, speed:0, moving:false, width:8, height:8}; var _local2 = _root.player; _local2.x = _local2.xtile * game.tileW; _local2.y = _local2.ytile * game.tileW; _local2.xiso = _local2.x - _local2.y; _local2.yiso = (_local2.x + _local2.y) / 2; _local2.depthshift = (game.tileW - _local2.height) / 2; _local2.depth = (((_local2.yiso - _local2.depthshift) * 300) + _local2.xiso) + 1; game.clip.attachMovie("sprite_brit_guard", "player", _local2.depth); _local2.clip = game.clip.player; _local2.clip._x = _local2.xiso; _local2.clip._y = _local2.yiso; _local2.clip.gotoAndStop(1); } function spawnzombies(num, convert, x, y) { i = 0; while (i < num) { _root.numberofzombies++; d4 = random(4); if ((d4 == 0) && (!convert)) { tempx = 0; tempy = random(_root.myMap1.length); } else if ((d4 == 1) && (!convert)) { tempx = _root.myMap1[0].length - 1; tempy = random(_root.myMap1.length); } else if ((d4 == 2) && (!convert)) { tempx = random(_root.myMap1[0].length); tempy = _root.myMap1.length - 1; } else if ((d4 == 3) && (!convert)) { tempx = random(_root.myMap1[0].length); tempy = 0; } else { tempx = x; tempy = y; } if ((tempx == 0) && (tempy == 0)) { tempx = 1; } _root["zombie" + _root.numberofzombies] = {hp:46 + (_root.currentday * 2), xtile:tempx, ytile:tempy, str:0.7 + (_root.currentday / 100), moving:false, width:8, height:8}; var ob = _root["zombie" + _root.numberofzombies]; ob.x = ob.xtile * game.tileW; ob.y = ob.ytile * game.tileW; ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.depthshift = (game.tileW - ob.height) / 2; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; game.clip.attachMovie("sprite_brit_guard", "zombie" + _root.numberofzombies, _root.numberofzombies + 55); ob.clip = game.clip["zombie" + _root.numberofzombies]; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.clip.gotoAndStop("rise south"); ob.clip.mynum = _root.numberofzombies; ob.clip.moving = false; _root["zombie" + _root.numberofzombies].movecount = 0; _root["zombie" + _root.numberofzombies].moving = false; _root["zombie" + _root.numberofzombies].bashing = false; _root["zombie" + _root.numberofzombies].spawned = false; ob.clip.onEnterFrame = function () { ob = game.clip["zombie" + this.mynum]; num = this.mynum; targetx = random(_root.myMap1[0].length - 1); targety = random(_root.myMap1.length - 1); myx = _root["zombie" + num].xtile; myy = _root["zombie" + num].ytile; if (_root["zombie" + num].walling) { _root.game[(("t_" + this.desty) + "_") + this.destx].hp = _root.game[(("t_" + this.desty) + "_") + this.destx].hp - _root["zombie" + this.mynum].str; frame = "t" + Math.round(_root.game[(("t_" + this.desty) + "_") + this.destx].hp); _root.tiles[(("t_" + this.desty) + "_") + this.destx].inner.gotoAndStop(frame); _root.game[(("t_" + _root["zombie" + num].ytile) + "_") + _root["zombie" + num].xtile].containszombie = true; _root.game[(("t_" + _root["zombie" + num].ytile) + "_") + _root["zombie" + num].xtile].containszombienum = num; _root.game[(("t_" + this.desty) + "_") + this.destx].containszombie = false; if (_root.game[(("t_" + this.desty) + "_") + this.destx].hp <= 0) { _root.myMap1[this.desty][this.destx] = 0; _root.updatetile(_root.myMap1, this.desty, this.destx); bob = _root.game[(("t_" + this.desty) + "_") + this.destx]; _root.tiles[(("t_" + this.desty) + "_") + this.destx].removeMovieClip(); delete bob; _root.barricades--; _root["zombie" + num].walling = false; _root["zombie" + num].movecount = 0; if (this.dirx == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } else if (this.dirx == -1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } else if (this.diry == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } } if ((!_root["zombie" + num].moving) && (!_root["zombie" + num].walling)) { _root["zombie" + num].moving = true; if (random(20) < 2) { targetx = targetx + random(8); } else if (random(20) < 2) { targety = targety + random(8); } else if (random(20) < 2) { targetx = targetx - random(8); } else if (random(20) < 2) { targety = targety - random(8); } if (random(2) == 0) { if ((myx < targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = 1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise east"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } } else if ((myx > targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = -1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise west"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } } else if ((myy > targety) && (!_root["zombie" + num].walling)) { this.diry = -1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise north"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } else if ((myy < targety) && (!_root["zombie" + num].walling)) { this.diry = 1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } } } else { if ((myy > targety) && (!_root["zombie" + num].walling)) { this.diry = -1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise north"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } else if ((myy < targety) && (!_root["zombie" + num].walling)) { this.diry = 1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } } else if ((myx < targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = 1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise east"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } } else if ((myx > targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = -1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise west"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } } if (random(40) < 2) { targetx = targetx + random(8); } else if (random(40) < 2) { targety = targety + random(8); } else if (random(40) < 2) { targetx = targetx - random(8); } else if (random(40) < 2) { targety = targety - random(8); } } ob.x = _root["zombie" + ob.mynum].xtile * game.tileW; ob.y = _root["zombie" + ob.mynum].ytile * game.tileW; this.destx = _root["zombie" + this.mynum].xtile + this.dirx; this.desty = _root["zombie" + this.mynum].ytile + this.diry; if ((this.desty == _root.player.ytile) && (this.destx == _root.player.xtile)) { bob = _root["zombie" + this.mynum]; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); delete bob; _root.player.hp--; _root.spawnedzombies--; if (_root.player.hp <= 0) { } } if (_root.game[(("t_" + this.desty) + "_") + this.destx].isawall) { _root["zombie" + this.mynum].movecount = 31; _root["zombie" + this.mynum].walling = true; if (this.dirx == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack east"); } else if (this.dirx == -1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack west"); } else if (this.diry == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack north"); } } if (!_root["zombie" + this.mynum].walling) { _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root["zombie" + this.mynum].xtile = _root["zombie" + this.mynum].xtile + this.dirx; _root["zombie" + this.mynum].ytile = _root["zombie" + this.mynum].ytile + this.diry; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = true; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombienum = this.mynum; } if (_root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containstrap || (_root.currentphase == "Placement")) { rtx = _root["zombie" + this.mynum].xtile * game.tileW; rty = _root["zombie" + this.mynum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; game.clip["zombie" + this.mynum]._x = rtxiso; game.clip["zombie" + this.mynum]._y = rtyiso; fx = _root.game.clip["zombie" + this.mynum]._x; fy = _root.game.clip["zombie" + this.mynum]._y; _root.tiles.attachMovie("fire", "fire" + this.mynum, 3 + this.mynum, {_x:fx + 5, _y:fy + 5}); _root.tiles["fire" + this.mynum].swapDepths(_root.game.clip["zombie" + this.mynum].depth + 1); bob = _root["zombie" + this.mynum]; delete bob; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); if (_root.currentphase == "Defend") { _root.bodycount++; _root.spawnzombies(1); _root.cash = _root.cash + _root.zombiecashaward; _root.menubar.cashdisp.text = _root.cash; _root.menubar.bodycount.text = _root.bodycount; } } } if (_root["zombie" + this.mynum].movecount < 30) { ob.y = ob.y + (ob.diry * 0.5); ob.x = ob.x + (ob.dirx * 0.5); ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob._x = ob.xiso; ob._y = ob.yiso; ob.depthshift = (_root.game.tileW - _root["zombie" + this.mynum].height) / 2; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.swapDepths(ob.depth); _root["zombie" + this.mynum].movecount++; } else if (!_root["zombie" + this.mynum].walling) { _root["zombie" + this.mynum].moving = false; } }; i++; } } function introanimation() { _root.placedefender(5, 5, true); _root.placedefender(21, 5, true); _root.placedefender(21, 18, true); _root.placedefender(5, 18, true); _root.placedefender(13, 13, true); _root.placedefender(3, 8); _root.placedefender(24, 22); _root.placedefender(3, 16); _root.currentday = 5; } function work() { if (_root.zombietimer > 0) { _root.zombietimer--; } if ((_root.zombietimer <= 0) && (_root.nightspawning)) { nightspawn(); } _root.movetimer++; if (_root.movetimer == 24) { _root.movetimer = 0; } _root.timeradjust--; if (_root.timeradjust == 0) { _root.timeradjust = 24; _root.timesec--; } if ((_root.timesec == 0) && (_root.timemin == 0)) { if (_root.currentphase == "Placement") { _root.currentphase = "Defend"; _root.timemin = 60000; _root.timesec = 50; _root.timer.textColor = "0x00FF00"; nightspawning = true; nightspawn(); _root.prepped = "None"; _root.preppedcost = 0; _root.menubar.bigtext.text = ""; _root.menubar.gunman.enabled = false; _root.menubar.gunmangraph._alpha = 50; _root.menubar.refill.enabled = false; _root.menubar.refill._alpha = 50; _root.menubar.barricade2.enabled = false; _root.menubar.barricade2._alpha = 50; _root.menubar.barricade1.enabled = false; _root.menubar.barricade1._alpha = 50; _root.menubar.trap.enabled = false; _root.menubar.trap._alpha = 50; } else { _root.currentphase = "Placement"; _root.timemin = 0; _root.timesec = 3; _root.timer.textColor = "0xFF0000"; _root.currentday++; nightspawning = false; _root.menubar.daytext.text = "Day " + _root.currentday; barricadesmax = 29 + _root.currentday; trapsmax = 15 + Math.floor(_root.currentday / 2); gunmenmax = 5 + Math.floor(_root.currentday / 4); updatecash(); _root.menubar.wait.enabled = true; _root.menubar.wait._alpha = 100; } } else if ((_root.timesec == 0) && (_root.timemin > 0)) { _root.timemin--; _root.timesec = 59; if (_root.currentphase == "Placement") { _root.timer.text = (("Daylight Remaining - " + _root.timemin) + ":") + _root.timesec; } else { _root.timer.text = (("Darkness Remaining - " + _root.timemin) + ":") + _root.timesec; } } else if ((_root.timesec < 10) && (_root.timesec > -1)) { if (_root.currentphase == "Placement") { _root.timer.text = (("Daylight Remaining - " + _root.timemin) + ":0") + _root.timesec; } else { _root.timer.text = (("Darkness Remaining - " + _root.timemin) + ":0") + _root.timesec; } } else if (_root.timesec > 9) { if (_root.currentphase == "Placement") { _root.timer.text = (("Daylight Remaining - " + _root.timemin) + ":") + _root.timesec; } else { _root.timer.text = (("Darkness Remaining - " + _root.timemin) + ":") + _root.timesec; } } _root.menubar.gunmenmax.text = _root.gunmenmax; _root.menubar.trapsmax.text = _root.trapsmax; _root.menubar.barricadesmax.text = _root.barricadesmax; _root.menubar.gunmen.text = _root.gunmen; _root.menubar.traps.text = _root.traps; _root.menubar.barricades.text = _root.barricades; _root.menubar.ammo.text = _root.ammo; _root.menubar.ammomax.text = _root.ammomax; var _local2 = ((2 * game.clip._ymouse) - game.clip._xmouse) / 2; var _local3 = game.clip._xmouse + _local2; game.ymouse = Math.round(_local2 / game.tileW); game.xmouse = Math.round(_local3 / game.tileW) - 1; game.targy = Math.round(_local2 / game.tileW); game.targx = Math.round(_local3 / game.tileW) - 1; if ((((game.xmouse >= 0) && (game.ymouse >= 0)) && (game.xmouse <= (myMap1[1].length - 1))) && (game.ymouse <= (myMap1.length - 1))) { _root.mouse._x = 1000; _root.mouse._y = 1000; } else { _root.mouse._x = 1000; _root.mouse._y = 1000; } } Stage.scaleMode = "noScale"; Stage.align = "C"; animplayed = false; drawmode = "Walls"; nightspawning = false; titleon = true; spawnedzombies = 0; zombiecashaward = 5; ammo = 5000; ammomax = 500; bodycount = 0; zombietimer = 0; numberofzombies = 0; barricadesmax = 30; barricades = 0; trapsmax = 15; traps = 0; gunmenmax = 5; gunmen = 0; movetimer = 0; defenders = 0; currentday = 2; timemin = 0; timesec = 3; timeradjust = 1; currentphase = "Placement"; mousemode = "Normal"; keydelay = 0; cash = 1000; prepped = "None"; preppedcost = 0; myMap1 = [[6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 5, 0, 5, 0, 0, 0, 3, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 6], [6, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6], [6, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 6], [6, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 6], [6, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 5, 0, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]]; game = {tileW:15, tileH:15}; towercount = 0; monstercount = 0; scrollspeed = 100; game.Tile15 = function () { }; game.Tile15.prototype.walkable = true; game.Tile15.prototype.diggable = false; game.Tile15.prototype.buildable = true; game.Tile15.prototype.containstower = false; game.Tile15.prototype.cost = 4; game.Tile15.prototype.frame = 15; game.Tile16 = function () { }; game.Tile16.prototype.walkable = true; game.Tile16.prototype.diggable = false; game.Tile16.prototype.buildable = true; game.Tile16.prototype.containstower = false; game.Tile16.prototype.cost = 4; game.Tile16.prototype.frame = 16; game.Tile17 = function () { }; game.Tile17.prototype.walkable = true; game.Tile17.prototype.diggable = false; game.Tile17.prototype.buildable = true; game.Tile17.prototype.containstower = false; game.Tile17.prototype.cost = 4; game.Tile17.prototype.frame = 17; game.Tile18 = function () { }; game.Tile18.prototype.walkable = true; game.Tile18.prototype.diggable = false; game.Tile18.prototype.buildable = true; game.Tile18.prototype.containstower = false; game.Tile18.prototype.cost = 4; game.Tile18.prototype.frame = 18; game.Tile19 = function () { }; game.Tile19.prototype.walkable = true; game.Tile19.prototype.diggable = false; game.Tile19.prototype.buildable = true; game.Tile19.prototype.containstower = false; game.Tile19.prototype.cost = 4; game.Tile19.prototype.frame = 19; game.Tile20 = function () { }; game.Tile20.prototype.walkable = true; game.Tile20.prototype.diggable = false; game.Tile20.prototype.buildable = true; game.Tile20.prototype.containstower = false; game.Tile20.prototype.cost = 4; game.Tile20.prototype.frame = 20; game.Tile21 = function () { }; game.Tile21.prototype.walkable = true; game.Tile21.prototype.diggable = false; game.Tile21.prototype.buildable = true; game.Tile21.prototype.containstower = false; game.Tile21.prototype.cost = 4; game.Tile21.prototype.frame = 21; game.Tile22 = function () { }; game.Tile22.prototype.walkable = true; game.Tile22.prototype.diggable = false; game.Tile22.prototype.buildable = true; game.Tile22.prototype.containstower = false; game.Tile22.prototype.cost = 4; game.Tile22.prototype.frame = 22; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.diggable = false; game.Tile0.prototype.buildable = true; game.Tile0.prototype.containstower = false; game.Tile0.prototype.cost = 4; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = true; game.Tile1.prototype.diggable = true; game.Tile1.prototype.buildable = true; game.Tile1.prototype.containstower = true; game.Tile1.prototype.cost = 6; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.diggable = false; game.Tile2.prototype.buildable = false; game.Tile2.prototype.containstower = true; game.Tile2.prototype.cost = 999; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.diggable = false; game.Tile3.prototype.buildable = false; game.Tile3.prototype.upgradable = false; game.Tile3.prototype.containstower = true; game.Tile3.prototype.isawall = true; game.Tile3.prototype.hp = 100; game.Tile3.prototype.cost = 25; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.diggable = false; game.Tile4.prototype.upgradable = true; game.Tile4.prototype.buildable = false; game.Tile4.prototype.containstower = false; game.Tile4.prototype.isawall = true; game.Tile4.prototype.hp = 50; game.Tile4.prototype.cost = 25; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = true; game.Tile5.prototype.diggable = false; game.Tile5.prototype.upgradable = false; game.Tile5.prototype.buildable = false; game.Tile5.prototype.containstrap = true; game.Tile5.prototype.frame = 6; game.Tile6 = function () { }; game.Tile6.prototype.walkable = true; game.Tile6.prototype.diggable = false; game.Tile6.prototype.buildable = false; game.Tile6.prototype.containstower = false; game.Tile6.prototype.entry = true; game.Tile6.prototype.cost = 4; game.Tile6.prototype.frame = 1; buildMap(_root.myMap1); introanimation(); _root.attachMovie("entire_overlay", "overlay", 34589); stop();
Instance of Symbol 54 MovieClip [empty] "controller" in Frame 10
onClipEvent (enterFrame) { _root.work(); } onClipEvent (mouseUp) { _root.getTarget(); } onClipEvent (keyDown) { if (Key.isDown(32)) { _root.prepped = "None"; _root.prepcost = 0; _root.mouse.mousetip.removeMovieClip(); _root.menubar.bigtext.text = ""; } }
Frame 18
function buildMap(map) { _root.attachMovie("mouse", "mouse", 4); _root.attachMovie("empty", "tiles", 2); _root.tiles.attachMovie("empty", "back", 1); _root.tiles.attachMovie("empty", "gore", 3); game.clip = _root.tiles; game.clip._x = 425; game.clip._y = 50; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } game.clip.back.cacheAsBitmap = true; } function updatetile(map, ty, tx) { game.clip = _root.tiles; var _local2 = (("t_" + ty) + "_") + tx; temphp = _root.game[(("t_" + ty) + "_") + tx].hp; if (((temphp > 0) && (_root.game[(("t_" + ty) + "_") + tx].isawall)) && (_root.game[(("t_" + ty) + "_") + tx].isadefender)) { tempwall = true; } else { tempwall = false; } game[_local2] = new game["Tile" + map[ty][tx]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((tx + ty) * game.tileW) / 2) * 300) + ((tx - ty) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (tx - ty) * game.tileW; _local5[_local2]._y = ((tx + ty) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local5[_local2].gotoAndStop(game[_local2].frame); _root.game[(("t_" + ty) + "_") + tx].hp = temphp; if (tempwall) { _root.game[(("t_" + ty) + "_") + tx].isawall = true; _root.game[(("t_" + ty) + "_") + tx].isadefender = true; } } function updatemap(map) { game.clip = _root.tiles; game.clip._x = 425; game.clip._y = 50; var _local7 = map[0].length; var _local8 = map.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = 0; while (_local3 < _local7) { var _local2 = (("t_" + _local4) + "_") + _local3; game[_local2] = new game["Tile" + map[_local4][_local3]](); if (game[_local2].walkable) { var _local5 = game.clip.back; } else { var _local5 = game.clip; } game[_local2].depth = (((((_local3 + _local4) * game.tileW) / 2) * 300) + ((_local3 - _local4) * game.tileW)) + 1; _local5.attachMovie("tile", _local2, game[_local2].depth); _local5[_local2]._x = (_local3 - _local4) * game.tileW; _local5[_local2]._y = ((_local3 + _local4) * game.tileW) / 2; if (game[_local2].frame == 1) { game[_local2].frame = random(4) + 7; } _local5[_local2].gotoAndStop(game[_local2].frame); _local3++; } _local4++; } } function getTarget() { if (((((game.xmouse >= 0) && (game.ymouse >= 0)) && (game.xmouse <= (myMap1[1].length - 1))) && (game.ymouse <= (myMap1.length - 1))) && (game[(("t_" + game.ymouse) + "_") + game.xmouse] != game[(("t_" + _root.player.ytile) + "_") + _root.player.xtile])) { if (prepped == "None") { } else if (_root.cash < _root.prepcost) { } else if ((((prepped == "Wood") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].hp < 50)) && (game[(("t_" + game.ymouse) + "_") + game.xmouse].isawall)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].isadefender)) { myMap1[game.ymouse][game.xmouse] = 4; _root.game[(("t_" + game.ymouse) + "_") + game.xmouse].hp = 50; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.controller.gotoAndPlay(2); } else if ((((prepped == "Stone") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].hp < 100)) && (game[(("t_" + game.ymouse) + "_") + game.xmouse].isawall)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].isadefender)) { myMap1[game.ymouse][game.xmouse] = 3; _root.game[(("t_" + game.ymouse) + "_") + game.xmouse].hp = 100; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.controller.gotoAndPlay(2); } else if (((prepped == "Wood") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].buildable)) && (_root.barricades < _root.barricadesmax)) { myMap1[game.ymouse][game.xmouse] = 4; _root.game[(("t_" + game.ymouse) + "_") + game.xmouse].hp = 50; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.barricades++; _root.controller.gotoAndPlay(2); } else if (((prepped == "Stone") && (game[(("t_" + game.ymouse) + "_") + game.xmouse].buildable)) && (_root.barricades < _root.barricadesmax)) { myMap1[game.ymouse][game.xmouse] = 3; _root.game[(("t_" + game.ymouse) + "_") + game.xmouse].hp = 100; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.barricades++; _root.controller.gotoAndPlay(2); } else if ((((((prepped == "Trap") && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].isawall)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstower)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstrap)) && (_root.traps < _root.trapsmax)) && (myMap1[game.ymouse][game.xmouse] != 6)) { myMap1[game.ymouse][game.xmouse] = 5; _root.updatetile(_root.myMap1, game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.traps++; _root.controller.gotoAndPlay(3); } else if ((((((prepped == "Defender") && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstower)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].containstrap)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].entry)) && (_root.gunmen < _root.gunmenmax)) && (!game[(("t_" + game.ymouse) + "_") + game.xmouse].isadefender)) { placedefender(game.ymouse, game.xmouse); _root.cash = _root.cash - _root.prepcost; updatecash(); _root.gunmen++; } else if ((prepped == "Wood") || (prepped == "Stone")) { } } } function updatecash() { _root.menubar.cashdisp.text = "$" + _root.cash; if (_root.reloadtime == 2) { _root.menubar.speedcost.text = "MAX"; } else { _root.menubar.speedcost.text = "$" + _root.speedcost; } if (_root.playerdamage < 210) { _root.menubar.damagecost.text = "$" + _root.damagecost; } else { _root.menubar.damagecost.text = "MAX"; } if (_root.currentphase == "Placement") { if ((_root.cash < 250) || (_root.gamepaused)) { _root.menubar.gunman.enabled = false; _root.menubar.gunmangraph._alpha = 50; } else { _root.menubar.gunman.enabled = true; _root.menubar.gunmangraph._alpha = 100; } if ((_root.cash < 40) || (_root.gamepaused)) { _root.menubar.barricade2.enabled = false; _root.menubar.barricade2._alpha = 50; } else { _root.menubar.barricade2.enabled = true; _root.menubar.barricade2._alpha = 100; } if ((_root.cash < 20) || (_root.gamepaused)) { _root.menubar.barricade1.enabled = false; _root.menubar.barricade1._alpha = 50; } else { _root.menubar.barricade1.enabled = true; _root.menubar.barricade1._alpha = 100; } if ((_root.cash < 10) || (_root.gamepaused)) { _root.menubar.trap.enabled = false; _root.menubar.trap._alpha = 50; } else { _root.menubar.trap.enabled = true; _root.menubar.trap._alpha = 100; } } if ((_root.cash < _root.speedcost) || (_root.gamepaused)) { _root.menubar.upspeed.enabled = false; _root.menubar.upspeed._alpha = 50; } else if (_root.reloadtime != 2) { _root.menubar.upspeed.enabled = true; _root.menubar.upspeed._alpha = 100; } if ((_root.cash < _root.damagecost) || (_root.gamepaused)) { _root.menubar.updamage.enabled = false; _root.menubar.updamage._alpha = 50; } else if (_root.playerdamage < 210) { _root.menubar.updamage.enabled = true; _root.menubar.updamage._alpha = 100; } if ((_root.cash < 150) || (_root.gamepaused)) { _root.menubar.refill.enabled = false; _root.menubar.refill._alpha = 50; } else { _root.menubar.refill.enabled = true; _root.menubar.refill._alpha = 100; } } function placedefender(ty, tx) { _root.defenders++; var _local4 = ty; var _local5 = tx; _root["defender" + _root.defenders] = {hp:_root.gunmanhp, maxhp:_root.gunmanhp, xtile:_local5, ytile:_local4, speed:0, moving:false, width:8, height:8, exp:0, power:_root.gunmanpower, dinged:false}; var _local3 = _root["defender" + _root.defenders]; _local3.x = _local3.xtile * game.tileW; _local3.y = _local3.ytile * game.tileW; _local3.xiso = _local3.x - _local3.y; _local3.yiso = (_local3.x + _local3.y) / 2; _local3.depthshift = (game.tileW - _local3.height) / 2; _local3.depth = (((_local3.yiso - _local3.depthshift) * 300) + _local3.xiso) + 1; game.clip.attachMovie("sprite_defender", "defender" + _root.defenders, _local3.depth); _local3.clip = game.clip["defender" + _root.defenders]; _local3.clip.cacheAsBitmap = true; _local3.clip._x = _local3.xiso; _local3.clip._y = _local3.yiso; _root.game[(("t_" + _local4) + "_") + _local5].isawall = true; _root.game[(("t_" + _local4) + "_") + _local5].isadefender = true; _root.game[(("t_" + _local4) + "_") + _local5].buildable = false; _root.game[(("t_" + _local4) + "_") + _local5].hp = _root["defender" + _root.defenders].hp; _local3.clip.gotoAndStop("north"); _local3.clip.mynum = _root.defenders; _root.game.clip["defender" + _root.defenders].rank1.text = ""; _root.game.clip["defender" + _root.defenders].rank2.text = ""; _root.game.clip["defender" + _root.defenders].rank3.text = ""; _root["defender" + _root.defenders].shooting = false; _root["defender" + _root.defenders].shootingdelay = 0; _local3.clip.onEnterFrame = function () { if (_root["defender" + this.mynum].exp == 10) { _root.game.clip["defender" + this.mynum].rank1.text = "^"; _root["defender" + this.mynum].power = 35; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 25) { _root.game.clip["defender" + this.mynum].rank2.text = "^"; _root["defender" + this.mynum].power = 45; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 45) { _root.game.clip["defender" + this.mynum].rank3.text = "^"; _root["defender" + this.mynum].power = 55; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 70) { _root.game.clip["defender" + this.mynum].rank3.text = ""; _root.game.clip["defender" + this.mynum].rank2.text = ""; _root.game.clip["defender" + this.mynum].rank1.text = "|"; _root["defender" + this.mynum].power = 65; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 100) { _root.game.clip["defender" + this.mynum].rank1.text = "||"; _root["defender" + this.mynum].power = 75; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 135) { _root.game.clip["defender" + this.mynum].rank1.text = "*"; _root["defender" + this.mynum].power = 85; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].exp == 175) { _root.game.clip["defender" + this.mynum].rank1.text = "***"; _root["defender" + this.mynum].power = 100; if (!_root["defender" + this.mynum].dinged) { var _local3 = new Sound(); _local3.attachSound("ding.wav"); _local3.start(); _root["defender" + this.mynum].dinged = true; _root.game.clip["defender" + this.mynum].splash.gotoAndPlay(2); } } else if (_root["defender" + this.mynum].dinged) { _root["defender" + this.mynum].dinged = false; } if (_root.currentphase == "Placement") { if (_root.thirdstatus == "Alive") { _root.game[(("t_" + myy) + "_") + myx].hp = _root["defender" + this.mynum].maxhp; _root["defender" + this.mynum].hp = _root["defender" + this.mynum].maxhp; _root.game.clip["defender" + this.mynum].life._height = _root["defender" + this.mynum].hp / 2; } } else { myx = _root["defender" + this.mynum].xtile; myy = _root["defender" + this.mynum].ytile; _root["defender" + this.mynum].hp = _root.game[(("t_" + myy) + "_") + myx].hp; _root.game.clip["defender" + this.mynum].life._height = _root["defender" + this.mynum].hp / 2; if (_root["defender" + this.mynum].hp <= 0) { spawnzombies(1, true, myx, myy); _root.game[(("t_" + myy) + "_") + myx].buildable = true; _root.game[(("t_" + myy) + "_") + myx].isawall = false; bob = _root["defender" + this.mynum]; _root.gunmen--; delete bob; _root.game.clip["defender" + this.mynum].removeMovieClip(); } else if (_root.game[(("t_" + (myy + 1)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + myx].containszombienum; zy = myy + 1; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + myx].containszombienum; zy = myy + 2; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + myx].containszombienum; zy = myy + 3; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + myx].containszombienum; zy = myy - 1; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + myx].containszombienum; zy = myy - 2; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + myx].containszombienum; zy = myy - 3; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 1)].containszombienum; zy = myy; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 2)].containszombienum; zy = myy; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 3)].containszombienum; zy = myy; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 1)].containszombienum; zy = myy; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 2)].containszombienum; zy = myy; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 3)].containszombienum; zy = myy; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 1)].containszombienum; zy = myy + 1; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 2)].containszombienum; zy = myy + 1; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 1)].containszombienum; zy = myy + 2; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 1)].containszombienum; zy = myy - 1; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 1)].containszombienum; zy = myy - 2; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 2)].containszombienum; zy = myy - 1; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 1)].containszombienum; zy = myy + 1; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 1)].containszombienum; zy = myy + 2; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 2)].containszombienum; zy = myy + 1; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 1)].containszombienum; zy = myy - 1; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 1)].containszombienum; zy = myy - 2; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 2)].containszombienum; zy = myy - 1; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 4)].containszombienum; zy = myy; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 4)].containszombienum; zy = myy; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + myx].containszombienum; zy = myy - 4; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + myx].containszombienum; zy = myy + 4; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx + 1)].containszombienum; zy = myy - 3; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx + 1)].containszombienum; zy = myy + 3; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 2)].containszombienum; zy = myy - 2; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 2)].containszombienum; zy = myy + 2; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 3)].containszombienum; zy = myy - 1; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 3)].containszombienum; zy = myy + 1; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 3)].containszombienum; zy = myy - 1; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 2)].containszombienum; zy = myy - 2; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx - 1)].containszombienum; zy = myy - 3; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx - 1)].containszombienum; zy = myy + 3; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 2)].containszombienum; zy = myy + 2; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 3)].containszombienum; zy = myy + 1; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + myx].containszombienum; zy = myy; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 5)].containszombienum; zy = myy; zx = myx - 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx - 6)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx - 6)].containszombienum; zy = myy; zx = myx - 6; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 5)].containszombienum; zy = myy; zx = myx + 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + myy) + "_") + (myx + 6)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + myy) + "_") + (myx + 6)].containszombienum; zy = myy; zx = myx + 6; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 5)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 5)) + "_") + myx].containszombienum; zy = myy - 5; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 6)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 6)) + "_") + myx].containszombienum; zy = myy - 6; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy + 5)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 5)) + "_") + myx].containszombienum; zy = myy + 5; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 6)) + "_") + myx].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 6)) + "_") + myx].containszombienum; zy = myy + 6; zx = myx; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 5)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 5)) + "_") + (myx + 1)].containszombienum; zy = myy + 5; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 5)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 5)) + "_") + (myx - 1)].containszombienum; zy = myy + 5; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + (myx + 2)].containszombienum; zy = myy + 4; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + (myx - 2)].containszombienum; zy = myy + 4; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + (myx + 1)].containszombienum; zy = myy + 4; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 4)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 4)) + "_") + (myx - 1)].containszombienum; zy = myy + 4; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx + 2)].containszombienum; zy = myy + 3; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx - 2)].containszombienum; zy = myy + 3; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx + 3)].containszombienum; zy = myy + 3; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 3)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 3)) + "_") + (myx - 3)].containszombienum; zy = myy + 3; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "south"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 3)].containszombienum; zy = myy + 2; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx - 4)].containszombienum; zy = myy + 2; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 4)].containszombienum; zy = myy + 1; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx - 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx - 5)].containszombienum; zy = myy + 1; zx = myx - 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 4)].containszombienum; zy = myy + 1; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 1)) + "_") + (myx + 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 1)) + "_") + (myx + 5)].containszombienum; zy = myy + 1; zx = myx + 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 4)].containszombienum; zy = myy + 2; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy + 2)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy + 2)) + "_") + (myx + 3)].containszombienum; zy = myy + 2; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 3)].containszombienum; zy = myy - 2; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx - 4)].containszombienum; zy = myy - 2; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 4)].containszombienum; zy = myy - 1; zx = myx - 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx - 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx - 5)].containszombienum; zy = myy - 1; zx = myx - 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx - 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx - 3)].containszombienum; zy = myy - 3; zx = myx - 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "west"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx - 2)].containszombienum; zy = myy - 3; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + (myx - 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + (myx - 2)].containszombienum; zy = myy - 4; zx = myx - 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + (myx - 1)].containszombienum; zy = myy - 4; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 5)) + "_") + (myx - 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 5)) + "_") + (myx - 1)].containszombienum; zy = myy - 5; zx = myx - 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 5)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 5)) + "_") + (myx + 1)].containszombienum; zy = myy - 5; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + (myx + 1)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + (myx + 1)].containszombienum; zy = myy - 4; zx = myx + 1; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 4)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 4)) + "_") + (myx + 2)].containszombienum; zy = myy - 4; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx + 2)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx + 2)].containszombienum; zy = myy - 3; zx = myx + 2; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 3)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 3)) + "_") + (myx + 3)].containszombienum; zy = myy - 3; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 3)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 3)].containszombienum; zy = myy - 2; zx = myx + 3; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 2)) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 2)) + "_") + (myx + 4)].containszombienum; zy = myy - 2; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "north"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 4)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 4)].containszombienum; zy = myy - 1; zx = myx + 4; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } else if (_root.game[(("t_" + (myy - 1)) + "_") + (myx + 5)].containszombie && (!_root["defender" + this.mynum].shooting)) { znum = _root.game[(("t_" + (myy - 1)) + "_") + (myx + 5)].containszombienum; zy = myy - 1; zx = myx + 5; dnum = this.mynum; dy = myy; dx = myx; _root.shoot(znum, zy, zx, dnum, dy, dx, "east"); } } }; } function shoot(znum, zy, zx, dnum, dy, dx, direct) { if ((_root["defender" + dnum].shootingdelay == 0) && (!playershot)) { _root.menubar.ammo.text = _root.ammo; game.clip["defender" + dnum].gotoAndStop("attack " + direct); _root["defender" + dnum].hashot = true; _root["defender" + dnum].shootingdelay = 30; if (direct == "north") { _root["defender" + dnum].killdir = "south"; } else if (direct == "south") { _root["defender" + dnum].killdir = "north"; } else if (direct == "west") { _root["defender" + dnum].killdir = "east"; } else if (direct == "east") { _root["defender" + dnum].killdir = "west"; } } else if ((_root["defender" + dnum].shootingdelay == 22) && (_root["defender" + dnum].hashot)) { _root["zombie" + znum].hp = _root["zombie" + znum].hp - _root["defender" + dnum].power; if (_root.secondstatus == "Alive") { _root["zombie" + znum].hp = _root["zombie" + znum].hp - (_root["defender" + dnum].power / 5); } if (_root.myMap1[zy][zx] == 0) { _root.myMap1[zy][zx] = 15; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] > 12) && (_root.myMap1[zy][zx] < 22)) { _root.myMap1[zy][zx] = _root.myMap1[zy][zx] + 1; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] == 0)) { _root.myMap1[zy - 1][zx] = 15; _root.updatetile(_root.myMap1, zy - 1, zx); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] > 12)) && (_root.myMap1[zy - 1][zx] > 22)) { _root.myMap1[zy - 1][zx] = _root.myMap1[zy - 1][zx] + 1; _root.updatetile(_root.myMap1, zy - 1, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] == 0)) { _root.myMap1[zy][zx - 1] = 15; _root.updatetile(_root.myMap1, zy, zx - 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx - 1); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] == 0)) { _root.myMap1[zy][zx + 1] = 15; _root.updatetile(_root.myMap1, zy, zx + 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx + 1); } dp = game.clip["zombie" + znum].depth; rtx = _root["zombie" + znum].xtile * game.tileW; rty = _root["zombie" + znum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; _root["defender" + dnum].shootingdelay--; _root["defender" + dnum].hashot = false; if (_root["zombie" + znum].hp <= 0) { _root.game[(("t_" + zy) + "_") + zx].containszombie = false; dp = game.clip["zombie" + znum].depth; rtx = _root["zombie" + znum].xtile * game.tileW; rty = _root["zombie" + znum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; if (_root.myMap1[zy][zx] == 0) { _root.myMap1[zy][zx] = 15; _root.updatetile(_root.myMap1, zy, zx); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if ((_root.myMap1[zy][zx] > 12) && (_root.myMap1[zy][zx] < 22)) { _root.myMap1[zy][zx] = _root.myMap1[zy][zx] + 1; _root.updatetile(_root.myMap1, zy, zx); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] == 0)) { _root.myMap1[zy - 1][zx] = 15; _root.updatetile(_root.myMap1, zy - 1, zx); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] > 12)) && (_root.myMap1[zy - 1][zx] > 22)) { _root.myMap1[zy - 1][zx] = _root.myMap1[zy - 1][zx] + 1; _root.updatetile(_root.myMap1, zy - 1, zx); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] == 0)) { _root.myMap1[zy][zx - 1] = 15; _root.updatetile(_root.myMap1, zy, zx - 1); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx - 1); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] == 0)) { _root.myMap1[zy][zx + 1] = 15; _root.updatetile(_root.myMap1, zy, zx + 1); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx + 1); _root.game[(("t_" + dy) + "_") + dx].hp = _root["defender" + dnum].hp; } game.clip["zombie" + znum].removeMovieClip(); game.clip.attachMovie("sprite_brit_guard", "zombie" + znum, dp); game.clip["zombie" + znum]._x = rtxiso; game.clip["zombie" + znum]._y = rtyiso; game.clip["zombie" + znum].gotoAndStop("die " + _root["defender" + dnum].killdir); _root.bodycount++; _root.spawnedzombies--; _root["defender" + dnum].exp++; award = _root.zombiecashaward + _root.currentday; if (award > 11) { award = 11; } _root.cash = _root.cash + award; updatecash(); _root.menubar.cashdisp.text = "$" + _root.cash; _root.menubar.bodycount.text = _root.bodycount; } } else { _root["defender" + dnum].shootingdelay--; } } function nightspawn() { spawnedzombies = _root.spawnedzombies; var _local2 = 15 + (_root.currentday * 2); if (_local2 > 30) { _local2 = 30; } if (_root.currentday < 2) { if ((spawnedzombies + 1) < _local2) { spawnzombies(1); _root.spawnedzombies++; } } else if (_root.currentday < 4) { if ((spawnedzombies + 2) < _local2) { spawnzombies(2); _root.spawnedzombies = _root.spawnedzombies + 2; } } else if (_root.currentday < 6) { if ((spawnedzombies + 3) < _local2) { spawnzombies(3); _root.spawnedzombies = _root.spawnedzombies + 3; } } else if (_root.currentday < 8) { if ((spawnedzombies + 4) < _local2) { spawnzombies(4); _root.spawnedzombies = _root.spawnedzombies + 4; } } else if (_root.currentday < 10) { if ((spawnedzombies + 5) < _local2) { spawnzombies(5); _root.spawnedzombies = _root.spawnedzombies + 5; } } else if ((spawnedzombies + 6) < _local2) { spawnzombies(6); _root.spawnedzombies = _root.spawnedzombies + 6; } _root.zombietimer = 60 - ((_root.currentday * 1.25) * 4); if (_root.zombietimer < 12) { _root.zombietimer = 12; } } function placeplayer() { var _local3 = 26; var _local4 = 11; char = 1; _root.player = {hp:playerHpMax, maxhp:playerHpMax, xtile:_local4, ytile:_local3, speed:0, moving:false, width:8, height:8}; var _local2 = _root.player; _local2.x = _local2.xtile * game.tileW; _local2.y = _local2.ytile * game.tileW; _local2.xiso = _local2.x - _local2.y; _local2.yiso = (_local2.x + _local2.y) / 2; _local2.depthshift = (game.tileW - _local2.height) / 2; _local2.depth = (((_local2.yiso - _local2.depthshift) * 300) + _local2.xiso) + 1; game.clip.attachMovie("sprite_eng", "player", _local2.depth); _local2.clip = game.clip.player; _local2.clip._x = _local2.xiso; _local2.clip._y = _local2.yiso; _local2.clip.gotoAndStop(1); } function placesecond() { var _local3 = 15; var _local4 = 21; _root.secondstatus = "Alive"; char = 1; _root.second = {hp:5, maxhp:5, xtile:_local4, ytile:_local3, speed:0, moving:false, width:8, height:8}; var _local2 = _root.second; _local2.x = _local2.xtile * game.tileW; _local2.y = _local2.ytile * game.tileW; _local2.xiso = _local2.x - _local2.y; _local2.yiso = (_local2.x + _local2.y) / 2; _local2.depthshift = (game.tileW - _local2.height) / 2; _local2.depth = (((_local2.yiso - _local2.depthshift) * 300) + _local2.xiso) + 1; game.clip.attachMovie("sprite_sci", "second", _local2.depth); _local2.clip = game.clip.second; _local2.clip._x = _local2.xiso; _local2.clip._y = _local2.yiso; _local2.clip.gotoAndStop(1); } function placethird() { var _local3 = 15; var _local4 = 3; _root.thirdstatus = "Alive"; char = 1; _root.third = {hp:5, maxhp:15, xtile:_local4, ytile:_local3, speed:0, moving:false, width:8, height:8}; var _local2 = _root.third; _local2.x = _local2.xtile * game.tileW; _local2.y = _local2.ytile * game.tileW; _local2.xiso = _local2.x - _local2.y; _local2.yiso = (_local2.x + _local2.y) / 2; _local2.depthshift = (game.tileW - _local2.height) / 2; _local2.depth = (((_local2.yiso - _local2.depthshift) * 300) + _local2.xiso) + 1; game.clip.attachMovie("sprite_med", "third", _local2.depth); _local2.clip = game.clip.third; _local2.clip._x = _local2.xiso; _local2.clip._y = _local2.yiso; _local2.clip.gotoAndStop(1); } function spawnzombies(num, convert, x, y) { i = 0; while (i < num) { _root.numberofzombies++; d4 = random(4); tempx = x; tempy = y; var _local5 = random(3); if (((_local5 == 0) && (secondstatus == "Dead")) && (!convert)) { _local5 = random(3); tempx = _root.myMap1[0].length - 1; tempy = random(_root.myMap1.length - 10); } else if (((_local5 == 1) && (thirdstatus == "Dead")) && (!convert)) { tempx = 0; tempy = random(_root.myMap1.length - 10); } else if (!convert) { tempx = random(_root.myMap1[0].length); tempy = 0; } if ((tempx == 0) && (tempy == 0)) { tempx = 1; } _root["zombie" + _root.numberofzombies] = {hp:_root.initialzombiehp + (_root.currentday * _root.zombiehpmodifier), xtile:tempx, ytile:tempy, str:_root.initialzombiestrength + (_root.currentday / 15), moving:false, width:8, height:8}; var ob = _root["zombie" + _root.numberofzombies]; if (_root.thirdstatus == "Alive") { _root["zombie" + _root.numberofzombies].str = _root["zombie" + _root.numberofzombies].str - _root.medicreduction; } ob.x = ob.xtile * game.tileW; ob.y = ob.ytile * game.tileW; ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob.depthshift = (game.tileW - ob.height) / 2; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; game.clip.attachMovie("sprite_brit_guard", "zombie" + _root.numberofzombies, game.clip.getNextHighestDepth()); ob.clip = game.clip["zombie" + _root.numberofzombies]; ob.clip._x = ob.xiso; ob.clip._y = ob.yiso; ob.clip.gotoAndStop("rise south"); ob.clip.mynum = _root.numberofzombies; ob.clip.moving = false; var _local4 = random(4); if ((_root.secondstatus == "Alive") && (_local4 == 0)) { _root["zombie" + _root.numberofzombies].target = "second"; } else if ((_root.thirdstatus == "Alive") && (_local4 == 1)) { _root["zombie" + _root.numberofzombies].target = "third"; } else { _root["zombie" + _root.numberofzombies].target = "player"; } _root["zombie" + _root.numberofzombies].movecount = 0; _root["zombie" + _root.numberofzombies].moving = false; _root["zombie" + _root.numberofzombies].bashing = false; _root["zombie" + _root.numberofzombies].spawned = false; ob.clip.onEnterFrame = function () { ob = game.clip["zombie" + this.mynum]; num = this.mynum; if (_root["zombie" + this.mynum].target == "player") { targetx = _root.player.xtile; targety = _root.player.ytile; } else if (_root["zombie" + this.mynum].target == "second") { targetx = _root.second.xtile; targety = _root.second.ytile; } else if (_root["zombie" + this.mynum].target == "third") { targetx = _root.third.xtile; targety = _root.third.ytile; } if (((random(9600) == 0) || ((_root["zombie" + this.mynum].target == "second") && (_root.secondstatus == "Dead"))) || ((_root["zombie" + this.mynum].target == "third") && (_root.thirdstatus == "Dead"))) { if (_root.secondstatus == "Alive") { _root["zombie" + this.mynum].target = "second"; } else if (_root.thirdstatus == "Alive") { _root["zombie" + this.mynum].target = "third"; } else { _root["zombie" + this.mynum].target = "player"; } } myx = _root["zombie" + num].xtile; myy = _root["zombie" + num].ytile; if (_root["zombie" + num].walling && (_root.game[(("t_" + this.desty) + "_") + this.destx].hp > 0)) { _root.game[(("t_" + this.desty) + "_") + this.destx].hp = _root.game[(("t_" + this.desty) + "_") + this.destx].hp - _root["zombie" + this.mynum].str; frame = "t" + Math.round(_root.game[(("t_" + this.desty) + "_") + this.destx].hp); _root.tiles[(("t_" + this.desty) + "_") + this.destx].inner.gotoAndStop(frame); if (_root.game[(("t_" + this.desty) + "_") + this.destx].hp <= 0) { if (!_root.game[(("t_" + this.desty) + "_") + this.destx].isadefender) { _root.barricades--; } } } if (_root["zombie" + num].walling) { if (_root.currentphase == "Placement") { _root["zombie" + num].walling = false; } if (_root.game[(("t_" + this.desty) + "_") + this.destx].hp <= 0) { _root.myMap1[this.desty][this.destx] = 0; _root.updatetile(_root.myMap1, this.desty, this.destx); bob = _root.game[(("t_" + this.desty) + "_") + this.destx]; _root.tiles[(("t_" + this.desty) + "_") + this.destx].removeMovieClip(); delete bob; _root["zombie" + num].walling = false; _root["zombie" + num].movecount = 0; if (this.dirx == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } else if (this.dirx == -1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } else if (this.diry == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } } if ((!_root["zombie" + num].moving) && (!_root["zombie" + num].walling)) { _root["zombie" + num].moving = true; if (random(20) < 2) { targetx = targetx + random(8); } else if (random(20) < 2) { targety = targety + random(8); } else if (random(20) < 2) { targetx = targetx - random(8); } else if (random(20) < 2) { targety = targety - random(8); } if (random(4) == 0) { if ((myx < targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = 1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise east"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } } else if ((myx > targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = -1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise west"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } } else if ((myy > targety) && (!_root["zombie" + num].walling)) { this.diry = -1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise north"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } else if ((myy < targety) && (!_root["zombie" + num].walling)) { this.diry = 1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } } } else { if ((myy > targety) && (!_root["zombie" + num].walling)) { this.diry = -1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise north"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("north"); } } else if ((myy < targety) && (!_root["zombie" + num].walling)) { this.diry = 1; this.dirx = 0; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("south"); } } else if ((myx < targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = 1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise east"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("east"); } } else if ((myx > targetx) && (!_root["zombie" + num].walling)) { this.diry = 0; this.dirx = -1; _root["zombie" + this.mynum].movecount = 0; if (!_root["zombie" + num].spawned) { this.diry = 0; this.dirx = 0; _root["zombie" + num].spawned = true; _root.game.clip["zombie" + this.mynum].gotoAndStop("rise west"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("west"); } } if (random(40) < 2) { targetx = targetx + random(8); } else if (random(40) < 2) { targety = targety + random(8); } else if (random(40) < 2) { targetx = targetx - random(8); } else if (random(40) < 2) { targety = targety - random(8); } } ob.x = _root["zombie" + ob.mynum].xtile * game.tileW; ob.y = _root["zombie" + ob.mynum].ytile * game.tileW; this.destx = _root["zombie" + this.mynum].xtile + this.dirx; this.desty = _root["zombie" + this.mynum].ytile + this.diry; if ((this.desty == _root.player.ytile) && (this.destx == _root.player.xtile)) { bob = _root["zombie" + this.mynum]; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); delete bob; _root.player.hp--; game.clip.player.gotoAndStop("hit"); _root.menubar.lives.text = _root.player.hp; var _local3 = _root.menubar.damageFace_mc._totalframes - int((_root.player.hp * _root.menubar.damageFace_mc._totalframes) / playerHpMax); trace((("hp: " + _root.player.hp) + " face: ") + _local3); _root.menubar.damageFace_mc.gotoAndStop(_local3); _root.spawnedzombies--; if (_root.player.hp <= 0) { gameOverLose(); } } else if (((this.desty == _root.second.ytile) && (this.destx == _root.second.xtile)) && (_root.secondstatus == "Alive")) { bob = _root["zombie" + this.mynum]; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); delete bob; _root.second.hp--; game.clip.second.gotoAndStop("hit"); _root.menubar.secondlives.text = _root.second.hp; _root.spawnedzombies--; if (_root.second.hp <= 0) { _root.secondstatus = "Dead"; game.clip.second.gotoAndStop("die"); } } else if (((this.desty == _root.third.ytile) && (this.destx == _root.third.xtile)) && (_root.thirdstatus == "Alive")) { bob = _root["zombie" + this.mynum]; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); delete bob; _root.third.hp--; game.clip.third.gotoAndStop("hit"); _root.menubar.thirdlives.text = _root.third.hp; _root.spawnedzombies--; if (_root.third.hp <= 0) { _root.thirdstatus = "Dead"; game.clip.third.gotoAndStop("die"); } } if (_root.game[(("t_" + this.desty) + "_") + this.destx].isawall) { _root["zombie" + this.mynum].movecount = 31; _root["zombie" + this.mynum].walling = true; if (this.dirx == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack east"); } else if (this.dirx == -1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack west"); } else if (this.diry == 1) { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack south"); } else { _root.game.clip["zombie" + this.mynum].gotoAndStop("attack north"); } } _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root["zombie" + this.mynum].xtile = _root["zombie" + this.mynum].xtile + this.dirx; _root["zombie" + this.mynum].ytile = _root["zombie" + this.mynum].ytile + this.diry; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = true; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombienum = this.mynum; if (_root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containstrap || (_root.currentphase == "Placement")) { rtx = _root["zombie" + this.mynum].xtile * game.tileW; rty = _root["zombie" + this.mynum].ytile * game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; game.clip["zombie" + this.mynum]._x = rtxiso; game.clip["zombie" + this.mynum]._y = rtyiso; if (_root.currentphase == "Defend") { if (_root.game[(("t_" + (_root["zombie" + this.mynum].ytile + 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombie) { _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile + 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp = _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile + 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp - 20; if (_root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile + 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp <= 0) { _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile + 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp = 1; } } if (_root.game[(("t_" + (_root["zombie" + this.mynum].ytile - 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombie) { _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile - 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp = _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile - 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp - 20; if (_root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile - 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp <= 0) { _root["zombie" + _root.game[(("t_" + (_root["zombie" + this.mynum].ytile - 1)) + "_") + _root["zombie" + this.mynum].xtile].containszombienum].hp = 1; } } if (_root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile + 1)].containszombie) { _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile + 1)].containszombienum].hp = _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile + 1)].containszombienum].hp - 20; if (_root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile + 1)].containszombienum].hp <= 0) { _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile + 1)].containszombienum].hp = 1; } } if (_root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile - 1)].containszombie) { _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile - 1)].containszombienum].hp = _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile - 1)].containszombienum].hp - 20; if (_root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile - 1)].containszombienum].hp <= 0) { _root["zombie" + _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + (_root["zombie" + this.mynum].xtile - 1)].containszombienum].hp = 1; } } _root.myMap1[_root["zombie" + this.mynum].ytile][_root["zombie" + this.mynum].xtile] = 0; _root.updatetile(_root.myMap1, _root["zombie" + this.mynum].ytile, _root["zombie" + this.mynum].xtile); _root.traps--; } fx = _root.game.clip["zombie" + this.mynum]._x; fy = _root.game.clip["zombie" + this.mynum]._y; _root.tiles.attachMovie("fire", "fire" + this.mynum, _root.tiles.getNextHighestDepth(), {_x:fx + 5, _y:fy + 5, num:this.mynum}); _root.tiles["fire" + this.mynum].swapDepths(_root.game.clip["zombie" + this.mynum].depth); bob = _root["zombie" + this.mynum]; delete bob; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; _root.game.clip["zombie" + this.mynum].removeMovieClip(); if (_root.currentphase == "Defend") { _root.bodycount++; _root.spawnedzombies--; _root.cash = _root.cash + (_root.zombiecashaward + _root.currentday); _root.menubar.cashdisp.text = "$" + _root.cash; _root.menubar.bodycount.text = _root.bodycount; } else if ((this.mynum == 1) && (_currentday < maxDays)) { gameOverWin(); } } } if (_root["zombie" + this.mynum].movecount < 30) { ob.y = ob.y + (ob.diry * 0.5); ob.x = ob.x + (ob.dirx * 0.5); ob.xiso = ob.x - ob.y; ob.yiso = (ob.x + ob.y) / 2; ob._x = ob.xiso; ob._y = ob.yiso; ob.depthshift = (_root.game.tileW - _root["zombie" + this.mynum].height) / 2; ob.depth = (((ob.yiso - ob.depthshift) * 300) + ob.xiso) + 1; ob.swapDepths(ob.depth); _root["zombie" + this.mynum].movecount++; } else if (!_root["zombie" + this.mynum].walling) { _root["zombie" + this.mynum].moving = false; } }; i++; } } function placementMode() { if (((_root.player.hp < playerHpMax) && (_root.second.hp > 0)) && (_root.thirdstatus == "Alive")) { _root.player.hp++; _root.menubar.lives.text = _root.player.hp; var _local2 = _root.menubar.damageFace_mc._totalframes - int((_root.player.hp * _root.menubar.damageFace_mc._totalframes) / playerHpMax); trace((("hp: " + _root.player.hp) + " face: ") + _local2); _root.menubar.damageFace_mc.gotoAndStop(_local2); } if (((_root.second.hp < 5) && (_root.second.hp > 0)) && (_root.thirdstatus == "Alive")) { _root.second.hp++; } _root.currentphase = "Placement"; _root.timemin = _root.daytimemin; _root.timesec = _root.daytimesec; _root.timer.textColor = "0xFFCC00"; _root.playertimer = 0; _root.currentday++; updatecash(); nightspawning = false; _root.music.gotoAndPlay("day"); game.clip.player.gotoAndStop("stand"); _root.menubar.daytext.text = "Day " + _root.currentday; barricadesmax = barricadesmax + _root.currentday; if (barricadesmax > 75) { barricadesmax = 75; } trapsmax = trapsmax + Math.floor(_root.currentday / 2); if (trapsmax > 25) { trapsmax = 25; } if (_root.currentday == 5) { gunmenmax = 6; } else if (_root.currentday == 8) { gunmenmax = 7; } else if (_root.currentday >= 11) { gunmenmax = 8; } updatecash(); if (_root.currentday < maxDays) { _root.menubar.wait.enabled = true; _root.menubar.wait._alpha = 100; } _root.numberofzombies = 0; _root.spawnedzombies = 0; _root.menubar.pause.enabled = true; _root.menubar.pause._alpha = 100; } function defendMode() { _root.menubar.pause.enabled = false; _root.menubar.pause._alpha = 25; _root.currentphase = "Defend"; _root.timemin = _root.nighttimemin; _root.timesec = _root.nighttimesec; game.clip.player.gotoAndStop("kneeling"); _root.timer.textColor = "0x00FF00"; _root.menubar.daytext.text = "Night " + (_root.currentday + 1); nightspawning = true; nightspawn(); _root.music.gotoAndPlay("night"); _root.prepped = "None"; _root.preppedcost = 0; _root.menubar.gunman.enabled = false; _root.menubar.gunmangraph._alpha = 50; _root.menubar.barricade2.enabled = false; _root.menubar.barricade2._alpha = 50; _root.menubar.barricade1.enabled = false; _root.menubar.barricade1._alpha = 50; _root.menubar.trap.enabled = false; _root.menubar.trap._alpha = 50; } function work() { if (!_root.gamepaused) { if (_root.playertimer > 0) { if (_root.reloadtime == 4) { playertimer = playertimer - 2.5; } else if (_root.reloadtime == 3.5) { playertimer = playertimer - 2.9; } else if (_root.reloadtime == 3) { playertimer = playertimer - 3.5; } else if (_root.reloadtime == 2.5) { playertimer = playertimer - 4; } else if (_root.reloadtime == 2) { playertimer = playertimer - 5; } if ((_root.playertimer < 220) && (_root.playertimer > 200)) { _root.game.clip.player.reload.text = "---------"; } else if ((_root.playertimer < 200) && (_root.playertimer > 175)) { _root.game.clip.player.reload.text = "--------"; } else if ((_root.playertimer < 175) && (_root.playertimer > 150)) { _root.game.clip.player.reload.text = "-------"; } else if ((_root.playertimer < 150) && (_root.playertimer > 125)) { _root.game.clip.player.reload.text = "------"; } else if ((_root.playertimer < 125) && (_root.playertimer > 100)) { _root.game.clip.player.reload.text = "-----"; } else if ((_root.playertimer < 100) && (_root.playertimer > 75)) { _root.game.clip.player.reload.text = "----"; } else if ((_root.playertimer < 75) && (_root.playertimer > 50)) { _root.game.clip.player.reload.text = "---"; } else if ((_root.playertimer < 50) && (_root.playertimer > 25)) { _root.game.clip.player.reload.text = "--"; } else if ((_root.playertimer < 25) && (_root.playertimer > 0)) { _root.game.clip.player.reload.text = "-"; } } else if (_root.playertimer <= 0) { _root.playertimer = 0; _root.game.clip.player.reload.text = ""; _root.game.clip.player.reload2.text = ""; if (!_root.reloaded) { var _local4 = new Sound(); _local4.attachSound("reload.wav"); _local4.start(); _root.reloaded = true; } } if (!_root.endgame) { if (_root.zombietimer > 0) { _root.zombietimer--; } if ((_root.zombietimer <= 0) && (_root.nightspawning)) { nightspawn(); } _root.movetimer++; if (_root.movetimer == 24) { _root.movetimer = 0; } _root.timeradjust--; if (_root.timeradjust == 0) { _root.timeradjust = 24; if (_root.currentphase == "Defend") { _root.secondssurvived++; if (_root.secondssurvived == 60) { _root.minutessurvived++; _root.secondssurvived = 0; } _root.survivaltime = _root.minutessurvived + (_root.secondssurvived / 100); } _root.timesec--; } if ((_root.timesec == 0) && (_root.timemin == 0)) { if (_root.currentphase == "Defend") { placementMode(); } } else if ((_root.timesec == 0) && (_root.timemin > 0)) { _root.timemin--; _root.timesec = 59; if (_root.currentphase == "Placement") { _root.timer.text = ""; } else { _root.timer.text = (("Zombie Timer - " + _root.timemin) + ":") + _root.timesec; } } else if ((_root.timesec < 10) && (_root.timesec > -1)) { if (_root.currentphase == "Placement") { _root.timer.text = ""; } else { _root.timer.text = (("Zombie Timer - " + _root.timemin) + ":0") + _root.timesec; } } else if (_root.timesec > 9) { if (_root.currentphase == "Placement") { _root.timer.text = ""; } else { _root.timer.text = (("Zombie Timer - " + _root.timemin) + ":") + _root.timesec; } } _root.menubar.gunmenmax.text = _root.gunmenmax; _root.menubar.trapsmax.text = _root.trapsmax; _root.menubar.barricadesmax.text = _root.barricadesmax; _root.menubar.gunmen.text = _root.gunmen; _root.menubar.traps.text = _root.traps; _root.menubar.barricades.text = _root.barricades; _root.menubar.ammo.text = _root.ammo; _root.menubar.ammomax.text = _root.ammomax; _root.menubar.shots.text = _root.playershots; _root.menubar.scientist.text = _root.second.hp; _root.menubar.medic.text = _root.third.hp; _root.menubar.reloadtime.text = _root.reloadtime + " sec"; _root.menubar.playerdamage.text = _root.playerdamage; var _local2 = ((2 * game.clip._ymouse) - game.clip._xmouse) / 2; var _local3 = game.clip._xmouse + _local2; game.ymouse = Math.round(_local2 / game.tileW); game.xmouse = Math.round(_local3 / game.tileW) - 1; game.targy = Math.round(_local2 / game.tileW); game.targx = Math.round(_local3 / game.tileW) - 1; if (((((game.xmouse >= 0) && (game.ymouse >= 0)) && (game.xmouse <= (myMap1[1].length - 1))) && (game.ymouse <= (myMap1.length - 1))) && (_root.currentphase == "Placement")) { _root.mouse._x = ((game.xmouse - game.ymouse) * game.tileW) + game.clip._x; _root.mouse._y = (((game.xmouse + game.ymouse) * game.tileW) / 2) + 50; } else { _root.mouse._x = 1000; _root.mouse._y = 1000; } } } } function gameOverLose() { _root.timer.text = "GAME OVER!"; tempx = game.clip.player._x + _root.game.clip._x; tempy = game.clip.player._y + _root.game.clip._y; _root.tiles.removeMovieClip(); _root.game.removeMovieClip(); _root.endgame = true; _root.menubar.removeMovieClip(); stopAllSounds(); _root.gotoAndStop("lose"); } function gameOverWin() { _root.timer.text = "GAME OVER!"; tempx = game.clip.player._x + _root.game.clip._x; tempy = game.clip.player._y + _root.game.clip._y; _root.tiles.removeMovieClip(); _root.game.removeMovieClip(); _root.endgame = true; _root.menubar.removeMovieClip(); stopAllSounds(); _root.gotoAndStop("win"); } Stage.scaleMode = "noScale"; Stage.align = "C"; maxDays = 10; animplayed = false; drawmode = "Walls"; secondssurvived = 0; minutessurvived = 0; survivaltime = 0; playerHpMax = 18; playerdamage = 40; reloadtime = 4; speedcost = 150; damagecost = 150; playertimer = 0; reloaded = true; gunmanhp = 50; gunmanpower = 20; nightspawning = false; titleon = false; spawnedzombies = 0; endgame = false; zombiecashaward = 6; initialzombiehp = 60; initialzombiestrength = 0.8; zombiehpmodifier = 18; secondstatus = "Alive"; thirdstatus = "Alive"; medicreduction = 0.35; ammo = 10000000000; ammomax = 10000000000; bodycount = 0; zombietimer = 0; numberofzombies = 0; barricadesmax = 60; barricades = 29; trapsmax = 15; traps = 0; gunmenmax = 5; gunmen = 0; movetimer = 0; defenders = 0; currentday = 0; timemin = 10; timesec = 2; daytimemin = 1; daytimesec = 30; nighttimemin = 1; nighttimesec = 45; timeradjust = 1; currentphase = "Placement"; mousemode = "Normal"; gamepaused = false; cash = 1000; prepped = "None"; preppedcost = 0; myMap1 = [[6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 4, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 4, 6], [6, 4, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 4, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 4, 4, 0, 4, 0, 4, 4, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 6], [6, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]]; game = {tileW:15, tileH:15}; towercount = 0; monstercount = 0; scrollspeed = 100; game.Tile15 = function () { }; game.Tile15.prototype.walkable = true; game.Tile15.prototype.diggable = false; game.Tile15.prototype.buildable = true; game.Tile15.prototype.containstower = false; game.Tile15.prototype.cost = 4; game.Tile15.prototype.frame = 15; game.Tile16 = function () { }; game.Tile16.prototype.walkable = true; game.Tile16.prototype.diggable = false; game.Tile16.prototype.buildable = true; game.Tile16.prototype.containstower = false; game.Tile16.prototype.cost = 4; game.Tile16.prototype.frame = 16; game.Tile17 = function () { }; game.Tile17.prototype.walkable = true; game.Tile17.prototype.diggable = false; game.Tile17.prototype.buildable = true; game.Tile17.prototype.containstower = false; game.Tile17.prototype.cost = 4; game.Tile17.prototype.frame = 17; game.Tile18 = function () { }; game.Tile18.prototype.walkable = true; game.Tile18.prototype.diggable = false; game.Tile18.prototype.buildable = true; game.Tile18.prototype.containstower = false; game.Tile18.prototype.cost = 4; game.Tile18.prototype.frame = 18; game.Tile19 = function () { }; game.Tile19.prototype.walkable = true; game.Tile19.prototype.diggable = false; game.Tile19.prototype.buildable = true; game.Tile19.prototype.containstower = false; game.Tile19.prototype.cost = 4; game.Tile19.prototype.frame = 19; game.Tile20 = function () { }; game.Tile20.prototype.walkable = true; game.Tile20.prototype.diggable = false; game.Tile20.prototype.buildable = true; game.Tile20.prototype.containstower = false; game.Tile20.prototype.cost = 4; game.Tile20.prototype.frame = 20; game.Tile21 = function () { }; game.Tile21.prototype.walkable = true; game.Tile21.prototype.diggable = false; game.Tile21.prototype.buildable = true; game.Tile21.prototype.containstower = false; game.Tile21.prototype.cost = 4; game.Tile21.prototype.frame = 21; game.Tile22 = function () { }; game.Tile22.prototype.walkable = true; game.Tile22.prototype.diggable = false; game.Tile22.prototype.buildable = true; game.Tile22.prototype.containstower = false; game.Tile22.prototype.cost = 4; game.Tile22.prototype.frame = 22; game.Tile0 = function () { }; game.Tile0.prototype.walkable = true; game.Tile0.prototype.diggable = false; game.Tile0.prototype.buildable = true; game.Tile0.prototype.containstower = false; game.Tile0.prototype.cost = 4; game.Tile0.prototype.frame = 1; game.Tile1 = function () { }; game.Tile1.prototype.walkable = true; game.Tile1.prototype.diggable = true; game.Tile1.prototype.buildable = true; game.Tile1.prototype.containstower = true; game.Tile1.prototype.cost = 6; game.Tile1.prototype.frame = 2; game.Tile2 = function () { }; game.Tile2.prototype.walkable = false; game.Tile2.prototype.diggable = false; game.Tile2.prototype.buildable = false; game.Tile2.prototype.containstower = true; game.Tile2.prototype.cost = 999; game.Tile2.prototype.frame = 3; game.Tile3 = function () { }; game.Tile3.prototype.walkable = false; game.Tile3.prototype.diggable = false; game.Tile3.prototype.buildable = false; game.Tile3.prototype.upgradable = false; game.Tile3.prototype.containstower = true; game.Tile3.prototype.isawall = true; game.Tile3.prototype.hp = 100; game.Tile3.prototype.cost = 25; game.Tile3.prototype.frame = 4; game.Tile4 = function () { }; game.Tile4.prototype.walkable = false; game.Tile4.prototype.diggable = false; game.Tile4.prototype.upgradable = true; game.Tile4.prototype.buildable = false; game.Tile4.prototype.containstower = true; game.Tile4.prototype.isawall = true; game.Tile4.prototype.hp = 50; game.Tile4.prototype.cost = 25; game.Tile4.prototype.frame = 5; game.Tile5 = function () { }; game.Tile5.prototype.walkable = true; game.Tile5.prototype.diggable = false; game.Tile5.prototype.upgradable = false; game.Tile5.prototype.buildable = false; game.Tile5.prototype.containstrap = true; game.Tile5.prototype.frame = 6; game.Tile6 = function () { }; game.Tile6.prototype.walkable = true; game.Tile6.prototype.diggable = false; game.Tile6.prototype.buildable = false; game.Tile6.prototype.containstower = false; game.Tile6.prototype.entry = true; game.Tile6.prototype.cost = 4; game.Tile6.prototype.frame = 1; buildMap(_root.myMap1); _root.attachMovie("menubar2", "menubar", 3, {_x:0, _y:422}); placeplayer(); _root.menubar.lives.text = _root.player.hp; placesecond(); placethird(); _root.attachMovie("tip_window", "tip_window", 50, {_x:550, _y:5}); updatecash(); stop();
Instance of Symbol 54 MovieClip [empty] "controller" in Frame 18
onClipEvent (enterFrame) { _root.work(); } onClipEvent (mouseUp) { _root.getTarget(); } onClipEvent (keyDown) { if (Key.isDown(32)) { _root.prepped = "None"; _root.prepcost = 0; _root.mouse.mousetip.removeMovieClip(); _root.menubar.bigtext.text = ""; _root.menubar.smalltext.text = ""; } }
Frame 33
stop();
Symbol 23 MovieClip Frame 7
_parent.gotoAndStop("stand");
Symbol 25 MovieClip Frame 155
_parent.removeMovieClip();
Symbol 26 MovieClip [sprite_sci] Frame 1
stop();
Symbol 26 MovieClip [sprite_sci] Frame 2
stop();
Symbol 26 MovieClip [sprite_sci] Frame 3
stop();
Symbol 44 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 45 MovieClip Frame 185
_parent.removeMovieClip();
Symbol 46 MovieClip [sprite_med] Frame 1
stop();
Symbol 46 MovieClip [sprite_med] Frame 2
stop();
Symbol 46 MovieClip [sprite_med] Frame 3
stop();
Symbol 54 MovieClip [empty] Frame 1
stop();
Symbol 54 MovieClip [empty] Frame 2
gotoAndStop (1);
Symbol 54 MovieClip [empty] Frame 3
gotoAndStop (1);
Instance of Symbol 58 MovieClip "slider" in Symbol 59 MovieClip [slider] Frame 1
onClipEvent (enterFrame) { _root.mastervolume.setVolume(100 - ((_y * 100) / _parent.line._height)); _root.volumesave = this._y; } on (press) { this.startDrag(true, 0, 0, 0, _parent.line._height); } on (release) { this.stopDrag(); } on (releaseOutside) { this.stopDrag(); }
Symbol 60 MovieClip [tip_window] Frame 1
stop(); tipshown = 1;
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 68 MovieClip Frame 4
stop();
Symbol 91 MovieClip [fire] Frame 1
if (random(2) == 0) { nhand1._visible = false; } if (random(2) == 0) { nhand._visible = false; } if (random(2) == 0) { nbody._visible = false; } if (random(2) == 0) { nboot._visible = false; } if (random(2) == 0) { narm1._visible = false; } if (random(2) == 0) { head._visible = false; }
Symbol 91 MovieClip [fire] Frame 26
if ((num == 1) && (_root.currentday >= _root.maxDays)) { _root.gameOverWin(); } this.removeMovieClip();
Symbol 121 MovieClip Frame 1
function LOGO_IN() { var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false); _local1.onMotionFinished = function () { LOGO_SMASH(); var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false); var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false); var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false); var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false); }; } function LOGO_SMASH() { AG_SMASH.start(); AGclick_btn._visible = true; } function AG_HOLD_COUNTER(param) { if (AG_COUNT == AG_TIME) { clearInterval(AG_HOLD_ID); _level0.START_ping.broadcastMessage("presented"); removeMovieClip(this); switch (param) { case "game" : _parent.gotoAndStop("preloader"); break; default : show_Logo(); CRAZY_GIRL.start(); this.unloadMovie(); } } else { AG_COUNT++; } } function show_Logo() { _parent.crazyGirl_mc.onRelease = function () { getURL ("http://www.crazygirl.info", "_blank"); }; int_close_logo = setInterval(AG_HOLD_COUNTER, 3000, "game"); } _parent.stop(); var AG_SMASH = new Sound(); AG_SMASH.attachSound("Smash"); var CRAZY_GIRL = new Sound(); CRAZY_GIRL.attachSound("crazygirl"); var AG_COUNT = 0; var AG_TIME = 4; var AG_HOLD_ID; AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000); AGpresented_mc._alpha = 0; AGclick_btn._visible = false; AGlogo_mc._y = -70; var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false)); AGpresented_IN.onMotionFinished = function () { LOGO_IN(); }; AGskip_btn.onRelease = function () { AG_COUNT = AG_TIME; AG_HOLD_COUNTER(); }; AGclick_btn.onRelease = function () { getURL ("http://www.addictinggames.com", "_blank"); };
Symbol 572 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 573 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 574 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 575 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOut(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 576 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce { function Bounce () { } static function easeOut(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeIn(t, b, c, d) { return((c - easeOut(d - t, 0, c, d)) + b); } static function easeInOut(t, b, c, d) { if (t < (d / 2)) { return((easeIn(t * 2, 0, c, d) * 0.5) + b); } return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static var version = "1.1.0.52"; }
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 188 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 7
_parent.gotoAndStop("kneel");
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 218 MovieClip Frame 3
stop();
Symbol 218 MovieClip Frame 4
stop();
Symbol 242 MovieClip Frame 19
_parent.gotoAndStop("south");
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
stop();
Symbol 253 MovieClip Frame 3
stop();
Symbol 253 MovieClip Frame 4
stop();
Symbol 255 MovieClip Frame 65
stop(); _parent.removeMovieClip();
Symbol 267 MovieClip Frame 1
_root.soundPreload_snd.start(0, 1);
Symbol 267 MovieClip Frame 631
_root.gotoAndStop("menu");
Symbol 274 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 270 MovieClip "loaderBar_mc" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) { perc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; _xscale = perc; _parent.percentage = Math.floor(perc) + " %"; if (perc >= 100) { _parent.play(); _parent.gotoAndStop("loaded"); this._alpha = 0; } }
Symbol 275 MovieClip Frame 2
stop();
Symbol 277 Button
on (press) { getURL ("http://www.addictinggames.com", "_blank"); }
Symbol 309 Button
on (rollOver) { if (_root.titleon) { reticule._visible = false; reticule.enabled = false; } reticule.useHandCursor = false; } on (release) { if ((_root.ammo > 0) && (_root.playertimer == 0)) { var my_sound = new Sound(); my_sound.attachSound("30-30.wav"); my_sound.start(); _root.reloaded = false; _root.game.clip.player.gotoAndStop("shoot"); _root.ammo--; _root.playershots--; _root.playertimer = 240; _root.game.clip.player.reload.text = "----------"; _root.game.clip.player.reload2.text = "Reloading"; znum = this.mynum; zy = _root["zombie" + znum].ytile; zx = _root["zombie" + znum].xtile; rtx = _root["zombie" + znum].xtile * _root.game.tileW; rty = _root["zombie" + znum].ytile * _root.game.tileW; rtxiso = rtx - rty; rtyiso = (rtx + rty) / 2; if (_root.myMap1[zy][zx] == 0) { _root.myMap1[zy][zx] = 15; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] > 12) && (_root.myMap1[zy][zx] < 22)) { _root.myMap1[zy][zx] = _root.myMap1[zy][zx] + 1; _root.updatetile(_root.myMap1, zy, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] == 0)) { _root.myMap1[zy - 1][zx] = 15; _root.updatetile(_root.myMap1, zy - 1, zx); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy - 1][zx] > 12)) && (_root.myMap1[zy - 1][zx] > 22)) { _root.myMap1[zy - 1][zx] = _root.myMap1[zy - 1][zx] + 1; _root.updatetile(_root.myMap1, zy - 1, zx); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] == 0)) { _root.myMap1[zy][zx - 1] = 15; _root.updatetile(_root.myMap1, zy, zx - 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx - 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx - 1); } else if ((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] == 0)) { _root.myMap1[zy][zx + 1] = 15; _root.updatetile(_root.myMap1, zy, zx + 1); } else if (((_root.myMap1[zy][zx] == 22) && (_root.myMap1[zy][zx + 1] > 12)) && (_root.myMap1[zy][zx - 1] > 22)) { _root.myMap1[zy][zx + 1] = _root.myMap1[zy][zx - 1] + 1; _root.updatetile(_root.myMap1, zy, zx + 1); } _root["zombie" + znum].hp = _root["zombie" + znum].hp - _root.playerdamage; if (_root["zombie" + znum].hp < 0) { _root.bodycount++; _root.spawnedzombies--; _root.cash = _root.cash + (_root.zombiecashaward + _root.currentday); _root.menubar.cashdisp.text = "$" + _root.cash; _root.menubar.bodycount.text = _root.bodycount; _root.game[(("t_" + _root["zombie" + this.mynum].ytile) + "_") + _root["zombie" + this.mynum].xtile].containszombie = false; bob = _root["zombie" + this.mynum]; delete bob; _root.game.clip.attachMovie("sprite_brit_guard", "zombie" + (znum + 50), _root.game.clip["zombie" + this.mynum].depth + 1); _root.game.clip["zombie" + (znum + 50)]._x = rtxiso; _root.game.clip["zombie" + (znum + 50)]._y = rtyiso; _root.game.clip["zombie" + (znum + 50)].gotoAndStop("die south"); _root.game.clip["zombie" + this.mynum].removeMovieClip(); } } }
Symbol 314 MovieClip Frame 64
stop(); _parent.removeMovieClip();
Symbol 315 MovieClip Frame 29
stop();
Symbol 316 MovieClip Frame 29
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 1
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 2
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 10
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 11
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 12
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 13
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 14
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 15
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 16
stop();
Symbol 317 MovieClip [sprite_brit_guard] Frame 17
stop();
Symbol 318 MovieClip Frame 50
if (random(50) < 5) { _parent.gotoAndStop("look east"); }
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 15
stop();
Symbol 333 MovieClip Frame 50
if (random(50) < 3) { _parent.gotoAndStop("look west"); }
Symbol 334 MovieClip Frame 24
_parent.gotoAndStop("south");
Symbol 339 MovieClip Frame 32
_parent.gotoAndStop("north"); stop();
Symbol 341 MovieClip Frame 19
_parent.gotoAndStop("south");
Symbol 342 MovieClip Frame 19
_parent.gotoAndStop("north");
Symbol 343 MovieClip [sprite_defender] Frame 1
stop();
Symbol 343 MovieClip [sprite_defender] Frame 2
if (_root.titleon) { life._visible = false; } over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 3
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 4
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 5
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 6
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 7
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 8
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 9
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 10
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 11
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 12
over.useHandCursor = false; stop();
Symbol 343 MovieClip [sprite_defender] Frame 13
over.useHandCursor = false; stop();
Symbol 348 MovieClip Frame 9
_parent.gotoAndStop("kneel");
Symbol 349 MovieClip Frame 11
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 4
_parent.gotoAndStop("kneel");
Symbol 353 MovieClip Frame 7
_parent.gotoAndStop("kneel");
Symbol 354 MovieClip Frame 7
stop();
Symbol 355 MovieClip Frame 7
stop();
Symbol 356 MovieClip [sprite_eng] Frame 1
stop();
Symbol 356 MovieClip [sprite_eng] Frame 2
stop();
Symbol 356 MovieClip [sprite_eng] Frame 3
stop();
Symbol 356 MovieClip [sprite_eng] Frame 4
stop();
Symbol 356 MovieClip [sprite_eng] Frame 5
stop();
Symbol 356 MovieClip [sprite_eng] Frame 6
stop();
Symbol 356 MovieClip [sprite_eng] Frame 7
stop();
Symbol 356 MovieClip [sprite_eng] Frame 8
stop();
Symbol 356 MovieClip [sprite_eng] Frame 9
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 1
stop();
Symbol 384 MovieClip [tile] Frame 1
stop();
Symbol 384 MovieClip [tile] Frame 2
stop();
Symbol 384 MovieClip [tile] Frame 3
stop();
Symbol 384 MovieClip [tile] Frame 4
inner.cacheAsBitmap = true;
Symbol 384 MovieClip [tile] Frame 5
inner.cacheAsBitmap = true;
Symbol 384 MovieClip [tile] Frame 6
stop();
Symbol 384 MovieClip [tile] Frame 7
stop();
Symbol 384 MovieClip [tile] Frame 8
stop();
Symbol 384 MovieClip [tile] Frame 9
stop();
Symbol 384 MovieClip [tile] Frame 10
stop();
Symbol 384 MovieClip [tile] Frame 11
stop();
Symbol 384 MovieClip [tile] Frame 12
stop();
Symbol 384 MovieClip [tile] Frame 13
stop();
Symbol 384 MovieClip [tile] Frame 14
stop();
Symbol 384 MovieClip [tile] Frame 15
stop();
Symbol 384 MovieClip [tile] Frame 16
stop();
Symbol 384 MovieClip [tile] Frame 17
stop();
Symbol 384 MovieClip [tile] Frame 18
stop();
Symbol 384 MovieClip [tile] Frame 19
stop();
Symbol 384 MovieClip [tile] Frame 20
stop();
Symbol 384 MovieClip [tile] Frame 21
stop();
Symbol 384 MovieClip [tile] Frame 22
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 392 MovieClip Frame 3
stop();
Symbol 392 MovieClip Frame 4
stop();
Symbol 392 MovieClip Frame 5
stop();
Symbol 392 MovieClip Frame 6
stop();
Symbol 400 Button
on (release) { _root.gotoAndStop("game"); _root.gameoverman.removeMovieClip(); _root.overlay.removeMovieClip(); }
Symbol 405 Button
on (release) { _root.tiles.removeMovieClip(); game.removeMovieClip(); _root.timer.text = ""; _root.gameoverman.removeMovieClip(); _root.gotoAndStop("instructions"); this.removeMovieClip(); }
Symbol 407 Button
on (release) { _root.cash = _root.cash - _root.speedcost; _root.reloadtime = _root.reloadtime - 0.5; _root.speedcost = Math.round(_root.speedcost * 2.5); if (_root.reloadtime == 2) { upspeed.enabled = false; upspeed._alpha = 50; } _root.updatecash(); }
Symbol 411 Button
on (release) { _root.cash = _root.cash - _root.damagecost; _root.playerdamage = _root.playerdamage + 25; _root.damagecost = _root.damagecost * 2; if (_root.playerdamage > 210) { updamage.enabled = false; updamage._alpha = 50; } _root.updatecash(); }
Symbol 413 Button
on (release) { if (_root.ammo < _root.ammomax) { _root.cash = _root.cash - 150; _root.updatecash(); _root.ammo = _root.ammomax; _root.menubar.ammo.text = _root.ammo; } }
Symbol 416 Button
on (release) { _root.defendMode(); _root.menubar.wait.enabled = false; _root.menubar.wait._alpha = 50; }
Symbol 419 Button
on (release) { _root.prepped = "Defender"; _root.prepcost = 250; _root.menubar.smalltext.text = "Gunman"; _root.menubar.bigtext.text = "Press Space to cancel building"; _root.mouse.mousetip.removeMovieClip(); }
Symbol 423 Button
on (release) { _root.prepped = "Wood"; _root.prepcost = 20; _root.mouse.mousetip._x = 5; _root.mouse.mousetip._y = -18; _root.menubar.smalltext.text = "Simple Barricade"; _root.menubar.bigtext.text = "Press Space to cancel building"; }
Symbol 425 Button
on (release) { _root.prepped = "Stone"; _root.prepcost = 40; _root.mouse.mousetip._x = 5; _root.mouse.mousetip._y = -18; _root.menubar.smalltext.text = "Reinforced Barricade"; _root.menubar.bigtext.text = "Press Space to cancel building"; }
Symbol 446 Button
on (release) { _root.spawnzombies(1); }
Instance of Symbol 58 MovieClip "slider" in Symbol 448 MovieClip Frame 1
onClipEvent (load) { this._y = _root.volumesave; } onClipEvent (enterFrame) { _root.mastervolume.setVolume(100 - ((_y * 100) / _parent.line._height)); } on (press) { this.startDrag(true, 0, 0, 0, _parent.line._height); } on (release) { this.stopDrag(); } on (releaseOutside) { this.stopDrag(); }
Symbol 455 Button
on (release) { _root.prepped = "Trap"; _root.prepcost = 10; _root.menubar.smalltext.text = "Floor Trap"; _root.menubar.bigtext.text = "Press Space to cancel building"; }
Symbol 456 MovieClip [menubar2] Frame 1
_root.music.gotoAndPlay("day");
Symbol 469 Button
on (release) { getURL ("http://www.addictinggames.com", "_blank"); }
Symbol 507 MovieClip Frame 153
stop();
Symbol 508 MovieClip [entire_overlay] Frame 1
if (_root.secondssurvived > 0) { feedback.endfeedback.text = "You survived the Dead of Night for " + _root.survivaltime; feedback.endfeedback2.text = "Surely you can do better than that?"; } else { feedback.endfeedback.text = ""; feedback.endfeedback2.text = ""; }
Symbol 512 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 4
stop();
Symbol 515 MovieClip Frame 7
stop();
Symbol 522 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 538 MovieClip Frame 120
_root.gotoAndStop("menu");
Symbol 571 MovieClip Frame 250
_root.gotoAndStop("menu");

Library Items

Symbol 1 Sound [30-30.wav]
Symbol 2 Sound [crazygirl]
Symbol 3 Sound [Smash]
Symbol 4 Sound [preload]Used by:Timeline
Symbol 5 Sound [carpntry.wav]Used by:54 512
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:21 23 25
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:21 23 25
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:21 23 25
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:21 23 25
Symbol 14 GraphicUsed by:21 23 25
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:15Used by:21 23 25
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:21 23 25
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:21 23 25
Symbol 21 MovieClipUses:7 9 11 13 14 16 18 20Used by:26 267
Symbol 22 SoundUsed by:23 44 348 512
Symbol 23 MovieClipUses:7 9 11 13 14 16 18 20 22Used by:26
Symbol 24 SoundUsed by:25 45 349 512
Symbol 25 MovieClipUses:7 9 11 13 14 16 18 20 24Used by:26
Symbol 26 MovieClip [sprite_sci]Uses:21 23 25
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:43 44 45
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:43 44 45
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:43 44 45
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:43 44 45
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:43 44 45
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:43 44 45
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:43 44 45
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:43 44 45
Symbol 43 MovieClipUses:28 30 32 34 36 38 40 42Used by:46 267
Symbol 44 MovieClipUses:28 32 30 34 36 38 40 42 22Used by:46
Symbol 45 MovieClipUses:28 32 30 38 34 36 40 42 24Used by:46
Symbol 46 MovieClip [sprite_med]Uses:43 44 45
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClip [mouse]Uses:48
Symbol 50 FontUsed by:51 271 273 319 320 321 347 393 415 421 424 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 447 449 450 451 452 453 462 470 471 516 523 524 525 526 527 528 529 530 531 532 533 534
Symbol 51 EditableTextUses:50Used by:52
Symbol 52 MovieClip [tinytextfield]Uses:51
Symbol 53 SoundUsed by:54 512
Symbol 54 MovieClip [empty]Uses:5 53Used by:Timeline
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:59 448
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:59 448
Symbol 59 MovieClip [slider]Uses:56 58Used by:508
Symbol 60 MovieClip [tip_window]Used by:512
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClip [brick_button_inner]Uses:61Used by:425
Symbol 63 GraphicUsed by:64 423
Symbol 64 MovieClip [wooden_button_inner]Uses:63Used by:423
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:65Used by:91 193 220 254 255 306 310 312 313 314 315 316
Symbol 67 GraphicUsed by:68
Symbol 68 MovieClipUses:67Used by:91 193 220 255 306 312 314 315
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:69Used by:91 193 220 254 255 306 310 312 313 314 315 316
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:91 193 220 255 306 312 314 315
Symbol 73 GraphicUsed by:86 90
Symbol 74 GraphicUsed by:86 90
Symbol 75 GraphicUsed by:86 90
Symbol 76 GraphicUsed by:86 90
Symbol 77 GraphicUsed by:86 90
Symbol 78 GraphicUsed by:86 90
Symbol 79 GraphicUsed by:86 90
Symbol 80 GraphicUsed by:86 90
Symbol 81 GraphicUsed by:86 90
Symbol 82 GraphicUsed by:86 90
Symbol 83 GraphicUsed by:86 90
Symbol 84 GraphicUsed by:86 90
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:73 74 75 76 77 78 79 80 81 82 83 84 85Used by:91
Symbol 87 GraphicUsed by:91 455
Symbol 88 SoundUsed by:91
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:73 74 75 76 77 78 79 80 81 82 83 84 89Used by:91
Symbol 91 MovieClip [fire]Uses:66 68 70 72 86 87 88 90Used by:267
Symbol 92 GraphicUsed by:309  Timeline
Symbol 93 GraphicUsed by:104
Symbol 94 GraphicUsed by:103
Symbol 95 GraphicUsed by:103
Symbol 96 GraphicUsed by:103
Symbol 97 GraphicUsed by:102
Symbol 98 GraphicUsed by:102
Symbol 99 GraphicUsed by:102
Symbol 100 GraphicUsed by:102
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:97 98 99 100 101Used by:103
Symbol 103 MovieClipUses:94 95 96 102Used by:104
Symbol 104 MovieClipUses:93 103Used by:Timeline
Symbol 105 GraphicUsed by:110 121
Symbol 106 GraphicUsed by:110
Symbol 107 GraphicUsed by:110
Symbol 108 GraphicUsed by:110
Symbol 109 GraphicUsed by:110
Symbol 110 ButtonUses:105 106 107 108 109Used by:121
Symbol 111 GraphicUsed by:116
Symbol 112 GraphicUsed by:116
Symbol 113 GraphicUsed by:116
Symbol 114 GraphicUsed by:116
Symbol 115 GraphicUsed by:116
Symbol 116 ButtonUses:111 112 113 114 115Used by:121
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:121
Symbol 119 GraphicUsed by:120 277
Symbol 120 MovieClipUses:119Used by:121 277
Symbol 121 MovieClipUses:105 110 116 118 120Used by:Timeline
Symbol 572 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 573 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 574 MovieClip [__Packages.mx.transitions.Tween]
Symbol 575 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 576 MovieClip [__Packages.mx.transitions.easing.Bounce]
Symbol 122 GraphicUsed by:267
Symbol 123 GraphicUsed by:267
Symbol 124 GraphicUsed by:267
Symbol 125 GraphicUsed by:267
Symbol 126 GraphicUsed by:267
Symbol 127 GraphicUsed by:267
Symbol 128 GraphicUsed by:267
Symbol 129 GraphicUsed by:267
Symbol 130 GraphicUsed by:267
Symbol 131 GraphicUsed by:267
Symbol 132 GraphicUsed by:267
Symbol 133 GraphicUsed by:267
Symbol 134 GraphicUsed by:267
Symbol 135 GraphicUsed by:267
Symbol 136 GraphicUsed by:267
Symbol 137 GraphicUsed by:267
Symbol 138 GraphicUsed by:267
Symbol 139 GraphicUsed by:267
Symbol 140 GraphicUsed by:267
Symbol 141 GraphicUsed by:267
Symbol 142 GraphicUsed by:267
Symbol 143 GraphicUsed by:267
Symbol 144 GraphicUsed by:267 538
Symbol 145 GraphicUsed by:267
Symbol 146 GraphicUsed by:267 538
Symbol 147 GraphicUsed by:267 538
Symbol 148 GraphicUsed by:267 538
Symbol 149 GraphicUsed by:267 538
Symbol 150 GraphicUsed by:267 538
Symbol 151 GraphicUsed by:267 538
Symbol 152 GraphicUsed by:267 538
Symbol 153 GraphicUsed by:267 538
Symbol 154 GraphicUsed by:267 538
Symbol 155 GraphicUsed by:267 538
Symbol 156 GraphicUsed by:267 538
Symbol 157 GraphicUsed by:267 538
Symbol 158 GraphicUsed by:267 538
Symbol 159 GraphicUsed by:267 538
Symbol 160 GraphicUsed by:267 538
Symbol 161 GraphicUsed by:267 538
Symbol 162 GraphicUsed by:267
Symbol 163 GraphicUsed by:267 563
Symbol 164 GraphicUsed by:267
Symbol 165 GraphicUsed by:267 563
Symbol 166 GraphicUsed by:267
Symbol 167 GraphicUsed by:267
Symbol 168 GraphicUsed by:267
Symbol 169 GraphicUsed by:267 538
Symbol 170 GraphicUsed by:267 538
Symbol 171 GraphicUsed by:267 538
Symbol 172 GraphicUsed by:267 538
Symbol 173 GraphicUsed by:267 538
Symbol 174 GraphicUsed by:267 538
Symbol 175 GraphicUsed by:267 538
Symbol 176 GraphicUsed by:267
Symbol 177 GraphicUsed by:267
Symbol 178 GraphicUsed by:267
Symbol 179 GraphicUsed by:267
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:193 220 254 255 306 310 312 313 314 315 316
Symbol 182 GraphicUsed by:193 220 254 255 306 310 312 313 314 315 316
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClipUses:183Used by:193 220 254 255 306 310 312 313 314 315 316
Symbol 185 GraphicUsed by:188
Symbol 186 GraphicUsed by:188
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:185 186 187Used by:193 220 255 306 312 314 315
Symbol 189 GraphicUsed by:190
Symbol 190 MovieClipUses:189Used by:193 220 254 255 306 310 312 313 314 315 316
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:193 220 255 306 312 314 315
Symbol 193 MovieClipUses:66 181 70 72 182 184 188 190 192 68Used by:267
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:194Used by:213 344 348 349 350 352 353 354 355
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:213 348 349 350 352 353 354 355
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:213 344 348 349 350 352 353 354 355
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:213 344 348 349 350 352 353 354 355
Symbol 202 GraphicUsed by:213 344 348 349 350 352 353 354 355
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:203Used by:213 344 348 349 350 352 353 354 355
Symbol 205 GraphicUsed by:206 407
Symbol 206 MovieClipUses:205Used by:213 344 348 349 350 352 353 354 355 407
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207Used by:213 344 348 349 350 352 353 354
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:209Used by:213 344 348 349 350 352 353 354 355
Symbol 211 GraphicUsed by:212
Symbol 212 MovieClipUses:211Used by:213 353 354 355
Symbol 213 MovieClipUses:195 197 199 201 202 204 206 208 210 212 SS1Used by:267
Symbol 214 GraphicUsed by:218
Symbol 215 GraphicUsed by:218
Symbol 216 GraphicUsed by:218
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:214 215 216 217Used by:220 254 255 310 312 313 314 316
Symbol 219 SoundUsed by:220 255
Symbol 220 MovieClipUses:181 66 70 72 182 184 188 190 192 68 218 219Used by:267
Symbol 221 GraphicUsed by:267
Symbol 222 GraphicUsed by:267
Symbol 223 GraphicUsed by:258 267
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClipUses:224Used by:242 318 333 334 339 341 342
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClipUses:226Used by:242 318 333 334 339 341 342
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:228Used by:242 318 333 334 339 341 342
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:242 318 333 334 339 341 342
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:242 318 333 334 339 341 342
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClipUses:234Used by:242 318 334 341 419
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:236Used by:242 318 334 341
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClipUses:238Used by:242 318 333 334 339 341
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClipUses:240Used by:242 341 342
Symbol 242 MovieClipUses:225 227 229 231 233 235 237 239 241 SS2Used by:267
Symbol 243 GraphicUsed by:244
Symbol 244 MovieClipUses:243Used by:254 255 310 313 316
Symbol 245 GraphicUsed by:248
Symbol 246 GraphicUsed by:248
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClipUses:245 246 247Used by:254 255 310 313 316
Symbol 249 GraphicUsed by:253
Symbol 250 GraphicUsed by:253
Symbol 251 GraphicUsed by:253
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClipUses:249 250 251 252Used by:254 255 310 313 316
Symbol 254 MovieClipUses:181 66 70 244 182 184 248 190 218 253Used by:267
Symbol 255 MovieClipUses:181 66 70 244 182 184 248 190 218 253 219 192 68 72 188Used by:267 317
Symbol 256 GraphicUsed by:267
Symbol 257 GraphicUsed by:267
Symbol 258 MovieClipUses:223Used by:267
Symbol 259 GraphicUsed by:267
Symbol 260 GraphicUsed by:267
Symbol 261 ShapeTweeningUsed by:267
Symbol 262 GraphicUsed by:267
Symbol 263 ShapeTweeningUsed by:267
Symbol 264 ShapeTweeningUsed by:267
Symbol 265 GraphicUsed by:267 571
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 193 213 220 221 222 223 242 254 255 256 257 258 43 21 91 259 260 261 262 263 264 265 266 SS3Used by:268
Symbol 268 MovieClipUses:267Used by:Timeline
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClipUses:269Used by:275
Symbol 271 EditableTextUses:50Used by:275
Symbol 272 GraphicUsed by:274
Symbol 273 TextUses:50Used by:274
Symbol 274 ButtonUses:272 273Used by:275
Symbol 275 MovieClipUses:270 271 274Used by:Timeline
Symbol 276 GraphicUsed by:277
Symbol 277 ButtonUses:120 276 119Used by:463 508  Timeline
Symbol 278 GraphicUsed by:304
Symbol 279 GraphicUsed by:304
Symbol 280 GraphicUsed by:304
Symbol 281 GraphicUsed by:304
Symbol 282 GraphicUsed by:304
Symbol 283 GraphicUsed by:304
Symbol 284 GraphicUsed by:304
Symbol 285 GraphicUsed by:304
Symbol 286 GraphicUsed by:304
Symbol 287 GraphicUsed by:304
Symbol 288 GraphicUsed by:304
Symbol 289 GraphicUsed by:304
Symbol 290 GraphicUsed by:304
Symbol 291 GraphicUsed by:304
Symbol 292 GraphicUsed by:304
Symbol 293 GraphicUsed by:304
Symbol 294 GraphicUsed by:304
Symbol 295 GraphicUsed by:304
Symbol 296 GraphicUsed by:304
Symbol 297 GraphicUsed by:304
Symbol 298 GraphicUsed by:304
Symbol 299 GraphicUsed by:304
Symbol 300 GraphicUsed by:304
Symbol 301 GraphicUsed by:304
Symbol 302 GraphicUsed by:304
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClipUses:278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303Used by:305
Symbol 305 MovieClipUses:304Used by:317
Symbol 306 MovieClipUses:66 181 70 72 182 184 188 190 192 68Used by:317
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:309
Symbol 309 ButtonUses:308 92Used by:317
Symbol 310 MovieClipUses:181 66 70 244 182 184 248 190 218 253Used by:317
Symbol 311 SoundUsed by:312 313 512
Symbol 312 MovieClipUses:181 66 70 72 182 184 188 190 192 68 218 311Used by:317
Symbol 313 MovieClipUses:181 66 70 244 182 184 190 218 248 253 311Used by:317
Symbol 314 MovieClipUses:181 66 70 72 182 184 188 190 192 68 218Used by:317
Symbol 315 MovieClipUses:192 68 188 190 70 181 66 184 72 182Used by:317
Symbol 316 MovieClipUses:253 70 248 190 184 181 66 244 182 218Used by:317
Symbol 317 MovieClip [sprite_brit_guard]Uses:305 306 309 310 312 313 314 255 315 316Used by:512
Symbol 318 MovieClipUses:227 225 229 231 233 235 237 239Used by:343
Symbol 319 EditableTextUses:50Used by:343
Symbol 320 EditableTextUses:50Used by:343
Symbol 321 EditableTextUses:50Used by:343
Symbol 322 ShapeTweeningUsed by:325
Symbol 323 ShapeTweeningUsed by:325
Symbol 324 GraphicUsed by:325
Symbol 325 MovieClipUses:322 323 324Used by:343
Symbol 326 GraphicUsed by:329
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClipUses:327Used by:329
Symbol 329 MovieClipUses:326 328Used by:343
Symbol 330 GraphicUsed by:333 339 342
Symbol 331 GraphicUsed by:332
Symbol 332 MovieClipUses:331Used by:333 339 342
Symbol 333 MovieClipUses:225 227 233 330 332 239 231 229Used by:343
Symbol 334 MovieClipUses:225 229 231 227 233 235 237 239Used by:343
Symbol 335 GraphicUsed by:336
Symbol 336 MovieClipUses:335Used by:339 342
Symbol 337 GraphicUsed by:338
Symbol 338 MovieClipUses:337Used by:339
Symbol 339 MovieClipUses:225 227 233 330 332 231 229 336 338 239Used by:343
Symbol 340 SoundUsed by:341 342
Symbol 341 MovieClipUses:225 227 229 231 233 235 237 239 241 340Used by:343
Symbol 342 MovieClipUses:225 227 233 330 332 231 229 336 241 340Used by:343
Symbol 343 MovieClip [sprite_defender]Uses:318 319 320 321 325 329 333 334 339 341 342Used by:512
Symbol 344 MovieClipUses:195 199 201 202 204 206 208 210Used by:356
Symbol 345 FontUsed by:346
Symbol 346 EditableTextUses:345Used by:356
Symbol 347 EditableTextUses:50Used by:356
Symbol 348 MovieClipUses:195 197 199 201 202 204 206 208 210 22Used by:356
Symbol 349 MovieClipUses:195 197 199 201 202 204 206 208 210 24Used by:356
Symbol 350 MovieClipUses:195 197 199 201 202 204 206 208 210Used by:356
Symbol 351 Sound [reload.wav]Used by:352 512
Symbol 352 MovieClipUses:195 197 199 201 202 204 206 208 210 351Used by:356
Symbol 353 MovieClipUses:195 197 199 201 202 204 206 208 210 212Used by:356
Symbol 354 MovieClipUses:199 195 197 201 202 204 206 208 210 212Used by:356
Symbol 355 MovieClipUses:195 197 199 202 201 204 206 210 212Used by:356
Symbol 356 MovieClip [sprite_eng]Uses:344 346 347 348 349 350 352 353 354 355Used by:512
Symbol 357 GraphicUsed by:367
Symbol 358 GraphicUsed by:367
Symbol 359 GraphicUsed by:367
Symbol 360 GraphicUsed by:367
Symbol 361 GraphicUsed by:367
Symbol 362 GraphicUsed by:367
Symbol 363 GraphicUsed by:367
Symbol 364 GraphicUsed by:367
Symbol 365 GraphicUsed by:367
Symbol 366 GraphicUsed by:367
Symbol 367 MovieClipUses:357 358 359 360 361 362 363 364 365 366Used by:384 512
Symbol 368 GraphicUsed by:384
Symbol 369 GraphicUsed by:381
Symbol 370 GraphicUsed by:381
Symbol 371 GraphicUsed by:372
Symbol 372 MovieClipUses:371Used by:381
Symbol 373 GraphicUsed by:381
Symbol 374 GraphicUsed by:381
Symbol 375 GraphicUsed by:381
Symbol 376 GraphicUsed by:381
Symbol 377 GraphicUsed by:381
Symbol 378 GraphicUsed by:381
Symbol 379 GraphicUsed by:381
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:369 370 372 373 374 375 376 377 378 379 380Used by:384
Symbol 382 GraphicUsed by:384
Symbol 383 GraphicUsed by:384
Symbol 384 MovieClip [tile]Uses:368 367 381 382 383Used by:512
Symbol 385 GraphicUsed by:456
Symbol 386 GraphicUsed by:392
Symbol 387 GraphicUsed by:392
Symbol 388 GraphicUsed by:392
Symbol 389 GraphicUsed by:392
Symbol 390 GraphicUsed by:392
Symbol 391 GraphicUsed by:392
Symbol 392 MovieClipUses:386 387 388 389 390 391Used by:456
Symbol 393 TextUses:50Used by:456
Symbol 394 GraphicUsed by:456
Symbol 395 FontUsed by:396 397 401 402 459 460 466 467
Symbol 396 TextUses:395Used by:398
Symbol 397 TextUses:395Used by:398
Symbol 398 MovieClipUses:396 397Used by:400
Symbol 399 GraphicUsed by:400 469
Symbol 400 ButtonUses:398 399Used by:456 508
Symbol 401 TextUses:395Used by:403
Symbol 402 TextUses:395Used by:403
Symbol 403 MovieClipUses:401 402Used by:405
Symbol 404 GraphicUsed by:405
Symbol 405 ButtonUses:403 404Used by:456 508
Symbol 406 GraphicUsed by:407
Symbol 407 ButtonUses:206 406 205Used by:456
Symbol 408 GraphicUsed by:411
Symbol 409 GraphicUsed by:411
Symbol 410 GraphicUsed by:411
Symbol 411 ButtonUses:408 409 410Used by:456
Symbol 412 GraphicUsed by:456
Symbol 413 ButtonUsed by:456
Symbol 414 GraphicUsed by:416
Symbol 415 TextUses:50Used by:416
Symbol 416 ButtonUses:414 415Used by:456
Symbol 417 GraphicUsed by:419
Symbol 418 GraphicUsed by:419
Symbol 419 ButtonUses:417 235 418Used by:456
Symbol 420 GraphicUsed by:456
Symbol 421 TextUses:50Used by:456
Symbol 422 GraphicUsed by:423 425
Symbol 423 ButtonUses:64 422 63Used by:456
Symbol 424 TextUses:50Used by:456
Symbol 425 ButtonUses:62 422Used by:456
Symbol 426 TextUses:50Used by:456
Symbol 427 TextUses:50Used by:456
Symbol 428 TextUses:50Used by:456
Symbol 429 EditableTextUses:50Used by:456
Symbol 430 EditableTextUses:50Used by:456
Symbol 431 TextUses:50Used by:456
Symbol 432 TextUses:50Used by:456
Symbol 433 EditableTextUses:50Used by:456
Symbol 434 EditableTextUses:50Used by:456
Symbol 435 TextUses:50Used by:456
Symbol 436 EditableTextUses:50Used by:456
Symbol 437 EditableTextUses:50Used by:456
Symbol 438 TextUses:50Used by:456
Symbol 439 EditableTextUses:50Used by:456
Symbol 440 EditableTextUses:50Used by:456
Symbol 441 TextUses:50Used by:456
Symbol 442 EditableTextUses:50Used by:456
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:446
Symbol 445 GraphicUsed by:446
Symbol 446 ButtonUses:444 445Used by:456
Symbol 447 TextUses:50Used by:456
Symbol 448 MovieClipUses:56 58Used by:456
Symbol 449 EditableTextUses:50Used by:456
Symbol 450 EditableTextUses:50Used by:456
Symbol 451 TextUses:50Used by:456
Symbol 452 EditableTextUses:50Used by:456
Symbol 453 EditableTextUses:50Used by:456
Symbol 454 GraphicUsed by:455
Symbol 455 ButtonUses:454 87Used by:456
Symbol 456 MovieClip [menubar2]Uses:385 392 393 394 400 405 407 411 412 413 416 419 420 421 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 446 447 448 449 450 451 452 453 455Used by:512
Symbol 457 GraphicUsed by:463 508
Symbol 458 MovieClipUsed by:463 508
Symbol 459 TextUses:395Used by:461
Symbol 460 TextUses:395Used by:461
Symbol 461 MovieClipUses:459 460Used by:463
Symbol 462 EditableTextUses:50Used by:463
Symbol 463 MovieClip [pause_overlay]Uses:457 458 277 461 462Used by:512
Symbol 464 SoundUsed by:512
Symbol 465 SoundUsed by:512
Symbol 466 TextUses:395Used by:468
Symbol 467 TextUses:395Used by:468
Symbol 468 MovieClipUses:466 467Used by:469
Symbol 469 ButtonUses:468 399Used by:508
Symbol 470 EditableTextUses:50Used by:472
Symbol 471 EditableTextUses:50Used by:472
Symbol 472 MovieClipUses:470 471Used by:508
Symbol 473 FontUsed by:474
Symbol 474 TextUses:473Used by:475
Symbol 475 MovieClipUses:474Used by:508
Symbol 476 GraphicUsed by:507
Symbol 477 GraphicUsed by:507
Symbol 478 GraphicUsed by:507
Symbol 479 GraphicUsed by:507
Symbol 480 GraphicUsed by:507
Symbol 481 GraphicUsed by:507
Symbol 482 GraphicUsed by:507
Symbol 483 GraphicUsed by:507
Symbol 484 GraphicUsed by:507
Symbol 485 GraphicUsed by:507
Symbol 486 GraphicUsed by:507
Symbol 487 GraphicUsed by:507
Symbol 488 GraphicUsed by:507
Symbol 489 GraphicUsed by:507
Symbol 490 GraphicUsed by:507
Symbol 491 GraphicUsed by:507
Symbol 492 GraphicUsed by:507
Symbol 493 GraphicUsed by:507
Symbol 494 GraphicUsed by:507
Symbol 495 GraphicUsed by:507
Symbol 496 GraphicUsed by:507
Symbol 497 GraphicUsed by:507
Symbol 498 GraphicUsed by:507
Symbol 499 GraphicUsed by:507
Symbol 500 GraphicUsed by:507
Symbol 501 GraphicUsed by:507
Symbol 502 GraphicUsed by:507
Symbol 503 GraphicUsed by:507
Symbol 504 GraphicUsed by:507
Symbol 505 GraphicUsed by:507
Symbol 506 GraphicUsed by:507
Symbol 507 MovieClipUses:476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506Used by:508
Symbol 508 MovieClip [entire_overlay]Uses:457 458 469 400 405 277 472 59 475 507Used by:512
Symbol 509 GraphicUsed by:510
Symbol 510 MovieClipUses:509Used by:512  Timeline
Symbol 511 Sound [ding.wav]Used by:512
Symbol 512 MovieClipUses:317 343 356 367 384 456 60 463 464 465 53 311 22 24 508 510 5 511 351Used by:Timeline
Symbol 513 Sound [zombie_title.mp3]Used by:Timeline
Symbol 514 Sound [day_music]Used by:515
Symbol 515 MovieClipUses:514Used by:Timeline
Symbol 516 EditableTextUses:50Used by:Timeline
Symbol 517 BitmapUsed by:518
Symbol 518 GraphicUses:517Used by:Timeline
Symbol 519 GraphicUsed by:520
Symbol 520 MovieClipUses:519Used by:522
Symbol 521 GraphicUsed by:522
Symbol 522 ButtonUses:520 521Used by:Timeline
Symbol 523 TextUses:50Used by:Timeline
Symbol 524 TextUses:50Used by:Timeline
Symbol 525 TextUses:50Used by:Timeline
Symbol 526 TextUses:50Used by:Timeline
Symbol 527 TextUses:50Used by:Timeline
Symbol 528 TextUses:50Used by:Timeline
Symbol 529 TextUses:50Used by:Timeline
Symbol 530 TextUses:50Used by:Timeline
Symbol 531 TextUses:50Used by:Timeline
Symbol 532 TextUses:50Used by:Timeline
Symbol 533 TextUses:50Used by:Timeline
Symbol 534 TextUses:50Used by:Timeline
Symbol 535 GraphicUsed by:Timeline
Symbol 536 GraphicUsed by:538
Symbol 537 SoundUsed by:538
Symbol 538 MovieClipUses:146 150 144 175 169 170 174 536 537 151 171 152 172 153 173 154 155 156 157 158 159 160 161 147 148 149Used by:Timeline
Symbol 539 GraphicUsed by:571
Symbol 540 GraphicUsed by:565
Symbol 541 GraphicUsed by:565
Symbol 542 GraphicUsed by:565
Symbol 543 GraphicUsed by:565
Symbol 544 GraphicUsed by:565
Symbol 545 GraphicUsed by:565
Symbol 546 GraphicUsed by:565
Symbol 547 GraphicUsed by:565
Symbol 548 GraphicUsed by:565
Symbol 549 GraphicUsed by:565
Symbol 550 GraphicUsed by:565
Symbol 551 GraphicUsed by:565
Symbol 552 GraphicUsed by:565
Symbol 553 GraphicUsed by:565
Symbol 554 GraphicUsed by:565
Symbol 555 GraphicUsed by:565
Symbol 556 GraphicUsed by:565
Symbol 557 GraphicUsed by:565
Symbol 558 GraphicUsed by:565
Symbol 559 GraphicUsed by:565
Symbol 560 GraphicUsed by:565
Symbol 561 GraphicUsed by:563
Symbol 562 GraphicUsed by:563
Symbol 563 MovieClipUses:163 561 165 562Used by:565
Symbol 564 GraphicUsed by:565
Symbol 565 MovieClipUses:540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 563 564Used by:571
Symbol 566 SoundUsed by:571
Symbol 567 ShapeTweeningUsed by:571
Symbol 568 GraphicUsed by:571
Symbol 569 ShapeTweeningUsed by:571
Symbol 570 ShapeTweeningUsed by:571
Symbol 571 MovieClipUses:539 565 566 567 568 569 570 265Used by:Timeline
Streaming Sound 1Used by:Symbol 213 MovieClip
Streaming Sound 2Used by:Symbol 242 MovieClip
Streaming Sound 3Used by:Symbol 267 MovieClip

Instance Names

"crazyGirl_mc"Frame 1Symbol 104 MovieClip
"controller"Frame 10Symbol 54 MovieClip [empty]
"background"Frame 10Symbol 510 MovieClip
"controller"Frame 18Symbol 54 MovieClip [empty]
"background"Frame 18Symbol 510 MovieClip
"music"Frame 18Symbol 515 MovieClip
"timer"Frame 18Symbol 516 EditableText
"entry"Symbol 52 MovieClip [tinytextfield] Frame 1Symbol 51 EditableText
"line"Symbol 59 MovieClip [slider] Frame 1Symbol 56 MovieClip
"slider"Symbol 59 MovieClip [slider] Frame 1Symbol 58 MovieClip
"nhand"Symbol 91 MovieClip [fire] Frame 1Symbol 66 MovieClip
"head"Symbol 91 MovieClip [fire] Frame 1Symbol 68 MovieClip
"nhand1"Symbol 91 MovieClip [fire] Frame 1Symbol 66 MovieClip
"narm1"Symbol 91 MovieClip [fire] Frame 1Symbol 70 MovieClip
"nboot"Symbol 91 MovieClip [fire] Frame 1Symbol 72 MovieClip
"AGclick_btn"Symbol 121 MovieClip Frame 1Symbol 110 Button
"AGskip_btn"Symbol 121 MovieClip Frame 1Symbol 116 Button
"AGpresented_mc"Symbol 121 MovieClip Frame 1Symbol 118 MovieClip
"AGlogo_mc"Symbol 121 MovieClip Frame 1Symbol 120 MovieClip
"loaderBar_mc"Symbol 275 MovieClip Frame 1Symbol 270 MovieClip
"reticule"Symbol 317 MovieClip [sprite_brit_guard] Frame 2Symbol 309 Button
"rank1"Symbol 343 MovieClip [sprite_defender] Frame 2Symbol 319 EditableText
"rank2"Symbol 343 MovieClip [sprite_defender] Frame 2Symbol 320 EditableText
"rank3"Symbol 343 MovieClip [sprite_defender] Frame 2Symbol 321 EditableText
"splash"Symbol 343 MovieClip [sprite_defender] Frame 2Symbol 325 MovieClip
"life"Symbol 343 MovieClip [sprite_defender] Frame 2Symbol 329 MovieClip
"reload"Symbol 356 MovieClip [sprite_eng] Frame 1Symbol 346 EditableText
"reload2"Symbol 356 MovieClip [sprite_eng] Frame 1Symbol 347 EditableText
"inner"Symbol 384 MovieClip [tile] Frame 4Symbol 367 MovieClip
"inner"Symbol 384 MovieClip [tile] Frame 5Symbol 381 MovieClip
"line"Symbol 448 MovieClip Frame 1Symbol 56 MovieClip
"slider"Symbol 448 MovieClip Frame 1Symbol 58 MovieClip
"damageFace_mc"Symbol 456 MovieClip [menubar2] Frame 1Symbol 392 MovieClip
"upspeed"Symbol 456 MovieClip [menubar2] Frame 1Symbol 407 Button
"updamage"Symbol 456 MovieClip [menubar2] Frame 1Symbol 411 Button
"refill"Symbol 456 MovieClip [menubar2] Frame 1Symbol 413 Button
"wait"Symbol 456 MovieClip [menubar2] Frame 1Symbol 416 Button
"gunman"Symbol 456 MovieClip [menubar2] Frame 1Symbol 419 Button
"barricade1"Symbol 456 MovieClip [menubar2] Frame 1Symbol 423 Button
"barricade2"Symbol 456 MovieClip [menubar2] Frame 1Symbol 425 Button
"cashdisp"Symbol 456 MovieClip [menubar2] Frame 1Symbol 429 EditableText
"daytext"Symbol 456 MovieClip [menubar2] Frame 1Symbol 430 EditableText
"barricades"Symbol 456 MovieClip [menubar2] Frame 1Symbol 433 EditableText
"barricadesmax"Symbol 456 MovieClip [menubar2] Frame 1Symbol 434 EditableText
"traps"Symbol 456 MovieClip [menubar2] Frame 1Symbol 436 EditableText
"trapsmax"Symbol 456 MovieClip [menubar2] Frame 1Symbol 437 EditableText
"gunmen"Symbol 456 MovieClip [menubar2] Frame 1Symbol 439 EditableText
"gunmenmax"Symbol 456 MovieClip [menubar2] Frame 1Symbol 440 EditableText
"bodycount"Symbol 456 MovieClip [menubar2] Frame 1Symbol 442 EditableText
"reloadtime"Symbol 456 MovieClip [menubar2] Frame 1Symbol 449 EditableText
"playerdamage"Symbol 456 MovieClip [menubar2] Frame 1Symbol 450 EditableText
"speedcost"Symbol 456 MovieClip [menubar2] Frame 1Symbol 452 EditableText
"damagecost"Symbol 456 MovieClip [menubar2] Frame 1Symbol 453 EditableText
"trap"Symbol 456 MovieClip [menubar2] Frame 1Symbol 455 Button
"endfeedback"Symbol 472 MovieClip Frame 1Symbol 470 EditableText
"endfeedback2"Symbol 472 MovieClip Frame 1Symbol 471 EditableText
"feedback"Symbol 508 MovieClip [entire_overlay] Frame 1Symbol 472 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "30-30.wav"
ExportAssets (56)Timeline Frame 1Symbol 2 as "crazygirl"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Smash"
ExportAssets (56)Timeline Frame 1Symbol 4 as "preload"
ExportAssets (56)Timeline Frame 1Symbol 5 as "carpntry.wav"
ExportAssets (56)Timeline Frame 1Symbol 26 as "sprite_sci"
ExportAssets (56)Timeline Frame 1Symbol 46 as "sprite_med"
ExportAssets (56)Timeline Frame 1Symbol 49 as "mouse"
ExportAssets (56)Timeline Frame 1Symbol 52 as "tinytextfield"
ExportAssets (56)Timeline Frame 1Symbol 54 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 59 as "slider"
ExportAssets (56)Timeline Frame 1Symbol 60 as "tip_window"
ExportAssets (56)Timeline Frame 1Symbol 62 as "brick_button_inner"
ExportAssets (56)Timeline Frame 1Symbol 64 as "wooden_button_inner"
ExportAssets (56)Timeline Frame 1Symbol 91 as "fire"
ExportAssets (56)Timeline Frame 1Symbol 572 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 573 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 574 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 575 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 576 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 3Symbol 317 as "sprite_brit_guard"
ExportAssets (56)Timeline Frame 3Symbol 343 as "sprite_defender"
ExportAssets (56)Timeline Frame 3Symbol 351 as "reload.wav"
ExportAssets (56)Timeline Frame 3Symbol 356 as "sprite_eng"
ExportAssets (56)Timeline Frame 3Symbol 384 as "tile"
ExportAssets (56)Timeline Frame 3Symbol 456 as "menubar2"
ExportAssets (56)Timeline Frame 3Symbol 463 as "pause_overlay"
ExportAssets (56)Timeline Frame 3Symbol 508 as "entire_overlay"
ExportAssets (56)Timeline Frame 3Symbol 511 as "ding.wav"
ExportAssets (56)Timeline Frame 10Symbol 513 as "zombie_title.mp3"
ExportAssets (56)Timeline Frame 18Symbol 514 as "day_music"

Labels

"preloader"Frame 2
"menu"Frame 10
"game"Frame 18
"instructions"Frame 24
"win"Frame 33
"lose"Frame 37
"stand"Symbol 26 MovieClip [sprite_sci] Frame 1
"hit"Symbol 26 MovieClip [sprite_sci] Frame 2
"die"Symbol 26 MovieClip [sprite_sci] Frame 3
"stand"Symbol 46 MovieClip [sprite_med] Frame 1
"hit"Symbol 46 MovieClip [sprite_med] Frame 2
"die"Symbol 46 MovieClip [sprite_med] Frame 3
"loaded"Symbol 275 MovieClip Frame 2
"south"Symbol 317 MovieClip [sprite_brit_guard] Frame 2
"east"Symbol 317 MovieClip [sprite_brit_guard] Frame 3
"north"Symbol 317 MovieClip [sprite_brit_guard] Frame 4
"west"Symbol 317 MovieClip [sprite_brit_guard] Frame 5
"attack south"Symbol 317 MovieClip [sprite_brit_guard] Frame 6
"attack east"Symbol 317 MovieClip [sprite_brit_guard] Frame 7
"attack north"Symbol 317 MovieClip [sprite_brit_guard] Frame 8
"attack west"Symbol 317 MovieClip [sprite_brit_guard] Frame 9
"die south"Symbol 317 MovieClip [sprite_brit_guard] Frame 10
"die east"Symbol 317 MovieClip [sprite_brit_guard] Frame 11
"die north"Symbol 317 MovieClip [sprite_brit_guard] Frame 12
"die west"Symbol 317 MovieClip [sprite_brit_guard] Frame 13
"rise south"Symbol 317 MovieClip [sprite_brit_guard] Frame 14
"rise east"Symbol 317 MovieClip [sprite_brit_guard] Frame 15
"rise north"Symbol 317 MovieClip [sprite_brit_guard] Frame 16
"rise west"Symbol 317 MovieClip [sprite_brit_guard] Frame 17
"south"Symbol 343 MovieClip [sprite_defender] Frame 2
"east"Symbol 343 MovieClip [sprite_defender] Frame 3
"north"Symbol 343 MovieClip [sprite_defender] Frame 4
"west"Symbol 343 MovieClip [sprite_defender] Frame 5
"look south"Symbol 343 MovieClip [sprite_defender] Frame 6
"look east"Symbol 343 MovieClip [sprite_defender] Frame 7
"look north"Symbol 343 MovieClip [sprite_defender] Frame 8
"look west"Symbol 343 MovieClip [sprite_defender] Frame 9
"attack south"Symbol 343 MovieClip [sprite_defender] Frame 10
"attack east"Symbol 343 MovieClip [sprite_defender] Frame 11
"attack north"Symbol 343 MovieClip [sprite_defender] Frame 12
"attack west"Symbol 343 MovieClip [sprite_defender] Frame 13
"stand"Symbol 356 MovieClip [sprite_eng] Frame 1
"hit"Symbol 356 MovieClip [sprite_eng] Frame 2
"die"Symbol 356 MovieClip [sprite_eng] Frame 3
"kneel north"Symbol 356 MovieClip [sprite_eng] Frame 4
"kneel"Symbol 356 MovieClip [sprite_eng] Frame 5
"kneeling"Symbol 356 MovieClip [sprite_eng] Frame 6
"shoot"Symbol 356 MovieClip [sprite_eng] Frame 7
"shoot east"Symbol 356 MovieClip [sprite_eng] Frame 8
"shoot west"Symbol 356 MovieClip [sprite_eng] Frame 9
"t90"Symbol 367 MovieClip Frame 2
"t80"Symbol 367 MovieClip Frame 3
"t70"Symbol 367 MovieClip Frame 4
"t60"Symbol 367 MovieClip Frame 5
"t50"Symbol 367 MovieClip Frame 6
"t40"Symbol 367 MovieClip Frame 7
"t30"Symbol 367 MovieClip Frame 8
"t20"Symbol 367 MovieClip Frame 9
"t10"Symbol 367 MovieClip Frame 10
"t50"Symbol 381 MovieClip Frame 1
"t45"Symbol 381 MovieClip Frame 2
"t40"Symbol 381 MovieClip Frame 3
"t35"Symbol 381 MovieClip Frame 4
"t30"Symbol 381 MovieClip Frame 5
"t25"Symbol 381 MovieClip Frame 6
"t20"Symbol 381 MovieClip Frame 7
"t15"Symbol 381 MovieClip Frame 8
"t10"Symbol 381 MovieClip Frame 9
"t5"Symbol 381 MovieClip Frame 10
"day"Symbol 515 MovieClip Frame 2
"night"Symbol 515 MovieClip Frame 5

Dynamic Text Variables

percentageSymbol 271 EditableText"000%"




http://swfchan.com/24/116024/info.shtml
Created: 9/3 -2019 04:19:33 Last modified: 9/3 -2019 04:19:33 Server time: 03/05 -2024 06:46:21