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

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

Breakthru v1.0.swf

This is the info page for
Flash #49924

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


Text
LOADED

GO!

Please select a color.

OK

Menu

Next

Back

The playing feild is made
up of a grid of tiles.

You may only enter tiles
that are the same color as
your tank.

You are the operator of a
tank.

Use the arrow keys to
move your tank.

You may only shoot if
your reload bar, in the
bottom left corner, is full.

Use the space bar to shoot
a missile.

Hitting a tile that is not
your color will change it to
your color.

Your missiles fly over
your color tiles.

Your objective is to shoot
the enemy tank.

Your enemy's objective is
to shoot you.

From time to time, a worm
will appear on the playing
feild.

The worm reverses the
color of tiles that it
moves over.

Just one hit on the worm
will kill it.

However, the worm is not
necessarily an enemy.

IT  HELPED!

FAILURE!

SUCCESS!

ActionScript [AS1/AS2]

Frame 1
function killstuff() { removeMovieClip(tank); removeMovieClip(ctank); } killstuff();
Frame 2
stop(); killstuff(); hit = "waka"; if (hit != "waka") { gotoAndStop ("instructions"); }
Frame 3
stop(); _global.c = "nothing";
Frame 5
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 6
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 7
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 8
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 9
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 10
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local5 = -10; while (_local5 <= 20) { var _local7 = _local5 + 2500; var _local2 = "projectile" + _local7; var _local13 = Math.ceil(_root[_local2]._x / game.spacing); var _local11 = Math.ceil(_root[_local2]._y / game.spacing); var _local6 = (("block" + _local13) + "_") + _local11; var _local12 = Math.ceil(ctank._x / game.spacing); var _local9 = Math.ceil(ctank._x / game.spacing); var _local4 = game.path[(("block" + _local12) + "_") + _local9]; var _local3 = _root[_local2]; var _local8 = game.path[_local6]; var _local10 = game[_local6]; if (_local3.hitTest(_local8)) { if (_local10.type != 1) { removeMovieClip(_local2); } changeColor(_local6, 1); } if (_local3.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } n = 1; while (n <= game.sections) { _local4 = "bit" + n; if (_local3.hitTest(_root[_local4])) { killWorm(game.sections); } n = n + 2; } _local5++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start(); var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function createWorm(sections) { attachMovie("Wormhead", "head", 1900); head._x = random(570); head._y = random(570); i = 1751; while (i <= (sections + 1750)) { var _local3 = i - 1750; var _local2 = "bit" + _local3; attachMovie("Wormbits", _local2, i); _root[_local2]._yscale = (_root[_local2]._xscale = ((Math.sin(30 + ((_local3 / sections) * 70)) * 20) + 80) - ((_local3 / sections) * 70)); if ((_root[_local2]._xscale < 30) && (_local3 < (sections - 4))) { _root[_local2]._yscale = (_root[_local2]._xscale = 30); } i++; } bit1._x = head._x; bit1._y = head._y; } function moveHead(dir) { if (dir == 0) { head._x = head._x + ((game.speed * 2) + 1); head._rotation = 0; } else if (dir == 1) { head._x = head._x - ((game.speed * 2) + 1); head._rotation = 180; } else if (dir == 2) { head._y = head._y + ((game.speed * 2) + 1); head._rotation = 90; } else if (dir == 3) { head._y = head._y - ((game.speed * 2) + 1); head._rotation = 270; } } function moveBits(sections) { n = sections; while (n >= 1) { var _local4 = n + 1750; var _local2 = "bit" + n; if (n != 1) { var _local3 = "bit" + (n - 1); _root[_local2]._x = _root[_local3]._x; _root[_local2]._y = _root[_local3]._y; _root[_local2]._rotation = _root[_local3]._rotation; } else { _root[_local2]._x = head._x; _root[_local2]._y = head._y; _root[_local2]._rotation = head._rotation; } n--; } } function headReactions() { blockx = Math.ceil(head._x / game.spacing); blocky = Math.ceil(head._y / game.spacing); name = (("block" + blockx) + "_") + blocky; tempBlock = game[name]; if (tempBlock.type == 2) { changeColor(name, 1); } else if (tempBlock.type == 1) { changeColor(name, 2); } } function killWorm(sectionNum) { notalive = true; killing = true; var _local3 = "explode" + currentBit; var _local2 = "bit" + currentBit; var _local4 = currentBit + 1; var _local5 = "bit" + _local4; attachMovie("explode", _local3, currentBit + 100); _root[_local3]._x = _root[_local2]._x; _root[_local3]._y = _root[_local2]._y; _root[_local3]._xscale = _root[_local2]._xscale; _root[_local3]._yscale = _root[_local2]._yscale; removeMovieClip(_local2); removeMovieClip(head); if (currentBit >= 1) { currentBit--; } else { currentBit = sectionNum; killing = false; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } function rollAgain(randIn) { var _local1 = randIn; if (_local1 == 0) { var _local2 = 1; } else if (_local1 == 1) { var _local2 = 0; } else if (_local1 == 2) { var _local2 = 3; } else if (_local1 == 3) { var _local2 = 2; } randfour = random(4); if (randfour == _local2) { rollAgain(_local1); } } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; game.sections = 50; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; cfdelay = cfdelay - 1; wdelay = wdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = random(20) + 10; var _local1 = compSmarts(ctank._x, ctank._y); } if ((cfdelay <= 0) && (Cexists)) { cfdelay = 20; compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cfdelay * 5); if (cbar._width >= 60) { cbar._width = 60; } if ((random(300) == 1) && (notalive)) { notalive = false; createWorm(game.sections); } if (wdelay <= 0) { wdelay = random(20) + 10; rollAgain(randfour); } if (head._x < 25) { head._x = 25; randfour = 3; } if (head._y > 545) { head._y = 545; randfour = 1; } if (head._x > 545) { head._x = 545; randfour = 2; } if (head._y < 25) { head._y = 25; randfour = 0; } moveBits(game.sections); moveHead(randfour); if (!notalive) { headReactions(); } if (killing) { killWorm(game.sections); } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = random(30); cfdelay = 33; wdelay = random(30); Cexists = true; notalive = true; killing = false; currentBit = game.sections; randfour = 3;
Frame 11
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 12
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 13
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 14
function buildgrid() { var _local2 = 1; while (_local2 <= 10) { var _local1 = 1; while (_local1 <= 10) { var _local3 = (("block" + _local1) + "_") + _local2; var _local6 = (_local1 - 1) * game.spacing; var _local5 = (_local2 - 1) * game.spacing; game.path.attachMovie("block", _local3, ++game.depth); game.path[_local3]._x = _local6; game.path[_local3]._y = _local5; if (_local2 <= _local1) { if ((_local1 > 7) && (_local2 <= 3)) { var _local7 = 2; } else { var _local7 = 1; } } else if ((_local1 <= 3) && (_local2 > 7)) { var _local7 = 1; } else { var _local7 = 2; } if (_local1 == _local2) { var _local7 = 3; } changeColor(_local3, _local7); game[_local3] = {x:_local1, y:_local2, name:_local3, type:_local7, clip:game.path[_local3]}; _local1++; } _local2++; } } function pbCollDet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2500; var _local2 = "projectile" + _local6; var _local12 = Math.ceil(_root[_local2]._x / game.spacing); var _local10 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local12) + "_") + _local10; var _local11 = Math.ceil(ctank._x / game.spacing); var _local8 = Math.ceil(ctank._x / game.spacing); var _local13 = game.path[(("block" + _local11) + "_") + _local8]; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local9 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local9.type != 1) { removeMovieClip(_local2); } changeColor(_local4, 1); } if (_local5.hitTest(ctank)) { attachMovie("explode", "explode", 2700); explode._x = ctank._x; explode._y = ctank._y; removeMovieClip(ctank); removeMovieClip(_local2); Cexists = false; gotoAndStop ("success"); } _local3++; } } function moveTank(dir) { if (dir == "right") { tank._rotation = 0; var _local5 = tank._x + nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x + game.speed; } else if (dir == "left") { tank._rotation = 180; var _local5 = tank._x - nose2; var _local3 = tank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._x = tank._x - game.speed; } else if (dir == "up") { tank._rotation = 270; var _local5 = tank._x; var _local3 = tank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y - game.speed; } else if (dir == "down") { tank._rotation = 90; var _local5 = tank._x; var _local3 = tank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 1) { return(undefined); } tank._y = tank._y + game.speed; } } function compSmarts(tempx, tempy) { var _local8 = Math.ceil(tempx / game.spacing); var _local6 = Math.ceil(tempy / game.spacing); var _local14 = game[(("block" + _local8) + "_") + _local6]; var _local4 = Math.ceil(ob.tempx / game.spacing); var _local5 = Math.ceil(ob.tempy / game.spacing); var _local3 = game[(("block" + _local4) + "_") + _local5]; if ((_local3.type != 2) || (cdelay < 0)) { cdelay = 33; tempx = x; tempy = y; var _local11 = dir; var _local15 = 0; var _local9 = 0; var _local10 = Math.abs(speed); var _local1 = (tank._x - ctank._x) / Math.abs(tank._x - ctank._x); var _local2 = (tank._y - ctank._y) / Math.abs(tank._y - ctank._y); if ((_local1 == _local2) || (_local1 == (-_local2))) { var _local7 = random(2); if (_local7 == 0) { _local1 = 0; } else { _local2 = 0; } } if (_local1 != 0) { _local9 = 0; _local15 = _local1 * game.speed; if (_local15 > 0) { var dir = "right"; } else { var dir = "left"; } } else if (_local2 != 0) { _local15 = 0; _local9 = _local2 * game.speed; if (_local9 > 0) { var dir = "down"; } else { var dir = "up"; } } moveCtank(dir); } } function compFire() { var _local9 = new Sound(); _local9.attachSound("438476_SOUNDDOGS_HA.mp3", "fire"); fire.start; var _local14 = ctank._x; var _local13 = ctank._y; var _local4 = (ctank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local4); var _local6 = Math.sin(_local4); var _local12 = nose * _local7; var _local11 = nose * _local6; var _local16 = _local14 + _local12; var _local15 = _local13 + _local11; var _local10 = ctank._rotation; if (cdepth > 2610) { var _local5 = cdepth; cdepth = 2599; } else { var _local5 = cdepth; cdepth = cdepth + 1; } var _local8 = "cprojectile" + _local5; var _local3 = _root.attachMovie("cprojectile", _local8, _local5); _local3._x = _local16; _local3._y = _local15; _local3._rotation = _local10; _local3.xmov = speed * _local7; _local3.ymov = speed * _local6; _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } function Cpbcolldet() { var _local3 = -10; while (_local3 <= 20) { var _local6 = _local3 + 2600; var _local2 = "cprojectile" + _local6; var _local10 = Math.ceil(_root[_local2]._x / game.spacing); var _local9 = Math.ceil(_root[_local2]._y / game.spacing); var _local4 = (("block" + _local10) + "_") + _local9; var _local5 = _root[_local2]; var _local7 = game.path[_local4]; var _local8 = game[_local4]; if (_local5.hitTest(_local7)) { if (_local8.type != 2) { removeMovieClip(_local2); } changeColor(_local4, 2); } if (_local5.hitTest(tank)) { attachMovie("explode", "explode", 2700); explode._x = tank._x; explode._y = tank._y; removeMovieClip(tank); removeMovieClip(_local2); gotoAndStop ("failure"); } _local3++; } } function moveCtank(dir) { if (dir == "right") { ctank._rotation = 0; var _local5 = ctank._x + nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x + game.speed; } else if (dir == "left") { ctank._rotation = 180; var _local5 = ctank._x - nose2; var _local3 = ctank._y; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._x = ctank._x - game.speed; } if (dir == "up") { ctank._rotation = 270; var _local5 = ctank._x; var _local3 = ctank._y - nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y - game.speed; } else if (dir == "down") { ctank._rotation = 90; var _local5 = ctank._x; var _local3 = ctank._y + nose2; var _local6 = Math.ceil(_local5 / game.spacing); var _local4 = Math.ceil(_local3 / game.spacing); var _local2 = game[(("block" + _local6) + "_") + _local4]; if (_local2.type != 2) { return(undefined); } ctank._y = ctank._y + game.speed; } } function changeColor(block, type) { game.path[block].gotoAndStop(type); game.path[block].inblock.gotoAndStop(chosenColor); game[block].type = type; } _root.stop(); chosenColor = _global.c; tank.gotoAndStop(chosenColor); bar.gotoAndStop(chosenColor); game = {}; game.depth = 1000; game.spacing = 57; game.speed = 5; game.dificulty = 1; game.path = _root.grid; buildgrid(); tank.swapDepths(2000); ctank.swapDepths(2001); var keyLis = new Object(); Key.addListener(keyLis); keyLis.onKeyDown = function () { if (Key.isDown(32)) { if (delay < 0) { delay = 33; var _local10 = tank._x; var _local9 = tank._y; var _local6 = (tank._rotation * Math.PI) / 180; var _local7 = Math.cos(_local6); var _local5 = Math.sin(_local6); var _local13 = nose * _local7; var _local12 = nose * _local5; var _local15 = _local10 + _local13; var _local14 = _local9 + _local12; var _local11 = tank._rotation; if (depth <= 2510) { var _local4 = depth; depth = depth + 1; } else { var _local4 = depth; depth = 2499; } var _local8 = "projectile" + _local4; var _local3 = _root.attachMovie("projectile", _local8, _local4); _local3._x = _local15; _local3._y = _local14; _local3._rotation = _local11; _local3.xmov = speed * _local7; _local3.ymov = speed * _local5; _local3.inProj.gotoAndStop(chosenColor); _local3.onEnterFrame = function () { this._x = this._x + this.xmov; this._y = this._y + this.ymov; }; } } }; onEnterFrame = function () { pbCollDet(); Cpbcolldet(); delay = delay - 1; cdelay = cdelay - 1; if ((cdelay <= 0) && (Cexists)) { cdelay = game.dificulty; var _local1 = compSmarts(ctank._x, ctank._y); compFire(); } if (ctank._rotation == 0) { moveCtank("right"); } else if (ctank._rotation == 90) { moveCtank("down"); } else if (ctank._rotation == 180) { moveCtank("left"); } if (((ctank._rotation != 0) && (ctank._rotation != 90)) && (ctank._rotation != 180)) { moveCtank("up"); } if (Key.isDown(37)) { moveTank("left"); } else if (Key.isDown(39)) { moveTank("right"); } else if (Key.isDown(38)) { moveTank("up"); } else if (Key.isDown(40)) { moveTank("down"); } bar._xscale = 100 - (delay * 3); if (bar._width >= 60) { bar._width = 60; } cbar._xscale = 100 - (cdelay * 3); if (cbar._width >= 60) { cbar._width = 60; } }; newdepth = 0; depth = 2500; cdepth = 2600; speed = 7; nose = (tank._height / 2) + 6; nose2 = tank._height / 2; delay = 20; cdelay = 20; Cexists = true;
Frame 15
stop();
Frame 16
notalive = false; removeMovieClip(ctank); removeMovieClip(head); n = game.sections; while (n >= 1) { var name = ("bit" + n); removeMovieClip(name); n--; }
Frame 17
notalive = false; removeMovieClip(tank); removeMovieClip(head); n = game.sections; while (n >= 1) { var name = ("bit" + n); removeMovieClip(name); n--; }
Symbol 34 MovieClip Frame 18
stop();
Symbol 39 MovieClip [explode] Frame 41
_root.gotoAndStop("win"); this.removeMovieClip;
Symbol 39 MovieClip [explode] Frame 42
stop();
Symbol 47 MovieClip [tank] Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 75 MovieClip Frame 4
stop();
Symbol 75 MovieClip Frame 5
stop();
Symbol 75 MovieClip Frame 6
stop();
Symbol 75 MovieClip Frame 7
stop();
Symbol 78 MovieClip [block] Frame 1
stop();
Symbol 99 Button
on (release) { gotoAndPlay (58); }
Symbol 103 Button
on (release) { gotoAndPlay (1); }
Symbol 109 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndPlay ("loaded"); }
Symbol 109 MovieClip Frame 2
onEnterFrame = function () { _root.gotoAndPlay("fudge"); };
Symbol 109 MovieClip Frame 57
stop();
Symbol 109 MovieClip Frame 112
_root.play();
Symbol 113 MovieClip Frame 1
block.gotoAndStop("blue");
Symbol 133 Button
on (release) { _root.play(); }
Symbol 135 Button
on (release) { _root.gotoAndStop("instructions"); }
Symbol 136 MovieClip Frame 24
stop();
Symbol 138 Button
on (press) { select._x = r._x; select._y = r._y; samptank.gotoAndStop(1); if ((select._x = r._x)) { _global.c = 1; } }
Symbol 140 Button
on (press) { select._x = o._x; select._y = o._y; samptank.gotoAndStop(2); if ((select._x = o._x)) { _global.c = 2; } }
Symbol 142 Button
on (press) { select._x = y._x; select._y = y._y; samptank.gotoAndStop(3); if ((select._x = y._x)) { _global.c = 3; } }
Symbol 144 Button
on (press) { select._x = g._x; select._y = g._y; samptank.gotoAndStop(4); if ((select._x = g._x)) { _global.c = 4; } }
Symbol 146 Button
on (press) { select._x = b._x; select._y = b._y; samptank.gotoAndStop(5); if ((select._x = b._x)) { _global.c = 5; } }
Symbol 148 Button
on (press) { select._x = p._x; select._y = p._y; samptank.gotoAndStop(6); if ((select._x = p._x)) { _global.c = 6; } }
Symbol 150 Button
on (press) { select._x = w._x; select._y = w._y; samptank.gotoAndStop(7); if ((select._x = w._x)) { _global.c = 7; } }
Symbol 156 Button
on (release) { if (_global.c != "nothing") { gotoAndStop ("l6"); } else { gotoAndStop ("error"); } }
Symbol 160 Button
on (press) { select._x = rand._x; select._y = rand._y; samptank.gotoAndPlay(2); if ((select._x = rand._x)) { _global.c = random(7) + 1; } }
Symbol 167 Button
on (release) { gotoAndStop ("choose"); }
Symbol 176 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 186 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 189 Button
on (release) { play(); }
Symbol 192 Button
on (release) { prevFrame(); }
Symbol 202 MovieClip Frame 140
gotoAndPlay (1);
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 229 MovieClip Frame 3
stop();
Symbol 229 MovieClip Frame 4
stop();
Symbol 229 MovieClip Frame 5
stop();
Symbol 229 MovieClip Frame 6
stop();
Symbol 235 MovieClip Frame 10
stop();
Symbol 236 Button
on (release) { gotoAndStop ("menu"); }
Symbol 243 MovieClip Frame 50
stop();

