Frame 1
_global.sound = 1;
var core = this;
var make_sound = function (mc_name, depth, volume, name) {
var _local2 = core.createEmptyMovieClip(mc_name, depth);
var _local1 = new Sound(_local2);
_local1.setVolume(volume);
_local1.attachSound(name);
return(_local1);
};
var jump = make_sound("jump", 200, 100, "jump");
var smash = make_sound("die", 201, 100, "die");
var mariodie = make_sound("stomp", 202, 100, "stomp");
var bgm = make_sound("background", 203, 100, "background");
var gameover = make_sound("gameover", 204, 100, "gameover");
_root.core.smash.start(0, 1);
gotost.onRelease = function () {
getURL ("http://www.sugartoast.com/", "_blank");
};
Frame 39
stop();
Instance of Symbol 58 MovieClip [title] in Frame 39
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay(40);
}
}
Frame 40
this.onEnterFrame = function () {
_global.score = 0;
_root.score.text = _global.score;
togglesound.onRelease = function () {
if (_global.sound == 0) {
jump.setVolume(100);
smash.setVolume(100);
mariodie.setVolume(100);
bgm.setVolume(100);
gameover.setVolume(100);
_global.sound = 1;
} else if (_global.sound == 1) {
jump.setVolume(0);
smash.setVolume(0);
mariodie.setVolume(0);
bgm.setVolume(0);
gameover.setVolume(0);
_global.sound = 0;
}
};
sugar.onRelease = function () {
getURL ("http://www.sugartoast.com/", "_blank");
};
};
Frame 57
function make() {
d = _root.getNextHighestDepth();
m = _root.attachMovie("mario", d, d);
m._y = 336;
m._x = -200;
}
function make2() {
d2 = _root.getNextHighestDepth();
l = _root.attachMovie("luigi", d2, d2);
l._y = 336;
l._x = 700;
}
stop();
_global.name = "Test";
_global.dead = 0;
c = 0;
r = 1;
c2 = 0;
r2 = 1;
gametime = 0;
deadcount = 0;
this.onEnterFrame = function () {
gametime++;
r = r + 0.1;
c = c + r;
ran = random(5000);
if ((c > ran) and (_global.dead == 0)) {
this.make();
c = 0;
}
if (gametime >= 720) {
r2 = r2 + 0.1;
c2 = c2 + r2;
ran2 = random(5000);
if ((c2 > ran2) and (_global.dead == 0)) {
this.make2();
c2 = 0;
}
}
if (_global.dead == 1) {
deadcount++;
if (deadcount == 48) {
_root.gotoAndStop(58);
}
}
};
Instance of Symbol 45 MovieClip [goomba] "goomba" in Frame 57
onClipEvent (load) {
_global.score = 0;
diecount = 0;
speed = 5;
_root.core.bgm.start(0, 99);
stop();
}
onClipEvent (enterFrame) {
moving = 1;
if (_global.dead == 1) {
diecount++;
if (diecount >= 12) {
this._y = 1000;
}
}
if ((Key.isDown(37) and (_global.dead == 0)) and (this._x >= 0)) {
this._x = this._x - speed;
} else if ((Key.isDown(39) and (_global.dead == 0)) and (this._x <= 468)) {
this._x = this._x + speed;
} else {
moving = 0;
}
if (moving) {
if (this._currentframe == 4) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(_currentframe + 1);
}
}
}
Frame 58
playonsugar.onRelease = function () {
getURL ("http://www.sugartoast.com/", "_blank");
};
if (_global.score == 0) {
_root.rank.text = "RANK: SUICIDAL GOOMBA\n\n(YOU KIND OF SCREWED UP...HORRIBLY)";
} else if (_global.score < 2) {
_root.rank.text = "RANK: FAILTASTIC GOOMBA\n\n(REMEMBER...ARROW KEYS)";
} else if (_global.score < 5) {
_root.rank.text = "RANK: NOT SO GREAT GOOMBA\n\n(NOTHING TO BRAG ABOUT)";
} else if (_global.score < 9) {
_root.rank.text = "RANK: STILL NOT SO GREAT GOOMBA\n\n(STILL NOTHING TO BRAG ABOUT)";
} else if (_global.score < 14) {
_root.rank.text = "RANK: SLACKER GOOMBA\n\n(YOU'LL MOVE WHEN YOU WANT TO)";
} else if (_global.score < 20) {
_root.rank.text = "RANK: THAT ONE GOOMBA\n\n(FROM THAT ONE LEVEL)";
} else if (_global.score < 30) {
_root.rank.text = "RANK: AVERAGE GOOMBA\n\n(THAT'S ONE MEAN GOOMBA)";
} else if (_global.score < 40) {
_root.rank.text = "RANK: GOODISH GOOMBA\n\n(DECENT, DECENT)";
} else if (_global.score < 50) {
_root.rank.text = "RANK: GOOMBA GOOMBA\n\n(THE POWER OF 2 GOOMBAS)";
} else if (_global.score < 60) {
_root.rank.text = "RANK: GOOMBA OF DOOM\n\n(DOOOOOOOM!!!)";
} else if (_global.score < 69) {
_root.rank.text = "RANK: HIPPIE GOOMBA\n\n(IN THE 60'S)";
} else if (_global.score == 69) {
_root.rank.text = "RANK: DIRTY GOOMBA\n\n(YOU EXPECTED GOOMBAS TO BE CLEAN?)";
} else if (_global.score < 80) {
_root.rank.text = "RANK: DELUXE GOOMBA\n\n(NOT REALLY SURE WHAT THAT MEANS)";
} else if (_global.score < 90) {
_root.rank.text = "RANK: AWESOME GOOMBA\n\n(JUST...AWESOME)";
} else if (_global.score < 100) {
_root.rank.text = "RANK: NINJA GOOMBA\n\n(LACKING OUTLINES TO STAY HIDDEN)";
} else if (_global.score < 115) {
_root.rank.text = "RANK: GREAT GOOMBA THE THIRD\n\n(THAT'S PRETTY FANCY)";
} else if (_global.score < 130) {
_root.rank.text = "RANK: SUPER GOOMBA\n\n(APPARENTLY KILLS PEOPLE BY TOUCH)";
} else if (_global.score < 150) {
_root.rank.text = "RANK: MASTER GOOMBA\n\n(TAKE THAT ITALIANS)";
} else {
_root.rank.text = "RANK: ULTIMATE GOOMBA\n\n(IT'S OKAY TO STOP PLAYING NOW)";
}
Instance of Symbol 38 MovieClip [over] in Frame 58
onClipEvent (load) {
_root.core.gameover.start(0, 1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.core.gameover.stop();
_root.gotoAndPlay(40);
}
}
Symbol 25 MovieClip [mario] Frame 1
mariodead = 0;
fall = 0;
this.onEnterFrame = function () {
if ((this._y > 520) or (this._x > 520)) {
this.removeMovieClip();
}
if (mariodead == 0) {
_y = (_y + yspeed);
_x = (_x + 15);
if (_y >= 336) {
if (_currentframe == 4) {
gotoAndPlay (1);
}
_y = 336;
if (random(20) == 5) {
_root.core.jump.start(0, 1);
yspeed = -25;
}
} else {
gotoAndStop (4);
yspeed = yspeed + 5;
}
if (this.hitTest(_parent.goomba) and (_global.dead == 0)) {
if ((_y >= 336) or (yspeed <= 0)) {
this.gotoAndStop(5);
yspeed = -25;
mariodead = 1;
_root.core.smash.start(0, 1);
_global.score++;
_root.score.text = _global.score;
} else {
_root.goomba.gotoAndStop(5);
stopAllSounds();
_root.core.mariodie.start(0, 1);
_global.dead = 1;
}
}
}
};
Symbol 25 MovieClip [mario] Frame 5
this.onEnterFrame = function () {
if ((this._y > 520) or (this._x > 520)) {
this.removeMovieClip();
}
_y = ((_y - 25) + fall);
fall = fall + 5;
};
Symbol 36 MovieClip [luigi] Frame 1
mariodead = 0;
fall = 0;
this.onEnterFrame = function () {
if ((this._y > 520) or (this._x < -50)) {
this.removeMovieClip();
}
if (mariodead == 0) {
_y = (_y + yspeed);
_x = (_x - 15);
if (_y >= 336) {
if (_currentframe == 4) {
gotoAndPlay (1);
}
_y = 336;
if (random(20) == 5) {
_root.core.jump.start(0, 1);
yspeed = -25;
}
} else {
gotoAndStop (4);
yspeed = yspeed + 5;
}
if (this.hitTest(_parent.goomba) and (_global.dead == 0)) {
if ((_y >= 336) or (yspeed <= 0)) {
this.gotoAndStop(5);
yspeed = -25;
mariodead = 1;
_root.core.smash.start(0, 1);
_global.score++;
_root.score.text = _global.score;
} else {
_root.goomba.gotoAndStop(5);
stopAllSounds();
_root.core.mariodie.start(0, 1);
_global.dead = 1;
}
}
}
};
Symbol 36 MovieClip [luigi] Frame 5
this.onEnterFrame = function () {
if ((this._y > 520) or (this._x < -50)) {
this.removeMovieClip();
}
_y = ((_y - 25) + fall);
fall = fall + 5;
};
Symbol 45 MovieClip [goomba] Frame 5
this.onEnterFrame = function () {
this.removeMovieClip();
};