STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229703 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5192 |
This is the info page for Flash #54508 |
Random |
Productions |
created by: Random productions |
SANKE: The origanal game |
Click to start |
Use arrow keys to turn. Press P to pause |
Game Over |
Press SPACE to restart |
Paused |
food =10 points |
ActionScript [AS1/AS2]
Frame 75stop(); myMusic = new Sound(this); myMusic.attachSound("song1"); myMusic.start(0, 99); slider.control._y = -50; slider.control.onEnterFrame = function () { myMusic.setVolume(-this._y); }; slider.control.onPress = function () { var _local1 = this; startDrag (_local1, false, _local1._x, -100, _local1._x, 0); }; slider.control.onRelease = function () { stopDrag(); };Frame 76function startGame() { x = int(gameWidth / 2); y = gameHeight - 2; 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; } function main() { if (turnQueue.length > 0) { var _local2 = turnQueue.pop(); if ((_local2 % 2) != (currentDirection % 2)) { currentDirection = _local2; } } x = x + xVelocity[currentDirection]; y = y + yVelocity[currentDirection]; 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}); snakeBlockCounter++; if (typeof(map[x][y]) == "movieclip") { score = score + 10; scoreTextField.text = "Score: " + score; snakeEraseCounter = snakeEraseCounter - 5; 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(); } } function gameOver() { textMC.gotoAndStop("gameOver"); delete game.onEnterFrame; gameRunning = false; } function placeFood(foodMC) { var _local1 = foodMC; do { var xFood = random(gameWidth); var yFood = random(gameHeight); } while (map[xFood][yFood]); if (_local1 == "new") { _local1 = game.food.attachMovie("foodMC", foodCounter, foodCounter); foodCounter++; } _local1._x = xFood * blockSize; _local1._y = yFood * blockSize; map[xFood][yFood] = _local1; } stop(); blockSize = 7; gameHeight = 30; gameWidth = 45; SNAKE_BLOCK = 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); mouseListener = new Object(); mouseListener.onMouseDown = function () { if (!gameRunning) { startGame(); } }; Mouse.addListener(mouseListener);Symbol 20 MovieClip Frame 1_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._yscale = PercentLoaded; } else { gotoAndPlay ("LOADED"); }Symbol 20 MovieClip Frame 2gotoAndPlay (1);Symbol 20 MovieClip Frame 75_root.play();Symbol 25 MovieClip Frame 40stop();Symbol 28 MovieClip Frame 40stop();Symbol 41 Buttonon (press) { nextFrame(); }Symbol 68 MovieClip Frame 1stop();
Library Items
Symbol 1 Sound [song1] | ||
Symbol 2 Graphic | Used by:3 | |
Symbol 3 MovieClip [wallMC] | Uses:2 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip [foodMC] | Uses:4 | Used by:Timeline |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 MovieClip [snakeMC] | Uses:6 | Used by:Timeline |
Symbol 8 Graphic | Used by:9 | |
Symbol 9 MovieClip | Uses:8 | Used by:20 |
Symbol 10 Graphic | Used by:20 | |
Symbol 11 Graphic | Used by:12 | |
Symbol 12 MovieClip | Uses:11 | Used by:20 |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 MovieClip | Uses:13 | Used by:15 |
Symbol 15 MovieClip | Uses:14 | Used by:20 |
Symbol 16 Graphic | Used by:17 | |
Symbol 17 MovieClip | Uses:16 | Used by:20 |
Symbol 18 Graphic | Used by:19 | |
Symbol 19 MovieClip | Uses:18 | Used by:20 |
Symbol 20 MovieClip | Uses:9 10 12 15 17 19 SS1 | Used by:Timeline |
Symbol 21 Graphic | Used by:25 | |
Symbol 22 Font | Used by:23 27 | |
Symbol 23 Text | Uses:22 | Used by:25 |
Symbol 24 MovieClip | Used by:25 54 | |
Symbol 25 MovieClip | Uses:21 23 24 | Used by:Timeline |
Symbol 26 Graphic | Used by:28 | |
Symbol 27 Text | Uses:22 | Used by:28 |
Symbol 28 MovieClip | Uses:26 27 | Used by:Timeline |
Symbol 29 Graphic | Used by:33 | |
Symbol 30 ShapeTweening | Used by:33 | |
Symbol 31 ShapeTweening | Used by:33 | |
Symbol 32 Graphic | Used by:33 | |
Symbol 33 MovieClip | Uses:29 30 31 32 | Used by:Timeline |
Symbol 34 Bitmap | Used by:35 | |
Symbol 35 Graphic | Uses:34 | Used by:Timeline |
Symbol 36 ShapeTweening | Used by:39 | |
Symbol 37 ShapeTweening | Used by:39 | |
Symbol 38 Graphic | Used by:39 | |
Symbol 39 MovieClip | Uses:36 37 38 | Used by:Timeline |
Symbol 40 Graphic | Used by:41 | |
Symbol 41 Button | Uses:40 | Used by:Timeline |
Symbol 42 Font | Used by:43 56 | |
Symbol 43 Text | Uses:42 | Used by:Timeline |
Symbol 44 Bitmap | Used by:45 46 57 | |
Symbol 45 Graphic | Uses:44 | Used by:Timeline |
Symbol 46 Graphic | Uses:44 | Used by:47 |
Symbol 47 MovieClip | Uses:46 | Used by:Timeline |
Symbol 48 Bitmap | Used by:50 | |
Symbol 49 Bitmap | Used by:50 51 52 | |
Symbol 50 Graphic | Uses:48 49 | Used by:54 |
Symbol 51 Graphic | Uses:49 | Used by:54 |
Symbol 52 Graphic | Uses:49 | Used by:53 |
Symbol 53 MovieClip | Uses:52 | Used by:54 |
Symbol 54 MovieClip | Uses:50 24 51 53 | Used by:Timeline |
Symbol 55 Graphic | Used by:Timeline | |
Symbol 56 Text | Uses:42 | Used by:Timeline |
Symbol 57 Graphic | Uses:44 | Used by:Timeline |
Symbol 58 MovieClip | Used by:Timeline | |
Symbol 59 Graphic | Used by:68 | |
Symbol 60 Font | Used by:61 65 67 | |
Symbol 61 EditableText | Uses:60 | Used by:68 |
Symbol 62 Font | Used by:63 66 | |
Symbol 63 EditableText | Uses:62 | Used by:68 |
Symbol 64 Graphic | Used by:68 | |
Symbol 65 EditableText | Uses:60 | Used by:68 |
Symbol 66 EditableText | Uses:62 | Used by:68 |
Symbol 67 EditableText | Uses:60 | Used by:68 |
Symbol 68 MovieClip | Uses:59 61 63 64 65 66 67 | Used by:Timeline |
Symbol 69 Font | Used by:70 | |
Symbol 70 EditableText | Uses:69 | Used by:Timeline |
Symbol 71 Font | Used by:72 | |
Symbol 72 Text | Uses:71 | Used by:Timeline |
Streaming Sound 1 | Used by:Symbol 20 MovieClip |
Instance Names
"slider" | Frame 75 | Symbol 54 MovieClip |
"game" | Frame 76 | Symbol 58 MovieClip |
"textMC" | Frame 76 | Symbol 68 MovieClip |
"scoreTextField" | Frame 76 | Symbol 70 EditableText |
"bar" | Symbol 20 MovieClip Frame 1 | Symbol 12 MovieClip |
"control" | Symbol 54 MovieClip Frame 1 | Symbol 53 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "song1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "wallMC" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "foodMC" |
ExportAssets (56) | Timeline Frame 1 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 5 as "foodMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 75 | Symbol 7 as "snakeMC" |
ExportAssets (56) | Timeline Frame 76 | Symbol 5 as "foodMC" |
Labels
"LOADED" | Symbol 20 MovieClip Frame 5 |
"start" | Symbol 68 MovieClip Frame 1 |
"gameOver" | Symbol 68 MovieClip Frame 2 |
"paused" | Symbol 68 MovieClip Frame 3 |
"hide" | Symbol 68 MovieClip Frame 4 |
|