Library Items

Symbol 1 Sound [fire.mp3]
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClip [Wormhead]Uses:2Used by:220
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip [Wormbits]Uses:4Used by:220
Symbol 6 ShapeTweeningUsed by:39
Symbol 7 ShapeTweeningUsed by:39
Symbol 8 ShapeTweeningUsed by:24
Symbol 9 ShapeTweeningUsed by:24
Symbol 10 ShapeTweeningUsed by:24
Symbol 11 ShapeTweeningUsed by:24
Symbol 12 ShapeTweeningUsed by:24
Symbol 13 GraphicUsed by:24
Symbol 14 ShapeTweeningUsed by:24
Symbol 15 GraphicUsed by:24
Symbol 16 ShapeTweeningUsed by:24
Symbol 17 ShapeTweeningUsed by:24
Symbol 18 GraphicUsed by:24
Symbol 19 ShapeTweeningUsed by:24
Symbol 20 ShapeTweeningUsed by:24
Symbol 21 GraphicUsed by:24
Symbol 22 ShapeTweeningUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23Used by:39
Symbol 25 ShapeTweeningUsed by:39
Symbol 26 ShapeTweeningUsed by:39
Symbol 27 GraphicUsed by:39
Symbol 28 GraphicUsed by:39
Symbol 29 ShapeTweeningUsed by:39
Symbol 30 ShapeTweeningUsed by:39
Symbol 31 ShapeTweeningUsed by:34
Symbol 32 ShapeTweeningUsed by:34
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:31 32 33Used by:39
Symbol 35 GraphicUsed by:39
Symbol 36 ShapeTweeningUsed by:39
Symbol 37 GraphicUsed by:39
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip [explode]Uses:6 7 24 25 26 27 28 29 30 34 35 36 37 38Used by:215 228 243
Symbol 40 GraphicUsed by:47
Symbol 41 GraphicUsed by:47
Symbol 42 GraphicUsed by:47
Symbol 43 GraphicUsed by:47
Symbol 44 GraphicUsed by:47
Symbol 45 GraphicUsed by:47
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip [tank]Uses:40 41 42 43 44 45 46Used by:202 207 211 215 228  Timeline
Symbol 48 GraphicUsed by:55
Symbol 49 GraphicUsed by:55
Symbol 50 GraphicUsed by:55
Symbol 51 GraphicUsed by:55
Symbol 52 GraphicUsed by:55
Symbol 53 GraphicUsed by:55
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:48 49 50 51 52 53 54Used by:61
Symbol 56 GraphicUsed by:61
Symbol 57 GraphicUsed by:61
Symbol 58 GraphicUsed by:61
Symbol 59 GraphicUsed by:61
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClip [projectile]Uses:55 56 57 58 59 60Used by:136 207 211 215 228
Symbol 62 GraphicUsed by:67
Symbol 63 GraphicUsed by:67
Symbol 64 GraphicUsed by:67
Symbol 65 GraphicUsed by:67
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClip [cprojectile]Uses:62 63 64 65 66Used by:136
Symbol 68 GraphicUsed by:75
Symbol 69 GraphicUsed by:75
Symbol 70 GraphicUsed by:75
Symbol 71 GraphicUsed by:75
Symbol 72 GraphicUsed by:75
Symbol 73 GraphicUsed by:75
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:68 69 70 71 72 73 74Used by:78
Symbol 76 GraphicUsed by:78
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClip [block]Uses:75 76 77Used by:111 113
Symbol 79 GraphicUsed by:109
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:109
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:109
Symbol 84 GraphicUsed by:109
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:99 103 109
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:99 103 109
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:89Used by:99 103 109
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:99 103 109
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:93Used by:99 103 109
Symbol 95 FontUsed by:96 184 187 190 195 196 197 204 205 206 209 210 213 214 217 218 225 226
Symbol 96 TextUses:95Used by:109
Symbol 97 GraphicUsed by:109
Symbol 98 GraphicUsed by:99 103
Symbol 99 ButtonUses:86 88 90 92 94 98Used by:109
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100Used by:109
Symbol 102 GraphicUsed by:109
Symbol 103 ButtonUses:86 88 90 92 94 98Used by:109
Symbol 104 GraphicUsed by:109
Symbol 105 GraphicUsed by:109
Symbol 106 ShapeTweeningUsed by:109
Symbol 107 GraphicUsed by:109 136
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:79 81 83 84 86 88 90 92 94 96 97 99 101 102 103 104 105 106 107 108Used by:Timeline
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:78 110Used by:136
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:78 112Used by:136
Symbol 114 GraphicUsed by:136
Symbol 115 GraphicUsed by:136
Symbol 116 GraphicUsed by:136
Symbol 117 SoundUsed by:136
Symbol 118 GraphicUsed by:136
Symbol 119 GraphicUsed by:136
Symbol 120 ShapeTweeningUsed by:136
Symbol 121 GraphicUsed by:136
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:122Used by:136
Symbol 124 GraphicUsed by:128 133
Symbol 125 GraphicUsed by:128 133
Symbol 126 GraphicUsed by:128 133
Symbol 127 GraphicUsed by:128 133
Symbol 128 ButtonUses:124 125 126 127Used by:136
Symbol 129 GraphicUsed by:132 135
Symbol 130 GraphicUsed by:132 135
Symbol 131 GraphicUsed by:132 135
Symbol 132 ButtonUses:129 130 131Used by:136
Symbol 133 ButtonUses:124 125 126 127Used by:136
Symbol 134 GraphicUsed by:136
Symbol 135 ButtonUses:129 130 131Used by:136
Symbol 136 MovieClipUses:111 113 114 115 116 67 61 117 118 119 120 121 123 107 128 132 133 134 135Used by:Timeline
Symbol 137 GraphicUsed by:138
Symbol 138 ButtonUses:137Used by:Timeline
Symbol 139 GraphicUsed by:140
Symbol 140 ButtonUses:139Used by:Timeline
Symbol 141 GraphicUsed by:142
Symbol 142 ButtonUses:141Used by:Timeline
Symbol 143 GraphicUsed by:144
Symbol 144 ButtonUses:143Used by:Timeline
Symbol 145 GraphicUsed by:146
Symbol 146 ButtonUses:145Used by:Timeline
Symbol 147 GraphicUsed by:148
Symbol 148 ButtonUses:147Used by:Timeline
Symbol 149 GraphicUsed by:150
Symbol 150 ButtonUses:149Used by:Timeline
Symbol 151 GraphicUsed by:156
Symbol 152 FontUsed by:153 162 164 227 237 244
Symbol 153 TextUses:152Used by:156
Symbol 154 GraphicUsed by:156
Symbol 155 GraphicUsed by:156
Symbol 156 ButtonUses:151 153 154 155Used by:Timeline
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:Timeline
Symbol 159 GraphicUsed by:160
Symbol 160 ButtonUses:159Used by:Timeline
Symbol 161 GraphicUsed by:Timeline
Symbol 162 TextUses:152Used by:Timeline
Symbol 163 GraphicUsed by:167
Symbol 164 TextUses:152Used by:167
Symbol 165 GraphicUsed by:167
Symbol 166 GraphicUsed by:167
Symbol 167 ButtonUses:163 164 165 166Used by:Timeline
Symbol 168 MovieClipUsed by:Timeline
Symbol 169 GraphicUsed by:176
Symbol 170 GraphicUsed by:176
Symbol 171 GraphicUsed by:176
Symbol 172 GraphicUsed by:176
Symbol 173 GraphicUsed by:176
Symbol 174 GraphicUsed by:176
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClipUses:169 170 171 172 173 174 175Used by:207  Timeline
Symbol 177 GraphicUsed by:Timeline
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:215 228  Timeline
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:180Used by:Timeline
Symbol 182 GraphicUsed by:Timeline
Symbol 183 GraphicUsed by:186 189 192 236
Symbol 184 TextUses:95Used by:186 236
Symbol 185 GraphicUsed by:186 236
Symbol 186 ButtonUses:183 184 185Used by:229
Symbol 187 TextUses:95Used by:189
Symbol 188 GraphicUsed by:189
Symbol 189 ButtonUses:183 187 188Used by:229
Symbol 190 TextUses:95Used by:192
Symbol 191 GraphicUsed by:192
Symbol 192 ButtonUses:183 190 191Used by:229
Symbol 193 GraphicUsed by:229
Symbol 194 GraphicUsed by:229
Symbol 195 TextUses:95Used by:229
Symbol 196 TextUses:95Used by:229
Symbol 197 TextUses:95Used by:229
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:202 207 211 215 221 223 228
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:202 207 211 215 221 223 228
Symbol 202 MovieClipUses:199 201 47Used by:229
Symbol 203 GraphicUsed by:229
Symbol 204 TextUses:95Used by:229
Symbol 205 TextUses:95Used by:229
Symbol 206 TextUses:95Used by:229
Symbol 207 MovieClipUses:201 199 176 47 61Used by:229
Symbol 208 GraphicUsed by:229
Symbol 209 TextUses:95Used by:229
Symbol 210 TextUses:95Used by:229
Symbol 211 MovieClipUses:199 201 47 61Used by:229
Symbol 212 GraphicUsed by:229
Symbol 213 TextUses:95Used by:229
Symbol 214 TextUses:95Used by:229
Symbol 215 MovieClipUses:201 199 179 47 61 39Used by:229
Symbol 216 GraphicUsed by:229
Symbol 217 TextUses:95Used by:229
Symbol 218 TextUses:95Used by:229
Symbol 219 GraphicUsed by:223 228
Symbol 220 MovieClipUses:5 3Used by:223 228
Symbol 221 MovieClipUses:201 199Used by:223 228
Symbol 222 GraphicUsed by:223 228
Symbol 223 MovieClipUses:201 199 219 220 221 222Used by:229
Symbol 224 GraphicUsed by:229
Symbol 225 TextUses:95Used by:229
Symbol 226 TextUses:95Used by:229
Symbol 227 TextUses:152Used by:228
Symbol 228 MovieClipUses:199 201 179 47 219 220 221 61 39 222 227Used by:229
Symbol 229 MovieClipUses:186 189 192 193 194 195 196 197 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 223 224 225 226 228Used by:Timeline
Symbol 230 GraphicUsed by:235
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:235
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClipUses:233Used by:235 243
Symbol 235 MovieClipUses:230 232 234Used by:Timeline
Symbol 236 ButtonUses:183 184 185Used by:Timeline
Symbol 237 EditableTextUses:152Used by:238
Symbol 238 MovieClipUses:237Used by:Timeline
Symbol 239 GraphicUsed by:243
Symbol 240 GraphicUsed by:243
Symbol 241 GraphicUsed by:243
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:239 240 241 39 234 242Used by:Timeline
Symbol 244 TextUses:152Used by:Timeline

