STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/12620373?noj=FRM12620373-22DC" width="1" height="1"></div>

Special Snake 2.swf

This is the info page for
Flash #70387

(Click the ID number above for more basic data on this flash file.)


Text
VISIT CLASHFLASH.COM

SPECIAL SNAKE 2

"A MUST PLAY FOR ALL SNAKE FANS!"

Special Snake 2 is a whole new version
of the old classical game snake!
The Special Mode is a whole new snake
gaming experience!
Please read the help to understand what
to do, it's really easy to understand!
There are a total of 3 different modes and
16 different levels!
Unlock new levels in the Original Mode!

YOUR HOTSPOT FOR GAMES AND COMPETITION

SPECIAL MODE

ARCADE MODE

ORIGINAL MODE

HELP

SETTINGS

CREDITS

2

VISIT CLASHFLASH.COM FOR THE COMPETITION VERSION

SPECIAL MODE
This is an fully original new snake game. In this
mode you've several special things which make the
game different from the others and much more fun
to play!
Some special things in this mode are:
*Your snake will drop his tail when it becomes
lengthy. You can reduce its length by eating a heart!
*Destoy walls with a fireball! [Space to activate]
*Get a extra foodblock on the field by eating a
white block with a '+' on it.
FOR MORE HELP CLICK AT THE HELP BTN!

ORIGINAL MODE
Play the original snake game in a lot levels.
There are 9 levels to play all with there own back-
ground! Unlock the next level by getting 50, 100, 150
or 200 points!
FOR MORE HELP CLICK AT THE HELP BTN!

ARCADE MODE
Play the original classical snake game without any
stunning backgrounds. The boring mode for the
harcore snake gamer! All levels are already
unlocked!
FOR MORE HELP CLICK AT THE HELP BTN!

EASY

MEDIUM

HARD

back

SPECIAL MODE

CREDITS

DESIGNED BY
MENNEZ

IDEAS BY
SECRETP
MENNEZ
CRISIS
MYTH

MUSIC BY
GENSO SUIKODEN
DJ - Tiësto
Chao-Guy
Hades0013
Khuskan

SPECIAL THANKS
EPSITROG

CODED BY
CRISIS

TO BE CONTINUED!

MUSIC BY
GENSO SUIKODEN
DJ - Tiësto
Chao-Guy
Hades0013
Khuskan

MUSIC

ON

OFF

FULL SCREEN

ONLY AVAILABLE AT CLASHFLASH.COM

GRAPHICS

LOW

MEDIUM

HIGH

HELP

MAIN OBJECTIVE

You'll have to eat

to get points.

You'll have to avoid

cuz when you

don't, it's game over.

CONTROLS

Press SPACE to start, use the ARROW keys
to move and press SPACE to use a special
ability.

SPECIALS [only in special mode]

In this game you've several specials that make
this game a lot more fun to play.
Fireball special (activate using space)
More food
50 points bonus!
Reduce snake tail length
Watch out when your snake becomes lengthy,
it may drop its tail.

SPECIAL

ORIGINAL MODE

EASY

MEDIUM

HARD

ARCADE MODE

Easy mode

<p align="center"><font face="_sans" size="13" color="#000000" letterSpacing="0.000000" kerning="0"><b>Press </b><font color="#ff0000"><b>space</b></font><b> to start</b></font></p>

<p align="center"><font face="_sans" size="11" color="#000000" letterSpacing="0.000000" kerning="0"><b>Use </b><font color="#ff0000"><b>arrow keys</b></font><b> to turn, press </b><font color="#003300"><b>P</b></font><b> for pause</b></font></p>

<p align="center"><font face="_sans" size="11" color="#000000" letterSpacing="0.000000" kerning="0"><b>Press </b><font color="#ff0000"><b>space</b></font><b> to use a fireball</b><font size="8" color="#ff0000"><b> (only in special mode)</b></font></font></p>

MENU

DO YOU THINK YOU ARE UP FOR IT?
BEAT OTHER PEOPLE THEIR
HIGHSCORE NOW AT
CLASHFLASH.COM!

GAME OVER

<p align="center"><font face="_sans" size="11" color="#000000" letterSpacing="0.000000" kerning="0"><b>Press </b><font color="#990000"><b>SPACE </b></font><b>to try again</b></font></p>

YOU HAVE UNLOCKED A
NEW LEVEL!
CHECK IT OUT IN THE ORIGINAL
MODE!

YOU WON!

<p align="center"><font face="_sans" size="11" color="#000000" letterSpacing="0.000000" kerning="0"><b>Press </b><font color="#990000"><b>SPACE </b></font><b>to play this level again</b></font></p>

Paused

Medium mode

Hard mode

Original Mode

Level 1

get 50 points

Original Mode

Level 2

get 100 points

Level 3

Original Mode

get 150 points

Level 4

Original Mode

Level 7

Original Mode

Level 8

Original Mode

DONT TOUCH THE WATER!

DONT TOUCH THE WATER!

DONT TOUCH THE WATER!

DONT TOUCH THE WATER!

Original Mode

Level 5

get 200 points

Level 6

Original Mode

Seagal

Original Mode

Special Mode

Special Mode

Special Mode

ActionScript [AS1/AS2]

