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

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

zombie sniper.swf

This is the info page for
Flash #1430

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


Text
000%

PLAY

Zombies.

Zombies.
Slow

Zombies.
Slow and S

Zombies.
Slow and Stupid.

Zombies.
Slow and Stupid.
But

Zombies.
Slow and Stupid.
But Num

Zombies.
Slow and Stupid.
But Numerous.

Gun

Gunmen.

Gunmen.
Shoot

Gunmen.
Shoot zombies

Gunmen.
Shoot zombies and

Gunmen.
Shoot zombies and
gain

Gunmen.
Shoot zombies and
gain exper

Gunmen.
Shoot zombies and
gain experience

Gunmen.
Shoot zombies and
gain experience
with

Gunmen.
Shoot zombies and
gain experience
with each

Gunmen.
Shoot zombies and
gain experience
with each kill.

You.

You.
Shoots

You.
Shoots from

You.
Shoots from a

You.
Shoots from a
distance.

You.
Shoots from a
distance.
Allergic

You.
Shoots from a
distance.
Allergic to

You.
Shoots from a
distance.
Allergic to
zombies.

Medic.

Medic.
Heals

Medic.
Heals wounds

Medic.
Heals wounds
daily

Medic.
Heals wounds
daily and

Medic.
Heals wounds
daily and
reinforces

Medic.
Heals wounds
daily and
reinforces
baracades.

Scientist.

Scientist.
A

Scientist.
A smarty

Scientist.
A smartypants

Scientist.
A smartypants
that

Scientist.
A smartypants
that helps

Scientist.
A smartypants
that helps your

Scientist.
A smartypants
that helps your
gunmen

Scientist.
A smartypants
that helps your
gunmen target

Scientist.
A smartypants
that helps your
gunmen target
vital

Scientist.
A smartypants
that helps your
gunmen target
vital areas.

$20

Build
Barricade

$40

$10

Place
Floor Trap

$250

Hire
Gunman

CASH

$1200

Day 0

Barricades

/

0

0

Traps

0

0

Gunmen

0

0

Ammo

0

0

Bodycount

0

$150

Refill
Ammunition

Wait for
Night

Volume

15

15

15

0

0

Health Remaining

Currently

$150

$150

Upgrade
Damage

Upgrade
Speed

Pause

Pause

Pause

GAME PAUSED

Volume

ActionScript [AS1/AS2]