Instance Names

"r"Frame 3Symbol 138 Button
"o"Frame 3Symbol 140 Button
"y"Frame 3Symbol 142 Button
"g"Frame 3Symbol 144 Button
"b"Frame 3Symbol 146 Button
"p"Frame 3Symbol 148 Button
"w"Frame 3Symbol 150 Button
"select"Frame 3Symbol 158 MovieClip
"samptank"Frame 3Symbol 47 MovieClip [tank]
"rand"Frame 3Symbol 160 Button
"tank"Frame 5Symbol 47 MovieClip [tank]
"grid"Frame 5Symbol 168 MovieClip
"bar"Frame 5Symbol 176 MovieClip
"ctank"Frame 5Symbol 179 MovieClip
"cbar"Frame 5Symbol 181 MovieClip
"inProj"Symbol 61 MovieClip [projectile] Frame 1Symbol 55 MovieClip
"inblock"Symbol 78 MovieClip [block] Frame 1Symbol 75 MovieClip
"bar"Symbol 109 MovieClip Frame 1Symbol 81 MovieClip
"block"Symbol 111 MovieClip Frame 1Symbol 78 MovieClip [block]
"block"Symbol 113 MovieClip Frame 1Symbol 78 MovieClip [block]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "fire.mp3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "Wormhead"
ExportAssets (56)Timeline Frame 1Symbol 5 as "Wormbits"
ExportAssets (56)Timeline Frame 1Symbol 39 as "explode"
ExportAssets (56)Timeline Frame 1Symbol 47 as "tank"
ExportAssets (56)Timeline Frame 1Symbol 61 as "projectile"
ExportAssets (56)Timeline Frame 1Symbol 67 as "cprojectile"
ExportAssets (56)Timeline Frame 1Symbol 78 as "block"

