Frame 2
_root.click_sound = new Sound();
_root.click_sound.attachSound("click_sound");
_root.music = new Sound();
_root.music.attachSound("music");
_root.shoot_fx = new Sound();
_root.shoot_fx.attachSound("shoot");
_root.small_bomb_fx = new Sound();
_root.small_bomb_fx.attachSound("small_bomb");
_root.large_bomb_fx = new Sound();
_root.large_bomb_fx.attachSound("large_bomb");
_root.death_fx = new Sound();
_root.death_fx.attachSound("death");
_root.player_change_fx = new Sound();
_root.player_change_fx.attachSound("player_change");
_root.teleport_fx = new Sound();
_root.teleport_fx.attachSound("teleport");
_root.wind_fx = new Sound();
_root.wind_fx.attachSound("wind_fx");
fscommand (showmenu, false);
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
_root.grid = new Array();
_root.option_wind = true;
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip in Frame 2
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 2
onClipEvent (load) {
_root.wind = random(100) - 50;
}
Instance of Symbol 31 MovieClip in Frame 2
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
break;
case 4 :
gotoAndStop (5);
}
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Frame 70
stop();
Frame 71
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip in Frame 71
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 71
onClipEvent (load) {
_root.wind = random(100) - 50;
}
Instance of Symbol 31 MovieClip in Frame 71
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 71
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 71
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 71
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 71
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 71
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Frame 72
stop();
Frame 91
stop();
Frame 111
gotoAndStop (72);
Frame 112
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip in Frame 112
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 112
onClipEvent (load) {
_root.wind = random(100) - 50;
}
Instance of Symbol 31 MovieClip in Frame 112
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 112
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 112
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 112
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 112
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 112
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Frame 113
stop();
Frame 132
stop();
Frame 152
gotoAndStop (113);
Frame 153
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip in Frame 153
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 153
onClipEvent (load) {
_root.wind = random(100) - 50;
}
Instance of Symbol 31 MovieClip in Frame 153
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 153
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 153
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 153
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 153
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 153
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if (_x < (-_width)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if (_x > 750) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Frame 154
stop();
Frame 173
stop();
Frame 193
gotoAndStop (154);
Frame 194
stopAllSounds();
_root.music.start(0, 9999);
if (_root.p1_name == null) {
_root.p1_name = "Player 1";
}
if (_root.p2_name == null) {
_root.p2_name = "Player 2";
}
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
p1 = 10 * (random((total_blocks / 10) - 4) + 2);
p2 = 10 * (random((total_blocks / 10) - 4) + 2);
_root.turn = "player1";
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
if (i == p1) {
_root.player1._x = i;
_root.player1._y = y_new;
} else if (i == p2) {
_root.player2._x = i;
_root.player2._y = y_new;
}
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip "bg" in Frame 194
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 194
onClipEvent (load) {
strength = 0;
shake_check = false;
}
onClipEvent (enterFrame) {
if (shake == true) {
if (shake_check == false) {
x1 = _root.player1._x;
x2 = _root.player2._x;
y1 = _root.player1._y;
y2 = _root.player2._y;
}
switch (random(3)) {
case 0 :
_x = (_x + strength);
_root.player1._x = _root.player1._x + strength;
_root.player2._x = _root.player2._x + strength;
_root.bg.foreearth._x = _root.bg.foreearth._x + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x + strength;
i++;
}
break;
case 1 :
_x = (_x - strength);
_root.player1._x = _root.player1._x - strength;
_root.player2._x = _root.player2._x - strength;
_root.bg.foreearth._x = _root.bg.foreearth._x - strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x - strength;
i++;
}
break;
case 2 :
_y = (_y + strength);
_root.player1._y = _root.player1._y - strength;
_root.player2._y = _root.player2._y - strength;
_root.bg.foreearth._y = _root.bg.foreearth._y + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._y = _root["pick_up" + i]._y - strength;
i++;
}
break;
case 3 :
_y = (_y - strength);
_root.player1._y = _root.player1._y + strength;
_root.player2._y = _root.player2._y + strength;
_root.bg.foreearth._y = _root.bg.foreearth._y - strength;
i = _root.pick_ups_dead;
for(;;){
if (i > _root.total_pick_ups) {
break;
}
_root["pick_up" + i]._y = _root["pick_up" + i]._y + strength;
i++;
};
}
strength--;
if (strength == 0) {
shake = false;
_x = 0;
_y = 0;
_root.player1._y = y1;
_root.player2._y = y2;
_root.player1._x = x1;
_root.player2._x = x2;
_root.bg.foreearth._y = 0;
_root.bg.foreearth._x = 0;
}
}
}
Instance of Symbol 31 MovieClip in Frame 194
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 194
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 194
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 194
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 194
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 194
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 100 MovieClip "beam" in Frame 194
onClipEvent (enterFrame) {
if ((_root[_root.turn].teleported == false) and (_alpha > 0)) {
_alpha = (_alpha - 10);
}
}
Instance of Symbol 103 MovieClip "bomb" in Frame 194
onClipEvent (load) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
}
max_damage = blast_radius / 4;
speed = 0;
top = 550;
g = 1;
shot = false;
vy = 0;
vx = 0;
_root.pick_ups_dead = 0;
_root.p1_score = 0;
_root.p2_score = 0;
world_bonus = 1;
height_bonus = 1;
wait = false;
}
onClipEvent (enterFrame) {
if (shot == true) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
max_damage = blast_radius / 2;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
max_damage = blast_radius / 2;
}
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
world_bonus++;
} else if (_x > 750) {
_x = 1;
world_bonus++;
}
if (_y < -100) {
height_bonus = 10;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if ((_y + speed) > top) {
_y = top;
}
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
} else if (((_x > 0) and (_y > 0)) and (_x < 750)) {
if (_root[_root.turn].weapon_choice == "bomb") {
_root.small_bomb_fx.start();
} else {
_root.large_bomb_fx.start();
}
x = _x;
y = _y;
_root.earth.shake = true;
_root.earth.strength = max_damage / 5;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
dis_p1 = Math.sqrt(((_root.player1._y - _y) * (_root.player1._y - _y)) + ((_root.player1._x - _x) * (_root.player1._x - _x)));
damage_p1 = max_damage - (max_damage * (dis_p1 / blast_radius));
if ((damage_p1 > 0) && (_root.player1.health > 0)) {
_root.player1.temp_damage = _root.player1.temp_damage - Math.round(damage_p1);
_root.player1.hit.temp_damage_disp = Math.round(damage_p1);
_root.player1.hit.play();
if (_root.turn == "player2") {
_root.p2_score = _root.p2_score + (((Math.round(damage_p1) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
_root.multi.gotoAndPlay("world_height");
wait = true;
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p2 = Math.sqrt(((_root.player2._y - _y) * (_root.player2._y - _y)) + ((_root.player2._x - _x) * (_root.player2._x - _x)));
damage_p2 = max_damage - (max_damage * (dis_p2 / blast_radius));
if ((damage_p2 > 0) && (_root.player2.health > 0)) {
_root.player2.temp_damage = _root.player2.temp_damage - Math.round(damage_p2);
_root.player2.hit.temp_damage_disp = Math.round(damage_p2);
_root.player2.hit.play();
if (_root.turn == "player1") {
_root.p1_score = _root.p1_score + (((Math.round(damage_p2) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
dis = Math.sqrt(((_root["pick_up" + i]._y - _y) * (_root["pick_up" + i]._y - _y)) + ((_root["pick_up" + i]._x - _x) * (_root["pick_up" + i]._x - _x)));
if (dis < blast_radius) {
_root["pick_up" + i].die = true;
}
i++;
}
if (_root[_root.turn].weapon_choice != "bomb") {
_root[_root.turn].weapon[_root[_root.turn].weapon_choice]--;
}
_x = -50;
_y = -50;
height_bonus = 1;
world_bonus = 1;
shot = false;
if ((_root.turn == "player1") && (wait == false)) {
_root.turn = "player2";
_root.gui.play();
} else if (wait == false) {
_root.turn = "player1";
_root.gui.play();
}
}
}
}
Instance of Symbol 117 MovieClip "player1" in Frame 194
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
top = 550;
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
load = false;
}
onClipEvent (enterFrame) {
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
if (_root.turn == "player1") {
_root.turn = "player2";
} else {
_root.turn = "player1";
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
_root.won = _root.p2_name;
_root.win_points = ("With " + _root.p2_score) + " points!";
_root.multi.gotoAndPlay("won");
health = -2000;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player1") and (_root.p_can_shoot == true)) && (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player1.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player1.gun._x) + _root.player1.gun.point._x;
_root.bomb._y = (_y + _root.player1.gun._y) + _root.player1.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 122 MovieClip "player2" in Frame 194
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
top = 550;
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
load = false;
}
onClipEvent (enterFrame) {
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
if (_root.turn == "player1") {
_root.turn = "player2";
} else {
_root.turn = "player1";
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.won = _root.p1_name;
_root.win_points = ("With " + _root.p1_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player2") and (_root.p_can_shoot == true)) && (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player2.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player2.gun._x) + _root.player2.gun.point._x;
_root.bomb._y = (_y + _root.player2.gun._y) + _root.player2.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 202 MovieClip "gui" in Frame 194
onClipEvent (load) {
_root.wind = 0;
_root.total_glows = 0;
}
Instance of Symbol 211 MovieClip "pick_up" in Frame 194
onClipEvent (load) {
if (_name != "pick_up") {
_x = random(750);
_y = 0;
} else {
_root.total_pick_ups = 0;
}
frame = random(5) + 1;
this.gotoAndStop(frame);
switch (frame) {
case 1 :
vol = 10;
type = "health";
break;
case 2 :
vol = 25;
type = "health";
break;
case 3 :
vol = 50;
type = "health";
break;
case 4 :
vol = "teleport";
type = "weapon";
break;
case 5 :
vol = "mega";
type = "weapon";
}
g = 1;
vy = 0;
vx = 0;
}
onClipEvent (enterFrame) {
if (_name != "pick_up") {
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
} else if (_x > 750) {
_x = 1;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
}
if (die == true) {
if (type == "health") {
if (_root.turn == "player1") {
_root.player2.temp_damage = _root.player2.temp_damage + vol;
if (_root.player2.temp_damage > 100) {
_root.player2.temp_damage = 100;
}
} else {
_root.player1.temp_damage = _root.player1.temp_damage + vol;
if (_root.player1.temp_damage > 100) {
_root.player1.temp_damage = 100;
}
}
} else if (type == "weapon") {
if (_root.turn == "player1") {
if (!_root.player2.weapon[vol]) {
_root.player2.weapon[vol] = 0;
}
_root.player2.weapon[vol]++;
} else {
if (!_root.player1.weapon[vol]) {
_root.player1.weapon[vol] = 0;
}
_root.player1.weapon[vol]++;
}
}
this.removeMovieClip();
}
}
}
Instance of Symbol 213 MovieClip "glow" in Frame 194
onClipEvent (load) {
time = 10;
count = 0;
alpha = 100 / (time / 2);
_yscale = 50;
_xscale = 50;
_alpha = 0;
size_inc = 50 / (time / 2);
rot_speed = 10;
}
onClipEvent (enterFrame) {
if (_x > 0) {
_x = (_x + ((_root[_root.turn]._x - _x) / time));
_y = (_y + ((_root[_root.turn]._y - _y) / time));
count++;
if ((count > time) and (_alpha <= 0)) {
this.removeMovieClip();
}
_alpha = (_alpha + alpha);
_yscale = (_yscale + size_inc);
_xscale = (_xscale + size_inc);
_rotation = (_rotation + rot_speed);
if (count == time) {
alpha = alpha * -1;
size_inc = size_inc * -1;
}
}
}
Instance of Symbol 240 MovieClip "multi" in Frame 194
onClipEvent (enterFrame) {
if (_root.stat == 1) {
_root.stat_disp = "\u05D4\u05EA\u05D5\u05E6\u05D0\u05D4 \u05E2\u05D5\u05D3\u05DB\u05E0\u05D4";
}
}
Instance of Symbol 244 MovieClip "pointer" in Frame 194
onClipEvent (enterFrame) {
if (_root.bomb._y < 0) {
_y = 0;
_x = _root.bomb._x;
_root.dis_from_point = Math.round((_root.bomb._y - _y) * -1);
} else {
_x = -50;
}
}
Frame 195
stopAllSounds();
_root.music.start(0, 9999);
if (_root.p1_name == null) {
_root.p1_name = "Player 1";
}
if (_root.p2_name == null) {
_root.p2_name = "Player 2";
}
if (_root.p3_name == null) {
_root.p3_name = "Player 3";
}
_root.dead = 0;
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
p1 = 10 * (random((total_blocks / 10) - 4) + 2);
p2 = 10 * (random((total_blocks / 10) - 4) + 2);
p3 = 10 * (random((total_blocks / 10) - 4) + 2);
_root.turn = "player1";
_root.next_player = 2;
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
if (i == p1) {
_root.player1._x = i;
_root.player1._y = y_new;
} else if (i == p2) {
_root.player2._x = i;
_root.player2._y = y_new;
} else if (i == p3) {
_root.player3._x = i;
_root.player3._y = y_new;
}
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
} else if (b == p3) {
_root.player3._x = b;
_root.player3._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
} else if (b == p3) {
_root.player3._x = b;
_root.player3._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip "bg" in Frame 195
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 195
onClipEvent (load) {
strength = 0;
shake_check = false;
}
onClipEvent (enterFrame) {
if (shake == true) {
if (shake_check == false) {
x1 = _root.player1._x;
x2 = _root.player2._x;
x3 = _root.player3._x;
y1 = _root.player1._y;
y2 = _root.player2._y;
y3 = _root.player3._y;
}
switch (random(3)) {
case 0 :
_x = (_x + strength);
_root.player1._x = _root.player1._x + strength;
_root.player2._x = _root.player2._x + strength;
_root.player3._x = _root.player3._x + strength;
_root.bg.foreearth._x = _root.bg.foreearth._x + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x + strength;
i++;
}
break;
case 1 :
_x = (_x - strength);
_root.player1._x = _root.player1._x - strength;
_root.player2._x = _root.player2._x - strength;
_root.player3._x = _root.player3._x - strength;
_root.bg.foreearth._x = _root.bg.foreearth._x - strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x - strength;
i++;
}
break;
case 2 :
_y = (_y + strength);
_root.player1._y = _root.player1._y - strength;
_root.player2._y = _root.player2._y - strength;
_root.player3._y = _root.player3._y - strength;
_root.bg.foreearth._y = _root.bg.foreearth._y + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._y = _root["pick_up" + i]._y - strength;
i++;
}
break;
case 3 :
_y = (_y - strength);
_root.player1._y = _root.player1._y + strength;
_root.player2._y = _root.player2._y + strength;
_root.player3._y = _root.player3._y + strength;
_root.bg.foreearth._y = _root.bg.foreearth._y - strength;
i = _root.pick_ups_dead;
for(;;){
if (i > _root.total_pick_ups) {
break;
}
_root["pick_up" + i]._y = _root["pick_up" + i]._y + strength;
i++;
};
}
strength--;
if (strength == 0) {
shake = false;
check_shake = false;
_x = 0;
_y = 0;
_root.player1._x = x1;
_root.player2._x = x2;
_root.player3._x = x3;
_root.player1._y = y1;
_root.player2._y = y2;
_root.player3._y = y3;
_root.bg.foreearth._y = 0;
_root.bg.foreearth._x = 0;
}
}
}
Instance of Symbol 31 MovieClip in Frame 195
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 195
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 195
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 195
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 195
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 195
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 100 MovieClip "beam" in Frame 195
onClipEvent (enterFrame) {
if ((_root[_root.turn].teleported == false) and (_alpha > 0)) {
_alpha = (_alpha - 10);
}
}
Instance of Symbol 103 MovieClip "bomb" in Frame 195
onClipEvent (load) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
}
max_damage = blast_radius / 4;
speed = 0;
top = 550;
g = 1;
shot = false;
vy = 0;
vx = 0;
_root.pick_ups_dead = 0;
_root.p1_score = 0;
_root.p2_score = 0;
_root.p3_score = 0;
world_bonus = 1;
height_bonus = 1;
wait = false;
}
onClipEvent (enterFrame) {
if (shot == true) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
max_damage = blast_radius / 2;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
max_damage = blast_radius / 2;
}
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
world_bonus++;
} else if (_x > 750) {
_x = 1;
world_bonus++;
}
if (_y < -100) {
height_bonus = 10;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if ((_y + speed) > top) {
_y = top;
}
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
} else if (((_x > 0) and (_y > 0)) and (_x < 750)) {
if (_root[_root.turn].weapon_choice == "bomb") {
_root.small_bomb_fx.start();
} else {
_root.large_bomb_fx.start();
}
x = _x;
y = _y;
_root.earth.shake = true;
_root.earth.strength = max_damage / 5;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
dis_p1 = Math.sqrt(((_root.player1._y - _y) * (_root.player1._y - _y)) + ((_root.player1._x - _x) * (_root.player1._x - _x)));
damage_p1 = max_damage - (max_damage * (dis_p1 / blast_radius));
if ((damage_p1 > 0) && (_root.player1.health > 0)) {
_root.player1.temp_damage = _root.player1.temp_damage - Math.round(damage_p1);
_root.player1.hit.temp_damage_disp = Math.round(damage_p1);
_root.player1.hit.play();
if ((_root.turn == "player2") || (_root.turn == "player3")) {
if (_root.turn == "player2") {
temp = "p2";
} else {
temp = "p3";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p1) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
_root.multi.gotoAndPlay("world_height");
wait = true;
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p2 = Math.sqrt(((_root.player2._y - _y) * (_root.player2._y - _y)) + ((_root.player2._x - _x) * (_root.player2._x - _x)));
damage_p2 = max_damage - (max_damage * (dis_p2 / blast_radius));
if ((damage_p2 > 0) && (_root.player2.health > 0)) {
_root.player2.temp_damage = _root.player2.temp_damage - Math.round(damage_p2);
_root.player2.hit.temp_damage_disp = Math.round(damage_p2);
_root.player2.hit.play();
if ((_root.turn == "player1") || (_root.turn == "player3")) {
if (_root.turn == "player1") {
temp = "p1";
} else {
temp = "p3";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p2) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p3 = Math.sqrt(((_root.player3._y - _y) * (_root.player3._y - _y)) + ((_root.player3._x - _x) * (_root.player3._x - _x)));
damage_p3 = max_damage - (max_damage * (dis_p3 / blast_radius));
if ((damage_p3 > 0) && (_root.player3.health > 0)) {
_root.player3.temp_damage = _root.player3.temp_damage - Math.round(damage_p3);
_root.player3.hit.temp_damage_disp = Math.round(damage_p3);
_root.player3.hit.play();
if ((_root.turn == "player1") || (_root.turn == "player2")) {
if (_root.turn == "player1") {
temp = "p1";
} else {
temp = "p2";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p3) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
dis = Math.sqrt(((_root["pick_up" + i]._y - _y) * (_root["pick_up" + i]._y - _y)) + ((_root["pick_up" + i]._x - _x) * (_root["pick_up" + i]._x - _x)));
if (dis < blast_radius) {
_root["pick_up" + i].die = true;
}
i++;
}
if (_root[_root.turn].weapon_choice != "bomb") {
_root[_root.turn].weapon[_root[_root.turn].weapon_choice]--;
}
_x = -50;
_y = -50;
height_bonus = 1;
world_bonus = 1;
shot = false;
if (wait == false) {
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
}
}
}
}
Instance of Symbol 117 MovieClip "player1" in Frame 195
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
top = 550;
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 2) && (health > 0)) {
_root.won = _root.p1_name;
_root.id_won = _root.p1_id;
_root.score_won = _root.p1_score;
_root.win_points = ("With " + _root.p1_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
_root.dead++;
health = -2000;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
this.gotoAndStop(2);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player1") and (_root.p_can_shoot == true)) && (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player1.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player1.gun._x) + _root.player1.gun.point._x;
_root.bomb._y = (_y + _root.player1.gun._y) + _root.player1.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 122 MovieClip "player2" in Frame 195
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
top = 550;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 2) && (health > 0)) {
_root.won = _root.p2_name;
_root.id_won = _root.p2_id;
_root.score_won = _root.p2_score;
_root.win_points = ("With " + _root.p2_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.dead++;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
this.gotoAndStop(2);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player2") and (_root.p_can_shoot == true)) && (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player2.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player2.gun._x) + _root.player2.gun.point._x;
_root.bomb._y = (_y + _root.player2.gun._y) + _root.player2.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 211 MovieClip "pick_up" in Frame 195
onClipEvent (load) {
if (_name != "pick_up") {
_x = random(750);
_y = 0;
} else {
_root.total_pick_ups = 0;
}
frame = random(5) + 1;
this.gotoAndStop(frame);
switch (frame) {
case 1 :
vol = 10;
type = "health";
break;
case 2 :
vol = 25;
type = "health";
break;
case 3 :
vol = 50;
type = "health";
break;
case 4 :
vol = "teleport";
type = "weapon";
break;
case 5 :
vol = "mega";
type = "weapon";
}
g = 1;
vy = 0;
vx = 0;
}
onClipEvent (enterFrame) {
if (_name != "pick_up") {
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
} else if (_x > 750) {
_x = 1;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
}
if (die == true) {
player_to_add = _root.next_player - 2;
if (player_to_add == 0) {
player_to_add = 3;
} else if (player_to_add == -1) {
player_to_add = 2;
}
if (type == "health") {
_root["player" + player_to_add].temp_damage = _root["player" + player_to_add].temp_damage + vol;
if (_root["player" + player_to_add].temp_damage > 100) {
_root["player" + player_to_add].temp_damage = 100;
}
} else if (type == "weapon") {
if (!_root["player" + player_to_add].weapon[vol]) {
_root["player" + player_to_add].weapon[vol] = 0;
}
_root["player" + player_to_add].weapon[vol]++;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 213 MovieClip "glow" in Frame 195
onClipEvent (load) {
time = 10;
count = 0;
alpha = 100 / (time / 2);
_yscale = 50;
_xscale = 50;
_alpha = 0;
size_inc = 50 / (time / 2);
rot_speed = 10;
}
onClipEvent (enterFrame) {
if (_x > 0) {
_x = (_x + ((_root[_root.turn]._x - _x) / time));
_y = (_y + ((_root[_root.turn]._y - _y) / time));
count++;
if ((count > time) and (_alpha <= 0)) {
this.removeMovieClip();
}
_alpha = (_alpha + alpha);
_yscale = (_yscale + size_inc);
_xscale = (_xscale + size_inc);
_rotation = (_rotation + rot_speed);
if (count == time) {
alpha = alpha * -1;
size_inc = size_inc * -1;
}
}
}
Instance of Symbol 248 MovieClip "player3" in Frame 195
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
top = 550;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 2) and (health > 0)) {
_root.won = _root.p3_name;
_root.id_won = _root.p3_id;
_root.score_won = _root.p3_score;
_root.win_points = ("With " + _root.p3_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.dead++;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
this.gotoAndStop(2);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.gui.play();
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player3") and (_root.p_can_shoot == true)) && (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player3.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player3.gun._x) + _root.player3.gun.point._x;
_root.bomb._y = (_y + _root.player3.gun._y) + _root.player3.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 202 MovieClip "gui" in Frame 195
onClipEvent (load) {
_root.wind = 0;
_root.total_glows = 0;
}
Instance of Symbol 266 MovieClip "multi" in Frame 195
onClipEvent (enterFrame) {
if (_root.stat == 1) {
_root.stat_disp = "\u05D4\u05EA\u05D5\u05E6\u05D0\u05D4 \u05E2\u05D5\u05D3\u05DB\u05E0\u05D4";
}
}
Instance of Symbol 244 MovieClip "pointer" in Frame 195
onClipEvent (enterFrame) {
if (_root.bomb._y < 0) {
_y = 0;
_x = _root.bomb._x;
_root.dis_from_point = Math.round((_root.bomb._y - _y) * -1);
} else {
_x = -50;
}
}
Frame 196
stopAllSounds();
_root.music.start(0, 9999);
if (_root.p1_name == null) {
_root.p1_name = "Player 1";
}
if (_root.p2_name == null) {
_root.p2_name = "Player 2";
}
if (_root.p3_name == null) {
_root.p3_name = "Player 3";
}
if (_root.p4_name == null) {
_root.p4_name = "Player 4";
}
_root.dead = 0;
total_blocks = 750;
top = 550;
y_old = random(top - 50) + 50;
p1 = 10 * (random((total_blocks / 10) - 4) + 2);
p2 = 10 * (random((total_blocks / 10) - 4) + 2);
p3 = 10 * (random((total_blocks / 10) - 4) + 2);
p4 = 10 * (random((total_blocks / 10) - 4) + 2);
_root.turn = "player1";
_root.next_player = 2;
_root.grid = new Array();
with (_root.earth) {
switch (random(4) + 1) {
case 1 :
beginFill(11193087, 100);
break;
case 2 :
beginFill(16730654, 100);
break;
case 3 :
beginFill(16383872, 100);
break;
case 4 :
beginFill(16755413, 100);
}
moveTo(0, 0);
i = 0;
while (i <= total_blocks) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (top - 50)) {
y_new = y_new - 50;
} else if (y_new <= 100) {
y_new = y_new + 100;
}
lineTo(i, y_new);
if (i == p1) {
_root.player1._x = i;
_root.player1._y = y_new;
} else if (i == p2) {
_root.player2._x = i;
_root.player2._y = y_new;
} else if (i == p3) {
_root.player3._x = i;
_root.player3._y = y_new;
} else if (i == p4) {
_root.player4._x = i;
_root.player4._y = y_new;
}
_root.grid[i + "x"] = i;
_root.grid[i + "y"] = y_new;
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > 400) {
y_new = 400;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
} else if (b == p3) {
_root.player3._x = b;
_root.player3._y = y_new;
} else if (b == p4) {
_root.player4._x = b;
_root.player4._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < 100) {
y_new = 100;
}
lineTo(b, y_new);
if (b == p1) {
_root.player1._x = b;
_root.player1._y = y_new;
} else if (b == p2) {
_root.player2._x = b;
_root.player2._y = y_new;
} else if (b == p3) {
_root.player3._x = b;
_root.player3._y = y_new;
} else if (b == p4) {
_root.player4._x = b;
_root.player4._y = y_new;
}
_root.grid[i + "y"] = y_new;
_root.grid[i + "x"] = i;
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(total_blocks, 0);
endFill();
}
Instance of Symbol 24 MovieClip in Frame 196
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 26 MovieClip "earth" in Frame 196
onClipEvent (load) {
strength = 0;
shake_check = false;
}
onClipEvent (enterFrame) {
if (shake == true) {
if (shake_check == false) {
x1 = _root.player1._x;
x2 = _root.player2._x;
x3 = _root.player3._x;
x4 = _root.player4._x;
y1 = _root.player1._y;
y2 = _root.player2._y;
y3 = _root.player3._y;
y4 = _root.player4._y;
}
switch (random(3)) {
case 0 :
_x = (_x + strength);
_root.player1._x = _root.player1._x + strength;
_root.player2._x = _root.player2._x + strength;
_root.player3._x = _root.player3._x + strength;
_root.player4._x = _root.player4._x + strength;
_root.bg.foreearth._x = _root.bg.foreearth._x + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x + strength;
i++;
}
break;
case 1 :
_x = (_x - strength);
_root.player1._x = _root.player1._x - strength;
_root.player2._x = _root.player2._x - strength;
_root.player3._x = _root.player3._x - strength;
_root.player4._x = _root.player4._x - strength;
_root.bg.foreearth._x = _root.bg.foreearth._x - strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._x = _root["pick_up" + i]._x - strength;
i++;
}
break;
case 2 :
_y = (_y + strength);
_root.player1._y = _root.player1._y - strength;
_root.player2._y = _root.player2._y - strength;
_root.player3._y = _root.player3._y - strength;
_root.player4._y = _root.player4._y - strength;
_root.bg.foreearth._y = _root.bg.foreearth._y + strength;
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i]._y = _root["pick_up" + i]._y - strength;
i++;
}
break;
case 3 :
_y = (_y - strength);
_root.player1._y = _root.player1._y + strength;
_root.player2._y = _root.player2._y + strength;
_root.player3._y = _root.player3._y + strength;
_root.player4._y = _root.player4._y + strength;
_root.bg.foreearth._y = _root.bg.foreearth._y - strength;
i = _root.pick_ups_dead;
for(;;){
if (i > _root.total_pick_ups) {
break;
}
_root["pick_up" + i]._y = _root["pick_up" + i]._y + strength;
i++;
};
}
strength--;
if (strength == 0) {
shake = false;
check_shake = false;
_x = 0;
_y = 0;
_root.player1._x = x1;
_root.player2._x = x2;
_root.player3._x = x3;
_root.player4._x = x4;
_root.player1._y = y1;
_root.player2._y = y2;
_root.player3._y = y3;
_root.player4._y = y4;
_root.bg.foreearth._y = 0;
_root.bg.foreearth._x = 0;
}
}
}
Instance of Symbol 31 MovieClip in Frame 196
onClipEvent (load) {
switch (random(4) + 1) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
}
}
Instance of Symbol 34 MovieClip in Frame 196
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 196
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 196
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 196
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 34 MovieClip in Frame 196
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
_x = random(750);
}
onClipEvent (enterFrame) {
_x = (_x + (_root.wind / 10));
if ((_x < (-_width)) and (random(10) < 2)) {
_x = 749;
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
} else if ((_x > 750) and (random(10) < 2)) {
_x = (1 - _width);
_xscale = (random(50) + 50);
_yscale = (random(50) + 50);
_y = random(150);
}
}
Instance of Symbol 100 MovieClip "beam" in Frame 196
onClipEvent (enterFrame) {
if ((_root[_root.turn].teleported == false) and (_alpha > 0)) {
_alpha = (_alpha - 10);
}
}
Instance of Symbol 103 MovieClip "bomb" in Frame 196
onClipEvent (load) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
}
max_damage = blast_radius / 4;
speed = 0;
top = 550;
g = 1;
shot = false;
vy = 0;
vx = 0;
_root.pick_ups_dead = 0;
_root.p1_score = 0;
_root.p2_score = 0;
_root.p3_score = 0;
_root.p4_score = 0;
world_bonus = 1;
height_bonus = 1;
wait = false;
}
onClipEvent (enterFrame) {
if (shot == true) {
switch (_root[_root.turn].weapon_choice) {
case "bomb" :
this.gotoAndStop("bomb");
blast_radius = 50;
max_damage = blast_radius / 2;
break;
case "mega" :
this.gotoAndStop("mega");
blast_radius = 100;
max_damage = blast_radius / 2;
}
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
world_bonus++;
} else if (_x > 750) {
_x = 1;
world_bonus++;
}
if (_y < -100) {
height_bonus = 10;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if ((_y + speed) > top) {
_y = top;
}
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
} else if (((_x > 0) and (_y > 0)) and (_x < 750)) {
if (_root[_root.turn].weapon_choice == "bomb") {
_root.small_bomb_fx.start();
} else {
_root.large_bomb_fx.start();
}
x = _x;
y = _y;
_root.earth.shake = true;
_root.earth.strength = max_damage / 5;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
dis_p1 = Math.sqrt(((_root.player1._y - _y) * (_root.player1._y - _y)) + ((_root.player1._x - _x) * (_root.player1._x - _x)));
damage_p1 = max_damage - (max_damage * (dis_p1 / blast_radius));
if ((damage_p1 > 0) && (_root.player1.health > 0)) {
_root.player1.temp_damage = _root.player1.temp_damage - Math.round(damage_p1);
_root.player1.hit.temp_damage_disp = Math.round(damage_p1);
_root.player1.hit.play();
if (((_root.turn == "player2") || (_root.turn == "player3")) || (_root.turn == "player4")) {
if (_root.turn == "player2") {
temp = "p2";
} else if (_root.turn == "player3") {
temp = "p3";
} else if (_root.turn == "player4") {
temp = "p4";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p1) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
_root.multi.gotoAndPlay("world_height");
wait = true;
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p2 = Math.sqrt(((_root.player2._y - _y) * (_root.player2._y - _y)) + ((_root.player2._x - _x) * (_root.player2._x - _x)));
damage_p2 = max_damage - (max_damage * (dis_p2 / blast_radius));
if ((damage_p2 > 0) && (_root.player2.health > 0)) {
_root.player2.temp_damage = _root.player2.temp_damage - Math.round(damage_p2);
_root.player2.hit.temp_damage_disp = Math.round(damage_p2);
_root.player2.hit.play();
if (((_root.turn == "player1") || (_root.turn == "player3")) || (_root.turn == "player4")) {
if (_root.turn == "player1") {
temp = "p1";
} else if (_root.turn == "player3") {
temp = "p3";
} else if (_root.turn == "player4") {
temp = "p4";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p2) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p3 = Math.sqrt(((_root.player3._y - _y) * (_root.player3._y - _y)) + ((_root.player3._x - _x) * (_root.player3._x - _x)));
damage_p3 = max_damage - (max_damage * (dis_p3 / blast_radius));
if ((damage_p3 > 0) && (_root.player3.health > 0)) {
_root.player3.temp_damage = _root.player3.temp_damage - Math.round(damage_p3);
_root.player3.hit.temp_damage_disp = Math.round(damage_p3);
_root.player3.hit.play();
if (((_root.turn == "player1") || (_root.turn == "player2")) || (_root.turn == "player4")) {
if (_root.turn == "player1") {
temp = "p1";
} else if (_root.turn == "player2") {
temp = "p2";
} else if (_root.turn == "player4") {
temp = "p4";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p3) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
dis_p4 = Math.sqrt(((_root.player4._y - _y) * (_root.player4._y - _y)) + ((_root.player4._x - _x) * (_root.player4._x - _x)));
damage_p4 = max_damage - (max_damage * (dis_p4 / blast_radius));
if ((damage_p4 > 0) && (_root.player4.health > 0)) {
_root.player4.temp_damage = _root.player4.temp_damage - Math.round(damage_p4);
_root.player4.hit.temp_damage_disp = Math.round(damage_p4);
_root.player4.hit.play();
if (((_root.turn == "player1") || (_root.turn == "player2")) || (_root.turn == "player3")) {
if (_root.turn == "player1") {
temp = "p1";
} else if (_root.turn == "player2") {
temp = "p2";
} else if (_root.turn == "player3") {
temp = "p3";
}
_root[temp + "_score"] = _root[temp + "_score"] + (((Math.round(damage_p4) * 10) * world_bonus) * height_bonus);
if ((world_bonus > 1) and (height_bonus > 1)) {
wait = true;
_root.multi.gotoAndPlay("world_height");
} else if (world_bonus > 1) {
_root.multi.gotoAndPlay("world");
wait = true;
} else if (height_bonus > 1) {
_root.multi.gotoAndPlay("height");
wait = true;
}
}
}
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
dis = Math.sqrt(((_root["pick_up" + i]._y - _y) * (_root["pick_up" + i]._y - _y)) + ((_root["pick_up" + i]._x - _x) * (_root["pick_up" + i]._x - _x)));
if (dis < blast_radius) {
_root["pick_up" + i].die = true;
}
i++;
}
if (_root[_root.turn].weapon_choice != "bomb") {
_root[_root.turn].weapon[_root[_root.turn].weapon_choice]--;
}
_x = -50;
_y = -50;
height_bonus = 1;
world_bonus = 1;
shot = false;
if (wait == false) {
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
}
}
}
}
Instance of Symbol 117 MovieClip "player1" in Frame 196
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
top = 550;
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 3) && (health > 0)) {
_root.won = _root.p1_name;
_root.id_won = _root.p1_id;
_root.score_won = _root.p1_score;
_root.win_points = ("With " + _root.p1_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
_root.dead++;
health = -2000;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player1") and (_root.p_can_shoot == true)) and (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player1.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player1.gun._x) + _root.player1.gun.point._x;
_root.bomb._y = (_y + _root.player1.gun._y) + _root.player1.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 122 MovieClip "player2" in Frame 196
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
top = 550;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 3) && (health > 0)) {
_root.won = _root.p2_name;
_root.id_won = _root.p2_id;
_root.score_won = _root.p2_score;
_root.win_points = ("With " + _root.p2_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.dead++;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player2") and (_root.p_can_shoot == true)) and (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player2.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player2.gun._x) + _root.player2.gun.point._x;
_root.bomb._y = (_y + _root.player2.gun._y) + _root.player2.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 211 MovieClip "pick_up" in Frame 196
onClipEvent (load) {
if (_name != "pick_up") {
_x = random(750);
_y = 0;
} else {
_root.total_pick_ups = 0;
}
frame = random(5) + 1;
this.gotoAndStop(frame);
switch (frame) {
case 1 :
vol = 10;
type = "health";
break;
case 2 :
vol = 25;
type = "health";
break;
case 3 :
vol = 50;
type = "health";
break;
case 4 :
vol = "teleport";
type = "weapon";
break;
case 5 :
vol = "mega";
type = "weapon";
}
g = 1;
vy = 0;
vx = 0;
}
onClipEvent (enterFrame) {
if (_name != "pick_up") {
if (((_root.earth.hitTest(_x, _y, true) || (_y < 0)) || (_x > 750)) || (_x < 0)) {
if (_x < 0) {
_x = 749;
} else if (_x > 750) {
_x = 1;
}
vy = vy - g;
speed = vy;
_rotation = (_rotation + _root.wind);
if (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
while (((_y - speed) > 0) and (_root.earth.hitTest(_x, (_y - speed) - 1, true) == false)) {
speed++;
}
_y = (_y - speed);
} else {
_y = (_y - speed);
vx = vx + (_root.wind / 200);
_x = (_x + vx);
}
}
if (die == true) {
player_to_add = _root.next_player - 2;
if (player_to_add == 0) {
player_to_add = 4;
} else if (player_to_add == -1) {
player_to_add = 3;
}
if (type == "health") {
_root["player" + player_to_add].temp_damage = _root["player" + player_to_add].temp_damage + vol;
if (_root["player" + player_to_add].temp_damage > 100) {
_root["player" + player_to_add].temp_damage = 100;
}
} else if (type == "weapon") {
if (!_root["player" + player_to_add].weapon[vol]) {
_root["player" + player_to_add].weapon[vol] = 0;
}
_root["player" + player_to_add].weapon[vol]++;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 213 MovieClip "glow" in Frame 196
onClipEvent (load) {
time = 10;
count = 0;
alpha = 100 / (time / 2);
_yscale = 50;
_xscale = 50;
_alpha = 0;
size_inc = 50 / (time / 2);
rot_speed = 10;
}
onClipEvent (enterFrame) {
if (_x > 0) {
_x = (_x + ((_root[_root.turn]._x - _x) / time));
_y = (_y + ((_root[_root.turn]._y - _y) / time));
count++;
if ((count > time) and (_alpha <= 0)) {
this.removeMovieClip();
}
_alpha = (_alpha + alpha);
_yscale = (_yscale + size_inc);
_xscale = (_xscale + size_inc);
_rotation = (_rotation + rot_speed);
if (count == time) {
alpha = alpha * -1;
size_inc = size_inc * -1;
}
}
}
Instance of Symbol 248 MovieClip "player3" in Frame 196
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
top = 550;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 3) and (health > 0)) {
_root.won = _root.p3_name;
_root.id_won = _root.p3_id;
_root.score_won = _root.p3_score;
_root.win_points = ("With " + _root.p3_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.dead++;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player3") and (_root.p_can_shoot == true)) and (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player3.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player3.gun._x) + _root.player3.gun.point._x;
_root.bomb._y = (_y + _root.player3.gun._y) + _root.player3.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 270 MovieClip "player4" in Frame 196
onClipEvent (load) {
if (_x < 0) {
place = random(75) * 10;
_x = _root.grid[place + "x"];
_y = _root.grid[place + "y"];
}
speed = 0;
vx = 0;
vy = 0;
deg = 0;
power = 0;
health = 100;
temp_damage = 100;
weapon = new Array();
weapon.teleport = 1;
weapon.mega = 2;
weapon_choice = "bomb";
teleported = false;
blast_radius = 100;
top = 550;
load = false;
}
onClipEvent (enterFrame) {
if ((_root.dead == 3) and (health > 0)) {
_root.won = _root.p4_name;
_root.id_won = _root.p4_id;
_root.score_won = _root.p4_score;
_root.win_points = ("With " + _root.p4_score) + " points!";
_root.multi.gotoAndPlay("won");
_root.dead++;
}
if (teleported == true) {
vy++;
_root.beam._alpha = _root.beam._alpha + 10;
_y = (_y - vy);
if (_y < -50) {
teleported = false;
_x = (random(740) + 5);
_y = 5;
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
}
} else {
if (_x <= 0) {
_x = 1;
} else if (_x >= 750) {
_x = 749;
}
if ((health <= 0) and (health > -1000)) {
_root.death_fx.start();
health = -2000;
_root.dead++;
_root.blow._x = _x;
_root.blow._y = _y;
_root.blow._width = blast_radius * 2;
_root.blow._height = blast_radius * 2;
_root.blow.play();
x = _x;
y = _y;
with (_root.earth) {
beginFill(13104108, 100);
moveTo(x, y - blast_radius);
curveTo(x - blast_radius, y - blast_radius, x - blast_radius, y);
if ((y + blast_radius) < top) {
curveTo(x - blast_radius, y + blast_radius, x, y + blast_radius);
} else {
curveTo(x - blast_radius, top - 1, x, top - 1);
}
if ((y + blast_radius) < top) {
curveTo(x + blast_radius, y + blast_radius, x + blast_radius, y);
} else {
curveTo(x + blast_radius, top - 1, x + blast_radius, y);
}
curveTo(x + blast_radius, y - blast_radius, x, y - blast_radius);
endFill();
}
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.gui.play();
this.gotoAndStop(2);
} else if ((health > 0) or (health < -1000)) {
if (((_root.earth.strength == 0) and _root.earth.hitTest(_x, _y, true)) and (_x > 0)) {
speed++;
while (_root.earth.hitTest(_x, (_y + speed) - 1, true) == false) {
speed--;
}
_y = (_y + speed);
} else {
while (_root.earth.hitTest(_x, _y - 1, true) == false) {
_y = (_y-1);
}
speed = 0;
}
if (((_root.turn == "player4") and (_root.p_can_shoot == true)) and (health > 0)) {
if (Key.isDown(32)) {
if (weapon_choice == "teleport") {
teleported = true;
vy = 0;
weapon.teleport--;
_root.beam._x = _x;
_root.teleport_fx.start();
} else {
this.gun.gotoAndStop(2);
power++;
load = true;
}
} else if (load == true) {
_root.shoot_fx.start();
this.gun.gotoAndStop(1);
_root.p_can_shoot = false;
deg = (_root.player4.gun._rotation * Math.PI) / 180;
last_deg = power * 4;
vx = power * Math.sin(deg);
vy = power * Math.cos(deg);
_root.bomb._x = (_x + _root.player4.gun._x) + _root.player4.gun.point._x;
_root.bomb._y = (_y + _root.player4.gun._y) + _root.player4.gun.point._y;
_root.bomb.vx = vx;
_root.bomb.vy = vy;
_root.bomb.shot = true;
load = false;
power = 0;
}
}
}
}
}
Instance of Symbol 202 MovieClip "gui" in Frame 196
onClipEvent (load) {
_root.wind = 0;
_root.total_glows = 0;
}
Instance of Symbol 288 MovieClip "multi" in Frame 196
onClipEvent (enterFrame) {
if (_root.stat == 1) {
_root.stat_disp = "\u05D4\u05EA\u05D5\u05E6\u05D0\u05D4 \u05E2\u05D5\u05D3\u05DB\u05E0\u05D4";
}
}
Instance of Symbol 244 MovieClip "pointer" in Frame 196
onClipEvent (enterFrame) {
if (_root.bomb._y < 0) {
_y = 0;
_x = _root.bomb._x;
_root.dis_from_point = Math.round((_root.bomb._y - _y) * -1);
} else {
_x = -50;
}
}
Symbol 17 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 24 MovieClip Frame 1
total_blocks = 750;
left = -375;
right = 375;
top = -275;
bottom = 275;
y_old = random(100) - 50;
with (this.foreearth) {
clear();
beginFill(3480090, 100);
moveTo(left, bottom);
i = left;
while (i <= right) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (bottom - 50)) {
y_new = y_new - 50;
} else if (y_new <= 50) {
y_new = y_new + 50;
}
lineTo(i, y_new);
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > (bottom - 100)) {
y_new = bottom - 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < (top + 100)) {
y_new = top + 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(right, bottom);
endFill();
}
stop();
Symbol 24 MovieClip Frame 2
total_blocks = 750;
left = -375;
right = 375;
top = -275;
bottom = 275;
y_old = random(100) - 50;
with (this.foreearth) {
clear();
beginFill(209420, 100);
moveTo(left, bottom);
i = left;
while (i <= right) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (bottom - 50)) {
y_new = y_new - 50;
} else if (y_new <= 50) {
y_new = y_new + 50;
}
lineTo(i, y_new);
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > (bottom - 100)) {
y_new = bottom - 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < (top + 100)) {
y_new = top + 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(right, bottom);
endFill();
}
Symbol 24 MovieClip Frame 3
total_blocks = 750;
left = -375;
right = 375;
top = -275;
bottom = 275;
y_old = random(100) - 50;
with (this.foreearth) {
clear();
beginFill(8559545, 100);
moveTo(left, bottom);
i = left;
while (i <= right) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (bottom - 50)) {
y_new = y_new - 50;
} else if (y_new <= 50) {
y_new = y_new + 50;
}
lineTo(i, y_new);
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > (bottom - 100)) {
y_new = bottom - 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < (top + 100)) {
y_new = top + 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(right, bottom);
endFill();
}
Symbol 24 MovieClip Frame 4
total_blocks = 750;
left = -375;
right = 375;
top = -275;
bottom = 275;
y_old = random(100) - 50;
with (this.foreearth) {
clear();
beginFill(4802113, 100);
moveTo(left, bottom);
i = left;
while (i <= right) {
y_new = y_old + (random(100) - 50);
if (((y_older > y_old) and (y_old < y_new)) || ((y_older < y_old) and (y_old > y_new))) {
if (((y_new - y_old) > 25) || ((y_new - y_old) < -25)) {
y_new = y_new - ((y_new - y_old) * 1.5);
} else {
y_new = y_old;
}
}
if (y_new > (bottom - 50)) {
y_new = y_new - 50;
} else if (y_new <= 50) {
y_new = y_new + 50;
}
lineTo(i, y_new);
cliff = random(102) - 100;
if (cliff > 0) {
if (y_old > y_new) {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = y_old + random(100);
if (y_new > (bottom - 100)) {
y_new = bottom - 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
} else {
y_old = y_new;
b = i;
while (b <= (i + (cliff * 10))) {
y_new = (y_old + random(100)) - 200;
if (y_new < (top + 100)) {
y_new = top + 100;
}
lineTo(b, y_new);
y_old = y_new;
b = b + 10;
}
}
i = b;
}
y_older = y_old;
y_old = y_new;
i = i + 10;
}
lineTo(right, bottom);
endFill();
}
Symbol 39 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndPlay (71);
}
Symbol 43 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndPlay (112);
}
Symbol 47 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndPlay (153);
}
Symbol 65 Button
on (release) {
_root.play();
}
Symbol 72 Button
on (release) {
_root.option_wind = false;
gotoAndStop (2);
}
Symbol 74 Button
on (release) {
_root.option_wind = false;
gotoAndStop (1);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 78 Button
on (release) {
_root.play();
}
Symbol 82 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndStop (194);
}
Symbol 83 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndPlay (70);
}
Symbol 90 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndStop (195);
}
Symbol 98 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
gotoAndStop (196);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 51
gotoAndStop (1);
temp_damage_disp = null;
Symbol 117 MovieClip Frame 1
stop();
Instance of Symbol 111 MovieClip "gun" in Symbol 117 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == "player1") {
if (Key.isDown(39)) {
if (_rotation < 90) {
_rotation = (_rotation+1);
}
} else if (Key.isDown(37)) {
if (_rotation > -90) {
_rotation = (_rotation-1);
}
}
}
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip "gun" in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == "player2") {
if (Key.isDown(39)) {
if (_rotation < 90) {
_rotation = (_rotation+1);
}
} else if (Key.isDown(37)) {
if (_rotation > -90) {
_rotation = (_rotation-1);
}
}
}
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Instance of Symbol 144 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root[_root.turn].last_deg;
}
Instance of Symbol 146 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_root[_root.turn].power * 4);
_root.temp_power = _root[_root.turn].power;
_root.temp_angle = _root[_root.turn].gun._rotation;
}
Instance of Symbol 151 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root[_root.turn].gun._rotation;
}
Symbol 159 Button
on (release) {
if ((_root.bomb.shot == false) && (!Key.isDown(32))) {
_root[_root.turn].weapon_choice = "mega";
}
}
Symbol 161 Button
on (release) {
_root[_root.turn].weapon_choice = "mega";
}
Symbol 164 MovieClip Frame 1
stop();
Symbol 168 Button
on (release) {
if ((_root.bomb.shot == false) && (!Key.isDown(32))) {
_root[_root.turn].weapon_choice = "bomb";
}
}
Symbol 169 MovieClip Frame 2
stop();
Symbol 174 Button
on (release) {
if ((_root.bomb.shot == false) && (!Key.isDown(32))) {
_root[_root.turn].weapon_choice = "teleport";
}
}
Symbol 177 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip "hbar2" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root[_root.turn].health);
}
Instance of Symbol 164 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.mega == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "mega") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "mega") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_megas = _root[_root.turn].weapon.mega;
}
Instance of Symbol 169 MovieClip "bomb_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon_choice == "bomb") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 177 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.teleport == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "teleport") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "teleport") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_teleports = _root[_root.turn].weapon.teleport;
}
Instance of Symbol 139 MovieClip "hbar2" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root[_root.turn].health);
}
Instance of Symbol 164 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.mega == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "mega") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "mega") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_megas = _root[_root.turn].weapon.mega;
}
Instance of Symbol 169 MovieClip "bomb_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon_choice == "bomb") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 177 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.teleport == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "teleport") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "teleport") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_teleports = _root[_root.turn].weapon.teleport;
}
Instance of Symbol 139 MovieClip "hbar2" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root[_root.turn].health);
}
Instance of Symbol 164 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.mega == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "mega") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "mega") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_megas = _root[_root.turn].weapon.mega;
}
Instance of Symbol 169 MovieClip "bomb_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon_choice == "bomb") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 177 MovieClip "mega_button" in Symbol 196 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root[_root.turn].weapon.teleport == 0) {
gotoAndStop (3);
if (_root[_root.turn].weapon_choice == "teleport") {
_root[_root.turn].weapon_choice = "bomb";
}
} else if (_root[_root.turn].weapon_choice == "teleport") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
_root.total_teleports = _root[_root.turn].weapon.teleport;
}
Symbol 202 MovieClip Frame 1
if ((random(5) < 2) && (_root.option_wind == true)) {
_root.wind = random(100) - 50;
_root.wind_fx.start();
}
if (_root.turn == "player1") {
_root.current_name = _root.p1_name;
} else if (_root.turn == "player2") {
_root.current_name = _root.p2_name;
} else if (_root.turn == "player3") {
_root.current_name = _root.p3_name;
} else if (_root.turn == "player4") {
_root.current_name = _root.p4_name;
}
Instance of Symbol 130 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.wind > (this._currentframe - 50)) {
this.nextFrame();
} else if (_root.wind < (this._currentframe - 50)) {
this.prevFrame();
}
}
Symbol 202 MovieClip Frame 28
_root.total_glows++;
duplicateMovieClip (_root.glow, "glow" + _root.total_glows, _root.total_glows);
_root["glow" + _root.total_glows]._x = _root.gui._x;
_root["glow" + _root.total_glows]._y = _root.gui._y;
_root.player_change_fx.start();
Symbol 202 MovieClip Frame 30
_root.total_glows++;
duplicateMovieClip (_root.glow, "glow" + _root.total_glows, _root.total_glows);
_root["glow" + _root.total_glows]._x = _root.gui._x;
_root["glow" + _root.total_glows]._y = _root.gui._y;
Symbol 202 MovieClip Frame 32
_root.total_glows++;
duplicateMovieClip (_root.glow, "glow" + _root.total_glows, _root.total_glows);
_root["glow" + _root.total_glows]._x = _root.gui._x;
_root["glow" + _root.total_glows]._y = _root.gui._y;
Symbol 202 MovieClip Frame 34
_root.total_glows++;
duplicateMovieClip (_root.glow, "glow" + _root.total_glows, _root.total_glows);
_root["glow" + _root.total_glows]._x = _root.gui._x;
_root["glow" + _root.total_glows]._y = _root.gui._y;
Symbol 202 MovieClip Frame 36
_root.total_glows++;
duplicateMovieClip (_root.glow, "glow" + _root.total_glows, _root.total_glows);
_root["glow" + _root.total_glows]._x = _root.gui._x;
_root["glow" + _root.total_glows]._y = _root.gui._y;
Symbol 202 MovieClip Frame 60
if (random(5) < 1) {
_root.total_pick_ups++;
duplicateMovieClip (_root.pick_up, "pick_up" + _root.total_pick_ups, _root.total_pick_ups);
}
switch (_root.turn) {
case "player1" :
_root.temp_name = _root.p1_name;
_root.current_score = _root.p1_score;
break;
case "player2" :
_root.temp_name = _root.p2_name;
_root.current_score = _root.p2_score;
break;
case "player3" :
_root.temp_name = _root.p3_name;
_root.current_score = _root.p3_score;
break;
case "player4" :
_root.temp_name = _root.p4_name;
_root.current_score = _root.p4_score;
}
stop();
Instance of Symbol 196 MovieClip in Symbol 202 MovieClip Frame 60
onClipEvent (enterFrame) {
if ((_root[_root.turn].health == _root[_root.turn].temp_damage) and (_root.bomb.shot == false)) {
_root.p_can_shoot = true;
} else if (_root[_root.turn].health > _root[_root.turn].temp_damage) {
_root[_root.turn].health--;
} else if (_root[_root.turn].health < _root[_root.turn].temp_damage) {
_root[_root.turn].health++;
}
}
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 24
gotoAndStop (1);
_root.blow._x = -500;
Symbol 211 MovieClip Frame 1
stop();
Symbol 237 Button
on (rollOver) {
_root.click_sound.start();
}
on (release) {
_root.click_sound.start();
stopAllSounds();
gotoAndStop (69);
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 56
gotoAndStop (1);
if (_root.turn == "player1") {
_root.turn = "player2";
} else {
_root.turn = "player1";
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 240 MovieClip Frame 110
gotoAndStop (1);
if (_root.turn == "player1") {
_root.turn = "player2";
} else {
_root.turn = "player1";
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 240 MovieClip Frame 161
gotoAndStop (1);
if (_root.turn == "player1") {
_root.turn = "player2";
} else {
_root.turn = "player1";
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 240 MovieClip Frame 166
_root.p_can_shoot = false;
_root.cred_won = ("!\u05D6\u05DB\u05D9\u05EA \u05D1-" + (_root.money * 2)) + " \u05E0\u05E7\u05D5\u05D3\u05D5\u05EA \u05E7\u05E8\u05D3\u05D9\u05D8";
Symbol 240 MovieClip Frame 185
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i].removeMovieClip();
i++;
}
Symbol 240 MovieClip Frame 225
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 246 MovieClip "gun" in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == "player3") {
if (Key.isDown(39)) {
if (_rotation < 90) {
_rotation = (_rotation+1);
}
} else if (Key.isDown(37)) {
if (_rotation > -90) {
_rotation = (_rotation-1);
}
}
}
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 56
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.bomb.waot = false;
_root.gui.play();
Symbol 266 MovieClip Frame 110
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.bomb.waot = false;
_root.gui.play();
Symbol 266 MovieClip Frame 161
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 4) {
_root.next_player = 1;
}
_root.bomb.waot = false;
_root.gui.play();
Symbol 266 MovieClip Frame 166
_root.p_can_shoot = false;
_root.cred_won = ("!\u05D6\u05DB\u05D9\u05EA \u05D1-" + (_root.money * 2)) + " \u05E0\u05E7\u05D5\u05D3\u05D5\u05EA \u05E7\u05E8\u05D3\u05D9\u05D8";
Symbol 266 MovieClip Frame 185
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i].removeMovieClip();
i++;
}
Symbol 266 MovieClip Frame 225
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Instance of Symbol 268 MovieClip "gun" in Symbol 270 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.turn == "player4") {
if (Key.isDown(39)) {
if (_rotation < 90) {
_rotation = (_rotation+1);
}
} else if (Key.isDown(37)) {
if (_rotation > -90) {
_rotation = (_rotation-1);
}
}
}
}
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 56
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 288 MovieClip Frame 110
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 288 MovieClip Frame 161
gotoAndStop (1);
while (_root["player" + _root.next_player].health <= 0) {
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
}
_root.turn = "player" + _root.next_player;
_root.next_player++;
if (_root.next_player == 5) {
_root.next_player = 1;
}
_root.bomb.wait = false;
_root.gui.play();
Symbol 288 MovieClip Frame 166
_root.p_can_shoot = false;
_root.cred_won = ("!\u05D6\u05DB\u05D9\u05EA \u05D1-" + (_root.money * 2)) + " \u05E0\u05E7\u05D5\u05D3\u05D5\u05EA \u05E7\u05E8\u05D3\u05D9\u05D8";
Symbol 288 MovieClip Frame 185
i = _root.pick_ups_dead;
while (i <= _root.total_pick_ups) {
_root["pick_up" + i].removeMovieClip();
i++;
}
Symbol 288 MovieClip Frame 225
stop();