Frame 1
NewgroundsAPI.connectMovie(6008);
NewgroundsAPI.setMovieVersion("1.5");
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
_root.Points = 0;
}
Frame 5
function time_to_string(time_to_convert) {
elapsed_hours = Math.floor(time_to_convert / 3600000);
remaining = time_to_convert - (elapsed_hours * 3600000);
elapsed_minutes = Math.floor(remaining / 60000);
remaining = remaining - elapsed_minutes;
elapsed_seconds = Math.floor(remaining / 1000);
remaining = remaining - elapsed_seconds;
elapsed_fs = Math.floor(remaining / 10);
hundredths = elapsed_fs.toString();
return(hundredths);
}
start_time = getTimer();
onEnterFrame = function () {
elapsed_time = getTimer() - start_time;
_root.count.text = time_to_string(elapsed_time) / 100;
};
stop();
_root.scored = _root.scores.text;
_root.counted = _root.count.text;
Instance of Symbol 109 MovieClip "moon" in Frame 5
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
if (_root.arg) {
unloadMovie (this);
}
}
Instance of Symbol 112 MovieClip "ground" in Frame 5
onClipEvent (load) {
doom = false;
_root.scored = 0;
_root.counted = 0;
}
onClipEvent (enterFrame) {
_root.scores.text = _root.score;
if ((!this.hitTest(_root.char._x, _root.char._y, true)) && (doom == false)) {
doom = true;
unloadMovie (_root.tutland);
this.play();
this.changeplan.play();
_root.moon.laser.play();
_root.moon.moonbase.play();
}
}
Instance of Symbol 114 MovieClip "bomb" in Frame 5
onClipEvent (enterFrame) {
if (_root.arg) {
unloadMovie (this);
}
}
Instance of Symbol 121 MovieClip "char" in Frame 5
onClipEvent (load) {
power = 0.5;
friction = 0.97;
xspeed = 0;
yspeed = 0;
ypow = 0;
xpow = 0;
_root.score = 0;
}
onClipEvent (enterFrame) {
_root.scored = _root.scores.text;
_root.counted = _root.count.text;
gravity = 2 / Math.log(Math.sqrt(Math.pow(this._x - _root.ground._x, 2) + Math.pow(this._y - _root.ground._x, 2)));
if (_root.wallu.hitTest(_x, _y, this)) {
this._y = 640;
}
if (_root.walld.hitTest(_x, _y, this)) {
this._y = -40;
}
if (_root.walll.hitTest(_x, _y, this)) {
this._x = 640;
}
if (_root.wallr.hitTest(_x, _y, this)) {
this._x = -40;
}
if ((_root.ground._y != this._y) && (_root.ground._x != this._x)) {
tea = Math.atan(Math.abs(_root.ground._x - this._x) / Math.abs(_root.ground._y - this._y));
}
if ((this._x >= _root.ground._x) && (this._y <= _root.ground._y)) {
this._rotation = (tea * 180) / Math.PI;
}
if ((this._x <= _root.ground._x) && (this._y <= _root.ground._y)) {
this._rotation = 360 - ((tea * 180) / Math.PI);
}
if ((this._x >= _root.ground._x) && (this._y >= _root.ground._y)) {
this._rotation = 180 - ((tea * 180) / Math.PI);
}
if ((this._x <= _root.ground._x) && (this._y >= _root.ground._y)) {
this._rotation = 180 + ((tea * 180) / Math.PI);
}
xgrav = Math.sin(tea) * gravity;
ygrav = Math.cos(tea) * gravity;
xpow = Math.sin(tea) * power;
ypow = Math.cos(tea) * power;
ypowr = Math.sin(tea) * power;
xpowr = Math.cos(tea) * power;
if ((this._x <= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + xgrav;
yspeed = yspeed + ygrav;
}
if ((this._x >= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + (-xgrav);
yspeed = yspeed + (-ygrav);
}
if ((this._x <= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + xgrav;
yspeed = yspeed + (-ygrav);
}
if ((this._x >= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + (-xgrav);
yspeed = yspeed + ygrav;
}
if (_root.ground.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
}
if (_root.ground.groundred.hitTest(_x, _y, true) || (_root.moon.noom.hitTest(this))) {
_root.scorep = _root.scores.text;
_root.countp = _root.count.text;
_root.gotoAndStop("score");
}
if (Key.isDown(32)) {
if ((this._x <= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + (-xpow);
yspeed = yspeed + (-ypow);
}
if ((this._x >= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + xpow;
yspeed = yspeed + ypow;
}
if ((this._x <= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + (-xpow);
yspeed = yspeed + ypow;
}
if ((this._x >= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + xpow;
yspeed = yspeed + (-ypow);
}
_root.char.rocket._visible = true;
} else {
_root.char.rocket._visible = false;
}
if (Key.isDown(39)) {
if ((this._x <= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + (xpowr / 2);
yspeed = yspeed + ((-ypowr) / 2);
}
if ((this._x >= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + ((-xpowr) / 2);
yspeed = yspeed + (ypowr / 2);
}
if ((this._x <= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + ((-xpowr) / 2);
yspeed = yspeed + ((-ypowr) / 2);
}
if ((this._x >= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + (xpowr / 2);
yspeed = yspeed + (ypowr / 2);
}
_root.char.lrocket._visible = true;
} else {
_root.char.lrocket._visible = false;
}
if (Key.isDown(37)) {
if ((this._x <= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + ((-xpowr) / 2);
yspeed = yspeed + (ypowr / 2);
}
if ((this._x >= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + (xpowr / 2);
yspeed = yspeed + ((-ypowr) / 2);
}
if ((this._x <= _root.ground._x) && (this._y >= _root.ground._y)) {
xspeed = xspeed + (xpowr / 2);
yspeed = yspeed + (ypowr / 2);
}
if ((this._x >= _root.ground._x) && (this._y <= _root.ground._y)) {
xspeed = xspeed + ((-xpowr) / 2);
yspeed = yspeed + ((-ypowr) / 2);
}
_root.char.rrocket._visible = true;
} else {
_root.char.rrocket._visible = false;
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * friction;
yspeed = yspeed * friction;
}
Instance of Symbol 127 MovieClip "life" in Frame 5
onClipEvent (enterFrame) {
if (_root.arg) {
unloadMovie (this);
}
}
Instance of Symbol 138 MovieClip "tutvoid" in Frame 5
onClipEvent (enterFrame) {
if (_root.arg) {
unloadMovie (this);
}
}
Instance of Symbol 140 MovieClip "tutmoon" in Frame 5
onClipEvent (enterFrame) {
if (_root.arg) {
unloadMovie (this);
}
}
Frame 6
_root.timec.text = _root.counted;
_root.scorec.text = _root.scored;
_root.ratioc.text = _root.scored / _root.counted;
_root.scorec.text = _root.scorep;
_root.countc.text = _root.countp;
_root.rasio.text = _root.scorep / _root.countp;
Instance of Symbol 4 MovieClip "hitzone" in Symbol 6 MovieClip [coin] Frame 1
onClipEvent (enterFrame) {
if (_root.char.hitTest(_root.coin.hitzone)) {
_root.score = _root.score + 1;
_root.coin._x = Math.round(Math.random() * 650);
_root.coin._y = Math.round(Math.random() * 650);
unloadMovie (_root.tutorial);
unloadMovie (_root.tutvoid);
unloadMovie (_root.tutmoon);
scoreSound = new Sound(this);
scoreSound.attachSound("point");
scoreSound.start(0, 1);
}
if (_root.ground.hitTest(_root.coin.hitzone)) {
_root.coin._x = Math.round(Math.random() * 650);
_root.coin._y = Math.round(Math.random() * 650);
}
}
Symbol 19 Button
on (release) {
NewgroundsAPI.loadMySite();
}
Symbol 28 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._yscale = PercentLoaded;
} else {
this.gotoAndPlay(3);
}
Symbol 28 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 28 MovieClip Frame 73
_root.gotoAndStop("ad");
Symbol 36 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 45 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 51 Button
on (release) {
NewgroundsAPI.loadMySite();
}
Symbol 53 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 65 Button
on (release) {
gotoAndStop ("select");
}
Symbol 76 MovieClip Frame 20
stop();
Symbol 83 MovieClip Frame 20
stop();
Symbol 89 Button
on (release) {
gotoAndStop ("game");
}
Symbol 91 Button
on (release) {
_root.arg = false;
}
Symbol 95 Button
on (release) {
_root.arg = true;
}
Symbol 109 MovieClip Frame 1
if (_root.moon.laser.hitTest(this)) {
_root.life.nextFrame();
}
Instance of Symbol 102 MovieClip "laser" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.life.nextFrame();
}
}
Instance of Symbol 106 MovieClip "moonbase" in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 10
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 10
stop();
Instance of Symbol 4 MovieClip "hitzone" in Symbol 114 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.char.hitTest(_root.bomb.hitzone)) {
if (_root.score >= 1) {
_root.score = _root.score - 1;
}
_root.bomb._x = Math.round(Math.random() * 650);
_root.bomb._y = Math.round(Math.random() * 650);
_root.life.nextFrame();
unloadMovie (_root.tutorial);
unloadMovie (_root.moon.tutorial);
scoreSound = new Sound(this);
scoreSound.attachSound("unpoint");
scoreSound.start(0, 1);
}
if (_root.ground.hitTest(_root.bomb.hitzone)) {
_root.bomb._x = Math.round(Math.random() * 650);
_root.bomb._y = Math.round(Math.random() * 650);
}
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 100
_root.scorep = _root.scores.text;
_root.countp = _root.count.text;
_root.gotoAndStop("score");
Symbol 130 Button
on (release) {
gotoAndStop ("ad");
}
Symbol 147 Button
on (release) {
gotoAndStop ("game");
}