Combined Code
movieClip 8 fattyMC {
}
movieClip 14 cursor {
}
movieClip 18 {
frame 7 {
gotoAndPlay('Small');
}
}
movieClip 21 budMC {
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 51 gameMC {
frame 1 {
stop();
}
frame 35 {
stop();
}
frame 48 {
stop();
}
}
movieClip 55 Grinders {
}
movieClip 60 frog {
frame 5 {
if (this._y >= 180) {
gotoAndPlay('Chopped');
} else {
gotoAndPlay('Falling');
}
}
}
movieClip 92 {
}
movieClip 93 {
frame 1 {
stop();
}
frame 13 {
gotoAndPlay('Bowser');
}
}
movieClip 99 {
}
movieClip 100 {
}
movieClip 102 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay('Toaster');
}
}
movieClip 113 {
}
movieClip 132 {
}
movieClip 138 {
frame 1 {
stop();
}
frame 227 {
gotoAndPlay('pigeon');
}
}
movieClip 147 {
}
movieClip 148 {
frame 1 {
stop();
}
frame 76 {
gotoAndPlay('deaf guy');
}
}
movieClip 151 {
}
movieClip 155 {
}
movieClip 162 {
}
movieClip 163 {
}
movieClip 164 {
frame 13 {
gotoAndPlay('Play');
}
}
movieClip 180 {
frame 25 {
gotoAndPlay('Play');
}
}
movieClip 183 {
}
movieClip 187 {
}
movieClip 189 {
}
movieClip 202 {
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 222 {
}
movieClip 227 {
}
movieClip 232 {
}
movieClip 234 {
}
movieClip 236 {
}
movieClip 238 {
}
movieClip 241 {
}
movieClip 242 {
frame 415 {
gotoAndPlay('Play');
}
}
movieClip 247 {
}
movieClip 281 {
frame 69 {
gotoAndPlay('Play');
}
}
movieClip 292 {
}
movieClip 295 {
}
movieClip 296 {
}
movieClip 300 {
}
movieClip 302 {
}
movieClip 306 {
}
movieClip 369 {
}
movieClip 403 {
}
movieClip 405 {
frame 10 {
gotoAndPlay('Play');
}
}
movieClip 406 {
frame 19 {
gotoAndPlay('Play');
}
}
movieClip 422 {
}
movieClip 427 {
}
movieClip 433 {
}
movieClip 438 {
}
movieClip 439 {
}
movieClip 447 {
}
movieClip 450 {
}
movieClip 457 {
frame 7 {
gotoAndPlay(1);
}
}
movieClip 463 {
}
movieClip 468 {
frame 51 {
gotoAndPlay('Play');
}
}
movieClip 475 {
}
movieClip 482 {
}
movieClip 488 {
}
movieClip 496 {
frame 240 {
prevFrame();
}
}
movieClip 498 {
}
movieClip 499 {
frame 18 {
stop();
}
}
movieClip 500 level {
frame 1 {
_root.infoTxt.text = 'This ain\'t too bad...';
}
frame 3 {
stop();
}
frame 8 {
_root.infoTxt.text = 'Ok, shrooms kicking in...';
}
frame 10 {
stop();
}
frame 16 {
_root.infoTxt.text = 'And that\'s just creepy.';
}
frame 18 {
stop();
}
frame 24 {
_root.infoTxt.text = 'Free the Plant!!!';
}
frame 26 {
stop();
}
frame 32 {
_root.infoTxt.text = 'ha ha...falling frogs.';
}
frame 34 {
stop();
}
frame 39 {
_root.infoTxt.text = 'Ghanja Hero: Amsterdam Tour';
}
frame 41 {
offsetSong.start();
stop();
}
frame 45 {
_root.infoTxt.text = 'I should press 4 now.';
}
frame 47 {
stop();
}
frame 52 {
_root.infoTxt.text = 'Oh hell no...';
}
frame 54 {
stop();
}
frame 57 {
_root.infoTxt.text = 'Smackie the frog!';
}
frame 59 {
stop();
}
}
movieClip 503 {
}
button 510 {
on (release) {
_root.play();
song = new Sound();
song.attachSound('8 bit dre');
song.start(0, 500);
}
}
movieClip 511 preloader {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 513 {
}
movieClip 520 {
}
movieClip 521 {
}
instance of movieClip 18 {
onClipEvent (rollOver) {
this.gotoAndPlay('Large');
}
onClipEvent (rollOut) {
this.gotoAndPlay('Small');
}
}
frame 2 {
function papersTrippin() {
if (score > 45) {
level.papersVisuals.play();
} else {
level.papersVisuals.gotoAndStop(1);
}
}
function stemsTrippin() {
if (score > 75) {
level.stemsVisuals.play();
} else {
level.stemsVisuals.gotoAndStop(1);
}
}
function toothpickTrippin() {
if (score > 115) {
level.toothpickVisuals.play();
} else {
level.toothpickVisuals.gotoAndStop(1);
}
}
function weedTrippin() {
if (score > 170) {
level.weedVisuals.play();
} else {
level.weedVisuals.gotoAndStop(1);
}
}
function levelChange() {
if (score < 50) {
level.gotoAndPlay('Level One');
} else {
if (papersLeft < 1) {
level.gotoAndPlay('Level One');
} else {
if (score > 49 && score < 100) {
level.gotoAndPlay('Level Two');
} else {
if (score > 99 && score < 150) {
level.gotoAndPlay('Level Three');
} else {
if (score > 149 && score < 200) {
level.gotoAndPlay('Level Four');
} else {
if (score > 199 && score < 250) {
level.gotoAndPlay('Level Five');
} else {
if (score > 249 && score < 300) {
level.gotoAndPlay('Level Six');
} else {
if (score > 299 && score < 350) {
level.gotoAndPlay('Level Seven');
} else {
if (score > 349 && score < 400) {
level.gotoAndPlay('Level Eight');
} else {
if (score > 400 && score < 420) {
level.gotoAndPlay('Level Nine');
} else {
if (score >= 420) {
gameRunning = false;
gameBeat = true;
_root.gotoAndPlay('Ending');
}
}
}
}
}
}
}
}
}
}
}
}
function gameOver() {
--papersLeft;
papersTxt.text = 'Papers Left: ' + papersLeft;
delete game.onEnterFrame;
gameRunning = false;
if (papersLeft < 1) {
score = 0;
papersLeft = difNum;
gameMC.gotoAndStop('game over');
} else {
gameMC.gotoAndStop('lost a paper');
}
gameMC.highScoreText.text = 'High Score: ' + highScore;
}
function placebud(budMC) {
do {
var xbud = random(gameWidth);
var ybud = random(gameHeight);
} while (map[xbud][ybud]);
if (budMC == 'new') {
budMC = game.bud.attachMovie('budMC', budCounter, budCounter);
++budCounter;
}
budMC._x = xbud * blockSize;
budMC._y = ybud * blockSize;
map[xbud][ybud] = budMC;
}
function startGame() {
var v2 = false;
x = int(gameWidth / 2);
y = gameHeight - 2;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var v1 = 0;
while (v1 < gameWidth) {
map[v1] = new Array();
++v1;
}
turnQueue = new Array();
game.createEmptyMovieClip('bud', 1);
game.createEmptyMovieClip('s', 2);
budCounter = 0;
fattyBlockCounter = 0;
currentDirection = 1;
fattyEraseCounter = -1;
placebud('new');
game.onEnterFrame = main;
gameRunning = true;
if (papersLeft == 0) {
score = 0;
papersLeft = 3;
scoreTxt.text = 'Score: ' + score;
papersTxt.text = 'Papers Left: ' + papersLeft;
}
}
function main() {
scoreTxt.text = 'Score: ' + score;
papersTxt.text = 'Papers Left: ' + papersLeft;
levelChange();
papersTrippin();
stemsTrippin();
toothpickTrippin();
weedTrippin();
if (turnQueue.length > 0) {
var v2 = turnQueue.pop();
if (v2 % 2 != currentDirection % 2) {
currentDirection = v2;
}
}
x += xVelocity[currentDirection];
y += yVelocity[currentDirection];
if (map[x][y] != FATTY_BLOCK && x > -1 && x < gameWidth && y > -1 && y < gameHeight) {
game.s.attachMovie('fattyMC', fattyBlockCounter, fattyBlockCounter, {'_x': x * blockSize, '_y': y * blockSize});
++fattyBlockCounter;
if (typeof map[x][y] == 'movieclip') {
score += 5;
scoreTxt.text = 'Score: ' + score;
coughSound = new Sound();
coughSound.attachSound('cough');
coughSound.start();
if (score >= highScore) {
highScore = score;
}
fattyEraseCounter -= 5;
placebud(map[x][y]);
}
map[x][y] = FATTY_BLOCK;
var v1 = game.s[fattyEraseCounter];
if (v1) {
delete map[v1._x / blockSize][v1._y / blockSize];
v1.removeMovieClip();
}
++fattyEraseCounter;
} else {
gameOver();
}
}
stop();
Mouse.hide();
startDrag('cursor', true);
highScore = 50;
var papersLeft;
testNum = 1;
isPaused = false;
blockSize = 8;
gameHeight = 35;
gameWidth = 55;
FATTY_BLOCK = 1;
score = 0;
var startTrippin = true;
var difNum;
var gameBeat = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
var v1 = Key.getCode();
testTxt.text = v1;
if (v1 == 49) {
stopAllSounds();
song = new Sound();
song.attachSound('8 bit nirvana');
song.start(0, 500);
} else {
if (v1 == 50) {
stopAllSounds();
song = new Sound();
song.attachSound('all we need');
song.start(0, 500);
} else {
if (v1 == 51) {
stopAllSounds();
song = new Sound();
song.attachSound('8 bit dre');
song.start(0, 500);
} else {
if (v1 == 52) {
stopAllSounds();
song = new Sound();
song.attachSound('offset song');
song.start(0, 500);
} else {
if (v1 == 53) {
stopAllSounds();
song = new Sound();
song.attachSound('inhale');
song.start(0, 500);
} else {
if (v1 == 54) {
stopAllSounds();
}
}
}
}
}
}
if (v1 > 36 && v1 < 41) {
if (game.onEnterFrame != undefined) {
if (v1 - 37 != turnQueue[0]) {
turnQueue.unshift(v1 - 37);
}
}
} else {
if (v1 == 32) {
if (!gameRunning) {
startGame();
gameMC.gotoAndPlay('grab a paper');
}
}
}
if (v1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
isPaused = true;
delete game.onEnterFrame;
gameMC.gotoAndStop('paused');
} else {
isPaused = false;
game.onEnterFrame = main;
gameMC.gotoAndStop('hide');
}
}
}
};
Key.addListener(keyListener);
}
movieClip 585 {
}
movieClip 589 {
}
movieClip 600 {
}
button 605 {
on (release) {
if (papersLeft == !undefined) {
gotoAndPlay('The Game');
_root.infoTxt.text = 'Starting the Game';
} else {
gotoAndPlay('Settings');
_root.infoTxt.text = 'Choosing Difficulty';
}
}
on (rollOver) {
_root.infoTxt.text = 'Start the Game';
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
button 609 {
on (release) {
gotoAndPlay('Tutorial');
_root.infoTxt.text = 'Teach Me!';
}
on (rollOver) {
_root.infoTxt.text = 'How to Play';
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
button 613 {
on (release) {
if (gameBeat == true) {
gotoAndPlay('Ending');
_root.infoTxt.text = 'Unlocked the Ending Viewer';
} else {
_root.infoTxt.text = 'Roll a joint first!';
}
}
on (rollOver) {
_root.infoTxt.text = 'What could this be?';
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
button 617 {
on (release) {
gotoAndPlay('Credits');
_root.infoTxt.text = 'Giving Credit!';
}
on (rollOver) {
_root.infoTxt.text = 'Credits';
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
button 621 {
on (release) {
gotoAndPlay('Ghanja Hero');
_root.infoTxt.text = 'Never soft, always high.';
}
on (rollOver) {
_root.infoTxt.text = 'Neversoft\'s Next Big Thing!';
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
movieClip 624 {
}
instance of movieClip 624 {
onClipEvent (rollOver) {
_root.infoTxt.text = 'The Weed Tray. Don\'t spill it.';
}
onClipEvent (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
button 628 {
on (release) {
gotoAndPlay('Contacts');
}
on (rollOver) {
infoTxt.text = 'Contact Info';
}
on (rollOut) {
infoTxt.text = 'Click the Leaf';
}
}
button 632 {
on (release) {
if (gameBeat == true) {
gotoAndPlay('Smackie');
_root.infoTxt.text = 'To the LilyPad';
} else {
_root.infoTxt.text = 'Not until you roll that 1st...';
}
}
on (rollOver) {
if (gameBeat == true) {
_root.infoTxt.text = 'Just in case you missed it...';
} else {
_root.infoTxt.text = 'This bud needs more time...';
}
}
on (rollOut) {
_root.infoTxt.text = 'Click the Leaf';
}
}
frame 4 {
gotoAndPlay('Main Menu');
}
movieClip 634 {
}
frame 6 {
stop();
}
button 649 {
on (release) {
getURL('http://www.myspace.com/offsetmetalmusic ', '');
}
on (rollOver) {
infoTxt.text = 'Visit the homepage of Offset!';
}
on (rollOut) {
infoTxt.text = 'Tell me what you want to see in SitG 2!';
}
}
movieClip 656 {
}
movieClip 669 {
}
button 673 {
on (release) {
getURL('http://www.myspace.com/fallinfrog', '');
}
on (rollOver) {
infoTxt.text = 'Visit fallinfrog\'s Myspace Page';
}
on (rollOut) {
infoTxt.text = 'Liked what you saw? Let me know!';
}
}
movieClip 679 {
}
button 682 {
on (release) {
getURL('http://fallinfrog.newgrounds.com/', '');
}
}
button 685 {
on (release) {
gotoAndPlay('Main Menu');
infoTxt.text = 'To the Main Menu!';
}
on (rollOver) {
infoTxt.text = 'Alright, we\'re done here.';
}
on (rollOut) {
infoTxt.text = 'We almost lost you there...';
}
}
frame 8 {
gotoAndPlay('Contacts');
}
button 692 {
on (release) {
this.nextFrame();
}
}
button 693 {
on (release) {
_root.gotoAndPlay('Main Menu');
}
}
button 698 {
on (release) {
this.prevFrame();
}
}
movieClip 704 {
frame 1 {
stop();
}
}
frame 10 {
gotoAndPlay('Tutorial');
}
movieClip 709 {
}
button 711 {
on (release) {
gotoAndPlay('Main Menu');
}
}
frame 12 {
gotoAndPlay('Ghanja Hero');
}
movieClip 726 {
}
movieClip 728 {
}
frame 14 {
stop();
}
frame 15 {
stop();
}
button 741 {
on (release) {
difNum = 5;
papersLeft = 5;
gotoAndPlay('The Game');
}
on (rollOver) {
_root.infoTxt.text = 'EASY MODE';
}
on (rollOut) {
_root.infoTxt.text = 'Choose a Difficulty';
}
}
button 745 {
on (release) {
difNum = 3;
papersLeft = 3;
gotoAndPlay('The Game');
}
on (rollOver) {
_root.infoTxt.text = 'NORMAL MODE';
}
on (rollOut) {
_root.infoTxt.text = 'Choose a Difficulty';
}
}
button 749 {
on (release) {
difNum = 1;
papersLeft = 1;
gotoAndPlay('The Game');
}
on (rollOver) {
_root.infoTxt.text = 'HARD MODE';
}
on (rollOut) {
_root.infoTxt.text = 'Choose a Difficulty';
}
}
button 750 {
on (release) {
gotoAndPlay('Main Menu');
}
on (rollOver) {
_root.infoTxt.text = 'Maybe your afraid of commitment?';
}
on (rollOut) {
_root.infoTxt.text = 'Choose a Difficulty';
}
}
movieClip 778 {
}
movieClip 798 {
}
movieClip 876 {
frame 387 {
stop();
_root.infoTxt.text = 'Thanks for playing!';
}
}
button 880 {
on (release) {
gotoAndPlay('Main Menu');
}
on (rollOver) {
_root.infoTxt.text = 'Let\'s roll another!';
}
on (rollOut) {
_root.infoTxt.text = 'Thanks for Playing!';
}
}
frame 18 {
stop();
score = 0;
papersLeft = difNum;
}
button 884 {
on (release) {
gotoAndPlay('Main Menu');
}
on (rollOver) {
_root.infoTxt.text = 'How the hell did he do that?';
}
on (rollOut) {
_root.infoTxt.text = 'Smackie smokes over 50 bowls a day!';
}
}
frame 20 {
stop();
}