STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229702 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5192 |
This is the info page for Flash #49395 |
Strip Snake |
Start |
Control the Snake using the Arrow keys Eat the food to grow longer and go faster The higher your score the more she takes off Click or press Space to: |
0000 |
ActionScript [AS3]
Section 1//speechBubble_9 (snake_fla.speechBubble_9) package snake_fla { import flash.display.*; import flash.text.*; public dynamic class speechBubble_9 extends MovieClip { public var textBox:TextField; } }//package snake_flaSection 2//VixenMC_2 (snake_fla.VixenMC_2) package snake_fla { import flash.display.*; public dynamic class VixenMC_2 extends MovieClip { public var Skirt:MovieClip; public var TankTop:MovieClip; public var Socks:vixSocks; public var Bustier:MovieClip; public var Panties:MovieClip; } }//package snake_flaSection 3//Food (Food) package { import flash.display.*; public dynamic class Food extends MovieClip { public function Food(){ addFrameScript(9, frame10, 19, frame20, 29, frame30); } function frame10(){ gotoAndPlay("Level_1"); } function frame20(){ gotoAndPlay("Level_2"); } function frame30(){ gotoAndPlay("Level_3"); } } }//packageSection 4//gBoard (gBoard) package { import flash.display.*; public dynamic class gBoard extends MovieClip { } }//packageSection 5//PointBurst (PointBurst) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; public class PointBurst extends Sprite { private var burstSprite:Sprite; private var animTimer:Timer; private var parentMC:MovieClip; private var tField:TextField; static const animStepTime:int = 50; static const fontSize:int = 12; static const fontFace:String = "911 Porscha"; static const fontBold:Boolean = true; static const animSteps:int = 10; static const startScale:Number = 0; static const fontColor:Number = 0; static const endScale:Number = 2; public function PointBurst(_arg1:MovieClip, _arg2:Object, _arg3, _arg4:Number){ var _local5:TextFormat; super(); _local5 = new TextFormat(); _local5.font = fontFace; _local5.size = fontSize; _local5.bold = fontBold; _local5.color = fontColor; _local5.align = "center"; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _local5; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = String(_arg2); tField.x = -((tField.width / 2)); tField.y = -((tField.height / 2)); burstSprite = new Sprite(); burstSprite.x = _arg3; burstSprite.y = _arg4; burstSprite.scaleX = startScale; burstSprite.scaleY = startScale; burstSprite.alpha = 0; burstSprite.addChild(tField); parentMC = _arg1; parentMC.addChild(burstSprite); animTimer = new Timer(animStepTime, animSteps); animTimer.addEventListener(TimerEvent.TIMER, rescaleBurst); animTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeBurst); animTimer.start(); } public function removeBurst(_arg1:TimerEvent){ burstSprite.removeChild(tField); parentMC.removeChild(burstSprite); tField = null; burstSprite = null; delete ??getglobalscope [this]; } public function rescaleBurst(_arg1:TimerEvent){ var _local2:Number; _local2 = (_arg1.target.currentCount / animSteps); burstSprite.scaleX = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprite.scaleY = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprite.alpha = (1 - _local2); } } }//packageSection 6//Pop1 (Pop1) package { import flash.media.*; public dynamic class Pop1 extends Sound { } }//packageSection 7//Pop2 (Pop2) package { import flash.media.*; public dynamic class Pop2 extends Sound { } }//packageSection 8//Pop3 (Pop3) package { import flash.media.*; public dynamic class Pop3 extends Sound { } }//packageSection 9//Snake2 (Snake2) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; import flash.geom.*; public class Snake2 extends MovieClip { private const rightWall:int = 310; private const startX:int = 20; private const startY:int = 20; private const startPoint:Point; private const gridSize:int = 10; private const leftWall:int = 20; private const bottomWall:int = 310; private const topWall:int = 20; private const startSpeed:int = 150; private var pop1:Pop1; private var pop2:Pop2; public var speechBubble:MovieClip; private var recurseCount:int;// = 0 private var pop3:Pop3; public var gameBoard:gBoard; private var playerScore:Number;// = 0 private var nextLevel:Number;// = 100 private var food:Food; private var vixenLevels:Array; private var lastLevel:Number;// = 0 private var gameTimer:Timer; private var newStart; private var setPause:Boolean;// = false private var speedUpSnake:Number;// = 2 private var speechText:Array; private var levelUp:Array; private var snakeMoveX:Number;// = 0 private var snakeMoveY:Number;// = 0 private var gameSprite:Sprite; private var foodLevels:Array; public var Vixen:MovieClip; private var nextMoveY:Number;// = 0 private var nextMoveX:Number;// = 0 private var speechTimer:Timer; private var snakeParts:Array; public var gameScore:TextField; private var levelNumber:Number;// = 0 public function Snake2(){ startPoint = new Point(150, 150); food = new Food(); snakeMoveX = 0; snakeMoveY = 0; nextMoveX = 0; nextMoveY = 0; playerScore = 0; levelNumber = 0; nextLevel = 100; lastLevel = 0; levelUp = new Array(0, 100, 200, 300, 400); speedUpSnake = 2; setPause = false; recurseCount = 0; vixenLevels = new Array("Socks", "Skirt", "TankTop", "Bustier", "Panties"); foodLevels = new Array("Level_1", "Level_2", "Level_3"); speechText = new Array("Not bad to start.", "Is it drafty in here?", "Level 3. But it gets harder from here.", "Do you like what you see?", "It's cold in here! Wanna warm me up?"); pop1 = new Pop1(); pop2 = new Pop2(); pop3 = new Pop3(); super(); root["speechBubble"].visible = false; gameScore.text = ""; resetGame(); } public function placeFood(){ var _local1:Object; recurseCount = 0; _local1 = getFoodLocation(); food.value = (Math.floor((Math.random() * 3)) + 1); food.x = _local1.fX; food.y = _local1.fY; food.gotoAndPlay(foodLevels[food.value]); } public function hitTail(){ var _local1:int; _local1 = 1; while (_local1 < snakeParts.length) { if ((((snakeParts[0].x == snakeParts[_local1].x)) && ((snakeParts[0].y == snakeParts[_local1].y)))){ return (true); }; _local1++; }; return (false); } public function keyDownFunction(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == 37)) && (!(setPause)))){ if (snakeMoveX != 1){ nextMoveX = -1; nextMoveY = 0; }; } else { if ((((_arg1.keyCode == 39)) && (!(setPause)))){ if (snakeMoveX != -1){ nextMoveX = 1; nextMoveY = 0; }; } else { if ((((_arg1.keyCode == 38)) && (!(setPause)))){ if (snakeMoveY != 1){ nextMoveY = -1; nextMoveX = 0; }; } else { if ((((_arg1.keyCode == 40)) && (!(setPause)))){ if (snakeMoveY != -1){ nextMoveY = 1; nextMoveX = 0; }; } else { if ((((_arg1.keyCode == 80)) || ((_arg1.keyCode == 32)))){ if (setPause == true){ setPause = false; } else { setPause = true; }; }; }; }; }; }; } private function getFoodLocation(){ var _local1:*; var _local2:*; _local1 = Object; _local1.fX = ((Math.floor(((Math.random() * (rightWall - leftWall)) / gridSize)) * gridSize) + startX); _local1.fY = ((Math.floor(((Math.random() * (bottomWall - topWall)) / gridSize)) * gridSize) + startY); _local2 = 0; while (_local2 < snakeParts.length) { if ((((_local1.fX == snakeParts[_local2].x)) && ((_local1.fY == snakeParts[_local2].y)))){ recurseCount++; if (recurseCount < 250){ _local1 = getFoodLocation(); }; break; }; _local2++; }; return (_local1); } private function clearBubble(_arg1:Event){ root["speechBubble"].visible = false; speechTimer.removeEventListener(TimerEvent.TIMER, clearBubble); } private function startGameEvent(_arg1:MouseEvent){ startGame(); } public function newSnakePart(_arg1:Number){ var _local2:Number; var _local3:SnakePart; _local2 = 0; while (_local2 < _arg1) { _local3 = new SnakePart(); _local3.x = -50; _local3.y = -50; gameSprite.addChild(_local3); snakeParts.push(_local3); _local2++; }; } private function startGame(){ var _local1:*; var _local2:*; var _local3:*; for (_local1 in vixenLevels) { root["Vixen"][vixenLevels[_local1]].alpha = 1; }; gameScore.text = "0"; newStart.removeEventListener(MouseEvent.CLICK, startGame); stage.removeEventListener(KeyboardEvent.KEY_DOWN, startKeyDownFunction); removeChild(newStart); _local2 = Math.floor((Math.random() * 4)); if (_local2 == 0){ nextMoveX = 0; nextMoveY = 1; } else { if (_local2 == 0){ nextMoveX = 0; nextMoveY = -1; } else { if (_local2 == 0){ nextMoveX = 1; nextMoveY = 0; } else { nextMoveX = -1; nextMoveY = 0; }; }; }; gameSprite = new Sprite(); addChild(gameSprite); root["gameBoard"].gotoAndStop(1); snakeParts = new Array(); _local3 = new SnakePart(); _local3.x = startPoint.x; _local3.y = startPoint.y; snakeParts.push(_local3); gameSprite.addChild(_local3); gameSprite.addChild(food); placeFood(); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction); gameTimer = new Timer(startSpeed); gameTimer.addEventListener(TimerEvent.TIMER, moveSnake); gameTimer.start(); } private function startKeyDownFunction(_arg1:KeyboardEvent){ if (_arg1.keyCode == 32){ startGame(); }; } private function resetGame(){ var _local1:*; for (_local1 in snakeParts) { gameSprite.removeChild(snakeParts[_local1]); }; playerScore = 0; nextLevel = 100; lastLevel = 0; levelNumber = 0; newStart = new StartButton(); newStart.x = 170; newStart.y = 170; addChild(newStart); root["gameBoard"].gotoAndStop(1); newStart.addEventListener(MouseEvent.CLICK, startGameEvent); stage.addEventListener(KeyboardEvent.KEY_DOWN, startKeyDownFunction); } public function gameOver(){ var _local1:String; stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction); _local1 = "Would you like to try again?"; if (levelNumber > 4){ _local1 = "Congrats! You won!"; }; root["speechBubble"].visible = true; root["speechBubble"].textBox.text = _local1; gameTimer.stop(); resetGame(); } public function moveSnake(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:*; var _local5:*; var _local6:*; if (!setPause){ snakeMoveX = nextMoveX; snakeMoveY = nextMoveY; _local2 = (snakeParts[0].x + (snakeMoveX * gridSize)); _local3 = (snakeParts[0].y + (snakeMoveY * gridSize)); if ((((((((_local2 > rightWall)) || ((_local2 < leftWall)))) || ((_local3 > bottomWall)))) || ((_local3 < topWall)))){ gameOver(); } else { if (hitTail()){ gameOver(); } else { if ((((_local2 == food.x)) && ((_local3 == food.y)))){ playerScore = (playerScore + (food.value * 10)); gameScore.text = playerScore.toString(); _local4 = new PointBurst(this, (food.value * 10), food.x, food.y); newSnakePart(food.value); pop3.play(); placeFood(); _local5 = (nextLevel - lastLevel); _local6 = (1 - ((playerScore - lastLevel) / _local5)); root["Vixen"][vixenLevels[levelNumber]].alpha = _local6; if ((((_local6 <= 0)) && ((levelNumber < (vixenLevels.length - 1))))){ levelNumber++; lastLevel = nextLevel; nextLevel = (nextLevel + levelUp[levelNumber]); root["gameBoard"].gotoAndStop((levelNumber + 1)); root["speechBubble"].visible = true; root["speechBubble"].textBox.text = speechText[levelNumber]; speechTimer = new Timer(3000); speechTimer.addEventListener(TimerEvent.TIMER, clearBubble); speechTimer.start(); }; gameTimer.delay = (gameTimer.delay - speedUpSnake); }; placeTail(); snakeParts[0].x = _local2; snakeParts[0].y = _local3; }; }; }; } public function placeTail(){ var _local1:int; _local1 = (snakeParts.length - 1); while (_local1 > 0) { snakeParts[_local1].x = snakeParts[(_local1 - 1)].x; snakeParts[_local1].y = snakeParts[(_local1 - 1)].y; _local1--; }; } } }//packageSection 10//SnakePart (SnakePart) package { import flash.display.*; public dynamic class SnakePart extends MovieClip { } }//packageSection 11//StartButton (StartButton) package { import flash.display.*; public dynamic class StartButton extends MovieClip { } }//packageSection 12//Tourist_Trap (Tourist_Trap) package { import flash.text.*; public dynamic class Tourist_Trap extends Font { } }//packageSection 13//vixSocks (vixSocks) package { import flash.display.*; public dynamic class vixSocks extends MovieClip { } }//package
Library Items
Symbol 1 Font {Tourist_Trap} | Used by:18 19 20 34 103 | |
Symbol 2 Sound {Pop3} | ||
Symbol 3 Sound {Pop2} | ||
Symbol 4 Sound {Pop1} | ||
Symbol 5 ShapeTweening | Used by:14 | |
Symbol 6 ShapeTweening | Used by:14 | |
Symbol 7 Graphic | Used by:14 | |
Symbol 8 ShapeTweening | Used by:14 | |
Symbol 9 ShapeTweening | Used by:14 | |
Symbol 10 Graphic | Used by:14 | |
Symbol 11 ShapeTweening | Used by:14 | |
Symbol 12 ShapeTweening | Used by:14 | |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 MovieClip {Food} | Uses:5 6 7 8 9 10 11 12 13 | Used by:21 |
Symbol 15 Graphic | Used by:16 | |
Symbol 16 MovieClip {SnakePart} | Uses:15 | Used by:21 |
Symbol 17 Graphic | Used by:21 | |
Symbol 18 EditableText | Uses:1 | Used by:21 |
Symbol 19 EditableText | Uses:1 | Used by:21 |
Symbol 20 EditableText | Uses:1 | Used by:21 |
Symbol 21 MovieClip {StartButton} | Uses:17 18 19 20 16 14 | |
Symbol 22 Graphic | Used by:23 | |
Symbol 23 MovieClip {vixSocks} | Uses:22 | Used by:101 |
Symbol 24 Graphic | Used by:33 | |
Symbol 25 Bitmap | Used by:26 | |
Symbol 26 Graphic | Uses:25 | Used by:33 |
Symbol 27 Bitmap | Used by:28 | |
Symbol 28 Graphic | Uses:27 | Used by:33 |
Symbol 29 Bitmap | Used by:30 | |
Symbol 30 Graphic | Uses:29 | Used by:33 |
Symbol 31 Bitmap | Used by:32 | |
Symbol 32 Graphic | Uses:31 | Used by:33 |
Symbol 33 MovieClip {gBoard} | Uses:24 26 28 30 32 | Used by:Timeline |
Symbol 34 EditableText | Uses:1 | Used by:Timeline |
Symbol 35 Graphic | Used by:36 | |
Symbol 36 MovieClip | Uses:35 | Used by:101 |
Symbol 37 Graphic | Used by:101 | |
Symbol 38 Graphic | Used by:101 | |
Symbol 39 Graphic | Used by:101 | |
Symbol 40 Graphic | Used by:101 | |
Symbol 41 Graphic | Used by:101 | |
Symbol 42 Graphic | Used by:101 | |
Symbol 43 Graphic | Used by:101 | |
Symbol 44 Graphic | Used by:101 | |
Symbol 45 Graphic | Used by:101 | |
Symbol 46 Graphic | Used by:101 | |
Symbol 47 Graphic | Used by:101 | |
Symbol 48 Graphic | Used by:101 | |
Symbol 49 Graphic | Used by:101 | |
Symbol 50 Graphic | Used by:101 | |
Symbol 51 Graphic | Used by:101 | |
Symbol 52 Graphic | Used by:101 | |
Symbol 53 Graphic | Used by:101 | |
Symbol 54 Graphic | Used by:101 | |
Symbol 55 Graphic | Used by:101 | |
Symbol 56 Graphic | Used by:101 | |
Symbol 57 Graphic | Used by:101 | |
Symbol 58 Graphic | Used by:101 | |
Symbol 59 Graphic | Used by:101 | |
Symbol 60 Graphic | Used by:101 | |
Symbol 61 Graphic | Used by:101 | |
Symbol 62 Graphic | Used by:101 | |
Symbol 63 Graphic | Used by:101 | |
Symbol 64 Graphic | Used by:101 | |
Symbol 65 Graphic | Used by:71 | |
Symbol 66 Graphic | Used by:71 | |
Symbol 67 Graphic | Used by:71 | |
Symbol 68 Graphic | Used by:71 | |
Symbol 69 Graphic | Used by:71 | |
Symbol 70 Graphic | Used by:71 | |
Symbol 71 MovieClip | Uses:65 66 67 68 69 70 | Used by:101 |
Symbol 72 Graphic | Used by:74 | |
Symbol 73 Graphic | Used by:74 | |
Symbol 74 MovieClip | Uses:72 73 | Used by:101 |
Symbol 75 Graphic | Used by:87 | |
Symbol 76 Graphic | Used by:87 | |
Symbol 77 Graphic | Used by:87 | |
Symbol 78 Graphic | Used by:87 | |
Symbol 79 Graphic | Used by:87 | |
Symbol 80 Graphic | Used by:87 | |
Symbol 81 Graphic | Used by:87 | |
Symbol 82 Graphic | Used by:87 | |
Symbol 83 Graphic | Used by:87 | |
Symbol 84 Graphic | Used by:87 | |
Symbol 85 Graphic | Used by:87 | |
Symbol 86 Graphic | Used by:87 | |
Symbol 87 MovieClip | Uses:75 76 77 78 79 80 81 82 83 84 85 86 | Used by:101 |
Symbol 88 Graphic | Used by:99 | |
Symbol 89 Graphic | Used by:99 | |
Symbol 90 Graphic | Used by:99 | |
Symbol 91 Graphic | Used by:99 | |
Symbol 92 Graphic | Used by:99 | |
Symbol 93 Graphic | Used by:99 | |
Symbol 94 Graphic | Used by:99 | |
Symbol 95 Graphic | Used by:99 | |
Symbol 96 Graphic | Used by:99 | |
Symbol 97 Graphic | Used by:99 | |
Symbol 98 Graphic | Used by:99 | |
Symbol 99 MovieClip | Uses:88 89 90 91 92 93 94 95 96 97 98 | Used by:101 |
Symbol 100 Graphic | Used by:101 | |
Symbol 101 MovieClip {snake_fla.VixenMC_2} | Uses:36 23 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 71 74 87 99 100 | Used by:Timeline |
Symbol 102 Graphic | Used by:104 | |
Symbol 103 EditableText | Uses:1 | Used by:104 |
Symbol 104 MovieClip {snake_fla.speechBubble_9} | Uses:102 103 | Used by:Timeline |
Instance Names
"gameBoard" | Frame 1 | Symbol 33 MovieClip {gBoard} |
"gameScore" | Frame 1 | Symbol 34 EditableText |
"Vixen" | Frame 1 | Symbol 101 MovieClip {snake_fla.VixenMC_2} |
"speechBubble" | Frame 1 | Symbol 104 MovieClip {snake_fla.speechBubble_9} |
"Socks" | Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1 | Symbol 23 MovieClip {vixSocks} |
"Panties" | Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1 | Symbol 71 MovieClip |
"Bustier" | Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1 | Symbol 74 MovieClip |
"Skirt" | Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1 | Symbol 87 MovieClip |
"TankTop" | Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1 | Symbol 99 MovieClip |
"textBox" | Symbol 104 MovieClip {snake_fla.speechBubble_9} Frame 1 | Symbol 103 EditableText |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS3. |
Labels
"Level_1" | Symbol 14 MovieClip {Food} Frame 1 |
"Level_2" | Symbol 14 MovieClip {Food} Frame 11 |
"Level_3" | Symbol 14 MovieClip {Food} Frame 21 |
|