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/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Flee.swf

This is the info page for
Flash #46844

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


Text
by Pontus Horn af Rantzien

Start game

Instructions

Your score is shown here.

Your remaining lives are shown here.

Grab a heart for an extra life.

Grab coins for bonus points (yellow 1 point, blue 5 points).

The platforms move steadily upwards.

Control the ball with the arrow keys.

Watch out for the spikes.

When you pass a platform it is deactivated (10 points).

318 points

<p align="center"><font face="Calibri" size="20" color="#ffffff" letterSpacing="0.000000" kerning="1">0 points</font></p>

<p align="center"><font face="Calibri" size="50" color="#ffffff" letterSpacing="0.000000" kerning="1">You got 0 points.</font></p>

<p align="center"><font face="Calibri" size="60" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Game over!</b></font></p>

Play again

Main menu

<p align="center"><font face="Calibri" size="30" color="#ffffff" letterSpacing="0.000000" kerning="1">(your best score is 0)</font></p>

ActionScript [AS1/AS2]

Frame 1
function checkLoadProgress() { var _local1 = getBytesLoaded() / getBytesTotal(); if (_local1 < 1) { progressBar._xscale = _local1 * 100; } else { gotoAndStop ("menu"); onEnterFrame = null; } } stop(); onEnterFrame = checkLoadProgress;
Frame 2
function saveScore(thisScore) { if (thisScore > cookie.data.bestScore) { cookie.data.bestScore = thisScore; tryFlush(); } } function tryFlush() { var _local1 = cookie.flush(); if (_local1 == false) { canStoreCookie = false; } } function onCookieStatus(statusObject) { if (statusObject.level == "Error") { canStoreCookie = false; } } function startGame() { gotoAndStop ("game"); } function showInstructions() { gotoAndStop ("instructions"); } stop(); var canStoreCookie = true; var cookie = SharedObject.getLocal("fleePersonalBest", "/"); if (cookie) { cookie.onStatus = onCookieStatus; if (cookie.data.bestScore === undefined) { cookie.data.bestScore = 0; } tryFlush(); } else { canStoreCookie = false; } ball._visible = (ceiling._visible = (statusbar._visible = (gameover._visible = (ballDie._visible = false)))); startGameButton.onRelease = startGame; showInstructionsButton.onRelease = showInstructions;
Frame 3
stop(); ball._visible = (ceiling._visible = (statusbar._visible = (gameover._visible = (ballDie._visible = false)))); startGameButton.onRelease = startGame;
Frame 4
function limitNumber(num, minLimit, maxLimit) { if (maxLimit === null) { maxLimit = Infinity; } if (minLimit === null) { minLimit = -Infinity; } return(Math.max(minLimit, Math.min(num, maxLimit))); } function calcSpeed() { xControl = (Key.isDown(39) - Key.isDown(37)) * hasControl; xSpeed = (xSpeed + (xControl * ACCELERATION)) * (xControl ? 1 : (FRICTION)); xSpeed = limitNumber(xSpeed, -MAX_X_SPEED, MAX_X_SPEED); ySpeed = ySpeed + GRAVITY; if (((!isInAir) && (Key.isDown(38))) && (hasControl)) { ySpeed = JUMP_VELOCITY - (isAtBottom ? 0 : (platformSpeed)); isInAir = true; } } function moveBall() { calcSpeed(); this._x = this._x + xSpeed; if (this._x < LEFT_BORDER) { xSpeed = 0; this._x = LEFT_BORDER; } else if (this._x > RIGHT_BORDER) { xSpeed = 0; this._x = RIGHT_BORDER; } this._y = this._y + ySpeed; if (platforms.length) { currentPlatform = platforms[0]; if (this._y > currentPlatform[0]._y) { if (currentPlatform[0].endPoint >= (this._x - HALF_BALL_WIDTH)) { this._y = currentPlatform[0]._y; ySpeed = 0; isInAir = false; } else if (currentPlatform[1].endPoint <= (this._x + HALF_BALL_WIDTH)) { this._y = currentPlatform[1]._y; ySpeed = 0; isInAir = false; } else { deactivatePlatform(0); score = score + 10; isInAir = true; } } else { isInAir = true; } } if (this._y > AVAILABLE_HEIGHT) { this._y = AVAILABLE_HEIGHT; ySpeed = 0; isInAir = false; isAtBottom = true; } else { isAtBottom = false; } } function changeLives(amount) { lives = lives + amount; if (lives > 0) { if (lives > 5) { lives = 5; } if (amount < 0) { ball.play(); isInvincible = true; } } else { endGame(); } trace(lives); } function endGame() { onEnterFrame = null; var _local2 = allPlatforms.length; var _local1 = 0; while (_local1 < _local2) { removeMovieClip(allPlatforms[_local1][0]); removeMovieClip(allPlatforms[_local1][1]); _local1++; } hasControl = false; gotoAndStop ("gameover"); } function handleCeiling() { if (this.hitTest(ball)) { ySpeed = 0; ball._y = (this._y + this._height) + ball._height; deactivatePlatform(0); if (!isInvincible) { changeLives(-1); } } } function createPlatform() { ((platformId >= 1000) ? ((platformId = 0)) : ((platformId = platformId + 10))); var thisPlatformHoleSize = (platformHoleSize + Math.round(Math.random() * platformHoleSize)); var holeStart = (10 + Math.round(Math.random() * ((Stage.width - 20) - thisPlatformHoleSize))); var pf1 = createEmptyMovieClip("left_platform" + platformId, platformId); pf1.endPoint = holeStart; with (pf1) { lineStyle(3, 15132390, 100); moveTo(-100, 0); beginFill(0, 0); lineTo(endPoint, 0); lineStyle(0, 0, 0); lineTo(endPoint, 200); lineTo(-100, 200); lineTo(-100, 0); endFill(); _y = AVAILABLE_HEIGHT + 200; } var bonusAmount = Math.floor((Math.random() * holeStart) / 50); if (bonusAmount) { var currentBonus; var currentBonusX = ((holeStart * 0.5) - ((bonusAmount - 1) * 25)); var c = 0; while (c < bonusAmount) { currentBonus = createBonus(pf1); currentBonus._x = currentBonusX; currentBonus._y = -100; currentBonus.onEnterFrame = handleBonus; currentBonusX = currentBonusX + 50; c++; } } var pf2 = createEmptyMovieClip("right_platform" + platformId, platformId + 5); pf2.endPoint = holeStart + thisPlatformHoleSize; with (pf2) { lineStyle(3, 15132390, 100); moveTo(1000, 0); beginFill(0, 0); lineTo(endPoint, 0); lineStyle(0, 0, 0); lineTo(endPoint, 200); lineTo(1000, 200); lineTo(1000, 0); endFill(); _y = AVAILABLE_HEIGHT + 200; } var pfWidth = (Stage.width - pf2.endPoint); bonusAmount = Math.floor((Math.random() * pfWidth) / 50); if (bonusAmount) { var currentBonus; var currentBonusX = ((pf2.endPoint + (pfWidth * 0.5)) - ((bonusAmount - 1) * 25)); var c = 0; while (c < bonusAmount) { currentBonus = createBonus(pf1); currentBonus._x = currentBonusX; currentBonus._y = -100; currentBonus.onEnterFrame = handleBonus; currentBonusX = currentBonusX + 50; c++; } } pf1.onEnterFrame = (pf2.onEnterFrame = movePlatform); platformAmount++; var pf = new Array(pf1, pf2); platforms.push(pf); allPlatforms.push(pf); return(pf); } function movePlatform() { this._y = this._y - platformSpeed; if (this._y < 0) { var _local2 = 0; while (_local2 < platformAmount) { if (platforms[_local2][0] == this) { deactivatePlatform(_local2); break; } _local2++; } _local2 = 0; while (_local2 < allPlatforms.length) { if (allPlatforms[_local2][0] == this) { removePlatform(_local2); break; } _local2++; } } } function spawnPlatforms() { if ((--platformTimer) <= 0) { createPlatform(); platformHoleSize = platformHoleSize + ((50 - platformHoleSize) / 15); platformInterval = platformInterval + ((18 - platformInterval) / 15); platformSpeed = platformSpeed + ((8 - platformSpeed) / 15); platformTimer = platformInterval + Math.round((Math.random() * platformInterval) * 0.2); } } function deactivatePlatform(platformNum) { platforms[platformNum][0]._alpha = (platforms[platformNum][1]._alpha = 50); platforms.splice(platformNum, 1); platformAmount--; } function removePlatform(platformNum) { allPlatforms[platformNum][0].removeMovieClip(); allPlatforms[platformNum][1].removeMovieClip(); allPlatforms.splice(platformNum, 1); } function createBonus(platform) { var _local2 = platform.getNextHighestDepth(); var _local3 = Math.random(); var _local1; if (_local3 < 0.9) { _local1 = COIN1; } else if (_local3 < 0.99) { _local1 = COIN2; } else { _local1 = LIFE; } var _local4 = {bType:_local1}; return(platform.attachMovie(_local1, "bonus" + _local2, _local2, _local4)); } function handleBonus() { if (ball.hitTest(this._parent._x + this._x, this._parent._y + this._y, true)) { if (this.bType == COIN1) { score++; } else if (this.bType == COIN2) { score = score + 5; } else if (this.bType == LIFE) { changeLives(1); } this.play(); this.onEnterFrame = null; } } stop(); ball._visible = (ceiling._visible = (statusbar._visible = true)); gameover._visible = (ballDie._visible = false); var GRAVITY = 1.5; var JUMP_VELOCITY = -15; var ACCELERATION = 3; var FRICTION = 0.8; var MAX_X_SPEED = 30; var HALF_BALL_WIDTH = 19; var LEFT_BORDER = HALF_BALL_WIDTH; var RIGHT_BORDER = (Stage.width - HALF_BALL_WIDTH); var AVAILABLE_HEIGHT = (Stage.height - statusbar._height); var COIN1 = "coin"; var COIN2 = "coin2"; var LIFE = "life"; ballDie.removeMovieClip(); var hasControl = true; var xSpeed = 0; var ySpeed = 0; var xControl = 0; var isInAir = true; var isAtBottom = false; var isInvincible = false; ball.gotoAndStop("normal"); ball.swapDepths(4000); var platforms = new Array(); var allPlatforms = new Array(); var platformId = 0; var currentPlatform; var platformSpeed = 2; var platformInterval = 100; var platformTimer = 0; var platformHoleSize = 300; var platformAmount = 0; ceiling.swapDepths(2000); var score = 0; var lives = 3; statusbar.swapDepths(3000); ball.onEnterFrame = moveBall; ceiling.onEnterFrame = handleCeiling; onEnterFrame = spawnPlatforms;
Frame 5
saveScore(score); gameover.swapDepths(3500); ball._visible = (ceiling._visible = (statusbar._visible = (gameover._visible = (ballDie._visible = true)))); ballDie._x = ball._x; ballDie._y = ball._y; ballDie.onEnterFrame = moveBall; ballDie.swapDepths(6000); ballDie.gotoAndPlay("gameover"); ball.removeMovieClip();
Symbol 3 MovieClip [coin2] Frame 1
stop();
Symbol 3 MovieClip [coin2] Frame 10
this.removeMovieClip();
Symbol 5 MovieClip [coin] Frame 1
stop();
Symbol 5 MovieClip [coin] Frame 10
this.removeMovieClip();
Symbol 8 MovieClip [life] Frame 1
stop();
Symbol 8 MovieClip [life] Frame 10
this.removeMovieClip();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 91
_root.isInvincible = false; gotoAndStop ("normal");
Symbol 45 MovieClip Frame 92
play();
Symbol 45 MovieClip Frame 149
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
function updateStatus() { lifeMeter.gotoAndStop(_root.lives + 1); scoreTxt.text = _root.score + " points"; } onEnterFrame = updateStatus;
Symbol 58 MovieClip Frame 1
function playAgain() { _root.gotoAndStop("game"); } function mainMenu() { _root.gotoAndStop("menu"); } resultTxt.text = ("You got " + _root.score) + " points."; if (_root.canStoreCookie) { bestScoreTxt.text = ("(your best score is " + _root.cookie.data.bestScore) + ")"; bestScoreTxt._visible = true; } else { bestScoreTxt._visible = false; } playAgainButton.onRelease = playAgain; mainMenuButton.onRelease = mainMenu;

