Frame 1
_quality = "best";
stop();
Instance of Symbol 23 MovieClip in Frame 1
onClipEvent (mouseDown) {
getURL ("http://www.shockarcade.com", "_blank");
}
Frame 2
stop();
Stage.showMenu = false;
Frame 3
stop();
Stage.showMenu = false;
var score;
var level = (level + 1);
var started = false;
var setscale;
var maxcount;
var maxspeed;
var kill = false;
var time;
var lives;
boom = new Sound();
boom.attachSound("explosion");
diamond = new Sound();
diamond.attachSound("yeah");
reward = new Sound();
reward.attachSound("power");
abomb = new Sound();
abomb.attachSound("bomb");
healthy = new Sound();
healthy.attachSound("addh");
halfsize = new Sound();
halfsize.attachSound("mini");
Instance of Symbol 28 MovieClip "char" in Frame 3
onClipEvent (load) {
_root.char._x = 200;
_root.char._y = 303.7;
var speedv = 0;
var speedh = 0;
half = false;
invincible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.platform) && (speed <= 0)) {
speedv = 1E-11;
speedh = 0;
} else if (_y <= 27) {
speedv = -1;
}
if (_x >= 386.5) {
speedh = -1;
} else if (_x <= 13.5) {
speedh = 1;
}
_y = (_y - speedv);
_x = (_x + speedh);
if (key.isDown(key.up) && (speedv < 10)) {
speedv = speedv + 0.125;
} else if ((!key.isDown(key.up)) && (!this.hitTest(_root.platform))) {
speedv = speedv - 0.125;
}
if (key.isDown(key.down) && (!this.hitTest(_root.platform))) {
speedv = speedv - 0.125;
}
if (key.isDown(key.left)) {
speedh = speedh - 0.125;
}
if (key.isDown(key.right)) {
speedh = speedh + 0.125;
}
if (_x >= 400) {
_x = 0;
} else if (_x <= 0) {
_x = 400;
}
if (half == true) {
count = count + 1;
_yscale = 50;
_xscale = 50;
if (count == 200) {
half = false;
}
}
if (half == false) {
_yscale = 100;
_xscale = 100;
count = 0;
}
if (invincible == true) {
count2 = count2 + 1;
this.gotoAndPlay(2);
if (count2 == 200) {
invincible = false;
}
}
if (invincible == false) {
this.gotoAndPlay(1);
count2 = 0;
}
if (this.hitTest(_root.ground)) {
_root.boom.start();
_root.lives = _root.lives - 1;
_root.char._x = 200;
_root.char._y = 303.7;
speedv = 0;
speedh = 0;
half = false;
invincible = false;
_root.gems.bar._yscale = 0;
_root.health.bar._yscale = 100;
}
if (_root.lives <= 0) {
_root.gotoAndPlay("gameover");
}
if (this.hitTest(_root.platform)) {
if (speedv <= -4) {
_root.boom.start();
_root.lives = _root.lives - 1;
_root.char._x = 200;
_root.char._y = 303.7;
speedv = 0;
speedh = 0;
half = false;
_root.gems.bar._yscale = 0;
_root.health.bar._yscale = 100;
} else if ((speedv > -4) && (_root.gems.bar._yscale == 100)) {
_root.healthleft = _root.health.bar._yscale * 10;
_root.score = _root.score + _root.healthleft;
_root.score = _root.score + 500;
_root.gotoAndPlay("levelup");
}
}
}
Instance of Symbol 37 MovieClip "gem" in Frame 3
onClipEvent (load) {
if (_x == 400) {
position = 1;
} else if (_x == 0) {
position = 0;
}
}
onClipEvent (enterFrame) {
var speed;
if ((_x <= -50) or (_x > 450)) {
removeMovieClip(this);
}
if (position == 0) {
_x = (_x + speed);
_rotation = (_rotation + speed);
} else if (position == 1) {
_x = (_x - speed);
_rotation = (_rotation - speed);
}
if (this.hitTest(_root.char) && (_root.gems.bar._yscale < 100)) {
_root.diamond.start();
damage = this._yscale / 5;
_root.gems.bar._yscale = _root.gems.bar._yscale + damage;
removeMovieClip(this);
}
if (_root.started == true) {
removeMovieClip(this);
}
}
Instance of Symbol 39 MovieClip "rock" in Frame 3
onClipEvent (load) {
if (_x == 400) {
position = 1;
} else if (_x == 0) {
position = 0;
}
}
onClipEvent (enterFrame) {
var speed;
if ((_x <= -50) or (_x > 450)) {
removeMovieClip(this);
}
if (position == 0) {
_x = (_x + speed);
_rotation = (_rotation + speed);
} else if (position == 1) {
_x = (_x - speed);
_rotation = (_rotation - speed);
}
if (_root.char.invincible == false) {
if (this.hitTest(_root.char) && (_root.health.bar._yscale > 0)) {
_root.boom.start();
damage = this._yscale / 5;
_root.health.bar._yscale = _root.health.bar._yscale - damage;
removeMovieClip(this);
}
} else if (_root.char.invincible == true) {
if (this.hitTest(_root.char)) {
_root.boom.start();
removeMovieClip(this);
}
}
if (_root.started == true) {
removeMovieClip(this);
}
if (_root.kill == true) {
removeMovieClip(this);
}
}
Instance of Symbol 55 MovieClip "up" in Frame 3
onClipEvent (load) {
if (_x == 400) {
position = 1;
} else if (_x == 0) {
position = 0;
}
var select = random(16);
if (select < 7) {
this.gotoAndPlay(1);
type = 1;
} else if ((select > 6) and (select < 12)) {
this.gotoAndPlay(2);
type = 2;
} else if ((select > 11) and (select < 15)) {
this.gotoAndPlay(4);
type = 3;
} else if (select == 15) {
this.gotoAndPlay(3);
type = 4;
}
}
onClipEvent (enterFrame) {
var speed;
if ((_x <= -50) or (_x > 450)) {
removeMovieClip(this);
}
if (this.hitTest(_root.char)) {
if (type == 1) {
if (_root.health.bar._yscale < 100) {
_root.healthy.start();
_root.health.bar._yscale = _root.health.bar._yscale + 25;
removeMovieClip(this);
}
} else if (type == 2) {
_root.halfsize.start();
if (_root.char.half == false) {
_root.char.half = true;
removeMovieClip(this);
} else if (_root.char.half == true) {
_root.char.count = 0;
removeMovieClip(this);
}
} else if (type == 3) {
_root.reward.start();
if (_root.char.invincible == false) {
_root.char.invincible = true;
removeMovieClip(this);
} else if (_root.char.invincible == true) {
_root.char.count2 = 0;
removeMovieClip(this);
}
} else if (type == 4) {
_root.abomb.start();
_root.kill = true;
removeMovieClip(this);
}
}
if (position == 0) {
_x = (_x + speed);
_rotation = (_rotation + speed);
} else if (position == 1) {
_x = (_x - speed);
_rotation = (_rotation - speed);
}
if (_root.started == true) {
removeMovieClip(this);
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.time > 0) {
_root.time = _root.time - 1;
} else if (_root.time <= 0) {
_root.gotoAndPlay("gameover");
}
if (_root.kill == true) {
count = count + 1;
}
if (count == 5) {
count = 0;
_root.kill = false;
}
}
Instance of Symbol 62 MovieClip "counter" in Frame 3
onClipEvent (load) {
var count = 0;
var count2 = 0;
var count3 = 0;
_root.rock._x = 700;
_root.gem._x = 700;
_root.up._x = 700;
}
onClipEvent (enterFrame) {
count = count + 1;
count2 = count2 + 1;
count3 = count3 + 1;
if ((count3 == 250) and (_root.started == false)) {
count3 = 0;
i = i + 1;
duplicateMovieClip (_root.up, "up" + i, i);
_root["up" + i]._yscale = 200;
_root["up" + i]._xscale = 200;
var position3 = random(2);
if (position3 == 0) {
_root["up" + i]._y = random(250) + 10;
_root["up" + i]._x = 0;
_root["up" + i].speed = random(4) + 2;
} else if (position3 == 1) {
_root["up" + i]._y = random(250) + 10;
_root["up" + i]._x = 400;
_root["up" + i].speed = random(4) + 2;
}
}
if ((count2 == (75 - _root.maxcount)) and (_root.started == false)) {
count2 = 0;
i = i + 1;
duplicateMovieClip (_root.rock, "rock" + i, i);
var position = random(2);
if (position == 0) {
_root["rock" + i]._y = random(250) + 10;
_root["rock" + i]._x = 0;
_root["rock" + i].speed = random(4 + _root.maxspeed) + 1;
scale = (random(150) + 175) + _root.setscale;
_root["rock" + i]._xscale = scale;
_root["rock" + i]._yscale = scale;
} else if (position == 1) {
_root["rock" + i]._y = random(250) + 10;
_root["rock" + i]._x = 400;
_root["rock" + i].speed = random(4 + _root.maxspeed) + 1;
scale = (random(150) + 175) + _root.setscale;
_root["rock" + i]._xscale = scale;
_root["rock" + i]._yscale = scale;
}
}
if ((count == 175) and (_root.started == false)) {
count = 0;
i = i + 1;
duplicateMovieClip (_root.gem, "gem" + i, i);
var position2 = random(2);
if (position2 == 0) {
_root["gem" + i]._y = random(250) + 10;
_root["gem" + i]._x = 0;
_root["gem" + i].speed = random(4) + 1;
scale2 = random(100) + 150;
_root["gem" + i]._xscale = scale2;
_root["gem" + i]._yscale = scale2;
} else if (position2 == 1) {
_root["gem" + i]._y = random(250) + 10;
_root["gem" + i]._x = 400;
_root["gem" + i].speed = random(4) + 1;
scale2 = random(100) + 150;
_root["gem" + i]._xscale = scale2;
_root["gem" + i]._yscale = scale2;
}
}
}
Instance of Symbol 13 MovieClip [clock] in Frame 3
onClipEvent (enterFrame) {
if (_root.time >= 1125) {
this.gotoAndPlay(1);
} else if ((_root.time < 1125) and (_root.time >= 750)) {
this.gotoAndPlay(2);
} else if ((_root.time < 750) and (_root.time >= 375)) {
this.gotoAndPlay(3);
} else if ((_root.time < 375) and (_root.time > 0)) {
this.gotoAndPlay(4);
} else if (_root.time < 0) {
this.gotoAndPlay(5);
}
}
Frame 4
stop();
Stage.showMenu = false;
var started = true;
var score;
var level;
var setscale;
var maxcount;
var maxspeed;
var lives;
var time;
var healthleft;
Instance of Symbol 68 MovieClip "health" in Frame 4
onClipEvent (load) {
timeadded = null;
}
onClipEvent (enterFrame) {
if (timeadded == null) {
_root.timeleft = _root.time;
_root.score = _root.score + _root.time;
timeadded = true;
}
}
Frame 5
stop();
Stage.showMenu = false;
var score;
var started = true;
Frame 6
stop();
Stage.showMenu = false;
var started = true;
Symbol 13 MovieClip [clock] Frame 1
stop();
Symbol 13 MovieClip [clock] Frame 2
stop();
Symbol 13 MovieClip [clock] Frame 3
stop();
Symbol 13 MovieClip [clock] Frame 4
stop();
Symbol 13 MovieClip [clock] Frame 5
stop();
Symbol 15 Button
on (release) {
getURL ("http://www.shockarcade.com");
}
Symbol 23 MovieClip Frame 1
play();
Symbol 23 MovieClip Frame 2
play();
Symbol 23 MovieClip Frame 40
stop();
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 40
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
with (_level0) {
nextFrame();
}
}
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 33 Button
on (release) {
_root.gotoAndPlay("game");
_root.level = 0;
_root.time = 1500;
_root.lives = 3;
_root.maxcount = null;
_root.setscale = null;
_root.maxspeed = null;
}
Symbol 35 Button
on (release) {
_root.gotoAndPlay("help");
}
Symbol 43 Button
on (release) {
getURL ("http://www.shockarcade.com");
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 3
stop();
Symbol 55 MovieClip Frame 4
stop();
Instance of Symbol 66 MovieClip "bar" in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
_yscale = 100;
_root.nextlevel = false;
}
onClipEvent (enterFrame) {
if ((_root.started == true) && (_yscale > 0)) {
_root.score = _root.score + 10;
_yscale = (_yscale-1);
}
if (_yscale >= 100) {
_yscale = 100;
}
if (_yscale <= 0) {
_yscale = 0;
_root.nextlevel = true;
if (_root.started == false) {
_root.char.invincible = false;
_root.char.half = false;
this._yscale = 100;
_root.char._x = 200;
_root.char._y = 382;
_root.char.speedv = 0;
_root.char.speedh = 0;
}
}
}
Symbol 72 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip "bar" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
if (_yscale >= 100) {
_yscale = 100;
}
}
Symbol 83 Button
on (release) {
if (_root.nextlevel == true) {
_root.gotoAndPlay("game");
_root.health.bar._yscale = 100;
_root.gems.bar._yscale = 0;
if (_root.maxcount < 50) {
_root.maxcount = _root.maxcount + 1;
}
_root.maxspeed = _root.maxspeed + 0.2;
_root.setscale = _root.setscale + 5;
_root.char._x = 200;
_root.char._y = 303.7;
_root.time = 1500;
_root.nextlevel = false;
}
}
Symbol 94 Button
on (release) {
_root.gotoAndPlay("game");
_root.level = 0;
_root.time = 1500;
_root.lives = 3;
_root.maxcount = null;
_root.setscale = null;
_root.maxspeed = null;
}
Symbol 98 Button
on (release) {
_root.gotoAndPlay("menu");
}