Frame 96
_root.attachMovie("menu music", "music_switch", 1);
_root.music_switch._x = 8;
_root.music_switch._y = 368;
Frame 109
stop();
Frame 119
_root.gotoAndPlay(frame);
Frame 129
stop();
Frame 130
stop();
Frame 131
stop();
Frame 132
stop();
Frame 143
_root.gotoAndPlay("menu");
Frame 154
stop();
Frame 165
_root.gotoAndPlay("menu");
Frame 166
_root.music_switch.removeMovieClip();
_root.AttachMovie("HUD", "hud", 3);
_root.hud._x = 8;
_root.hud._y = 8;
_root.hud.score = 0;
_root.hud.time = 0;
_root.hud.best = 0;
_root.hud.lives = 3;
Frame 167
_root.hud._visible = true;
_root.hud.time = 0;
_root.hud.score = 0;
_root.hud.lives = 3;
Frame 247
function gameOver() {
_root.char.removeMovieClip();
Mouse.show();
play();
_root.stage.removeMovieClip();
_root.timer.removeMovieClip();
_root.health.removeMovieClip();
_root.lives_text.removeMovieClip();
_root.invincible.removeMovieClip();
_root.slowdown.removeMovieClip();
_root.speed.removeMovieClip();
_root.enlarge.removeMovieClip();
}
function hitObject() {
_root.attachMovie("flash", "flash", 6);
_root.flash._x = 0;
_root.flash._y = 0;
_root.hud.lives--;
_root.attachMovie("Lives_mc", "lives_text", 4);
_root.lives_text._x = 200;
_root.lives_text._y = 200;
if (1 < _root.hud.lives) {
_root.lives_text.gfx.lives = _root.hud.lives + " lives";
}
if (_root.hud.lives == 1) {
_root.lives_text.gfx.lives = _root.hud.lives + " life";
}
if (_root.hud.lives < 1) {
_root.lives_text.gfx.lives = "no lives left!";
}
}
stop();
_root.speed_factor = 1;
_root.AttachMovie("char_mc", "char", 2);
_root.char._x = 200;
_root.char._y = 200;
_root.AttachMovie("main_stage", "stage", 1);
_root.stage._x = 200;
_root.stage._y = 200;
Mouse.hide();
Instance of Symbol 232 MovieClip in Frame 247
onClipEvent (enterFrame) {
_root.hud.time++;
_root.char._x = _root._xmouse;
_root.char._y = _root._ymouse;
}
Frame 258
stop();
_root.hud._visible = false;
if (_root.hud.time >= _root.hud.best) {
_root.hud.best = _root.hud.time;
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [char_mc] Frame 1
onClipEvent (load) {
_parent.invincible = false;
_parent._xscale = 100;
_parent._yscale = 100;
}
onClipEvent (enterFrame) {
}
Symbol 9 Button
on (release) {
_root.music_switch.play();
}
Symbol 11 Button
on (release) {
_root.music_switch.play();
}
Symbol 12 MovieClip [menu music] Frame 1
stop();
Symbol 12 MovieClip [menu music] Frame 2
stop();
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [enemy_mc] Frame 1
onClipEvent (load) {
_parent.speed = 12;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
_parent._rotation = _parent._rotation + 2;
if (350 < _parent._x) {
_parent.removeMovieClip();
}
var HalfCharSize = (_root.char._width / 2);
if (_parent.hitTest(_root.char._x - HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y - HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x + HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y + HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
}
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip [powerdown_mc] Frame 1
onClipEvent (load) {
_parent.speed = 10;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
_parent._rotation = _parent._rotation + 2;
if (350 < _parent._x) {
_parent.removeMovieClip();
}
if (_parent.powerdown_main.hitTest(_root.char)) {
var rnd = Math.floor((Math.random() * 2) + 1);
if (rnd == 2) {
_root.char._xscale = 150;
_root.char._yscale = 150;
_root.AttachMovie("Enlarge!_mc", "enlarge", 4);
_root.enlarge._x = 200;
_root.enlarge._y = 200;
}
if (rnd == 1) {
_root.speed_factor = 0.5;
_root.AttachMovie("Speed!_mc", "speed", 4);
_root.speed._x = 200;
_root.speed._y = 200;
}
_root.AttachMovie("timer_mc", "timer", 5);
_root.timer._x = 8;
_root.timer._y = 380;
_parent.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 27 MovieClip [health_mc] Frame 1
onClipEvent (load) {
_parent.speed = 10;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
_parent._rotation = _parent._rotation + 2;
if (350 < _parent._x) {
_parent.removeMovieClip();
}
if (_parent.powerup_main.hitTest(_root.char)) {
_root.hud.lives++;
_root.attachMovie("Health Message_mc", "health", 4);
_root.health._x = 200;
_root.health._y = 200;
_parent.removeMovieClip();
}
}
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [powerup_mc] Frame 1
onClipEvent (load) {
_parent.speed = 10;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
_parent._rotation = _parent._rotation + 2;
if (350 < _parent._x) {
_parent.removeMovieClip();
}
if (_parent.powerup_main.hitTest(_root.char)) {
var rnd = Math.floor((Math.random() * 2) + 1);
if (rnd == 2) {
_root.char.invincible = true;
_root.AttachMovie("Invincible!_mc", "invincible", 4);
_root.invincible._x = 200;
_root.invincible._y = 200;
}
if (rnd == 1) {
_root.speed_factor = 2;
_root.AttachMovie("Slowdown!_mc", "slowdown", 4);
_root.slowdown._x = 200;
_root.slowdown._y = 200;
}
_root.AttachMovie("timer_mc", "timer", 5);
_root.timer._x = 8;
_root.timer._y = 380;
_parent.removeMovieClip();
}
}
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [point_mc] Frame 1
onClipEvent (load) {
_parent.speed = 10;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
if (350 < _parent._x) {
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char)) {
_root.hud.score++;
_parent.removeMovieClip();
}
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip [main_stage] Frame 1
onClipEvent (load) {
wall_number = 0;
point_number = 0;
enemy_number = 0;
wall_timer = 0;
powerup_number = 0;
powerdown_number = 0;
health_number = 0;
}
onClipEvent (enterFrame) {
var rnd = Math.floor((Math.random() * 40) + 1);
var power_rnd = Math.floor((Math.random() * 500) + 1);
if ((20 * _root.speed_factor) < wall_timer) {
var name = ("wall" + wall_number);
var wall_rnd = Math.floor((Math.random() * 60) + 1);
if ((4 < wall_rnd) && (wall_rnd < 56)) {
_root.stage.attachMovie("wall_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = 0;
wall_timer = 0;
wall_number++;
}
if (4 >= wall_rnd) {
_root.stage.attachMovie("laserwall_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = 0;
wall_timer = 0;
wall_number++;
}
if (wall_rnd >= 56) {
_root.stage.attachMovie("movingwall_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = 0;
wall_timer = 0;
wall_number++;
}
}
if (36 < rnd) {
var name = ("point" + point_number);
_root.stage.attachMovie("point_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = Math.floor((Math.random() * 200) - 100);
point_number++;
}
if ((3 < rnd) && (rnd < 5)) {
var name = ("enemy" + enemy_number);
_root.stage.attachMovie("enemy_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = Math.floor((Math.random() * 200) - 100);
enemy_number++;
}
if (power_rnd == 1) {
var name = ("powerup" + powerup_number);
_root.stage.attachMovie("powerup_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = Math.floor((Math.random() * 200) - 100);
powerup_number++;
}
if (power_rnd == 500) {
var name = ("powerdown" + powerdown_number);
_root.stage.attachMovie("powerdown_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = Math.floor((Math.random() * 200) - 100);
powerdown_number++;
}
if (power_rnd == 250) {
var name = ("health" + health_number);
_root.stage.attachMovie("health_mc", name, d++);
_root.stage[name]._x = -350;
_root.stage[name]._y = Math.floor((Math.random() * 200) - 100);
health_number++;
}
_parent._rotation = _parent._rotation + 1;
wall_timer++;
if (!_root.stage.back.hitTest(_root.char._x - 16, _root.char._y, true)) {
_root.gameOver();
}
if (!_root.stage.back.hitTest(_root.char._x, _root.char._y - 16, true)) {
_root.gameOver();
}
if (!_root.stage.back.hitTest(_root.char._x + 16, _root.char._y, true)) {
_root.gameOver();
}
if (!_root.stage.back.hitTest(_root.char._x, _root.char._y + 16, true)) {
_root.gameOver();
}
if (_root.hud.lives < 0) {
_root.gameOver();
}
}
Instance of Symbol 44 MovieClip in Symbol 46 MovieClip [laserwall_mc] Frame 1
onClipEvent (load) {
_parent.speed = 7;
_parent._y = 0;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
if (350 < _parent._x) {
_parent.removeMovieClip();
}
var HalfCharSize = (_root.char._width / 2);
if (_parent.hitTest(_root.char._x - HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y - HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x + HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y + HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
}
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip [movingwall_mc] Frame 1
onClipEvent (load) {
_parent.speed = 7;
_parent._y = -100;
_parent.dir = 1;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
if (100 < _parent._y) {
_parent.dir = -1;
}
if (_parent._y < -100) {
_parent.dir = 1;
}
_parent._y = _parent._y + ((3 * _parent.dir) / _root.speed_factor);
if (350 < _parent._x) {
_parent.removeMovieClip();
}
var HalfCharSize = (_root.char._width / 2);
if (_parent.hitTest(_root.char._x - HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y - HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x + HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y + HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
}
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [wall_mc] Frame 1
onClipEvent (load) {
_parent.speed = 7;
var rnd = Math.floor((Math.random() * 3) + 1);
if (rnd == 1) {
_parent._y = -100;
}
if (rnd == 2) {
_parent._y = 0;
}
if (rnd == 2) {
_parent._y = 100;
}
if (((rnd != 1) && (rnd != 2)) && (rnd != 3)) {
_parent._y = -100;
}
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (_parent.speed / _root.speed_factor);
if (350 < _parent._x) {
_parent.removeMovieClip();
}
var HalfCharSize = (_root.char._width / 2);
if (_parent.hitTest(_root.char._x - HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y - HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x + HalfCharSize, _root.char._y, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.char._x, _root.char._y + HalfCharSize, true) && (!_root.char.invincible)) {
_root.hitObject();
_parent.removeMovieClip();
}
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip [Health Message_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 56 MovieClip in Symbol 60 MovieClip [Enlarge!_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 56 MovieClip in Symbol 64 MovieClip [Lives_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 56 MovieClip in Symbol 67 MovieClip [Speed!_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 56 MovieClip in Symbol 70 MovieClip [Slowdown!_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 56 MovieClip in Symbol 73 MovieClip [Invincible!_mc] Frame 24
onClipEvent (load) {
_parent.removeMovieClip();
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [hud] Frame 1
onClipEvent (keyDown) {
if (Key.isDown(83)) {
play();
}
}
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip [timer_mc] Frame 1
onClipEvent (load) {
time = 240;
}
onClipEvent (enterFrame) {
if (time < 1) {
if (_root.char.invincible) {
_root.char.invincible = false;
}
if (_root.speed_factor != 1) {
_root.speed_factor = 1;
}
if ((_root.char._xscale != 100) && (_root.char._yscale != 100)) {
_root.char._xscale = 100;
_root.char._yscale = 100;
}
_parent.removeMovieClip();
}
var percent = ((time / 240) * 100);
_parent._xscale = percent;
time--;
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip [flash] Frame 3
onClipEvent (load) {
_parent.removeMovieClip();
}
Symbol 104 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 109 Button
on (release) {
_root.play();
}
Symbol 110 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop (3);
}
Symbol 110 MovieClip Frame 2
gotoAndPlay (1);
Symbol 173 Button
on (release) {
_root.play();
frame = "credits";
}
Symbol 178 Button
on (release) {
_root.gotoAndPlay("instructions");
}
Symbol 183 Button
on (release) {
_root.music_switch.gotoAndPlay(2);
_root.play();
frame = "init";
}
Symbol 184 Button
on (release) {
_root.play();
frame = "instructions";
}
Symbol 193 Button
on (release) {
_root.play();
}
Symbol 220 Button
on (release) {
_root.play();
}
Symbol 237 Button
on (release) {
_root.gotoAndPlay("game");
}
Symbol 239 Button
on (release) {
_root.gotoandPlay("menu");
}