Frame 1
if (getBytesLoaded() == getBytesTotal()) {
gotoAndStop (3);
}
Instance of Symbol 16 MovieClip "1" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 16 MovieClip "2" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 16 MovieClip "3" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 5
score_total = 0;
level = 1;
Frame 6
function scroll(dir) {
if (dir == "right") {
_root.bg._x = _root.bg._x - speed_scroll;
if (1 < _root.catapult._currentFrame) {
_root.catapult._x = _root.catapult._x - speed_scroll;
}
if (1 < _root.bomb._currentFrame) {
_root.bomb._x = _root.bomb._x - speed_scroll;
}
i = 1;
while (_root.crates >= i) {
_root["crate" + i]._x = _root["crate" + i]._x - speed_scroll;
i++;
}
i = 1;
while (5 >= i) {
_root["worm" + i]._x = _root["worm" + i]._x - speed_scroll;
i++;
}
} else {
_root.bg._x = _root.bg._x + speed_scroll;
if (1 < _root.catapult._currentFrame) {
_root.catapult._x = _root.catapult._x + speed_scroll;
}
if (1 < _root.bomb._currentFrame) {
_root.bomb._x = _root.bomb._x + speed_scroll;
}
i = 1;
while (_root.crates >= i) {
_root["crate" + i]._x = _root["crate" + i]._x + speed_scroll;
i++;
}
i = 1;
while (5 >= i) {
_root["worm" + i]._x = _root["worm" + i]._x + speed_scroll;
i++;
}
}
}
score_total = score;
score = 0;
kills = 0;
escapes = 0;
time = 30;
milliseconds = 60;
ceiling = -100;
floor = 320;
speed_scroll = 10;
speed_catapult_drop = 10;
speed_worm = 2;
speed_worm_drop = 10;
speed_worm_drift = 8;
speed_worm_fly = 18;
limit_right = 400;
limit_left = 150;
limit_bg_left = 980;
limit_bg_right = -430;
worm_special = 0;
s_boom = new Sound();
s_boom.attachSound("boom");
s_clang = new Sound();
s_clang.attachSound("clang");
s_hit = new Sound();
s_hit.attachSound("hit");
s_splat1 = new Sound();
s_splat1.attachSound("splat1");
s_splat2 = new Sound();
s_splat2.attachSound("splat2");
s_scream = new Sound();
s_scream.attachSound("scream");
red = new Object();
red.ra = 100;
red.rb = 250;
blue = new Object();
blue.ba = 100;
blue.bb = 250;
green = new Object();
green.ga = 100;
green.gb = 250;
nada = new Object();
nada.ra = 100;
nada.rb = 0;
nada.ba = 100;
nada.bb = 0;
nada.ga = 100;
nada.gb = 0;
Mouse.hide();
gotoAndStop("level" + level);
Frame 7
crates = 2;
Frame 8
crates = 3;
Frame 9
crates = 4;
Frame 10
crates = 5;
Symbol 13 Button
on (release) {
getURL ("http://www.etgames.com", "_blank");
}
Symbol 26 Button
on (release) {
nextFrame();
}
Symbol 35 Button
on (release) {
nextFrame();
}
Symbol 63 MovieClip Frame 1
if (_parent.dodge != true) {
_parent.dest_x = _parent.dest_crate._x;
}
if ((_parent.dest_x + _parent.speed) < _parent._x) {
_parent._x = _parent._x - _parent.speed;
_parent._xscale = -100;
} else if (_parent._x < (_parent.dest_x - _parent.speed)) {
_parent._x = _parent._x + _parent.speed;
_parent._xscale = 100;
} else if (_parent.dodge == true) {
_parent.dodge = false;
}
i = 1;
while (_root.crates >= i) {
if ((_root["crate" + i]._x < (_parent._x + 60)) && ((_parent._x - 60) < _root["crate" + i]._x)) {
_root.escapes++;
_parent.gotoAndStop("respawn");
}
i++;
}
if ((((_parent._y - 10) < _root.hammer._y) && (_root.hammer._y < (_parent._y + 20))) && (_root.hammer.damage == true)) {
if ((_parent._x < _root.hammer._x) && ((_root.hammer._x - 70) < _parent._x)) {
_root.hammer.damage = false;
_parent.gotoAndStop("die");
} else if (((_parent._x < (_root.hammer._x + 60)) && ((_root.hammer._x - 150) < _parent._x)) && (_parent.dodge != true)) {
_parent.dodge = true;
if (_parent._x < _parent.dest_x) {
_parent.dest_x = _parent._x - 200;
} else {
_parent.dest_x = _parent._x + 200;
}
}
}
Symbol 63 MovieClip Frame 2
gotoAndPlay (1);
Symbol 68 MovieClip Frame 1
if (_parent.flying != true) {
if (_parent._y < _root.floor) {
_parent._y = _parent._y + _root.speed_worm_drop;
} else {
_parent._y = _root.floor;
_parent.gotoAndStop("move");
}
} else if (_root.ceiling < _parent._y) {
if (0 < _parent._xscale) {
_parent._x = _parent._x + _root.speed_worm_drift;
} else {
_parent._x = _parent._x - _root.speed_worm_drift;
}
_parent._y = _parent._y - _root.speed_worm_fly;
} else {
_parent._y = _root.ceiling;
_parent.gotoAndStop("die");
}
Symbol 68 MovieClip Frame 2
gotoAndPlay (1);
Symbol 74 MovieClip Frame 9
_parent.gotoAndStop("respawn");
Symbol 75 MovieClip Frame 1
if (ini != true) {
ini = true;
color = new Color(this);
gotoAndStop (5);
}
Symbol 75 MovieClip Frame 3
value = value * 2;
_root.s_scream.start();
Symbol 75 MovieClip Frame 4
_root.kills++;
_root.score = _root.score + value;
_root.worm_special--;
flying = false;
_root["s_splat" + (random(2) + 1)].start();
Symbol 75 MovieClip Frame 5
if (((random(20) == 1) && (_root.worm_special < 3)) && (3 < _root.level)) {
_root.worm_special = 3;
value = 50;
color.setTransform(_root.red);
} else if (((random(15) == 1) && (_root.worm_special < 2)) && (2 < _root.level)) {
_root.worm_special = 2;
value = 30;
color.setTransform(_root.blue);
} else if (((random(10) == 1) && (_root.worm_special < 1)) && (1 < _root.level)) {
_root.worm_special = 1;
value = 20;
color.setTransform(_root.green);
} else {
value = 10;
color.setTransform(_root.nada);
}
_y = (_root.ceiling - random(100));
_x = (-100 + random(750));
for (crate in _root) {
if (((substring(crate, 1, 5)) == "crate") && ((_root[crate]._x < (_x + 90)) && ((_x - 90) < _root[crate]._x))) {
if (random(2) == 1) {
_x = (_root[crate]._x + 90);
} else {
_x = (_root[crate]._x - 90);
}
}
}
speed = _root.speed_worm + random(3);
dest_crate = _root["crate" + (random(_root.crates) + 1)];
gotoAndStop (2);
Symbol 79 MovieClip Frame 1
_parent._x = _root._xmouse;
_parent._y = _root._ymouse + 80;
if (_root.floor < _parent._y) {
_parent._y = _root.floor;
}
if ((_parent._x < _root.limit_left) && (_root.bg._x < _root.limit_bg_left)) {
_root.scroll("left");
}
if ((_root.limit_right < _parent._x) && (_root.limit_bg_right < _root.bg._x)) {
_root.scroll("right");
}
Symbol 79 MovieClip Frame 2
gotoAndPlay (1);
Symbol 82 MovieClip Frame 4
stop();
Symbol 82 MovieClip Frame 6
_parent.damage = true;
if (_parent._y == _root.floor) {
_root.s_hit.start();
}
Symbol 82 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 83 MovieClip Frame 1
damage = false;
stop();
Instance of Symbol 78 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (mouseDown) {
_parent.gotoAndStop("attack");
}
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip Frame 2
onClipEvent (mouseDown) {
click = true;
}
onClipEvent (mouseUp) {
click = false;
}
onClipEvent (enterFrame) {
if (click == false) {
play();
}
}
Symbol 83 MovieClip Frame 3
damage = false;
Symbol 98 MovieClip Frame 1
_root.milliseconds = _root.milliseconds - 2;
if (_root.milliseconds == 0) {
if (0 < _root.time) {
_root.milliseconds = 60;
_root.time--;
} else if (_root.level != 4) {
_parent.gotoAndStop("level_end");
} else {
_parent.gotoAndStop("win");
}
}
if (_root.escapes == 25) {
_parent.gotoAndStop("lose");
}
Symbol 98 MovieClip Frame 2
gotoAndPlay (1);
Symbol 112 Button
on (release) {
_root.level++;
_root.gotoAndStop("ini");
}
Symbol 113 MovieClip Frame 22
score = _root.score;
kills = _root.kills;
Symbol 113 MovieClip Frame 23
if (0 < score) {
score--;
final++;
if (10 < score) {
score = score - 10;
final = final + 10;
}
} else if (0 < kills) {
kills--;
final = final + 10;
} else {
gotoAndStop(_currentframe + 2);
}
Symbol 113 MovieClip Frame 24
gotoAndPlay(_currentframe - 1);
Symbol 128 Button
on (release) {
_root.level = 1;
_root.gotoAndStop("ini");
}
Symbol 130 MovieClip Frame 39
stop();
if ((substring(_url, 0, 18)) != "http://www.etgames") {
getURL ("http://www.etgames.com", "blank");
}
Symbol 138 Button
on (release) {
_parent._parent.gotoAndStop("scores");
}
Symbol 139 MovieClip Frame 1
if (_root.local == 1) {
_visible = true;
} else {
_visible = false;
}
Instance of Symbol 78 MovieClip in Symbol 140 MovieClip Frame 47
onClipEvent (mouseDown) {
_parent.gotoAndStop("attack");
}
Symbol 140 MovieClip Frame 66
stop();
if ((substring(_url, 0, 18)) != "http://www.etgames") {
getURL ("http://www.etgames.com", "blank");
}
Symbol 148 Button
on (release) {
if (((_root.scoredone == "done") and (_root.hiscore20 < _root.score)) and (_root.old_score != _root.score)) {
_root.old_score = _root.score;
_root.hiscore = _root.score;
if (_root.xname eq "Name Here") {
_root.xname = "etgames";
}
loadVariablesNum ((((((("/scores.php?action=sendscore&game=" + _root.game) + "&hiscore=") + _root.hiscore) + "&xname=") + _root.xname) + "&randx=") + random(100), 0, "POST");
}
_visible = 0;
}
Symbol 150 MovieClip Frame 1
if ((_root.hiscore20 < _root.score) and (_root.local == 1)) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 192 MovieClip Frame 1
if (_root.local == 1) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 192 MovieClip Frame 2
_root.game = "wormwarrior";
loadVariablesNum ((("/scores.php?action=getscores&game=" + _root.game) + "&randx=") + random(100000), 0, "POST");
Symbol 192 MovieClip Frame 5
if (_root.scoredone == "done") {
nothing = nothing;
} else {
gotoAndPlay (3);
}
Symbol 192 MovieClip Frame 7
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
i = 1;
while (i < 6) {
_root["worm" + i].gotoAndStop("nada");
i++;
}
_root.hammer.gotoAndStop("nada");
_root.catapult.gotoAndStop("nada");
_root.bomb.gotoAndStop("nada");
Mouse.show();
_root._x = 0;
Symbol 193 MovieClip Frame 3
call(2);
Symbol 193 MovieClip Frame 4
call(2);
Symbol 194 MovieClip Frame 1
if (_parent.timer == 0) {
_parent.gotoAndStop("drop");
} else {
_parent.timer--;
}
Symbol 194 MovieClip Frame 2
gotoAndPlay (1);
Symbol 195 MovieClip Frame 1
if (_parent._y < _root.floor) {
_parent._y = _parent._y + _root.speed_catapult_drop;
} else {
_parent._y = _root.floor;
_parent.gotoAndStop("normal");
}
for (crate in _root) {
if (((substring(crate, 1, 5)) == "crate") && ((_root[crate]._x < (_parent._x + 90)) && ((_parent._x - 90) < _root[crate]._x))) {
if (random(2) == 1) {
_parent._x = _root[crate]._x + 90;
} else {
_parent._x = _root[crate]._x - 90;
}
}
}
Symbol 195 MovieClip Frame 2
gotoAndPlay (1);
Symbol 196 MovieClip Frame 1
if ((((_parent._x < (_root.hammer._x - 50)) && ((_root.hammer._x - 100) < _parent._x)) && (((_root.hammer._y - 10) < _parent._y) && (_parent._y < (_root.hammer._y + 50)))) && (_root.hammer.damage == true)) {
_parent.gotoAndStop("launch");
}
if (_parent.timer == 0) {
_parent.gotoAndStop("disappear");
} else {
_parent.timer--;
}
Symbol 196 MovieClip Frame 2
gotoAndPlay (1);
Symbol 200 MovieClip Frame 25
_parent.gotoAndStop("normal");
Symbol 201 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 202 MovieClip Frame 1
stop();
_x = (random(550) + 1);
for (crate in _root) {
if (((substring(crate, 1, 5)) == "crate") && ((_root[crate]._x < (_x + 90)) && ((_x - 90) < _root[crate]._x))) {
if (random(2) == 1) {
_x = (_root[crate]._x + 90);
} else {
_x = (_root[crate]._x - 90);
}
}
}
_y = _root.ceiling;
timer = 200;
Symbol 202 MovieClip Frame 2
timer = 300;
Symbol 202 MovieClip Frame 4
i = 1;
while (i < 6) {
if (((_root["worm" + i]._x < _x) && (_x < (_root["worm" + i]._x + 70))) && (((_root["worm" + i]._y - 40) < _y) && (_y < (_root["worm" + i]._y + 10)))) {
_root["worm" + i].flying = true;
_root["worm" + i].gotoAndStop("fly");
}
i++;
}
_root.s_clang.start();
Symbol 203 MovieClip Frame 1
if (((((_root.hammer._x - 100) < _parent._x) && (_parent._x < _root.hammer._x)) && (((_root.hammer._y - 10) < _parent._y) && (_parent._y < (_root.hammer._y + 70)))) && (_root.hammer.damage == true)) {
if (_root.hammer._y < _root.floor) {
_root.s_hit.start();
}
_parent.gotoAndStop("detonate");
}
if (_parent.timer == 0) {
_parent.gotoAndStop("disappear");
} else {
_parent.timer--;
}
Symbol 203 MovieClip Frame 2
gotoAndPlay (1);
Symbol 217 MovieClip Frame 50
_root.s_boom.start();
Symbol 217 MovieClip Frame 53
i = 1;
while (i < 6) {
if ((((_root["worm" + i]._x < (_parent._x + 130)) && ((_parent._x - 130) < _root["worm" + i]._x)) && (_root["worm" + i]._y < (_parent._y + 50))) && ((_parent._y - 150) < _root["worm" + i]._y)) {
_root["worm" + i].flying = true;
_root["worm" + i].gotoAndStop("fly");
}
i++;
}
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 54
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 55
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 56
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 57
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 58
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 59
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 60
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 61
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 62
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 63
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 64
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 65
_root._x = _root._x + 3;
Symbol 217 MovieClip Frame 66
_root._x = _root._x - 3;
Symbol 217 MovieClip Frame 69
_parent.gotoAndStop(1);
Symbol 218 MovieClip Frame 1
stop();
_x = (random(550) + 1);
for (crate in _root) {
if (((substring(crate, 1, 5)) == "crate") && ((_root[crate]._x < (_x + 90)) && ((_x - 90) < _root[crate]._x))) {
if (random(2) == 1) {
_x = (_root[crate]._x + 90);
} else {
_x = (_root[crate]._x - 90);
}
}
}
_y = _root.ceiling;
timer = 400;
Symbol 218 MovieClip Frame 2
timer = 300;