Frame 1
i = -16734; createEmptyMovieClip("kv_mc", i); kv_mc.kv_v = {c:269, td:"269.memecounter.com"}; System.security.allowDomain(kv_mc.kv_v.td); kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/"); kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0])))); kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0]; kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv; kv_mc.kv_v.c_so.data.u = true; kv_mc.kv_v.c_so.flush(); kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", i - 1); kv_mc.kv_v.l_mcl = new MovieClipLoader(); if (kv_mc.kv_v.l_mcl.loadClip) { kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc); } else { loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc); } _root.mastervolume = new Sound(); _root.volumesave = 0; _root.tipsshown = false;
Frame 2
stop();
Frame 3
Frame 4
stop(); 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 101 MovieClip [empty] "controller" in Frame 4
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 5
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)) { if (_root.ammo > 0) { _root.ammo--; _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:15, maxhp:15, 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 _local4 = random(3); if (((_local4 == 0) && (secondstatus == "Dead")) && (!convert)) { _local4 = random(3); tempx = _root.myMap1[0].length - 1; tempy = random(_root.myMap1.length - 10); } else if (((_local4 == 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 _local3 = random(4); if ((_root.secondstatus == "Alive") && (_local3 == 0)) { _root["zombie" + _root.numberofzombies].target = "second"; } else if ((_root.thirdstatus == "Alive") && (_local3 == 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; _root.spawnedzombies--; if (_root.player.hp <= 0) { _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(); _root.attachMovie("sprite_eng", "gameoverman", 5, {_x:tempx, _y:tempy}); _root.gameoverman.gotoAndStop("die"); _root.gameoverman._x = 350; _root.gameoverman._y = 280; _root.gameoverman._alpha = 50; _root.gameoverman._xscale = 200; _root.gameoverman._yscale = 200; stopAllSounds(); _root.gotoAndStop("menu"); } } 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}); _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; } } } 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 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 == "Placement") { _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; 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; } else { if (((_root.player.hp < 15) && (_root.second.hp > 0)) && (_root.thirdstatus == "Alive")) { _root.player.hp++; _root.menubar.lives.text = _root.player.hp; } 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(); _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; } } 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; _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; } } } } Stage.scaleMode = "noScale"; Stage.align = "C"; animplayed = false; drawmode = "Walls"; secondssurvived = 0; minutessurvived = 0; survivaltime = 0; playerdamage = 65; 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 = 500; ammomax = 500; 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 = 1200; 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 101 MovieClip [empty] "controller" in Frame 5
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 = ""; } }
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 6 MovieClip Frame 3
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 2
stop();
Symbol 13 MovieClip Frame 3
stop();
Symbol 13 MovieClip Frame 4
stop();
Symbol 23 MovieClip Frame 6
stop(); this.removeMovieClip();
Symbol 29 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 29 MovieClip [fire] Frame 29
this.removeMovieClip();
Symbol 51 MovieClip Frame 7
_parent.gotoAndStop("stand");
Symbol 53 MovieClip Frame 155
_parent.removeMovieClip();
Symbol 54 MovieClip [sprite_sci] Frame 1
stop();
Symbol 54 MovieClip [sprite_sci] Frame 2
stop();
Symbol 54 MovieClip [sprite_sci] Frame 3
stop();
Symbol 76 MovieClip Frame 15
_parent.gotoAndStop("stand");
Symbol 77 MovieClip Frame 185
_parent.removeMovieClip();
Symbol 78 MovieClip [sprite_med] Frame 1
stop();
Symbol 78 MovieClip [sprite_med] Frame 2
stop();
Symbol 78 MovieClip [sprite_med] Frame 3
stop();
Symbol 99 MovieClip [bloodsplat] Frame 1
gotoAndStop(random(7) + 1); stop();
Symbol 99 MovieClip [bloodsplat] Frame 2
stop();
Symbol 99 MovieClip [bloodsplat] Frame 3
stop();
Symbol 99 MovieClip [bloodsplat] Frame 4
stop();
Symbol 99 MovieClip [bloodsplat] Frame 5
stop();
Symbol 99 MovieClip [bloodsplat] Frame 6
stop();
Symbol 99 MovieClip [bloodsplat] Frame 7
stop();
Symbol 101 MovieClip [empty] Frame 1
stop();
Symbol 101 MovieClip [empty] Frame 2
gotoAndStop (1);
Symbol 101 MovieClip [empty] Frame 3
gotoAndStop (1);
Instance of Symbol 105 MovieClip "slider" in Symbol 106 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 108 Button
on (release) { _root.tip_window.removeMovieClip(); }
Symbol 109 Button
on (release) { tipshown++; if (tipshown < 10) { tip.nextFrame(); } else { tip.gotoAndStop(1); tipshown = 1; } }
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 4
stop();
Symbol 128 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 6
stop();
Symbol 128 MovieClip Frame 7
stop();
Symbol 128 MovieClip Frame 8
stop();
Symbol 128 MovieClip Frame 9
stop();
Symbol 129 MovieClip [tip_window] Frame 1
stop(); tipshown = 1;
Symbol 152 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() { if (AG_COUNT == AG_TIME) { clearInterval(AG_HOLD_ID); _level0.START_ping.broadcastMessage("presented"); _root.play(); this.unloadMovie(); } else { AG_COUNT++; } } _parent.stop(); var AG_SMASH = new Sound(); AG_SMASH.attachSound("Smash"); 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"); _root.kvEvent(430); };
Symbol 626 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 627 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 628 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 629 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 630 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 158 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 159 MovieClip Frame 1
stop();
Instance of Symbol 154 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (enterFrame) { perc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; _xscale = perc; _parent.percentage = Math.floor(perc) + " %"; if (perc >= 100) { _parent.gotoAndStop("loaded"); } }
Instance of Symbol 154 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (enterFrame) { perc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; _xscale = perc; _parent.percentage = Math.floor(perc) + " %"; if (perc >= 100) { _parent.play(); } }
Symbol 159 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 50
if (random(50) < 5) { _parent.gotoAndStop("look east"); }
Symbol 223 MovieClip Frame 24
_parent.gotoAndStop("south");
Symbol 253 MovieClip Frame 4
_parent.gotoAndStop("kneel");
Symbol 254 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 7
_parent.gotoAndStop("kneel");
Symbol 259 MovieClip Frame 4
stop();
Symbol 310 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 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
stop();
Symbol 320 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 4
stop();
Symbol 331 MovieClip Frame 64
stop(); _parent.removeMovieClip();
Symbol 332 MovieClip Frame 65
stop(); _parent.removeMovieClip();
Symbol 333 MovieClip Frame 29
stop();
Symbol 334 MovieClip Frame 29
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 1
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 2
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 10
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 11
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 12
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 13
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 14
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 15
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 16
stop();
Symbol 335 MovieClip [sprite_brit_guard] Frame 17
stop();
Symbol 336 MovieClip Frame 50
if (random(50) < 5) { _parent.gotoAndStop("look south"); }
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 15
stop();
Symbol 352 MovieClip Frame 50
if (random(50) < 3) { _parent.gotoAndStop("look north"); }
Symbol 353 MovieClip Frame 50
if (random(50) < 3) { _parent.gotoAndStop("look west"); }
Symbol 354 MovieClip Frame 24
_parent.gotoAndStop("east");
Symbol 355 MovieClip Frame 32
_parent.gotoAndStop("north"); stop();
Symbol 356 MovieClip Frame 32
_parent.gotoAndStop("west"); stop();
Symbol 361 MovieClip Frame 19
_parent.gotoAndStop("south");
Symbol 362 MovieClip Frame 19
_parent.gotoAndStop("east");
Symbol 363 MovieClip Frame 19
_parent.gotoAndStop("north");
Symbol 364 MovieClip Frame 19
_parent.gotoAndStop("west");
Symbol 365 MovieClip [sprite_defender] Frame 1
stop();
Symbol 365 MovieClip [sprite_defender] Frame 2
if (_root.titleon) { life._visible = false; } over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 3
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 4
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 5
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 6
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 7
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 8
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 9
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 10
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 11
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 12
over.useHandCursor = false; stop();
Symbol 365 MovieClip [sprite_defender] Frame 13
over.useHandCursor = false; stop();
Symbol 369 MovieClip Frame 9
_parent.gotoAndStop("kneel");
Symbol 370 MovieClip Frame 11
stop();
Symbol 375 MovieClip Frame 7
stop();
Symbol 376 MovieClip Frame 7
stop();
Symbol 377 MovieClip [sprite_eng] Frame 1
stop();
Symbol 377 MovieClip [sprite_eng] Frame 2
stop();
Symbol 377 MovieClip [sprite_eng] Frame 3
stop();
Symbol 377 MovieClip [sprite_eng] Frame 4
stop();
Symbol 377 MovieClip [sprite_eng] Frame 5
stop();
Symbol 377 MovieClip [sprite_eng] Frame 6
stop();
Symbol 377 MovieClip [sprite_eng] Frame 7
stop();
Symbol 377 MovieClip [sprite_eng] Frame 8
stop();
Symbol 377 MovieClip [sprite_eng] Frame 9
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 11
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 459 MovieClip [tile] Frame 1
stop();
Symbol 459 MovieClip [tile] Frame 2
stop();
Symbol 459 MovieClip [tile] Frame 3
stop();
Symbol 459 MovieClip [tile] Frame 4
inner.cacheAsBitmap = true;
Symbol 459 MovieClip [tile] Frame 5
inner.cacheAsBitmap = true;
Symbol 459 MovieClip [tile] Frame 6
stop();
Symbol 459 MovieClip [tile] Frame 7
stop();
Symbol 459 MovieClip [tile] Frame 8
stop();
Symbol 459 MovieClip [tile] Frame 9
stop();
Symbol 459 MovieClip [tile] Frame 10
stop();
Symbol 459 MovieClip [tile] Frame 11
stop();
Symbol 459 MovieClip [tile] Frame 12
stop();
Symbol 459 MovieClip [tile] Frame 13
stop();
Symbol 459 MovieClip [tile] Frame 14
stop();
Symbol 459 MovieClip [tile] Frame 15
stop();
Symbol 459 MovieClip [tile] Frame 16
stop();
Symbol 459 MovieClip [tile] Frame 17
stop();
Symbol 459 MovieClip [tile] Frame 18
stop();
Symbol 459 MovieClip [tile] Frame 19
stop();
Symbol 459 MovieClip [tile] Frame 20
stop();
Symbol 459 MovieClip [tile] Frame 21
stop();
Symbol 459 MovieClip [tile] Frame 22
stop();
Symbol 464 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 467 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 470 Button
on (release) { _root.timemin = 0; _root.timesec = 3; _root.menubar.wait.enabled = false; _root.menubar.wait._alpha = 50; }
Symbol 473 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 476 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 479 MovieClip Frame 2
if (random(1000) < 3) { } else { this.gotoAndPlay(1); }
Symbol 479 MovieClip Frame 33
this.gotoAndPlay(1);
Symbol 483 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 507 Button
on (release) { _root.spawnzombies(1); }
Instance of Symbol 105 MovieClip "slider" in Symbol 509 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 520 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 521 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 530 Button
on (release) { if (_root.gamepaused) { _root.gamepaused = false; _root.pause_overlay.removeMovieClip(); } else { _root.gamepaused = true; _root.attachMovie("pause_overlay", "pause_overlay", _root.getNextHighestDepth()); } _root.updatecash(); }
Symbol 531 MovieClip [menubar2] Frame 1
_root.music.gotoAndPlay("day");
Symbol 535 Button
on (press) { getURL ("http://www.addictinggames.com", "_blank"); _root.kvEvent(431); }
Symbol 548 Button
on (release) { _root.gotoAndStop("game"); _root.gameoverman.removeMovieClip(); _root.overlay.removeMovieClip(); }
Symbol 552 Button
on (release) { _root.tiles.removeMovieClip(); game.removeMovieClip(); _root.timer.text = ""; _root.gameoverman.removeMovieClip(); _root.gotoAndStop("instructions"); this.removeMovieClip(); }
Symbol 557 Button
on (release) { getURL ("http://www.addictinggames.com", "_blank"); _root.kvEvent(432); }
Symbol 611 MovieClip Frame 130
stop();
Symbol 612 MovieClip [entire_overlay] Frame 1
if (_root.secondssurvived > 0) { feedback.endfeedback.text = ("You survived the Dead of Night for " + _root.survivaltime) + " minutes"; feedback.endfeedback2.text = "Try again and don't let the zombies eat your brains."; } else { feedback.endfeedback.text = ""; feedback.endfeedback2.text = ""; }
Symbol 617 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 4
stop();
Symbol 618 MovieClip Frame 7
stop();
Symbol 625 Button
on (release) { _root.gotoAndStop("menu"); }