Library Items

Symbol 1 GraphicUsed by:3  Timeline
Symbol 2 SoundUsed by:3 5
Symbol 3 MovieClip [coin2]Uses:1 2
Symbol 4 GraphicUsed by:5  Timeline
Symbol 5 MovieClip [coin]Uses:4 2
Symbol 6 GraphicUsed by:8  Timeline
Symbol 7 SoundUsed by:8
Symbol 8 MovieClip [life]Uses:6 7
Symbol 9 GraphicUsed by:Timeline
Symbol 10 GraphicUsed by:11 16 18 54 56
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 FontUsed by:13 14 17 21 23 24 26 28 30 32 34 39 49 51 52 53 55 57
Symbol 13 TextUses:12Used by:Timeline
Symbol 14 TextUses:12Used by:16
Symbol 15 GraphicUsed by:16 18 54 56
Symbol 16 ButtonUses:14 15 10Used by:Timeline
Symbol 17 TextUses:12Used by:18
Symbol 18 ButtonUses:17 15 10Used by:Timeline
Symbol 19 GraphicUsed by:Timeline
Symbol 20 GraphicUsed by:Timeline
Symbol 21 TextUses:12Used by:Timeline
Symbol 22 GraphicUsed by:Timeline
Symbol 23 TextUses:12Used by:Timeline
Symbol 24 TextUses:12Used by:Timeline
Symbol 25 GraphicUsed by:Timeline
Symbol 26 TextUses:12Used by:Timeline
Symbol 27 GraphicUsed by:Timeline
Symbol 28 TextUses:12Used by:Timeline
Symbol 29 GraphicUsed by:Timeline
Symbol 30 TextUses:12Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 TextUses:12Used by:Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 TextUses:12Used by:Timeline
Symbol 35 GraphicUsed by:Timeline
Symbol 36 GraphicUsed by:41  Timeline
Symbol 37 GraphicUsed by:45  Timeline
Symbol 38 GraphicUsed by:50  Timeline
Symbol 39 TextUses:12Used by:Timeline
Symbol 40 GraphicUsed by:47  Timeline
Symbol 41 MovieClipUses:36Used by:Timeline
Symbol 42 GraphicUsed by:45
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:42 37 43 44Used by:Timeline
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46 40Used by:50
Symbol 48 FontUsed by:49 51 52 57
Symbol 49 EditableTextUses:12 48Used by:50
Symbol 50 MovieClipUses:38 47 49Used by:Timeline
Symbol 51 EditableTextUses:12 48Used by:58
Symbol 52 EditableTextUses:12 48Used by:58
Symbol 53 TextUses:12Used by:54
Symbol 54 ButtonUses:53 15 10Used by:58
Symbol 55 TextUses:12Used by:56
Symbol 56 ButtonUses:55 15 10Used by:58
Symbol 57 EditableTextUses:12 48Used by:58
Symbol 58 MovieClipUses:51 52 54 56 57Used by:Timeline