Frame 1
NewgroundsAPI.connectMovie(6852);
Frame 2
goto_after_verification = "intro"; stop(); this.createEmptyMovieClip("ClashHighscores", 0); fc_verified = true; onEnterFrame = function () { if (fc_verified) { play(); onEnterFrame = undefined; } };
Frame 10
gotoAndPlay(goto_after_verification);
Frame 113
gotoAndPlay ("gameintro");
Frame 114
Mouse.show(); stop(); if (_root.music == undefined) { _root.music = "ON"; } if ((_root.music == "ON") && (_root.setmusic != "Menu")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("menu"); menuMusic.start(0, 100); _root.setmusic = "Menu"; } arcadebut.onRelease = function () { gotoAndStop ("arcade"); }; arcadebut.onRollOver = function () { uitleg.gotoAndStop("uitleg3"); }; arcadebut.onRollOut = function () { uitleg.gotoAndStop("niets"); }; settingsbut.onRelease = function () { gotoAndStop ("settings"); }; specialbut.onRelease = function () { gotoAndStop ("special"); }; specialbut.onRollOver = function () { uitleg.gotoAndStop("uitleg1"); }; specialbut.onRollOut = function () { uitleg.gotoAndStop("niets"); }; creditsbut.onRelease = function () { gotoAndStop ("credits"); }; helpbut.onRelease = function () { gotoAndStop ("help"); }; originalbut.onRelease = function () { gotoAndStop ("orginalmode"); }; originalbut.onRollOver = function () { uitleg.gotoAndStop("uitleg2"); }; originalbut.onRollOut = function () { uitleg.gotoAndStop("niets"); };
Frame 115
function startGame() { fps = 24; x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local2 = 0; while (_local2 < gameWidth) { map[_local2] = new Array(); _local2++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); game.createEmptyMovieClip("fireballs", 5); game.createEmptyMovieClip("bonuses", 4); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -4; score = 0; curBonus = "none"; fireballCounter = 0; fireBallInterval = 50; pointBonusInterval = 80; bonusTimeCounter = 0; bonusCounter = 0; pointsPerBlock = 10; pointsPer50PointsBonus = 50; tailIncrease = 2; targetTailLength = 35; tailDropAmnt = 20; targetHeartScore = 220; heartTailDropAmnt = 6; startFoodAmnt = 2; targetFoodblockBonusScore = 150; foodblockBonusIncFactor = 1.5; fireballTimer = 7 * fps; pointBonusTimer = 7 * fps; heartTimer = 7 * fps; foodblockTimer = 7 * fps; curBonusses = new Array(); flyingBalls = new Array(); tailWalls = new Array(); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; fireballTargetPoints = fireBallInterval; pointBonusTargetPoints = pointBonusInterval; targetTailScorePoints = targetTailScore; targetHeartScorePoints = targetHeartScore; foodblockBonusTargetPoints = targetFoodblockBonusScore; foodblockBonussesEaten = 0; placeWall(20, 0, "wallMC"); placeWall(20, 1, "wallMC"); placeWall(20, 2, "wallMC"); placeWall(20, 3, "wallMC"); placeWall(20, 6, "wallMC"); placeWall(20, 7, "wallMC"); placeWall(20, 8, "wallMC"); placeWall(20, 9, "wallMC"); placeWall(20, 10, "wallMC"); placeWall(19, 10, "wallMC"); placeWall(18, 10, "wallMC"); placeWall(17, 10, "wallMC"); placeWall(16, 10, "wallMC"); placeWall(15, 10, "wallMC"); placeWall(14, 10, "wallMC"); placeWall(13, 10, "wallMC"); placeWall(12, 10, "wallMC"); placeWall(9, 10, "wallMC"); placeWall(8, 10, "wallMC"); placeWall(7, 10, "wallMC"); placeWall(6, 10, "wallMC"); placeWall(5, 10, "wallMC"); placeWall(4, 10, "wallMC"); placeWall(3, 10, "wallMC"); placeWall(2, 10, "wallMC"); placeWall(1, 10, "wallMC"); placeWall(0, 10, "wallMC"); placeWall(43, 29, "wallMC"); placeWall(43, 28, "wallMC"); placeWall(44, 28, "wallMC"); placeWall(44, 29, "wallMC"); placeWall(42, 29, "wallMC"); placeWall(44, 27, "wallMC"); placeWall(32, 15, "wallMC"); placeWall(32, 8, "wallMC"); placeWall(35, 24, "wallMC"); var _local3 = 0; while (_local3 < startFoodAmnt) { placeFood(); _local3++; } _root.bonusindi.gotoAndStop("none"); } function fireball() { fireballs--; var _local1 = game.fireballs.attachMovie("fireball_powerup", "fireball_" + fireballCounter, fireballCounter); _local1._x = (x * blockSize) + ((blockSize / 2) * Math.abs(yVelocity[currentDirection])); _local1._y = (y * blockSize) + ((blockSize / 2) * Math.abs(xVelocity[currentDirection])); _local1.x = x + xVelocity[currentDirection]; _local1.y = y + yVelocity[currentDirection]; if (xVelocity[currentDirection] != 0) { _local1._rotation = xVelocity[currentDirection] * 90; } else if (yVelocity[currentDirection] > 0) { _local1._rotation = yVelocity[currentDirection] * 180; } fireballCounter++; _local1.xVelocity = xVelocity[currentDirection]; _local1.yVelocity = yVelocity[currentDirection]; flyingBalls.push(_local1); } function flyballs() { var _local3; var _local1 = 0; while (_local1 < flyingBalls.length) { _local3 = false; if (map[flyingBalls[_local1].x][flyingBalls[_local1].y].blockClass == "wall") { map[flyingBalls[_local1].x][flyingBalls[_local1].y].blockClass = "destroyed"; map[flyingBalls[_local1].x][flyingBalls[_local1].y].gotoAndStop("explode"); var _local2 = 0; while (_local2 < tailWalls.length) { if (((tailWalls[_local2]._x / blockSize) == flyingBalls[_local1].x) && ((tailWalls[_local2]._y / blockSize) == flyingBalls[_local1].y)) { tailWalls.splice(_local2, 1); } _local2++; } _local3 = true; } if ((((_local3 || (flyingBalls[_local1].x < -1)) || (flyingBalls[_local1].x >= gameWidth)) || (flyingBalls[_local1].y < -1)) || (flyingBalls[_local1].y >= gameHeight)) { flyingBalls[_local1].removeMovieClip(); flyingBalls.splice(_local1, 1); _local1--; } else { flyingBalls[_local1]._x = flyingBalls[_local1]._x + (flyingBalls[_local1].xVelocity * blockSize); flyingBalls[_local1].x = flyingBalls[_local1].x + flyingBalls[_local1].xVelocity; flyingBalls[_local1]._y = flyingBalls[_local1]._y + (flyingBalls[_local1].yVelocity * blockSize); flyingBalls[_local1].y = flyingBalls[_local1].y + flyingBalls[_local1].yVelocity; } _local1++; } } function useBonus() { switch (curBonus) { case "fireball" : fireball(); break; default : } curBonus = "none"; _root.bonusindi.gotoAndStop(curBonus); } function controlBonusses() { if (score >= fireballTargetPoints) { fireballTargetPoints = fireballTargetPoints + fireBallInterval; placeBonus("fireball"); } if ((score >= pointBonusTargetPoints) && (tailWalls.length)) { pointBonusTargetPoints = pointBonusTargetPoints + pointBonusInterval; placeBonus("pointBonus"); } if (score >= targetHeartScore) { targetHeartScore = targetHeartScore + targetHeartScorePoints; placeBonus("heart"); } if (score >= foodblockBonusTargetPoints) { foodblockBonussesEaten++; foodblockBonusTargetPoints = foodblockBonusTargetPoints + (targetFoodblockBonusScore * Math.pow(foodblockBonusIncFactor, foodblockBonussesEaten)); placeBonus("foodblock"); } } function removeBonusses() { var _local1 = 0; while (_local1 < curBonusses.length) { if (map[curBonusses[_local1].x][curBonusses[_local1].y].deleteTimer == 0) { map[curBonusses[_local1].x][curBonusses[_local1].y].removeMovieClip(); curBonusses.splice(_local1, 1); _local1--; } else { if (((map[curBonusses[_local1].x][curBonusses[_local1].y].deleteTimer - 1) < (curBonusses[_local1].maxTime / 2)) && (map[curBonusses[_local1].x][curBonusses[_local1].y].deleteTimer >= (curBonusses[_local1].maxTime / 2))) { map[curBonusses[_local1].x][curBonusses[_local1].y].gotoAndPlay(2); } map[curBonusses[_local1].x][curBonusses[_local1].y].deleteTimer--; } _local1++; } } function controlTimeSpecials() { if ((bonusTimeCounter % bombTimer) == 0) { } bonusTimeCounter++; } function main() { flyballs(); removeBonusses(); if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if ((((((map[x][y].blockClass != "snakeTail") && (map[x][y].blockClass != "wall")) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter].blockClass = "snakeHead"; game.s[snakeBlockCounter - 1].gotoAndStop(1); game.s[snakeBlockCounter - 1].blockClass = "snakeTail"; snakeBlockCounter++; if (map[x][y].blockClass == "food") { score = score + pointsPerBlock; scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - tailIncrease; placeFood(map[x][y]); controlBonusses(); map[x][y].removeMovieClip(); } if (map[x][y].blockClass == "bonus_fireball") { curBonus = "fireball"; map[x][y].removeMovieClip(); _root.bonusindi.gotoAndStop(curBonus); } if (map[x][y].blockClass == "bonus_pointBonus") { map[x][y].removeMovieClip(); score = score + pointsPer50PointsBonus; scoreTextField.text = "Score: " + score; controlBonusses(); } if (map[x][y].blockClass == "bonus_foodblock") { map[x][y].removeMovieClip(); placeFood(); } if (map[x][y].blockClass == "bonus_heart") { map[x][y].removeMovieClip(); var _local2 = 0; while (_local2 < heartTailDropAmnt) { tailMC = game.s[snakeEraseCounter]; if (tailMC) { delete map[tailMC._x / blockSize][tailMC._y / blockSize]; tailMC.removeMovieClip(); } snakeEraseCounter++; _local2++; } } map[x][y] = game.s[snakeBlockCounter - 1]; var tailMC; if ((snakeBlockCounter - snakeEraseCounter) >= targetTailLength) { var _local2 = 0; while (_local2 < tailDropAmnt) { tailMC = game.s[snakeEraseCounter]; if (tailMC) { placeWall(tailMC._x / blockSize, tailMC._y / blockSize, "wallMCTail", "tail"); tailMC.removeMovieClip(); } snakeEraseCounter++; _local2++; } } tailMC = game.s[snakeEraseCounter]; if (tailMC) { delete map[tailMC._x / blockSize][tailMC._y / blockSize]; tailMC.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver() { textMC.gotoAndStop("gameOver"); delete game.onEnterFrame; gameRunning = false; } function placeWall(x, y, type, walllabel) { if (walllabel == undefined) { walllabel = "wall"; } wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; wallMC.blockClass = "wall"; wallMC.blockLabel = walllabel; map[x][y] = wallMC; if (walllabel == "tail") { tailWalls.push(wallMC); } } function placeFood() { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood] != undefined); var _local1 = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; _local1._x = xFood * blockSize; _local1._y = yFood * blockSize; _local1.blockClass = "food"; map[xFood][yFood] = _local1; } function placeBonus(bonustype) { var _local5; var _local3; var _local2; if (bonustype == "pointBonus") { _local5 = Math.floor(Math.random() * tailWalls.length); _local3 = tailWalls[_local5]._x / blockSize; _local2 = tailWalls[_local5]._y / blockSize; tailWalls[_local5].removeMovieClip(); tailWalls.splice(_local5, 1); } else { do { _local3 = random(gameWidth); _local2 = random(gameHeight); } while (map[_local3][_local2] != undefined); } var _local4 = game.bonuses.attachMovie("bonus_" + bonustype, bonusCounter, bonusCounter); bonusCounter++; _local4._x = _local3 * blockSize; _local4._y = _local2 * blockSize; _local4.blockClass = "bonus_" + bonustype; _local4.deleteTimer = _root[bonustype + "Timer"]; curBonusses.push({x:_local3, y:_local2, maxTime:_root[bonustype + "Timer"]}); map[_local3][_local2] = _local4; } Mouse.show(); stop(); lvl1buts.onRelease = function () { gotoAndStop ("lvl1s"); }; lvl2buts.onRelease = function () { gotoAndStop ("lvl2s"); }; lvl3buts.onRelease = function () { gotoAndStop ("lvl3s"); }; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } else { useBonus(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener); _root.kongregateStats.submit("Points", _root.points);
Frame 116
Mouse.show(); stop(); if ((_root.music == "ON") && (_root.setmusic != "tiesto")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("tiesto"); menuMusic.start(0, 100); _root.setmusic = "tiesto"; } back.onRelease = function () { gotoAndStop ("menu"); };
Frame 117
Mouse.show(); stop(); back.onRelease = function () { gotoAndStop ("menu"); }; gamequal.gotoAndStop(_quality); gfxbut.onRelease = function () { switch (_quality) { case "HIGH" : _quality = "MEDIUM"; break; case "MEDIUM" : _quality = "LOW"; break; case "LOW" : _quality = "HIGH"; break; } gamequal.gotoAndStop(_quality); }; mus.gotoAndStop(_root.music); soundsbut.onRelease = function () { switch (_root.music) { case "ON" : _root.music = "OFF"; stopAllSounds(); break; case "OFF" : _root.music = "ON"; menuMusic = new Sound(); menuMusic.attachSound("menu"); menuMusic.start(0, 100); _root.setmusic = "menu"; break; } mus.gotoAndStop(_root.music); };
Frame 118
Mouse.show(); stop(); back.onRelease = function () { gotoAndStop ("menu"); };
Frame 119
Mouse.show(); stop(); lvl1but.onRelease = function () { gotoAndStop ("lvl1"); }; if (_root.level2unlocked) { lvl2but.onRelease = function () { gotoAndStop ("lvl2"); }; locked2.gotoAndStop(2); } if (_root.level3unlocked) { lvl3but.onRelease = function () { gotoAndStop ("lvl3"); }; locked3.gotoAndStop(2); } if (_root.level4unlocked) { lvl4but.onRelease = function () { gotoAndStop ("lvl4"); }; locked4.gotoAndStop(2); } if (_root.level5unlocked) { lvl5but.onRelease = function () { gotoAndStop ("lvl5"); }; locked5.gotoAndStop(2); } if (_root.level6unlocked) { lvl6but.onRelease = function () { gotoAndStop ("lvl6"); }; locked6.gotoAndStop(2); } if (_root.level7unlocked) { lvl7but.onRelease = function () { gotoAndStop ("lvl7"); }; locked7.gotoAndStop(2); } if (_root.level8unlocked) { lvl8but.onRelease = function () { gotoAndStop ("lvl8"); }; locked8.gotoAndStop(2); } if (_root.level9unlocked) { speciallvlbut.onRelease = function () { gotoAndStop ("speciallvl"); }; locked9.gotoAndStop(2); }
Frame 120
Mouse.show(); stop(); easy.onRelease = function () { gotoAndStop ("game_easy"); }; medium.onRelease = function () { gotoAndStop ("game_medium"); }; hard.onRelease = function () { gotoAndStop ("game_hard"); };
Frame 121
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -5; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local2 = turnQueue.pop(); if ((_local2 % 2) != (currentDirection % 2)) { currentDirection = _local2; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 1; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local1 = game.s[snakeEraseCounter]; if (_local1) { delete map[_local1._x / blockSize][_local1._y / blockSize]; _local1.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver() { textMC.gotoAndStop("gameOver"); delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 3; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 122
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -3; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(5, 5, "wallMC"); placeWall(6, 5, "wallMC"); placeWall(7, 5, "wallMC"); placeWall(8, 5, "wallMC"); placeWall(9, 5, "wallMC"); placeWall(10, 5, "wallMC"); placeWall(11, 5, "wallMC"); placeWall(12, 5, "wallMC"); placeWall(13, 5, "wallMC"); placeWall(14, 5, "wallMC"); placeWall(15, 5, "wallMC"); placeWall(16, 5, "wallMC"); placeWall(17, 5, "wallMC"); placeWall(18, 5, "wallMC"); placeWall(19, 5, "wallMC"); placeWall(20, 5, "wallMC"); placeWall(21, 5, "wallMC"); placeWall(22, 5, "wallMC"); placeWall(23, 5, "wallMC"); placeWall(24, 5, "wallMC"); placeWall(25, 5, "wallMC"); placeWall(26, 5, "wallMC"); placeWall(27, 5, "wallMC"); placeWall(28, 5, "wallMC"); placeWall(29, 5, "wallMC"); placeWall(30, 5, "wallMC"); placeWall(31, 5, "wallMC"); placeWall(32, 5, "wallMC"); placeWall(33, 5, "wallMC"); placeWall(34, 5, "wallMC"); placeWall(35, 5, "wallMC"); placeWall(36, 5, "wallMC"); placeWall(37, 5, "wallMC"); placeWall(38, 5, "wallMC"); placeWall(39, 5, "wallMC"); placeWall(5, 24, "wallMC"); placeWall(6, 24, "wallMC"); placeWall(7, 24, "wallMC"); placeWall(8, 24, "wallMC"); placeWall(9, 24, "wallMC"); placeWall(10, 24, "wallMC"); placeWall(11, 24, "wallMC"); placeWall(12, 24, "wallMC"); placeWall(13, 24, "wallMC"); placeWall(14, 24, "wallMC"); placeWall(15, 24, "wallMC"); placeWall(16, 24, "wallMC"); placeWall(17, 24, "wallMC"); placeWall(18, 24, "wallMC"); placeWall(19, 24, "wallMC"); placeWall(20, 24, "wallMC"); placeWall(21, 24, "wallMC"); placeWall(23, 24, "wallMC"); placeWall(24, 24, "wallMC"); placeWall(25, 24, "wallMC"); placeWall(26, 24, "wallMC"); placeWall(27, 24, "wallMC"); placeWall(28, 24, "wallMC"); placeWall(29, 24, "wallMC"); placeWall(30, 24, "wallMC"); placeWall(31, 24, "wallMC"); placeWall(32, 24, "wallMC"); placeWall(33, 24, "wallMC"); placeWall(34, 24, "wallMC"); placeWall(35, 24, "wallMC"); placeWall(36, 24, "wallMC"); placeWall(37, 24, "wallMC"); placeWall(38, 24, "wallMC"); placeWall(39, 24, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local2 = turnQueue.pop(); if ((_local2 % 2) != (currentDirection % 2)) { currentDirection = _local2; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 3; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local1 = game.s[snakeEraseCounter]; if (_local1) { delete map[_local1._x / blockSize][_local1._y / blockSize]; _local1.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver() { textMC.gotoAndStop("gameOver"); delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 123
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(5, 5, "wallMC"); placeWall(6, 5, "wallMC"); placeWall(7, 5, "wallMC"); placeWall(8, 5, "wallMC"); placeWall(9, 5, "wallMC"); placeWall(10, 5, "wallMC"); placeWall(11, 5, "wallMC"); placeWall(12, 5, "wallMC"); placeWall(13, 5, "wallMC"); placeWall(14, 5, "wallMC"); placeWall(5, 6, "wallMC"); placeWall(5, 7, "wallMC"); placeWall(5, 8, "wallMC"); placeWall(5, 9, "wallMC"); placeWall(5, 10, "wallMC"); placeWall(5, 11, "wallMC"); placeWall(39, 11, "wallMC"); placeWall(39, 10, "wallMC"); placeWall(39, 9, "wallMC"); placeWall(39, 8, "wallMC"); placeWall(39, 7, "wallMC"); placeWall(39, 6, "wallMC"); placeWall(30, 5, "wallMC"); placeWall(31, 5, "wallMC"); placeWall(32, 5, "wallMC"); placeWall(33, 5, "wallMC"); placeWall(34, 5, "wallMC"); placeWall(35, 5, "wallMC"); placeWall(36, 5, "wallMC"); placeWall(37, 5, "wallMC"); placeWall(38, 5, "wallMC"); placeWall(39, 5, "wallMC"); placeWall(5, 24, "wallMC"); placeWall(6, 24, "wallMC"); placeWall(7, 24, "wallMC"); placeWall(8, 24, "wallMC"); placeWall(9, 24, "wallMC"); placeWall(10, 24, "wallMC"); placeWall(11, 24, "wallMC"); placeWall(12, 24, "wallMC"); placeWall(13, 24, "wallMC"); placeWall(14, 24, "wallMC"); placeWall(5, 23, "wallMC"); placeWall(5, 22, "wallMC"); placeWall(5, 21, "wallMC"); placeWall(5, 20, "wallMC"); placeWall(5, 19, "wallMC"); placeWall(5, 18, "wallMC"); placeWall(39, 18, "wallMC"); placeWall(39, 19, "wallMC"); placeWall(39, 20, "wallMC"); placeWall(39, 21, "wallMC"); placeWall(39, 22, "wallMC"); placeWall(39, 23, "wallMC"); placeWall(30, 24, "wallMC"); placeWall(31, 24, "wallMC"); placeWall(32, 24, "wallMC"); placeWall(33, 24, "wallMC"); placeWall(34, 24, "wallMC"); placeWall(35, 24, "wallMC"); placeWall(36, 24, "wallMC"); placeWall(37, 24, "wallMC"); placeWall(38, 24, "wallMC"); placeWall(39, 24, "wallMC"); placeWall(20, 12, "wallMC"); placeWall(21, 12, "wallMC"); placeWall(20, 13, "wallMC"); placeWall(21, 13, "wallMC"); placeWall(23, 12, "wallMC"); placeWall(24, 12, "wallMC"); placeWall(23, 13, "wallMC"); placeWall(24, 13, "wallMC"); placeWall(20, 15, "wallMC"); placeWall(21, 15, "wallMC"); placeWall(20, 16, "wallMC"); placeWall(21, 16, "wallMC"); placeWall(23, 15, "wallMC"); placeWall(24, 15, "wallMC"); placeWall(23, 16, "wallMC"); placeWall(24, 16, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local2 = turnQueue.pop(); if ((_local2 % 2) != (currentDirection % 2)) { currentDirection = _local2; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 8; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local1 = game.s[snakeEraseCounter]; if (_local1) { delete map[_local1._x / blockSize][_local1._y / blockSize]; _local1.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver() { textMC.gotoAndStop("gameOver"); delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 1; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 124
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -10; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 50) { _root.level2unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 3; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 125
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -4; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(5, 5, "wallMC"); placeWall(7, 5, "wallMC"); placeWall(9, 5, "wallMC"); placeWall(11, 5, "wallMC"); placeWall(13, 5, "wallMC"); placeWall(15, 5, "wallMC"); placeWall(17, 5, "wallMC"); placeWall(19, 5, "wallMC"); placeWall(21, 5, "wallMC"); placeWall(23, 5, "wallMC"); placeWall(25, 5, "wallMC"); placeWall(27, 5, "wallMC"); placeWall(29, 5, "wallMC"); placeWall(31, 5, "wallMC"); placeWall(33, 5, "wallMC"); placeWall(35, 5, "wallMC"); placeWall(37, 5, "wallMC"); placeWall(39, 5, "wallMC"); placeWall(5, 24, "wallMC"); placeWall(6, 24, "wallMC"); placeWall(7, 24, "wallMC"); placeWall(8, 24, "wallMC"); placeWall(9, 24, "wallMC"); placeWall(10, 24, "wallMC"); placeWall(11, 24, "wallMC"); placeWall(12, 24, "wallMC"); placeWall(13, 24, "wallMC"); placeWall(14, 24, "wallMC"); placeWall(15, 24, "wallMC"); placeWall(16, 24, "wallMC"); placeWall(17, 24, "wallMC"); placeWall(18, 24, "wallMC"); placeWall(19, 24, "wallMC"); placeWall(20, 24, "wallMC"); placeWall(21, 24, "wallMC"); placeWall(23, 24, "wallMC"); placeWall(24, 24, "wallMC"); placeWall(25, 24, "wallMC"); placeWall(26, 24, "wallMC"); placeWall(27, 24, "wallMC"); placeWall(28, 24, "wallMC"); placeWall(29, 24, "wallMC"); placeWall(30, 24, "wallMC"); placeWall(31, 24, "wallMC"); placeWall(32, 24, "wallMC"); placeWall(33, 24, "wallMC"); placeWall(34, 24, "wallMC"); placeWall(35, 24, "wallMC"); placeWall(36, 24, "wallMC"); placeWall(37, 24, "wallMC"); placeWall(38, 24, "wallMC"); placeWall(39, 24, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 100) { _root.level3unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek2")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek2"); menuMusic.start(0, 100); _root.setmusic = "muziek2"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 126
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -4; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(20, 0, "wallMC"); placeWall(20, 1, "wallMC"); placeWall(20, 2, "wallMC"); placeWall(20, 4, "wallMC"); placeWall(20, 5, "wallMC"); placeWall(20, 6, "wallMC"); placeWall(19, 6, "wallMC"); placeWall(18, 6, "wallMC"); placeWall(17, 6, "wallMC"); placeWall(16, 6, "wallMC"); placeWall(15, 6, "wallMC"); placeWall(14, 6, "wallMC"); placeWall(13, 6, "wallMC"); placeWall(12, 6, "wallMC"); placeWall(9, 6, "wallMC"); placeWall(8, 6, "wallMC"); placeWall(7, 6, "wallMC"); placeWall(6, 6, "wallMC"); placeWall(5, 6, "wallMC"); placeWall(4, 6, "wallMC"); placeWall(3, 6, "wallMC"); placeWall(2, 6, "wallMC"); placeWall(1, 6, "wallMC"); placeWall(0, 6, "wallMC"); placeWall(43, 29, "wallMC"); placeWall(43, 28, "wallMC"); placeWall(44, 28, "wallMC"); placeWall(44, 29, "wallMC"); placeWall(42, 29, "wallMC"); placeWall(44, 27, "wallMC"); placeWall(32, 15, "wallMC"); placeWall(32, 8, "wallMC"); placeWall(35, 24, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 150) { _root.level4unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 127
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -3; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(15, 9, "wallMC"); placeWall(19, 4, "wallMC"); placeWall(9, 13, "wallMC"); placeWall(21, 4, "wallMC"); placeWall(27, 19, "wallMC"); placeWall(7, 5, "wallMC"); placeWall(8, 18, "wallMC"); placeWall(12, 28, "wallMC"); placeWall(30, 25, "wallMC"); placeWall(31, 23, "wallMC"); placeWall(23, 6, "wallMC"); placeWall(33, 17, "wallMC"); placeWall(17, 17, "wallMC"); placeWall(35, 8, "wallMC"); placeWall(21, 29, "wallMC"); placeWall(13, 18, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 150) { _root.level5unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek"); menuMusic.start(0, 100); _root.setmusic = "muziek"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 128
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(5, 5, "wallMC"); placeWall(6, 5, "wallMC"); placeWall(7, 5, "wallMC"); placeWall(8, 5, "wallMC"); placeWall(9, 5, "wallMC"); placeWall(10, 5, "wallMC"); placeWall(11, 5, "wallMC"); placeWall(12, 5, "wallMC"); placeWall(13, 5, "wallMC"); placeWall(14, 5, "wallMC"); placeWall(5, 6, "wallMC"); placeWall(5, 7, "wallMC"); placeWall(5, 8, "wallMC"); placeWall(5, 9, "wallMC"); placeWall(5, 10, "wallMC"); placeWall(5, 11, "wallMC"); placeWall(39, 11, "wallMC"); placeWall(39, 10, "wallMC"); placeWall(39, 9, "wallMC"); placeWall(39, 8, "wallMC"); placeWall(39, 7, "wallMC"); placeWall(39, 6, "wallMC"); placeWall(30, 5, "wallMC"); placeWall(31, 5, "wallMC"); placeWall(32, 5, "wallMC"); placeWall(33, 5, "wallMC"); placeWall(34, 5, "wallMC"); placeWall(35, 5, "wallMC"); placeWall(36, 5, "wallMC"); placeWall(37, 5, "wallMC"); placeWall(38, 5, "wallMC"); placeWall(39, 5, "wallMC"); placeWall(5, 24, "wallMC"); placeWall(6, 24, "wallMC"); placeWall(7, 24, "wallMC"); placeWall(8, 24, "wallMC"); placeWall(9, 24, "wallMC"); placeWall(10, 24, "wallMC"); placeWall(11, 24, "wallMC"); placeWall(12, 24, "wallMC"); placeWall(13, 24, "wallMC"); placeWall(14, 24, "wallMC"); placeWall(5, 23, "wallMC"); placeWall(5, 22, "wallMC"); placeWall(5, 21, "wallMC"); placeWall(5, 20, "wallMC"); placeWall(5, 19, "wallMC"); placeWall(5, 18, "wallMC"); placeWall(39, 18, "wallMC"); placeWall(39, 19, "wallMC"); placeWall(39, 20, "wallMC"); placeWall(39, 21, "wallMC"); placeWall(39, 22, "wallMC"); placeWall(39, 23, "wallMC"); placeWall(30, 24, "wallMC"); placeWall(31, 24, "wallMC"); placeWall(32, 24, "wallMC"); placeWall(33, 24, "wallMC"); placeWall(34, 24, "wallMC"); placeWall(35, 24, "wallMC"); placeWall(36, 24, "wallMC"); placeWall(37, 24, "wallMC"); placeWall(38, 24, "wallMC"); placeWall(39, 24, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 150) { _root.level8unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "pokemon")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("pokemon"); menuMusic.start(0, 100); _root.setmusic = "pokemon"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 1; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 129
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(0, 0, "wallMC"); placeWall(0, 1, "wallMC"); placeWall(1, 0, "wallMC"); placeWall(1, 1, "wallMC"); placeWall(43, 0, "wallMC"); placeWall(44, 0, "wallMC"); placeWall(43, 1, "wallMC"); placeWall(44, 1, "wallMC"); placeWall(0, 28, "wallMC"); placeWall(0, 29, "wallMC"); placeWall(1, 28, "wallMC"); placeWall(1, 29, "wallMC"); placeWall(43, 28, "wallMC"); placeWall(43, 29, "wallMC"); placeWall(44, 28, "wallMC"); placeWall(44, 29, "wallMC"); placeWall(21, 0, "wallMC"); placeWall(21, 1, "wallMC"); placeWall(21, 2, "wallMC"); placeWall(21, 3, "wallMC"); placeWall(21, 4, "wallMC"); placeWall(21, 5, "wallMC"); placeWall(21, 6, "wallMC"); placeWall(21, 9, "wallMC"); placeWall(21, 10, "wallMC"); placeWall(21, 11, "wallMC"); placeWall(21, 12, "wallMC"); placeWall(21, 13, "wallMC"); placeWall(21, 14, "wallMC"); placeWall(21, 15, "wallMC"); placeWall(21, 16, "wallMC"); placeWall(21, 17, "wallMC"); placeWall(21, 18, "wallMC"); placeWall(21, 19, "wallMC"); placeWall(21, 20, "wallMC"); placeWall(21, 23, "wallMC"); placeWall(21, 24, "wallMC"); placeWall(21, 25, "wallMC"); placeWall(21, 26, "wallMC"); placeWall(21, 27, "wallMC"); placeWall(21, 28, "wallMC"); placeWall(21, 29, "wallMC"); placeWall(22, 15, "wallMC"); placeWall(23, 15, "wallMC"); placeWall(24, 15, "wallMC"); placeWall(25, 15, "wallMC"); placeWall(26, 15, "wallMC"); placeWall(27, 15, "wallMC"); placeWall(28, 15, "wallMC"); placeWall(29, 15, "wallMC"); placeWall(30, 15, "wallMC"); placeWall(31, 15, "wallMC"); placeWall(32, 15, "wallMC"); placeWall(33, 15, "wallMC"); placeWall(34, 15, "wallMC"); placeWall(35, 15, "wallMC"); placeWall(36, 15, "wallMC"); placeWall(37, 15, "wallMC"); placeWall(38, 15, "wallMC"); placeWall(39, 15, "wallMC"); placeWall(40, 15, "wallMC"); placeWall(41, 15, "wallMC"); placeWall(42, 15, "wallMC"); placeWall(43, 15, "wallMC"); placeWall(44, 15, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 150) { _root.level9unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "tiesto")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("tiesto"); menuMusic.start(0, 100); _root.setmusic = "tiesto"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 1; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 130
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(0, 0, "wallMC"); placeWall(0, 1, "wallMC"); placeWall(1, 0, "wallMC"); placeWall(1, 1, "wallMC"); placeWall(43, 0, "wallMC"); placeWall(44, 0, "wallMC"); placeWall(43, 1, "wallMC"); placeWall(44, 1, "wallMC"); placeWall(0, 28, "wallMC"); placeWall(0, 29, "wallMC"); placeWall(1, 28, "wallMC"); placeWall(1, 29, "wallMC"); placeWall(43, 28, "wallMC"); placeWall(43, 29, "wallMC"); placeWall(44, 28, "wallMC"); placeWall(44, 29, "wallMC"); placeWall(21, 15, "wallMC"); placeWall(21, 16, "wallMC"); placeWall(21, 17, "wallMC"); placeWall(21, 18, "wallMC"); placeWall(21, 19, "wallMC"); placeWall(21, 20, "wallMC"); placeWall(21, 23, "wallMC"); placeWall(21, 24, "wallMC"); placeWall(21, 25, "wallMC"); placeWall(21, 26, "wallMC"); placeWall(21, 27, "wallMC"); placeWall(21, 28, "wallMC"); placeWall(21, 29, "wallMC"); placeWall(22, 15, "wallMC"); placeWall(23, 15, "wallMC"); placeWall(24, 15, "wallMC"); placeWall(25, 15, "wallMC"); placeWall(26, 15, "wallMC"); placeWall(27, 15, "wallMC"); placeWall(28, 15, "wallMC"); placeWall(29, 15, "wallMC"); placeWall(30, 15, "wallMC"); placeWall(31, 15, "wallMC"); placeWall(32, 15, "wallMC"); placeWall(33, 15, "wallMC"); placeWall(34, 15, "wallMC"); placeWall(35, 15, "wallMC"); placeWall(36, 15, "wallMC"); placeWall(37, 15, "wallMC"); placeWall(38, 15, "wallMC"); placeWall(39, 15, "wallMC"); placeWall(40, 15, "wallMC"); placeWall(41, 15, "wallMC"); placeWall(42, 15, "wallMC"); placeWall(43, 15, "wallMC"); placeWall(44, 15, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 200) { _root.level6unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek"); menuMusic.start(0, 100); _root.setmusic = "muziek"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 131
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(4, 10, "wallMC"); placeWall(5, 10, "wallMC"); placeWall(6, 10, "wallMC"); placeWall(7, 10, "wallMC"); placeWall(8, 10, "wallMC"); placeWall(9, 10, "wallMC"); placeWall(10, 10, "wallMC"); placeWall(11, 10, "wallMC"); placeWall(12, 10, "wallMC"); placeWall(13, 10, "wallMC"); placeWall(14, 10, "wallMC"); placeWall(15, 10, "wallMC"); placeWall(4, 27, "wallMC"); placeWall(5, 27, "wallMC"); placeWall(6, 27, "wallMC"); placeWall(7, 27, "wallMC"); placeWall(8, 27, "wallMC"); placeWall(9, 27, "wallMC"); placeWall(10, 27, "wallMC"); placeWall(11, 27, "wallMC"); placeWall(12, 27, "wallMC"); placeWall(13, 27, "wallMC"); placeWall(14, 27, "wallMC"); placeWall(15, 27, "wallMC"); placeWall(41, 17, "wallMC"); placeWall(40, 17, "wallMC"); placeWall(39, 17, "wallMC"); placeWall(38, 17, "wallMC"); placeWall(37, 17, "wallMC"); placeWall(36, 17, "wallMC"); placeWall(35, 17, "wallMC"); placeWall(34, 17, "wallMC"); placeWall(33, 17, "wallMC"); placeWall(32, 17, "wallMC"); placeWall(31, 17, "wallMC"); placeWall(30, 17, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 200) { _root.level7unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek2")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek2"); menuMusic.start(0, 100); _root.setmusic = "muziek2"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 132
function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; moveTimer = 0; xVelocity = [-1, 0, 1, 0]; yVelocity = [0, -1, 0, 1]; map = new Array(); var _local1 = 0; while (_local1 < gameWidth) { map[_local1] = new Array(); _local1++; } turnQueue = new Array(); game.createEmptyMovieClip("food", 1); game.createEmptyMovieClip("s", 2); scoreTextField.text = "Score: 0"; foodCounter = 0; snakeBlockCounter = 0; currentDirection = 1; snakeEraseCounter = -1; score = 0; placeFood("new"); textMC.gotoAndStop("hide"); game.onEnterFrame = main; gameRunning = true; game.createEmptyMovieClip("wall", 3); wallCounter = 0; placeWall(3, 3, "wallMC"); placeWall(3, 4, "wallMC"); placeWall(3, 5, "wallMC"); placeWall(3, 6, "wallMC"); placeWall(3, 7, "wallMC"); placeWall(3, 8, "wallMC"); placeWall(3, 9, "wallMC"); placeWall(3, 10, "wallMC"); placeWall(3, 11, "wallMC"); placeWall(3, 12, "wallMC"); placeWall(3, 13, "wallMC"); placeWall(3, 14, "wallMC"); placeWall(4, 3, "wallMC"); placeWall(5, 3, "wallMC"); placeWall(6, 3, "wallMC"); placeWall(7, 3, "wallMC"); placeWall(8, 3, "wallMC"); placeWall(9, 3, "wallMC"); placeWall(10, 3, "wallMC"); placeWall(11, 3, "wallMC"); placeWall(12, 3, "wallMC"); placeWall(13, 3, "wallMC"); placeWall(13, 2, "wallMC"); placeWall(13, 4, "wallMC"); placeWall(13, 15, "wallMC"); placeWall(13, 16, "wallMC"); placeWall(13, 17, "wallMC"); placeWall(13, 18, "wallMC"); placeWall(13, 19, "wallMC"); placeWall(13, 20, "wallMC"); placeWall(13, 21, "wallMC"); placeWall(13, 22, "wallMC"); placeWall(13, 23, "wallMC"); placeWall(13, 24, "wallMC"); placeWall(13, 25, "wallMC"); placeWall(13, 26, "wallMC"); placeWall(3, 15, "wallMC"); placeWall(4, 15, "wallMC"); placeWall(5, 15, "wallMC"); placeWall(6, 15, "wallMC"); placeWall(7, 15, "wallMC"); placeWall(8, 15, "wallMC"); placeWall(9, 15, "wallMC"); placeWall(10, 15, "wallMC"); placeWall(11, 15, "wallMC"); placeWall(12, 15, "wallMC"); placeWall(13, 15, "wallMC"); placeWall(3, 27, "wallMC"); placeWall(4, 27, "wallMC"); placeWall(5, 27, "wallMC"); placeWall(6, 27, "wallMC"); placeWall(7, 27, "wallMC"); placeWall(8, 27, "wallMC"); placeWall(9, 27, "wallMC"); placeWall(10, 27, "wallMC"); placeWall(11, 27, "wallMC"); placeWall(12, 27, "wallMC"); placeWall(13, 27, "wallMC"); placeWall(3, 26, "wallMC"); placeWall(3, 28, "wallMC"); placeWall(31, 3, "wallMC"); placeWall(31, 4, "wallMC"); placeWall(31, 5, "wallMC"); placeWall(31, 6, "wallMC"); placeWall(31, 7, "wallMC"); placeWall(31, 8, "wallMC"); placeWall(31, 9, "wallMC"); placeWall(31, 10, "wallMC"); placeWall(31, 11, "wallMC"); placeWall(31, 12, "wallMC"); placeWall(31, 13, "wallMC"); placeWall(31, 14, "wallMC"); placeWall(31, 15, "wallMC"); placeWall(31, 3, "wallMC"); placeWall(32, 3, "wallMC"); placeWall(33, 3, "wallMC"); placeWall(34, 3, "wallMC"); placeWall(35, 3, "wallMC"); placeWall(36, 3, "wallMC"); placeWall(37, 3, "wallMC"); placeWall(38, 3, "wallMC"); placeWall(39, 3, "wallMC"); placeWall(40, 3, "wallMC"); placeWall(41, 2, "wallMC"); placeWall(41, 3, "wallMC"); placeWall(41, 4, "wallMC"); placeWall(31, 15, "wallMC"); placeWall(32, 15, "wallMC"); placeWall(33, 15, "wallMC"); placeWall(34, 15, "wallMC"); placeWall(35, 15, "wallMC"); placeWall(36, 15, "wallMC"); placeWall(37, 15, "wallMC"); placeWall(38, 15, "wallMC"); placeWall(39, 15, "wallMC"); placeWall(40, 15, "wallMC"); placeWall(41, 15, "wallMC"); placeWall(41, 15, "wallMC"); placeWall(41, 16, "wallMC"); placeWall(41, 17, "wallMC"); placeWall(41, 18, "wallMC"); placeWall(41, 19, "wallMC"); placeWall(41, 20, "wallMC"); placeWall(41, 21, "wallMC"); placeWall(41, 22, "wallMC"); placeWall(41, 23, "wallMC"); placeWall(41, 24, "wallMC"); placeWall(41, 25, "wallMC"); placeWall(41, 26, "wallMC"); placeWall(41, 27, "wallMC"); placeWall(31, 27, "wallMC"); placeWall(32, 27, "wallMC"); placeWall(33, 27, "wallMC"); placeWall(34, 27, "wallMC"); placeWall(35, 27, "wallMC"); placeWall(36, 27, "wallMC"); placeWall(37, 27, "wallMC"); placeWall(38, 27, "wallMC"); placeWall(39, 27, "wallMC"); placeWall(40, 27, "wallMC"); placeWall(41, 27, "wallMC"); placeWall(31, 26, "wallMC"); placeWall(31, 28, "wallMC"); } function main() { if ((moveTimer % moveSpeed) == 0) { if (turnQueue.length > 0) { var _local3 = turnQueue.pop(); if ((_local3 % 2) != (currentDirection % 2)) { currentDirection = _local3; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; moveTimer = 0; if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) { game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize}); game.s[snakeBlockCounter].gotoAndStop(2); game.s[snakeBlockCounter - 1].gotoAndStop(1); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; if (score >= 200) { _root.level10unlocked = true; gameOver(true); } scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 4; placeFood(map[x][y]); } map[x][y] = SNAKE_BLOCK; var _local2 = game.s[snakeEraseCounter]; if (_local2) { delete map[_local2._x / blockSize][_local2._y / blockSize]; _local2.removeMovieClip(); } snakeEraseCounter++; } else { gameOver(); } } moveTimer++; } function gameOver(win) { if (win) { textMC.gotoAndStop("win"); } else { textMC.gotoAndStop("gameOver"); } delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (foodMC == "new") { foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } foodMC._x = xFood * blockSize; foodMC._y = yFood * blockSize; map[xFood][yFood] = foodMC; } function placeWall(x, y, type) { wallMC = game.wall.attachMovie(type, wallCounter, wallCounter); wallCounter++; wallMC._x = x * blockSize; wallMC._y = y * blockSize; map[x][y] = 1; } Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "seagal")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("seagal"); menuMusic.start(0, 100); _root.setmusic = "seagal"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2; keyListener = new Object(); keyListener.onKeyDown = function () { var _local1 = Key.getCode(); if ((_local1 > 36) && (_local1 < 41)) { if (game.onEnterFrame != undefined) { if ((_local1 - 37) != turnQueue[0]) { turnQueue.unshift(_local1 - 37); } } } else if (_local1 == 32) { if (!gameRunning) { startGame(); } } else if (_local1 == 80) { if (gameRunning) { if (game.onEnterFrame) { delete game.onEnterFrame; textMC.gotoAndStop("paused"); } else { game.onEnterFrame = main; textMC.gotoAndStop("hide"); } } } }; Key.addListener(keyListener);
Frame 133
Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek"); menuMusic.start(0, 100); _root.setmusic = "muziek"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 3;
Frame 134
Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "ocean")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("ocean"); menuMusic.start(0, 100); _root.setmusic = "ocean"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 2;
Frame 135
Mouse.show(); if ((_root.music == "ON") && (_root.setmusic != "muziek2")) { stopAllSounds(); menuMusic = new Sound(); menuMusic.attachSound("muziek2"); menuMusic.start(0, 100); _root.setmusic = "muziek2"; } blockSize = 8; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 1; moveSpeed = 1;
Symbol 12 MovieClip Frame 55
this._parent.removeMovieClip();
Symbol 13 MovieClip [wallMCTail] Frame 1
stop();
Symbol 16 MovieClip [snakeMC] Frame 1
stop();
Symbol 16 MovieClip [snakeMC] Frame 2
stop();
Symbol 20 MovieClip [bonus_heart] Frame 1
stop();
Symbol 20 MovieClip [bonus_heart] Frame 18
gotoAndPlay (2);
Symbol 22 MovieClip [bonus_pointBonus] Frame 1
stop();
Symbol 22 MovieClip [bonus_pointBonus] Frame 18
gotoAndPlay (2);
Symbol 24 MovieClip [bonus_foodblock] Frame 1
stop();
Symbol 24 MovieClip [bonus_foodblock] Frame 18
gotoAndPlay (2);
Symbol 27 MovieClip [bonus_fireball] Frame 1
stop();
Symbol 27 MovieClip [bonus_fireball] Frame 18
gotoAndPlay (2);
Symbol 28 MovieClip [wallMC] Frame 1
stop();
Symbol 32 MovieClip Frame 1
var counter = 0; var interval = 3; var speed = 50; var stripeArray = new Array(); onEnterFrame = function () { if (counter == 0) { stripeArray.push(this.attachMovie("preload_stripe", "preload_stripe", this.getNextHighestDepth(), 0, 0)); counter = Math.ceil(Math.random() * interval); stripeArray[stripeArray.length - 1]._y = (((Math.random() * (this._height - (stripeArray[stripeArray.length - 1]._height * 4))) + (stripeArray[stripeArray.length - 1]._height * 2)) / this._yscale) * 100; } else { counter--; } var _local3 = 0; while (_local3 < stripeArray.length) { if (stripeArray[_local3]._x < (_root._width + stripeArray[_local3]._width)) { stripeArray[_local3]._x = stripeArray[_local3]._x + speed; } else { delete stripeArray[_local3]; } _local3++; } };
Symbol 38 Button
on (release) { NewgroundsAPI.loadNewgrounds(); }
Symbol 40 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 44 Button
on (release) { getURL ("http://www.clashflash.com", "_blank"); }
Symbol 47 Button
on (release) { getURL ("http://www.clashflash.com", "_blank"); }
Symbol 67 MovieClip Frame 40
stop();
Symbol 81 Button
on (press) { tellTarget (_root) { nextFrame(); }; }
Symbol 82 Button
on (press) { gotoAndStop ("end"); _root.play(); }
Instance of Symbol 57 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (load) { _root.stop(); PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndStop("lastframe"); } } onClipEvent (enterFrame) { PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndPlay("loaded"); } }
Symbol 83 MovieClip Frame 101
play();
Symbol 83 MovieClip Frame 165
stop();
Symbol 515 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI { static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format; function NewgroundsAPI () { } static function connectMovie(id) { if (!id) { SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)"); } else if (!tracker_id) { SendMessage("Connecting to API gateway..."); tracker_id = id; host = _url.split("/")[2].toLowerCase(); if (host.length < 1) { host = "localhost"; } var _local2 = new Object(); SendEvent(MOVIE_VIEWS); } } static function setMovieVersion(movie_version) { if (!movie_version) { SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)"); } else { version = movie_version; } } static function debugMode() { debug = true; } static function addCustomEvent(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else if (!stat_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { custom_events[stat_name] = CUSTOM_STATS + stat_id; SendMessage("Created custom event: " + stat_name); } } static function addCustomLink(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else if (!stat_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { custom_links[stat_name] = CUSTOM_STATS + stat_id; SendMessage((("Created custom link " + stat_id) + ": ") + stat_name); } } static function loadMySite() { SendLink(AUTHOR_SITE); } static function loadNewgrounds(special) { if (special) { var _local1 = {page:special}; } SendLink(NEWGROUNDS, _local1); } static function logCustomEvent(event_name) { if (!event_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)"); } else if (!custom_events[event_name]) { SendError("Attempted to log undefined custom event: " + event_name); } else { SendEvent(custom_events[event_name]); } } static function loadCustomLink(link_name) { if (!link_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)"); } else if (!custom_links[link_name]) { SendError("Attempted to open undefined custom link: " + link_name); } else { SendLink(custom_links[link_name]); } } static function getAdURL() { return(movie_options.ad_url); } static function getMovieURL() { if (movie_options.movie_url) { return(movie_options.movie_url); } return("Newgrounds.com"); } static function getNewVersionURL() { return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION); } static function SendEvent(id) { SendStat(id, false); } static function SendLink(id, extra) { SendStat(id, true, extra); } static function ReadGatewayData(params) { for (var _local2 in params) { params[_local2] = unescape(params[_local2]); movie_options[_local2] = params[_local2]; } if (params.settings_loaded) { SendMessage("You have successfully connected to the Newgrounds API gateway!"); SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'"); if (movie_options.message) { SendMessage(movie_options.message); } if (movie_options.ad_url) { SendMessage("Your movie has been approved to run Flash Ads"); onAdsApproved(movie_options.ad_url); } if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) { SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!"); onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL()); } if (movie_options.deny_host) { SendMessage("You have blocked 'localHost' in your API settings."); SendMessage("If you wish to test your movie you will need to remove this block."); onDenyHost(host, getMovieURL(), getNewVersionURL()); } if (movie_options.request_portal_url == 1) { var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url); var _local3 = new XML(); _local3.ignoreWhite = true; _local3.load(_local4); } } else if (!movie_options.settings_loaded) { SendError("Could not establish connection to the API gateway."); } } static function SendStat(stat_id, open_in_browser, extra) { if (!tracker_id) { SendError("API calls cannot be made without a valid movie id."); SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?"); } else { var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id; for (var _local9 in extra) { _local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9])); } trace(_local7); if (debug) { _local7 = _local7 + "&debug=1"; } if (open_in_browser) { getURL (_local7, "_blank"); } else { var _local10 = new XML(); _local10.ignoreWhite = true; _local10.onLoad = function (success) { var _local6 = new Object(); var _local3 = 0; while (_local3 < this.firstChild.childNodes.length) { var _local4 = this.firstChild.childNodes[_local3]; var _local5 = _local4.nodeName; var _local2 = _local4.attributes.value; if (_local2 == Number(_local2)) { _local2 = Number(_local2); } _local6[_local5] = _local2; _local3++; } NewgroundsAPI.ReadGatewayData(_local6); }; _local10.load(_local7); } } } static function SendError(msg) { trace("[NEWGROUNDS API ERROR] :: " + msg); } static function SendMessage(msg) { trace("[NEWGROUNDS API] :: " + msg); } static function InitTextFormats() { if (!error_format) { error_format = new TextFormat(); error_format.font = "Arial Black"; error_format.size = 48; error_format.color = 16711680 /* 0xFF0000 */; } if (!header_format) { header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.size = 24; header_format.color = 16777215 /* 0xFFFFFF */; } if (!normal_format) { normal_format = new TextFormat(); normal_format.font = "Arial"; normal_format.bold = true; normal_format.size = 12; normal_format.color = 16777215 /* 0xFFFFFF */; } if (!link_format) { link_format = new TextFormat(); link_format.color = 16776960 /* 0xFFFF00 */; link_format.underline = true; } } static function onNewVersionAvailable(version, movie_url, redirect_url) { InitTextFormats(); var _local2 = new Object(); _local2.x = Stage.width / 2; _local2.y = Stage.height / 2; _root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var _local3 = (("Version " + version) + " is now available at:") + newline; var _local5 = _local3.length; _local3 = _local3 + movie_url; var _local4 = _local3.length; _root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = "New Version Available!"; _root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format); _root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = _local3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format); } static function onDenyHost(hostname, movie_url, redirect_url) { InitTextFormats(); _root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var _local2 = ("This movie has not been approved for use on " + hostname) + "."; _local2 = _local2 + "\r\rFor an aproved copy, please visit:\r"; var _local4 = _local2.length; _local2 = _local2 + movie_url; var _local3 = _local2.length; _root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = "ERROR!"; _root.NGAPI_deny_host_overlay.error.setTextFormat(error_format); _root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = _local2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format); } static function isInstalled() { return(true); } static function onAdsApproved(ad_url) { } static var movie_options = new Object(); static var custom_events = new Object(); static var custom_links = new Object(); static var MOVIE_VIEWS = 1; static var AUTHOR_SITE = 2; static var NEWGROUNDS = 3; static var NEW_VERSION = 4; static var CUSTOM_STATS = 50; static var GATEWAY_URL = "http://www.ngads.com/gateway.php"; }
Symbol 147 MovieClip Frame 38
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 158 Button
on (release) { getURL ("http://www.clashflash.com", "_blank"); }
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 3
stop();
Symbol 165 MovieClip Frame 4
stop();
Symbol 188 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 192 MovieClip Frame 15
stop();
Symbol 214 Button
on (release) { getURL ("http://www.clashflash.com", "_blank"); }
Symbol 218 MovieClip Frame 695
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 21
stop();
Symbol 257 MovieClip Frame 415
stop();
Symbol 272 Button
on (release) { _root.cpuSpeed = 10; gotoAndStop ("play"); } on (release) { _root.naamSpelerA = speler.spelerA.text; _root.spelerA = speler._currentframe; _root.pongA = (speler._currentframe * 2) - 1; _root.naamSpelerB = "Mr. G&W"; gotoAndStop ("lvl9"); }
Symbol 303 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 21
stop();
Symbol 319 MovieClip Frame 21
stop();
Symbol 344 MovieClip Frame 1
stop(); back.onRelease = function () { _root.gotoAndStop("menu"); };
Symbol 344 MovieClip Frame 2
stop(); back.onRelease = function () { _root.gotoAndStop("menu"); };
Symbol 344 MovieClip Frame 3
stop(); back.onRelease = function () { _root.gotoAndStop("menu"); };
Symbol 427 MovieClip Frame 310
stop();
Symbol 485 MovieClip Frame 1
stop();

Library Items

Symbol 1 Sound [muziek2]Used by:153
Symbol 2 Sound [muziek]Used by:153
Symbol 3 GraphicUsed by:13 28
Symbol 4 ShapeTweeningUsed by:12
Symbol 5 ShapeTweeningUsed by:12
Symbol 6 ShapeTweeningUsed by:12
Symbol 7 ShapeTweeningUsed by:12
Symbol 8 ShapeTweeningUsed by:12
Symbol 9 ShapeTweeningUsed by:12
Symbol 10 ShapeTweeningUsed by:12
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:4 5 6 7 8 9 10 11Used by:13 28
Symbol 13 MovieClip [wallMCTail]Uses:3 12
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip [snakeMC]Uses:14 15
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip [fireball_powerup]Uses:17Used by:485
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [bonus_heart]Uses:19Used by:257
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip [bonus_pointBonus]Uses:21Used by:257
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClip [bonus_foodblock]Uses:23Used by:257
Symbol 25 GraphicUsed by:27
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip [bonus_fireball]Uses:25 26Used by:257
Symbol 28 MovieClip [wallMC]Uses:3 12Used by:257
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClip [foodMC]Uses:29Used by:257
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:Timeline
Symbol 33 GraphicUsed by:34 39  Timeline
Symbol 34 MovieClipUses:33Used by:Timeline
Symbol 35 GraphicUsed by:40
Symbol 36 GraphicUsed by:38
Symbol 37 GraphicUsed by:38
Symbol 38 ButtonUses:36 37Used by:39
Symbol 39 MovieClipUses:33 38Used by:40
Symbol 40 MovieClipUses:35 39Used by:Timeline
Symbol 41 GraphicUsed by:47 188
Symbol 42 GraphicUsed by:44 214
Symbol 43 GraphicUsed by:44 214
Symbol 44 ButtonUses:42 43Used by:47
Symbol 45 FontUsed by:46
Symbol 46 TextUses:45Used by:47
Symbol 47 ButtonUses:41 44 46Used by:Timeline
Symbol 48 GraphicUsed by:165  Timeline
Symbol 49 FontUsed by:50
Symbol 50 TextUses:49Used by:Timeline
Symbol 51 GraphicUsed by:53
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:51 52Used by:83
Symbol 54 GraphicUsed by:83
Symbol 55 GraphicUsed by:83
Symbol 56 GraphicUsed by:83
Symbol 57 MovieClipUsed by:83
Symbol 58 GraphicUsed by:83
Symbol 59 GraphicUsed by:67
Symbol 60 GraphicUsed by:67
Symbol 61 GraphicUsed by:67
Symbol 62 GraphicUsed by:67
Symbol 63 GraphicUsed by:67
Symbol 64 GraphicUsed by:67
Symbol 65 GraphicUsed by:67
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:59 60 61 62 63 64 65 66Used by:83
Symbol 68 ShapeTweeningUsed by:83
Symbol 69 ShapeTweeningUsed by:83
Symbol 70 GraphicUsed by:83
Symbol 71 GraphicUsed by:83
Symbol 72 GraphicUsed by:83
Symbol 73 GraphicUsed by:81 82
Symbol 74 GraphicUsed by:81 82 83
Symbol 75 GraphicUsed by:81 82
Symbol 76 GraphicUsed by:81 82 83
Symbol 77 GraphicUsed by:81 82 83
Symbol 78 GraphicUsed by:80 81 82
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:78 79Used by:81 82 83
Symbol 81 ButtonUses:73 74 75 76 77 80 78Used by:83
Symbol 82 ButtonUses:73 74 75 76 77 80 78Used by:83
Symbol 83 MovieClipUses:53 54 55 56 57 58 67 68 69 70 71 72 81 82 77 74 80 76Used by:Timeline
Symbol 84 GraphicUsed by:Timeline
Symbol 85 FontUsed by:86 87 238 358 363 399 453
Symbol 86 TextUses:85Used by:Timeline
Symbol 87 TextUses:85Used by:Timeline
Symbol 515 MovieClip [__Packages.NewgroundsAPI]
Symbol 88 GraphicUsed by:Timeline
Symbol 89 GraphicUsed by:Timeline
Symbol 90 GraphicUsed by:94
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:94
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClipUses:90 92 93Used by:Timeline
Symbol 95 SoundUsed by:Timeline
Symbol 96 FontUsed by:97 145 154 162 163 164 225 226 239 240
Symbol 97 TextUses:96Used by:Timeline
Symbol 98 ShapeTweeningUsed by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 FontUsed by:101
Symbol 101 EditableTextUses:100Used by:Timeline
Symbol 102 ShapeTweeningUsed by:Timeline
Symbol 103 GraphicUsed by:Timeline
Symbol 104 ShapeTweeningUsed by:109
Symbol 105 ShapeTweeningUsed by:109
Symbol 106 ShapeTweeningUsed by:109
Symbol 107 ShapeTweeningUsed by:109
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:104 105 106 107 108Used by:Timeline
Symbol 110 GraphicUsed by:489  Timeline
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:Timeline
Symbol 113 GraphicUsed by:120 310 313 316
Symbol 114 GraphicUsed by:120 310 313 316
Symbol 115 GraphicUsed by:120
Symbol 116 FontUsed by:117 275 308 312 315
Symbol 117 TextUses:116Used by:118 120
Symbol 118 MovieClipUses:117Used by:120
Symbol 119 GraphicUsed by:120
Symbol 120 ButtonUses:113 114 115 118 119 117Used by:Timeline
Symbol 121 GraphicUsed by:125 127
Symbol 122 FontUsed by:123 126
Symbol 123 TextUses:122Used by:125
Symbol 124 GraphicUsed by:125 127
Symbol 125 ButtonUses:121 123 124Used by:Timeline
Symbol 126 TextUses:122Used by:127
Symbol 127 ButtonUses:121 126 124Used by:Timeline
Symbol 128 GraphicUsed by:132 134 136
Symbol 129 FontUsed by:130 133 135
Symbol 130 TextUses:129Used by:132
Symbol 131 GraphicUsed by:132 134 136
Symbol 132 ButtonUses:128 130 131Used by:Timeline
Symbol 133 TextUses:129Used by:134
Symbol 134 ButtonUses:128 133 131Used by:Timeline
Symbol 135 TextUses:129Used by:136
Symbol 136 ButtonUses:128 135 131Used by:Timeline
Symbol 137 GraphicUsed by:Timeline
Symbol 138 MovieClipUsed by:Timeline
Symbol 139 GraphicUsed by:142
Symbol 140 GraphicUsed by:142
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:139 140 141Used by:Timeline
Symbol 143 ShapeTweeningUsed by:147
Symbol 144 GraphicUsed by:147
Symbol 145 TextUses:96Used by:147
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:143 144 145 146Used by:Timeline
Symbol 148 Sound [tiesto]Used by:153
Symbol 149 Sound [pokemon]Used by:153
Symbol 150 Sound [menu]Used by:153
Symbol 151 Sound [ocean]Used by:153
Symbol 152 Sound [seagal]Used by:153
Symbol 153 MovieClipUses:148 149 150 151 152 2 1Used by:Timeline
Symbol 154 TextUses:96Used by:158
Symbol 155 GraphicUsed by:157 158
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:155 156Used by:158
Symbol 158 ButtonUses:154 157 155Used by:Timeline
Symbol 159 GraphicUsed by:165
Symbol 160 FontUsed by:162 163 164 209 210 211 212 213 215 216 217 247 248 249 250 251 252 253 254 255 256
Symbol 161 FontUsed by:162 163 164
Symbol 162 TextUses:96 160 161Used by:165
Symbol 163 TextUses:96 160 161Used by:165
Symbol 164 TextUses:96 160 161Used by:165
Symbol 165 MovieClipUses:159 162 163 48 164Used by:Timeline
Symbol 166 GraphicUsed by:Timeline
Symbol 167 BitmapUsed by:168 170
Symbol 168 GraphicUses:167Used by:171
Symbol 169 GraphicUsed by:171 175 179 262 267 272 279 283 287 291 295 299
Symbol 170 GraphicUses:167Used by:171
Symbol 171 ButtonUses:168 169 170Used by:Timeline
Symbol 172 BitmapUsed by:173 174
Symbol 173 GraphicUses:172Used by:175
Symbol 174 GraphicUses:172Used by:175
Symbol 175 ButtonUses:173 169 174Used by:Timeline
Symbol 176 BitmapUsed by:177 178
Symbol 177 GraphicUses:176Used by:179
Symbol 178 GraphicUses:176Used by:179
Symbol 179 ButtonUses:177 169 178Used by:Timeline
Symbol 180 FontUsed by:181 182 183 327 328 329 335 336 337 338 339 340 342 345 348 350 357 362 398 407 416 428 452 470 477 487 495 514
Symbol 181 EditableTextUses:180Used by:Timeline
Symbol 182 EditableTextUses:180Used by:Timeline
Symbol 183 EditableTextUses:180Used by:Timeline
Symbol 184 GraphicUsed by:188
Symbol 185 FontUsed by:186
Symbol 186 TextUses:185Used by:188
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:41 184 186 187Used by:344  Timeline
Symbol 189 GraphicUsed by:Timeline
Symbol 190 FontUsed by:191 243 305 318
Symbol 191 TextUses:190Used by:192
Symbol 192 MovieClipUses:191Used by:Timeline
Symbol 193 GraphicUsed by:206
Symbol 194 GraphicUsed by:206
Symbol 195 GraphicUsed by:206
Symbol 196 GraphicUsed by:206
Symbol 197 GraphicUsed by:206
Symbol 198 GraphicUsed by:206
Symbol 199 GraphicUsed by:206
Symbol 200 GraphicUsed by:206
Symbol 201 GraphicUsed by:206
Symbol 202 GraphicUsed by:206
Symbol 203 GraphicUsed by:206
Symbol 204 GraphicUsed by:206
Symbol 205 GraphicUsed by:206
Symbol 206 MovieClipUses:193 194 195 196 197 198 199 200 201 202 203 204 205Used by:Timeline
Symbol 207 GraphicUsed by:218
Symbol 208 GraphicUsed by:218
Symbol 209 TextUses:160Used by:218
Symbol 210 TextUses:160Used by:218
Symbol 211 TextUses:160Used by:218
Symbol 212 TextUses:160Used by:218
Symbol 213 TextUses:160Used by:218
Symbol 214 ButtonUses:42 43Used by:218
Symbol 215 TextUses:160Used by:218
Symbol 216 TextUses:160Used by:218
Symbol 217 TextUses:160Used by:218
Symbol 218 MovieClipUses:207 208 209 210 211 212 213 214 215 216 217Used by:Timeline
Symbol 219 GraphicUsed by:Timeline
Symbol 220 GraphicUsed by:224
Symbol 221 FontUsed by:222 229 235 332
Symbol 222 TextUses:221Used by:224
Symbol 223 GraphicUsed by:224
Symbol 224 ButtonUses:220 222 223Used by:Timeline
Symbol 225 TextUses:96Used by:227
Symbol 226 TextUses:96Used by:227
Symbol 227 MovieClipUses:225 226Used by:Timeline
Symbol 228 GraphicUsed by:233
Symbol 229 TextUses:221Used by:233
Symbol 230 GraphicUsed by:233
Symbol 231 FontUsed by:232
Symbol 232 TextUses:231Used by:233
Symbol 233 ButtonUses:228 229 230 232Used by:Timeline
Symbol 234 GraphicUsed by:237
Symbol 235 TextUses:221Used by:237
Symbol 236 GraphicUsed by:237
Symbol 237 ButtonUses:234 235 236Used by:Timeline
Symbol 238 TextUses:85Used by:241
Symbol 239 TextUses:96Used by:241
Symbol 240 TextUses:96Used by:241
Symbol 241 MovieClipUses:238 239 240Used by:Timeline
Symbol 242 GraphicUsed by:Timeline
Symbol 243 TextUses:190Used by:244
Symbol 244 MovieClipUses:243Used by:Timeline
Symbol 245 GraphicUsed by:257
Symbol 246 GraphicUsed by:257
Symbol 247 TextUses:160Used by:257
Symbol 248 TextUses:160Used by:257
Symbol 249 TextUses:160Used by:257
Symbol 250 TextUses:160Used by:257
Symbol 251 TextUses:160Used by:257
Symbol 252 TextUses:160Used by:257
Symbol 253 TextUses:160Used by:257
Symbol 254 TextUses:160Used by:257
Symbol 255 TextUses:160Used by:257
Symbol 256 TextUses:160Used by:257
Symbol 257 MovieClipUses:245 246 247 248 249 250 251 252 253 254 255 256 30 28 27 24 22 20Used by:Timeline
Symbol 258 GraphicUsed by:Timeline
Symbol 259 BitmapUsed by:260 261
Symbol 260 GraphicUses:259Used by:262
Symbol 261 GraphicUses:259Used by:262
Symbol 262 ButtonUses:260 169 261Used by:Timeline
Symbol 263 BitmapUsed by:264 266
Symbol 264 GraphicUses:263Used by:267
Symbol 265 GraphicUsed by:267
Symbol 266 GraphicUses:263Used by:267
Symbol 267 ButtonUses:264 169 265 266Used by:Timeline
Symbol 268 BitmapUsed by:269 270 271
Symbol 269 GraphicUses:268Used by:272
Symbol 270 GraphicUses:268Used by:272
Symbol 271 GraphicUses:268Used by:272
Symbol 272 ButtonUses:269 169 270 271Used by:Timeline
Symbol 273 BitmapUsed by:274 277 278
Symbol 274 GraphicUses:273Used by:279
Symbol 275 TextUses:116Used by:279
Symbol 276 GraphicUsed by:279
Symbol 277 GraphicUses:273Used by:279
Symbol 278 GraphicUses:273Used by:279
Symbol 279 ButtonUses:274 275 169 276 277 278Used by:Timeline
Symbol 280 BitmapUsed by:281 282
Symbol 281 GraphicUses:280Used by:283
Symbol 282 GraphicUses:280Used by:283
Symbol 283 ButtonUses:281 169 282Used by:Timeline
Symbol 284 BitmapUsed by:285 286
Symbol 285 GraphicUses:284Used by:287
Symbol 286 GraphicUses:284Used by:287
Symbol 287 ButtonUses:285 169 286Used by:Timeline
Symbol 288 BitmapUsed by:289 290
Symbol 289 GraphicUses:288Used by:291
Symbol 290 GraphicUses:288Used by:291
Symbol 291 ButtonUses:289 169 290Used by:Timeline
Symbol 292 BitmapUsed by:293 294
Symbol 293 GraphicUses:292Used by:295
Symbol 294 GraphicUses:292Used by:295
Symbol 295 ButtonUses:293 169 294Used by:Timeline
Symbol 296 BitmapUsed by:297 298
Symbol 297 GraphicUses:296Used by:299
Symbol 298 GraphicUses:296Used by:299
Symbol 299 ButtonUses:297 169 298Used by:Timeline
Symbol 300 GraphicUsed by:303
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:301Used by:303
Symbol 303 MovieClipUses:300 302Used by:Timeline
Symbol 304 GraphicUsed by:Timeline
Symbol 305 TextUses:190Used by:306
Symbol 306 MovieClipUses:305Used by:Timeline
Symbol 307 GraphicUsed by:310
Symbol 308 TextUses:116Used by:310
Symbol 309 GraphicUsed by:310 313 316
Symbol 310 ButtonUses:113 114 307 308 309Used by:Timeline
Symbol 311 GraphicUsed by:313
Symbol 312 TextUses:116Used by:313
Symbol 313 ButtonUses:113 114 311 312 309Used by:Timeline
Symbol 314 GraphicUsed by:316
Symbol 315 TextUses:116Used by:316
Symbol 316 ButtonUses:113 114 314 315 309Used by:Timeline
Symbol 317 GraphicUsed by:Timeline
Symbol 318 TextUses:190Used by:319
Symbol 319 MovieClipUses:318Used by:Timeline
Symbol 320 GraphicUsed by:Timeline
Symbol 321 FontUsed by:322 346 349 355 356 360 361 365 393 405 406 409 411 418 421 423 424 425 426 430 431 455 466 472 475 480 494 512
Symbol 322 EditableTextUses:321Used by:Timeline
Symbol 323 MovieClipUsed by:Timeline
Symbol 324 GraphicUsed by:Timeline
Symbol 325 GraphicUsed by:347  Timeline
Symbol 326 GraphicUsed by:344
Symbol 327 EditableTextUses:180Used by:344
Symbol 328 EditableTextUses:180Used by:344
Symbol 329 EditableTextUses:180Used by:344
Symbol 330 GraphicUsed by:344
Symbol 331 GraphicUsed by:334
Symbol 332 TextUses:221Used by:334
Symbol 333 GraphicUsed by:334
Symbol 334 ButtonUses:331 332 333Used by:344
Symbol 335 EditableTextUses:180Used by:344
Symbol 336 EditableTextUses:180Used by:344
Symbol 337 EditableTextUses:180Used by:344
Symbol 338 EditableTextUses:180Used by:344
Symbol 339 EditableTextUses:180Used by:344
Symbol 340 EditableTextUses:180Used by:344
Symbol 341 GraphicUsed by:343
Symbol 342 EditableTextUses:180Used by:343
Symbol 343 MovieClipUses:341 342Used by:344
Symbol 344 MovieClipUses:326 188 327 328 329 330 334 335 336 337 338 339 340 343Used by:Timeline
Symbol 345 EditableTextUses:180Used by:Timeline
Symbol 346 EditableTextUses:321Used by:Timeline
Symbol 347 MovieClipUses:325Used by:Timeline
Symbol 348 EditableTextUses:180Used by:Timeline
Symbol 349 EditableTextUses:321Used by:Timeline
Symbol 350 EditableTextUses:180Used by:Timeline
Symbol 351 GraphicUsed by:Timeline
Symbol 352 GraphicUsed by:Timeline
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:353Used by:Timeline
Symbol 355 EditableTextUses:321Used by:Timeline
Symbol 356 EditableTextUses:321Used by:Timeline
Symbol 357 EditableTextUses:180Used by:Timeline
Symbol 358 TextUses:85Used by:Timeline
Symbol 359 GraphicUsed by:Timeline
Symbol 360 EditableTextUses:321Used by:Timeline
Symbol 361 EditableTextUses:321Used by:Timeline
Symbol 362 EditableTextUses:180Used by:Timeline
Symbol 363 TextUses:85Used by:Timeline
Symbol 364 GraphicUsed by:Timeline
Symbol 365 EditableTextUses:321Used by:Timeline
Symbol 366 GraphicUsed by:390
Symbol 367 GraphicUsed by:390
Symbol 368 GraphicUsed by:390
Symbol 369 GraphicUsed by:390
Symbol 370 GraphicUsed by:390
Symbol 371 GraphicUsed by:390
Symbol 372 GraphicUsed by:390
Symbol 373 GraphicUsed by:390
Symbol 374 GraphicUsed by:390
Symbol 375 GraphicUsed by:390
Symbol 376 GraphicUsed by:390
Symbol 377 GraphicUsed by:390
Symbol 378 GraphicUsed by:390
Symbol 379 GraphicUsed by:390
Symbol 380 GraphicUsed by:390
Symbol 381 GraphicUsed by:390
Symbol 382 GraphicUsed by:390
Symbol 383 GraphicUsed by:390
Symbol 384 GraphicUsed by:390
Symbol 385 GraphicUsed by:390
Symbol 386 GraphicUsed by:390
Symbol 387 GraphicUsed by:390
Symbol 388 GraphicUsed by:390
Symbol 389 GraphicUsed by:390
Symbol 390 MovieClipUses:366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389Used by:Timeline
Symbol 391 GraphicUsed by:392
Symbol 392 MovieClipUses:391Used by:Timeline
Symbol 393 EditableTextUses:321Used by:Timeline
Symbol 394 GraphicUsed by:395
Symbol 395 MovieClipUses:394Used by:Timeline
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396Used by:Timeline
Symbol 398 EditableTextUses:180Used by:Timeline
Symbol 399 TextUses:85Used by:Timeline
Symbol 400 GraphicUsed by:Timeline
Symbol 401 GraphicUsed by:Timeline
Symbol 402 GraphicUsed by:404
Symbol 403 GraphicUsed by:404
Symbol 404 MovieClipUses:402 403Used by:Timeline
Symbol 405 EditableTextUses:321Used by:Timeline
Symbol 406 EditableTextUses:321Used by:Timeline
Symbol 407 EditableTextUses:180Used by:Timeline
Symbol 408 GraphicUsed by:Timeline
Symbol 409 EditableTextUses:321Used by:Timeline
Symbol 410 GraphicUsed by:Timeline
Symbol 411 EditableTextUses:321Used by:Timeline
Symbol 412 GraphicUsed by:414
Symbol 413 GraphicUsed by:414
Symbol 414 MovieClipUses:412 413Used by:Timeline
Symbol 415 GraphicUsed by:Timeline
Symbol 416 EditableTextUses:180Used by:Timeline
Symbol 417 GraphicUsed by:Timeline
Symbol 418 EditableTextUses:321Used by:Timeline
Symbol 419 GraphicUsed by:Timeline
Symbol 420 GraphicUsed by:Timeline
Symbol 421 EditableTextUses:321Used by:Timeline
Symbol 422 GraphicUsed by:Timeline
Symbol 423 EditableTextUses:321Used by:427
Symbol 424 EditableTextUses:321Used by:427
Symbol 425 EditableTextUses:321Used by:427
Symbol 426 EditableTextUses:321Used by:427
Symbol 427 MovieClipUses:423 424 425 426Used by:Timeline
Symbol 428 EditableTextUses:180Used by:Timeline
Symbol 429 GraphicUsed by:Timeline
Symbol 430 EditableTextUses:321Used by:Timeline
Symbol 431 EditableTextUses:321Used by:Timeline
Symbol 432 GraphicUsed by:Timeline
Symbol 433 GraphicUsed by:434
Symbol 434 MovieClipUses:433Used by:Timeline
Symbol 435 GraphicUsed by:438
Symbol 436 GraphicUsed by:438
Symbol 437 GraphicUsed by:438
Symbol 438 MovieClipUses:435 436 437Used by:Timeline
Symbol 439 GraphicUsed by:441
Symbol 440 GraphicUsed by:441
Symbol 441 MovieClipUses:439 440Used by:Timeline
Symbol 442 GraphicUsed by:Timeline
Symbol 443 GraphicUsed by:450
Symbol 444 GraphicUsed by:450
Symbol 445 GraphicUsed by:450
Symbol 446 GraphicUsed by:450
Symbol 447 GraphicUsed by:450
Symbol 448 GraphicUsed by:450
Symbol 449 GraphicUsed by:450
Symbol 450 MovieClipUses:443 444 445 446 447 448 449Used by:Timeline
Symbol 451 GraphicUsed by:Timeline
Symbol 452 EditableTextUses:180Used by:Timeline
Symbol 453 TextUses:85Used by:Timeline
Symbol 454 GraphicUsed by:Timeline
Symbol 455 EditableTextUses:321Used by:Timeline
Symbol 456 GraphicUsed by:497  Timeline
Symbol 457 ShapeTweeningUsed by:462
Symbol 458 ShapeTweeningUsed by:462
Symbol 459 ShapeTweeningUsed by:462
Symbol 460 ShapeTweeningUsed by:462
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClipUses:457 458 459 460 461Used by:497  Timeline
Symbol 463 GraphicUsed by:Timeline
Symbol 464 GraphicUsed by:Timeline
Symbol 465 GraphicUsed by:Timeline
Symbol 466 EditableTextUses:321Used by:Timeline
Symbol 467 GraphicUsed by:468 469
Symbol 468 MovieClipUses:467Used by:Timeline
Symbol 469 MovieClipUses:467Used by:Timeline
Symbol 470 EditableTextUses:180Used by:Timeline
Symbol 471 GraphicUsed by:Timeline
Symbol 472 EditableTextUses:321Used by:Timeline
Symbol 473 BitmapUsed by:474
Symbol 474 GraphicUses:473Used by:Timeline
Symbol 475 EditableTextUses:321Used by:Timeline
Symbol 476 GraphicUsed by:Timeline
Symbol 477 EditableTextUses:180Used by:Timeline
Symbol 478 GraphicUsed by:Timeline
Symbol 479 GraphicUsed by:Timeline
Symbol 480 EditableTextUses:321Used by:Timeline
Symbol 481 MovieClipUsed by:Timeline
Symbol 482 GraphicUsed by:Timeline
Symbol 483 GraphicUsed by:Timeline
Symbol 484 GraphicUsed by:485
Symbol 485 MovieClipUses:484 18Used by:Timeline
Symbol 486 GraphicUsed by:Timeline
Symbol 487 EditableTextUses:180Used by:Timeline
Symbol 488 GraphicUsed by:Timeline
Symbol 489 MovieClipUses:110Used by:Timeline
Symbol 490 GraphicUsed by:493
Symbol 491 GraphicUsed by:493
Symbol 492 GraphicUsed by:493
Symbol 493 MovieClipUses:490 491 492Used by:Timeline
Symbol 494 EditableTextUses:321Used by:Timeline
Symbol 495 EditableTextUses:180Used by:Timeline
Symbol 496 GraphicUsed by:Timeline
Symbol 497 MovieClipUses:456 462Used by:Timeline
Symbol 498 ShapeTweeningUsed by:503
Symbol 499 ShapeTweeningUsed by:503
Symbol 500 ShapeTweeningUsed by:503
Symbol 501 ShapeTweeningUsed by:503
Symbol 502 GraphicUsed by:503
Symbol 503 MovieClipUses:498 499 500 501 502Used by:Timeline
Symbol 504 GraphicUsed by:511
Symbol 505 GraphicUsed by:511
Symbol 506 GraphicUsed by:511
Symbol 507 GraphicUsed by:511
Symbol 508 GraphicUsed by:511
Symbol 509 GraphicUsed by:511
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClipUses:504 505 506 507 508 509 510Used by:Timeline
Symbol 512 EditableTextUses:321Used by:Timeline
Symbol 513 GraphicUsed by:Timeline
Symbol 514 EditableTextUses:180Used by:Timeline

Instance Names

"specialbut"Frame 114Symbol 120 Button
"arcadebut"Frame 114Symbol 125 Button
"originalbut"Frame 114Symbol 127 Button
"helpbut"Frame 114Symbol 132 Button
"settingsbut"Frame 114Symbol 134 Button
"creditsbut"Frame 114Symbol 136 Button
"uitleg"Frame 114Symbol 165 MovieClip
"lvl3buts"Frame 115Symbol 171 Button
"lvl2buts"Frame 115Symbol 175 Button
"lvl1buts"Frame 115Symbol 179 Button
"soundsbut"Frame 117Symbol 224 Button
"mus"Frame 117Symbol 227 MovieClip
"fullscreen"Frame 117Symbol 233 Button
"gfxbut"Frame 117Symbol 237 Button
"gamequal"Frame 117Symbol 241 MovieClip
"lvl6but"Frame 119Symbol 262 Button
"lvl8but"Frame 119Symbol 267 Button
"lvl1but"Frame 119Symbol 272 Button
"speciallvlbut"Frame 119Symbol 279 Button
"lvl3but"Frame 119Symbol 283 Button
"lvl4but"Frame 119Symbol 287 Button
"lvl7but"Frame 119Symbol 291 Button
"lvl2but"Frame 119Symbol 295 Button
"lvl5but"Frame 119Symbol 299 Button
"locked2"Frame 119Symbol 303 MovieClip
"locked3"Frame 119Symbol 303 MovieClip
"locked4"Frame 119Symbol 303 MovieClip
"locked7"Frame 119Symbol 303 MovieClip
"locked5"Frame 119Symbol 303 MovieClip
"locked6"Frame 119Symbol 303 MovieClip
"locked8"Frame 119Symbol 303 MovieClip
"locked9"Frame 119Symbol 303 MovieClip
"easy"Frame 120Symbol 310 Button
"medium"Frame 120Symbol 313 Button
"hard"Frame 120Symbol 316 Button
"game"Frame 121Symbol 323 MovieClip
"textMC"Frame 121Symbol 344 MovieClip
"scoreTextField"Frame 121Symbol 345 EditableText
"scoreTextField"Frame 122Symbol 348 EditableText
"scoreTextField"Frame 123Symbol 350 EditableText
"game"Frame 124Symbol 323 MovieClip
"textMC"Frame 124Symbol 344 MovieClip
"scoreTextField"Frame 124Symbol 357 EditableText
"scoreTextField"Frame 125Symbol 362 EditableText
"scoreTextField"Frame 126Symbol 398 EditableText
"scoreTextField"Frame 127Symbol 407 EditableText
"scoreTextField"Frame 128Symbol 416 EditableText
"scoreTextField"Frame 129Symbol 428 EditableText
"scoreTextField"Frame 130Symbol 452 EditableText
"scoreTextField"Frame 131Symbol 470 EditableText
"scoreTextField"Frame 132Symbol 477 EditableText
"game"Frame 133Symbol 481 MovieClip
"textMC"Frame 133Symbol 344 MovieClip
"bonusindi"Frame 133Symbol 485 MovieClip
"scoreTextField"Frame 133Symbol 487 EditableText
"scoreTextField"Frame 134Symbol 495 EditableText
"scoreTextField"Frame 135Symbol 514 EditableText
"ng_ad"Symbol 40 MovieClip Frame 1Symbol 39 MovieClip
"slogo"Symbol 94 MovieClip Frame 1Symbol 92 MovieClip
"back"Symbol 344 MovieClip Frame 2Symbol 334 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "muziek2"
ExportAssets (56)Timeline Frame 1Symbol 2 as "muziek"
ExportAssets (56)Timeline Frame 1Symbol 13 as "wallMCTail"
ExportAssets (56)Timeline Frame 1Symbol 16 as "snakeMC"
ExportAssets (56)Timeline Frame 1Symbol 18 as "fireball_powerup"
ExportAssets (56)Timeline Frame 1Symbol 20 as "bonus_heart"
ExportAssets (56)Timeline Frame 1Symbol 22 as "bonus_pointBonus"
ExportAssets (56)Timeline Frame 1Symbol 24 as "bonus_foodblock"
ExportAssets (56)Timeline Frame 1Symbol 27 as "bonus_fireball"
ExportAssets (56)Timeline Frame 1Symbol 28 as "wallMC"
ExportAssets (56)Timeline Frame 1Symbol 30 as "foodMC"
ExportAssets (56)Timeline Frame 1Symbol 515 as "__Packages.NewgroundsAPI"
ExportAssets (56)Timeline Frame 114Symbol 148 as "tiesto"
ExportAssets (56)Timeline Frame 114Symbol 149 as "pokemon"
ExportAssets (56)Timeline Frame 114Symbol 150 as "menu"
ExportAssets (56)Timeline Frame 114Symbol 151 as "ocean"
ExportAssets (56)Timeline Frame 114Symbol 152 as "seagal"

Labels

"intro"Frame 11
"menu"Frame 114
"special"Frame 115
"credits"Frame 116
"settings"Frame 117
"help"Frame 118
"orginalmode"Frame 119
"arcade"Frame 120
"game_easy"Frame 121
"game_medium"Frame 122
"game_hard"Frame 123
"lvl1"Frame 124
"lvl2"Frame 125
"lvl3"Frame 126
"lvl4"Frame 127
"lvl7"Frame 128
"lvl8"Frame 129
"lvl5"Frame 130
"lvl6"Frame 131
"speciallvl"Frame 132
"lvl1s"Frame 133
"lvl2s"Frame 134
"lvl3s"Frame 135
"explode"Symbol 13 MovieClip [wallMCTail] Frame 2
"explode"Symbol 28 MovieClip [wallMC] Frame 2
"loading"Symbol 83 MovieClip Frame 1
"loaded"Symbol 83 MovieClip Frame 101
"lastframe"Symbol 83 MovieClip Frame 165
"end"Symbol 83 MovieClip Frame 166
"niets"Symbol 165 MovieClip Frame 1
"uitleg1"Symbol 165 MovieClip Frame 2
"uitleg2"Symbol 165 MovieClip Frame 3
"uitleg3"Symbol 165 MovieClip Frame 4
"ON"Symbol 227 MovieClip Frame 1
"OFF"Symbol 227 MovieClip Frame 2
"LOW"Symbol 241 MovieClip Frame 1
"MEDIUM"Symbol 241 MovieClip Frame 2
"HIGH"Symbol 241 MovieClip Frame 3
"start"Symbol 344 MovieClip Frame 1
"gameOver"Symbol 344 MovieClip Frame 2
"win"Symbol 344 MovieClip Frame 3
"paused"Symbol 344 MovieClip Frame 4
"hide"Symbol 344 MovieClip Frame 5
"none"Symbol 485 MovieClip Frame 1
"fireball"Symbol 485 MovieClip Frame 2

Dynamic Text Variables

stolen_txtSymbol 101 EditableText""




http://swfchan.com/15/70387/info.shtml
Created: 9/4 -2019 22:50:14 Last modified: 9/4 -2019 22:50:14 Server time: 22/12 -2024 18:12:11