Library Items

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

Instance Names

"controller"Frame 4Symbol 101 MovieClip [empty]
"background"Frame 4Symbol 615 MovieClip
"controller"Frame 5Symbol 101 MovieClip [empty]
"background"Frame 5Symbol 615 MovieClip
"music"Frame 5Symbol 618 MovieClip
"timer"Frame 5Symbol 619 EditableText
"nbody"Symbol 29 MovieClip [fire] Frame 1Symbol 6 MovieClip
"nhand"Symbol 29 MovieClip [fire] Frame 1Symbol 8 MovieClip
"head"Symbol 29 MovieClip [fire] Frame 1Symbol 13 MovieClip
"nhand1"Symbol 29 MovieClip [fire] Frame 1Symbol 8 MovieClip
"narm1"Symbol 29 MovieClip [fire] Frame 1Symbol 15 MovieClip
"nboot"Symbol 29 MovieClip [fire] Frame 1Symbol 17 MovieClip
"entry"Symbol 84 MovieClip [tinytextfield] Frame 1Symbol 83 EditableText
"line"Symbol 106 MovieClip [slider] Frame 1Symbol 103 MovieClip
"slider"Symbol 106 MovieClip [slider] Frame 1Symbol 105 MovieClip
"tip"Symbol 129 MovieClip [tip_window] Frame 1Symbol 128 MovieClip
"AGclick_btn"Symbol 152 MovieClip Frame 1Symbol 141 Button
"AGskip_btn"Symbol 152 MovieClip Frame 1Symbol 147 Button
"AGpresented_mc"Symbol 152 MovieClip Frame 1Symbol 149 MovieClip
"AGlogo_mc"Symbol 152 MovieClip Frame 1Symbol 151 MovieClip
"reticule"Symbol 335 MovieClip [sprite_brit_guard] Frame 2Symbol 310 Button
"rank1"Symbol 365 MovieClip [sprite_defender] Frame 2Symbol 337 EditableText
"rank2"Symbol 365 MovieClip [sprite_defender] Frame 2Symbol 338 EditableText
"rank3"Symbol 365 MovieClip [sprite_defender] Frame 2Symbol 339 EditableText
"splash"Symbol 365 MovieClip [sprite_defender] Frame 2Symbol 343 MovieClip
"life"Symbol 365 MovieClip [sprite_defender] Frame 2Symbol 348 MovieClip
"west"Symbol 365 MovieClip [sprite_defender] Frame 5Symbol 353 MovieClip
"west"Symbol 365 MovieClip [sprite_defender] Frame 9Symbol 356 MovieClip
"west"Symbol 365 MovieClip [sprite_defender] Frame 13Symbol 364 MovieClip
"reload"Symbol 377 MovieClip [sprite_eng] Frame 1Symbol 367 EditableText
"reload2"Symbol 377 MovieClip [sprite_eng] Frame 1Symbol 368 EditableText
"inner"Symbol 459 MovieClip [tile] Frame 4Symbol 397 MovieClip
"inner"Symbol 459 MovieClip [tile] Frame 5Symbol 430 MovieClip
"line"Symbol 509 MovieClip Frame 1Symbol 103 MovieClip
"slider"Symbol 509 MovieClip Frame 1Symbol 105 MovieClip
"trap"Symbol 531 MovieClip [menubar2] Frame 1Symbol 464 Button
"refill"Symbol 531 MovieClip [menubar2] Frame 1Symbol 467 Button
"wait"Symbol 531 MovieClip [menubar2] Frame 1Symbol 470 Button
"barricade1"Symbol 531 MovieClip [menubar2] Frame 1Symbol 473 Button
"barricade2"Symbol 531 MovieClip [menubar2] Frame 1Symbol 476 Button
"gunmangraph"Symbol 531 MovieClip [menubar2] Frame 1Symbol 479 MovieClip
"gunman"Symbol 531 MovieClip [menubar2] Frame 1Symbol 483 Button
"cashdisp"Symbol 531 MovieClip [menubar2] Frame 1Symbol 487 EditableText
"daytext"Symbol 531 MovieClip [menubar2] Frame 1Symbol 488 EditableText
"barricades"Symbol 531 MovieClip [menubar2] Frame 1Symbol 491 EditableText
"barricadesmax"Symbol 531 MovieClip [menubar2] Frame 1Symbol 492 EditableText
"traps"Symbol 531 MovieClip [menubar2] Frame 1Symbol 494 EditableText
"trapsmax"Symbol 531 MovieClip [menubar2] Frame 1Symbol 495 EditableText
"gunmen"Symbol 531 MovieClip [menubar2] Frame 1Symbol 497 EditableText
"gunmenmax"Symbol 531 MovieClip [menubar2] Frame 1Symbol 498 EditableText
"ammo"Symbol 531 MovieClip [menubar2] Frame 1Symbol 500 EditableText
"ammomax"Symbol 531 MovieClip [menubar2] Frame 1Symbol 501 EditableText
"bodycount"Symbol 531 MovieClip [menubar2] Frame 1Symbol 503 EditableText
"reloadtime"Symbol 531 MovieClip [menubar2] Frame 1Symbol 510 EditableText
"playerdamage"Symbol 531 MovieClip [menubar2] Frame 1Symbol 511 EditableText
"lives"Symbol 531 MovieClip [menubar2] Frame 1Symbol 512 EditableText
"scientist"Symbol 531 MovieClip [menubar2] Frame 1Symbol 513 EditableText
"medic"Symbol 531 MovieClip [menubar2] Frame 1Symbol 514 EditableText
"speedcost"Symbol 531 MovieClip [menubar2] Frame 1Symbol 517 EditableText
"damagecost"Symbol 531 MovieClip [menubar2] Frame 1Symbol 518 EditableText
"upspeed"Symbol 531 MovieClip [menubar2] Frame 1Symbol 520 Button
"updamage"Symbol 531 MovieClip [menubar2] Frame 1Symbol 521 Button
"pause"Symbol 531 MovieClip [menubar2] Frame 1Symbol 530 Button
"endfeedback"Symbol 560 MovieClip Frame 1Symbol 558 EditableText
"endfeedback2"Symbol 560 MovieClip Frame 1Symbol 559 EditableText
"feedback"Symbol 612 MovieClip [entire_overlay] Frame 1Symbol 560 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "Smash"
ExportAssets (56)Timeline Frame 1Symbol 2 as "carpntry.wav"
ExportAssets (56)Timeline Frame 1Symbol 29 as "fire"
ExportAssets (56)Timeline Frame 1Symbol 54 as "sprite_sci"
ExportAssets (56)Timeline Frame 1Symbol 78 as "sprite_med"
ExportAssets (56)Timeline Frame 1Symbol 81 as "mouse"
ExportAssets (56)Timeline Frame 1Symbol 84 as "tinytextfield"
ExportAssets (56)Timeline Frame 1Symbol 99 as "bloodsplat"
ExportAssets (56)Timeline Frame 1Symbol 101 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 106 as "slider"
ExportAssets (56)Timeline Frame 1Symbol 129 as "tip_window"
ExportAssets (56)Timeline Frame 1Symbol 132 as "brick_button_inner"
ExportAssets (56)Timeline Frame 1Symbol 135 as "wooden_button_inner"
ExportAssets (56)Timeline Frame 1Symbol 626 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 627 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 628 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 629 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 630 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 2Symbol 252 as "reload.wav"
ExportAssets (56)Timeline Frame 2Symbol 258 as "30-30.wav"
ExportAssets (56)Timeline Frame 3Symbol 335 as "sprite_brit_guard"
ExportAssets (56)Timeline Frame 3Symbol 365 as "sprite_defender"
ExportAssets (56)Timeline Frame 3Symbol 377 as "sprite_eng"
ExportAssets (56)Timeline Frame 3Symbol 459 as "tile"
ExportAssets (56)Timeline Frame 3Symbol 531 as "menubar2"
ExportAssets (56)Timeline Frame 3Symbol 539 as "pause_overlay"
ExportAssets (56)Timeline Frame 3Symbol 540 as "day_music"
ExportAssets (56)Timeline Frame 3Symbol 542 as "night_music"
ExportAssets (56)Timeline Frame 3Symbol 543 as "zombie_title.mp3"
ExportAssets (56)Timeline Frame 3Symbol 612 as "entire_overlay"
ExportAssets (56)Timeline Frame 3Symbol 616 as "ding.wav"

