Frame 1
stop();
Frame 2
if (allowsounds == undefined) {
allowsounds = 100;
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
total = _root.getBytesTotal();
_root.stop();
_x = (-_width);
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = (loaded / total) * 100;
_x = (percent * 7.2);
_root.p = Math.round(percent);
if (percent == 100) {
_root.px0._alpha = _root.px0._alpha - 5;
_root.px1._alpha = _root.px1._alpha - 5;
_alpha = (_alpha - 5);
if ((_root.px0._alpha <= 0) && (_root.px1._alpha <= 0)) {
_root.play();
}
}
}
Instance of Symbol 22 MovieClip "px0" in Frame 2
onClipEvent (enterFrame) {
sp = 10;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip "px1" in Frame 2
onClipEvent (enterFrame) {
sp = 10;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Frame 10
function addSound(link) {
soundbase = new Sound(this);
music01 = soundbase.attachSound(link);
soundbase.start(0, 99);
soundbase.setVolume(allowsounds);
}
function stopSound() {
soundbase.stop();
}
stop();
d = SharedObject.getLocal("mario_snow");
hiscore = d.data.hiscore;
if (hiscore == undefined) {
hiscore = 0;
}
Frame 11
init = function () {
width = Stage.width;
height = Stage.height;
max_snowsize = 10;
snowflakes = 100;
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
t._x = (-(width / 2)) + (Math.random() * (1.5 * width));
t._y = (-(height / 2)) + (Math.random() * (1.5 * height));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
undo = function () {
removeMovieClip("wario");
removeMovieClip("mario");
removeMovieClip("box");
removeMovieClip("box2");
removeMovieClip("box3");
removeMovieClip("box4");
stopAllSounds();
snowflakes = 100;
i = 0;
while (i < snowflakes) {
removeMovieClip("snow" + i);
i++;
}
_root.play();
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (height + 10)) {
this._y = -20;
}
if (this._x > (width + 20)) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
}
};
init();
this.onUnload = undo;
this.onExitFrame;
mario.onUnload = undo;
stop();
stopSound();
addSound("gamemusic");
Instance of Symbol 13 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 0.5;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 13 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 0.5;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 1;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 1;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 2;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 2;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 5;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 5;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 7;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 7;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 10;
_x = (_x - sp);
if (_x < -720) {
_x = 0;
}
}
Instance of Symbol 22 MovieClip in Frame 11
onClipEvent (enterFrame) {
sp = 10;
_x = (_x - sp);
if (_x < 0) {
_x = 720;
}
}
Instance of Symbol 50 MovieClip "box" in Frame 11
onClipEvent (load) {
function respawn() {
r = random(_totalframes + 1);
_x = (720 + _width);
this.gotoAndStop(r);
if (r == 1) {
plane = 5;
sp = 10;
}
if (r == 2) {
plane = 4;
sp = 7;
}
if (r == 3) {
plane = 3;
sp = 5;
}
if (r == 4) {
plane = 2;
sp = 2;
}
if (r == 5) {
plane = 1;
sp = 1;
}
this.swapDepths(plane);
}
t = 0;
sp = 10;
}
onClipEvent (enterFrame) {
if (t == 0) {
respawn();
t = 1;
}
_x = (_x - sp);
if (_x < (-_width)) {
respawn();
}
}
Instance of Symbol 50 MovieClip "box2" in Frame 11
onClipEvent (load) {
function respawn() {
r = random(_totalframes + 1);
_x = (720 + _width);
this.gotoAndStop(r);
if (r == 1) {
plane = 5;
sp = 10;
}
if (r == 2) {
plane = 4;
sp = 7;
}
if (r == 3) {
plane = 3;
sp = 5;
}
if (r == 4) {
plane = 2;
sp = 2;
}
if (r == 5) {
plane = 1;
sp = 1;
}
this.swapDepths(plane);
}
t = 0;
sp = 10;
}
onClipEvent (enterFrame) {
if (t == 0) {
respawn();
t = 1;
}
_x = (_x - sp);
if (_x < (-_width)) {
respawn();
}
}
Instance of Symbol 50 MovieClip "box3" in Frame 11
onClipEvent (load) {
function respawn() {
r = random(_totalframes + 1);
_x = (720 + _width);
this.gotoAndStop(r);
if (r == 1) {
plane = 5;
sp = 10;
}
if (r == 2) {
plane = 4;
sp = 7;
}
if (r == 3) {
plane = 3;
sp = 5;
}
if (r == 4) {
plane = 2;
sp = 2;
}
if (r == 5) {
plane = 1;
sp = 1;
}
this.swapDepths(plane);
}
t = 0;
sp = 10;
}
onClipEvent (enterFrame) {
if (t == 0) {
respawn();
t = 1;
}
_x = (_x - sp);
if (_x < (-_width)) {
respawn();
}
}
Instance of Symbol 50 MovieClip "box4" in Frame 11
onClipEvent (load) {
function respawn() {
r = random(_totalframes + 1);
_x = (720 + _width);
this.gotoAndStop(r);
if (r == 1) {
plane = 5;
sp = 10;
}
if (r == 2) {
plane = 4;
sp = 7;
}
if (r == 3) {
plane = 3;
sp = 5;
}
if (r == 4) {
plane = 2;
sp = 2;
}
if (r == 5) {
plane = 1;
sp = 1;
}
this.swapDepths(plane);
}
t = 0;
sp = 10;
}
onClipEvent (enterFrame) {
if (t == 0) {
respawn();
t = 1;
}
_x = (_x - sp);
if (_x < (-_width)) {
respawn();
}
}
Instance of Symbol 18 MovieClip "mario" in Frame 11
onClipEvent (load) {
walkspeed = 4;
plane = 5;
d = false;
delay = 500;
n = new Date();
st = n.getTime();
if (_root.hiscore == undefined) {
_root.hiscore = 0;
}
}
onClipEvent (enterFrame) {
if (d == true) {
_root.undo();
}
d = new Date();
_root.score = d.getTime() - st;
if (_root.score > _root.hiscore) {
_root.hiscore = _root.score;
}
t = d.getTime();
if (lastpressed == undefined) {
lastpressed = t;
}
_root.plane = plane;
_root.walkspeed = walkspeed;
this.stop();
if (t > (lastpressed + delay)) {
if (Key.isDown(38) && (_currentframe != 5)) {
this.nextFrame();
walkspeed = walkspeed - 0.75;
plane = plane - 1;
lastpressed = t;
this.swapDepths(plane);
}
if (Key.isDown(40) && (_currentframe != 1)) {
this.prevFrame();
walkspeed = walkspeed + 0.75;
plane = plane + 1;
lastpressed = t;
this.swapDepths(plane);
}
}
if (Key.isDown(37)) {
_x = (_x - walkspeed);
}
if (Key.isDown(39)) {
_x = (_x + walkspeed);
}
if (_x < 0) {
_x = 0;
}
if (_x > Stage.width) {
_x = Stage.width;
}
if (this.hitTest(_root.wario) && (plane == _root.wario.plane)) {
_root.undo();
}
if (this.hitTest(_root.box) && (plane == _root.box.plane)) {
_root.undo();
}
if (this.hitTest(_root.box2) && (plane == _root.box2.plane)) {
_root.undo();
}
if (this.hitTest(_root.box3) && (plane == _root.box3.plane)) {
_root.undo();
}
if (this.hitTest(_root.box4) && (plane == _root.box4.plane)) {
_root.undo();
}
}
Instance of Symbol 58 MovieClip "wario" in Frame 11
onClipEvent (load) {
function respawn() {
r = random(_totalframes + 1);
_x = (720 + (_width / 2));
this.gotoAndStop(r);
if (r == 1) {
plane = 5;
}
if (r == 2) {
plane = 4;
}
if (r == 3) {
plane = 3;
}
if (r == 4) {
plane = 2;
}
if (r == 5) {
plane = 1;
}
this.swapDepths(plane);
}
sp = 20;
respawn();
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
respawn();
t = 1;
}
_x = (_x - sp);
if (_x < (-720 + (_width / 2))) {
respawn();
}
}
Frame 108
stop();
d = SharedObject.getLocal("mario_snow");
if (d.data.hiscore == undefined) {
d.data.hiscore = 0;
}
if (_root.hiscore > d.data.hiscore) {
trace((_root.hiscore + " > ") + d.data.hiscore);
stat = ((("By the way, you beat you old score (" + d.data.hiscore) + ") with ") + _root.hiscore) + "!";
d.data.hiscore = _root.hiscore;
} else {
trace((_root.hiscore + " < ") + d.data.hiscore);
stat = "No, you won't get anything for that.";
}
Symbol 9 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 26 Button
on (release) {
getURL ("http://giraffen93.newgrounds.com", "_blank");
}
Symbol 35 Button
on (release) {
d = SharedObject.getLocal("mario_snow");
d.data.hiscore = 0;
gotoAndStop (2);
}
Instance of Symbol 38 MovieClip in Symbol 41 MovieClip Frame 1
onClipEvent (load) {
function changeq() {
_quality = q;
_root.qt = q;
trace(("Quality set to " + q) + "!");
}
sy = _y;
}
onClipEvent (enterFrame) {
if (_y < sy) {
_y = sy;
}
if (_y > sy) {
_y = sy;
}
if (_x < -50) {
_x = -50;
}
if (_x > 50) {
_x = 50;
}
if (_x > -50) {
q = "LOW";
}
if (_x > -25) {
q = "MEDIUM";
}
if (_x > 0) {
q = "HIGH";
}
if (_x > 25) {
q = "BEST";
}
}
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
changeq();
}
on (releaseOutside) {
stopDrag();
changeq();
}
Instance of Symbol 38 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
function changeq() {
_root.allowsounds = q;
trace(("Volume set to " + q) + "!");
}
sy = _y;
_x = (_root.allowsounds - 50);
}
onClipEvent (enterFrame) {
if (_y < sy) {
_y = sy;
}
if (_y > sy) {
_y = sy;
}
if (_x < -50) {
_x = -50;
}
q = _x + 50;
}
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
changeq();
}
on (releaseOutside) {
stopDrag();
changeq();
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();