Instance Names

"progressBar"Frame 1Symbol 11 MovieClip
"startGameButton"Frame 2Symbol 16 Button
"showInstructionsButton"Frame 2Symbol 18 Button
"ceiling"Frame 4Symbol 41 MovieClip
"ball"Frame 4Symbol 45 MovieClip
"statusbar"Frame 4Symbol 50 MovieClip
"ballDie"Frame 5Symbol 45 MovieClip
"lifeMeter"Symbol 50 MovieClip Frame 1Symbol 47 MovieClip
"scoreTxt"Symbol 50 MovieClip Frame 1Symbol 49 EditableText
"resultTxt"Symbol 58 MovieClip Frame 1Symbol 51 EditableText
"playAgainButton"Symbol 58 MovieClip Frame 1Symbol 54 Button
"mainMenuButton"Symbol 58 MovieClip Frame 1Symbol 56 Button
"bestScoreTxt"Symbol 58 MovieClip Frame 1Symbol 57 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 3 as "coin2"
ExportAssets (56)Timeline Frame 1Symbol 5 as "coin"
ExportAssets (56)Timeline Frame 1Symbol 8 as "life"

Labels

"preloader"Frame 1
"menu"Frame 2
"instructions"Frame 3
"game"Frame 4
"gameover"Frame 5
"normal"Symbol 45 MovieClip Frame 1
"hurt"Symbol 45 MovieClip Frame 2
"gameover"Symbol 45 MovieClip Frame 92




http://swfchan.com/10/46844/info.shtml
Created: 2/5 -2019 22:54:06 Last modified: 2/5 -2019 22:54:06 Server time: 22/12 -2024 20:31:49