Labels

"preloader"Frame 3
"menu"Frame 4
"game"Frame 5
"instructions"Frame 6
"stand"Symbol 54 MovieClip [sprite_sci] Frame 1
"hit"Symbol 54 MovieClip [sprite_sci] Frame 2
"die"Symbol 54 MovieClip [sprite_sci] Frame 3
"stand"Symbol 78 MovieClip [sprite_med] Frame 1
"hit"Symbol 78 MovieClip [sprite_med] Frame 2
"die"Symbol 78 MovieClip [sprite_med] Frame 3
"loaded"Symbol 159 MovieClip Frame 2
"south"Symbol 335 MovieClip [sprite_brit_guard] Frame 2
"east"Symbol 335 MovieClip [sprite_brit_guard] Frame 3
"north"Symbol 335 MovieClip [sprite_brit_guard] Frame 4
"west"Symbol 335 MovieClip [sprite_brit_guard] Frame 5
"attack south"Symbol 335 MovieClip [sprite_brit_guard] Frame 6
"attack east"Symbol 335 MovieClip [sprite_brit_guard] Frame 7
"attack north"Symbol 335 MovieClip [sprite_brit_guard] Frame 8
"attack west"Symbol 335 MovieClip [sprite_brit_guard] Frame 9
"die south"Symbol 335 MovieClip [sprite_brit_guard] Frame 10
"die east"Symbol 335 MovieClip [sprite_brit_guard] Frame 11
"die north"Symbol 335 MovieClip [sprite_brit_guard] Frame 12
"die west"Symbol 335 MovieClip [sprite_brit_guard] Frame 13
"rise south"Symbol 335 MovieClip [sprite_brit_guard] Frame 14
"rise east"Symbol 335 MovieClip [sprite_brit_guard] Frame 15
"rise north"Symbol 335 MovieClip [sprite_brit_guard] Frame 16
"rise west"Symbol 335 MovieClip [sprite_brit_guard] Frame 17
"south"Symbol 365 MovieClip [sprite_defender] Frame 2
"east"Symbol 365 MovieClip [sprite_defender] Frame 3
"north"Symbol 365 MovieClip [sprite_defender] Frame 4
"west"Symbol 365 MovieClip [sprite_defender] Frame 5
"look south"Symbol 365 MovieClip [sprite_defender] Frame 6
"look east"Symbol 365 MovieClip [sprite_defender] Frame 7
"look north"Symbol 365 MovieClip [sprite_defender] Frame 8
"look west"Symbol 365 MovieClip [sprite_defender] Frame 9
"attack south"Symbol 365 MovieClip [sprite_defender] Frame 10
"attack east"Symbol 365 MovieClip [sprite_defender] Frame 11
"attack north"Symbol 365 MovieClip [sprite_defender] Frame 12
"attack west"Symbol 365 MovieClip [sprite_defender] Frame 13
"stand"Symbol 377 MovieClip [sprite_eng] Frame 1
"hit"Symbol 377 MovieClip [sprite_eng] Frame 2
"die"Symbol 377 MovieClip [sprite_eng] Frame 3
"kneel north"Symbol 377 MovieClip [sprite_eng] Frame 4
"kneel"Symbol 377 MovieClip [sprite_eng] Frame 5
"kneeling"Symbol 377 MovieClip [sprite_eng] Frame 6
"shoot"Symbol 377 MovieClip [sprite_eng] Frame 7
"shoot east"Symbol 377 MovieClip [sprite_eng] Frame 8
"shoot west"Symbol 377 MovieClip [sprite_eng] Frame 9
"t100"Symbol 397 MovieClip Frame 1
"t90"Symbol 397 MovieClip Frame 2
"t80"Symbol 397 MovieClip Frame 3
"t70"Symbol 397 MovieClip Frame 4
"t60"Symbol 397 MovieClip Frame 5
"t50"Symbol 397 MovieClip Frame 6
"t40"Symbol 397 MovieClip Frame 7
"t30"Symbol 397 MovieClip Frame 8
"t20"Symbol 397 MovieClip Frame 9
"t10"Symbol 397 MovieClip Frame 10
"t50"Symbol 430 MovieClip Frame 1
"t45"Symbol 430 MovieClip Frame 2
"t40"Symbol 430 MovieClip Frame 3
"t35"Symbol 430 MovieClip Frame 4
"t30"Symbol 430 MovieClip Frame 5
"t25"Symbol 430 MovieClip Frame 6
"t20"Symbol 430 MovieClip Frame 7
"t15"Symbol 430 MovieClip Frame 8
"t10"Symbol 430 MovieClip Frame 9
"t5"Symbol 430 MovieClip Frame 10
"day"Symbol 618 MovieClip Frame 2
"night"Symbol 618 MovieClip Frame 5

Dynamic Text Variables

percentageSymbol 155 EditableText"000%"




http://swfchan.com/1/1430/info.shtml
Created: 17/6 -2019 22:42:05 Last modified: 17/6 -2019 22:42:05 Server time: 19/04 -2024 16:31:23