STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #12502 |
<p align="center"><font face="Odessa LET" size="30" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Click anywhere to start</b></font></p> |
The Save The Planet game is based around the classic "snake". Use the arrow keys to guide the trees into the pollution clouds, and as the trees grow, it's harder to control your chain. The longer your chain, the more points your receive per pollution cloud. |
Created by... |
<p align="center"><font face="Odessa LET" size="23" color="#006600" letterSpacing="0.000000" kerning="1"><a href="http://www.ecopetition.org" target = "_blank">Ecopetition.Org</a></font></p><p align="center"><font face="Odessa LET" size="15" color="#006600" letterSpacing="0.000000" kerning="1"><a href="http://www.ecopetition.org" target = "_blank"><i>The Fight Against Climate <sbr />Change</i></a></font></p> |
( Click to view website ) |
ActionScript [AS1/AS2]
Frame 1stop(); play.onRelease = function () { gotoAndPlay (2); }; stop(); instructions.onRelease = function () { gotoAndStop (3); }; stop(); credits.onRelease = function () { gotoAndStop (4); };Frame 2function addPiece() { var _local2 = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); _local2._x = aPieceList[aPieceList.length - 1]._x; _local2._y = aPieceList[aPieceList.length - 1]._y; aPieceList.push(_local2); } function moveFood() { var _local2 = true; while (_local2) { food._x = Math.floor(Math.random() * uwh) * unit; food._y = Math.floor(Math.random() * uwh) * unit; _local2 = false; var _local1 = 0; while (_local1 < aPieceList.length) { if ((aPieceList[_local1]._x == food._x) && (aPieceList[_local1]._y == food._y)) { _local2 = true; } _local1++; } } } function gameOver() { delete this.onEnterFrame; tScore.text = "Game Over; Score: " + score; canMove = false; } function startGame() { var _local2 = aPieceList.length - 1; while (_local2 >= 0) { aPieceList[_local2].removeMovieClip(); aPieceList.pop(); _local2--; } score = 0; var _local4 = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); aPieceList.push(_local4); _local4._x = 10 * unit; _local4._y = 10 * unit; var food = this.attachMovie("food", "food", -1); var _local5 = 0; moveFood(); var _local3 = 3; _local2 = 1; while (_local2 < _local3) { addPiece(); _local2++; } this.onEnterFrame = function () { canMove = true; tScore.text = "Current Score: " + score; var _local1 = aPieceList.length - 1; while (_local1 > 0) { aPieceList[_local1]._x = aPieceList[_local1 - 1]._x; aPieceList[_local1]._y = aPieceList[_local1 - 1]._y; _local1--; } if (dir == 0) { aPieceList[0]._y = aPieceList[0]._y - unit; } else if (dir == 1) { aPieceList[0]._x = aPieceList[0]._x - unit; } else if (dir == 2) { aPieceList[0]._y = aPieceList[0]._y + unit; } else if (dir == 3) { aPieceList[0]._x = aPieceList[0]._x + unit; } if ((aPieceList[0]._y / unit) == 20) { aPieceList[0]._y = 0; } else if ((aPieceList[0]._y / unit) == -1) { aPieceList[0]._y = 19 * unit; } else if ((aPieceList[0]._x / unit) == -1) { aPieceList[0]._x = 19 * unit; } else if ((aPieceList[0]._x / unit) == 20) { aPieceList[0]._x = 0; } if ((aPieceList[0]._x == food._x) && (aPieceList[0]._y == food._y)) { score = score + ((10 * aPieceList.length) / 2); moveFood(); addPiece(); } _local1 = 1; while (_local1 < aPieceList.length) { if ((aPieceList[0]._x == aPieceList[_local1]._x) && (aPieceList[0]._y == aPieceList[_local1]._y)) { gameOver(); } _local1++; } }; } stop(); var unit = 15; var uwh = 20; var canMove = false; var dir = 3; var score = 0; aPieceList = new Array(); mouseListener = new Object(); mouseListener.onMouseDown = function () { if (!canMove) { canMove = true; startGame(); } }; Mouse.addListener(mouseListener); k = new Object(); k.onKeyDown = function () { var _local1 = Key.getCode(); if (((_local1 == 38) && (dir != 2)) && (canMove)) { dir = 0; canMove = false; } else if (((_local1 == 37) && (dir != 3)) && (canMove)) { dir = 1; canMove = false; } else if (((_local1 == 40) && (dir != 0)) && (canMove)) { dir = 2; canMove = false; } else if (((_local1 == 39) && (dir != 1)) && (canMove)) { dir = 3; canMove = false; } }; Key.addListener(k);Frame 3stop(); back.onRelease = function () { gotoAndStop (1); };Frame 4stop(); back.onRelease = function () { gotoAndStop (1); };
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 MovieClip [piece] | Uses:1 | |
Symbol 3 Graphic | Used by:4 | |
Symbol 4 MovieClip [food] | Uses:3 | |
Symbol 5 Graphic | Used by:Timeline | |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 Button | Uses:6 | Used by:Timeline |
Symbol 8 Graphic | Used by:9 | |
Symbol 9 Button | Uses:8 | Used by:Timeline |
Symbol 10 Graphic | Used by:11 | |
Symbol 11 Button | Uses:10 | Used by:Timeline |
Symbol 12 Graphic | Used by:Timeline | |
Symbol 13 Font | Used by:14 23 | |
Symbol 14 EditableText | Uses:13 | Used by:Timeline |
Symbol 15 Graphic | Used by:Timeline | |
Symbol 16 Font | Used by:17 21 23 24 | |
Symbol 17 Text | Uses:16 | Used by:Timeline |
Symbol 18 Graphic | Used by:19 | |
Symbol 19 Button | Uses:18 | Used by:Timeline |
Symbol 20 Graphic | Used by:Timeline | |
Symbol 21 Text | Uses:16 | Used by:Timeline |
Symbol 22 Font | Used by:23 | |
Symbol 23 EditableText | Uses:13 16 22 | Used by:Timeline |
Symbol 24 Text | Uses:16 | Used by:Timeline |
Instance Names
"play" | Frame 1 | Symbol 7 Button |
"instructions" | Frame 1 | Symbol 9 Button |
"credits" | Frame 1 | Symbol 11 Button |
"tScore" | Frame 2 | Symbol 14 EditableText |
"back" | Frame 3 | Symbol 19 Button |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "food" |
|