Labels

"menu"Frame 2
"choose"Frame 3
"error"Frame 4
"game"Frame 5
"l2"Frame 6
"l3"Frame 7
"l4"Frame 8
"l5"Frame 9
"l6"Frame 10
"l7"Frame 11
"l8"Frame 12
"l9"Frame 13
"l10"Frame 14
"instructions"Frame 15
"failure"Frame 16
"success"Frame 17
"explode"Symbol 39 MovieClip [explode] Frame 1
"red"Symbol 47 MovieClip [tank] Frame 1
"orange"Symbol 47 MovieClip [tank] Frame 2
"yellow"Symbol 47 MovieClip [tank] Frame 3
"green"Symbol 47 MovieClip [tank] Frame 4
"blue"Symbol 47 MovieClip [tank] Frame 5
"purple"Symbol 47 MovieClip [tank] Frame 6
"white"Symbol 47 MovieClip [tank] Frame 7
"red"Symbol 75 MovieClip Frame 1
"orange"Symbol 75 MovieClip Frame 2
"yellow"Symbol 75 MovieClip Frame 3
"green"Symbol 75 MovieClip Frame 4
"blue"Symbol 75 MovieClip Frame 5
"purple"Symbol 75 MovieClip Frame 6
"white"Symbol 75 MovieClip Frame 7
"red"Symbol 78 MovieClip [block] Frame 1
"blue"Symbol 78 MovieClip [block] Frame 2
"metal"Symbol 78 MovieClip [block] Frame 3
"fudge"Symbol 109 MovieClip Frame 1
"loaded"Symbol 109 MovieClip Frame 3




http://swfchan.com/10/49924/info.shtml
Created: 27/4 -2019 08:09:51 Last modified: 27/4 -2019 08:09:51 Server time: 16/05 -2024 21:01:04