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 #67496 |
Tracking |
Clip |
SUNDIAL CLOCK |
SAMUEL OLIVER |
Click to start |
Use arrow keys to turn. Press P to pause |
LOL Fail |
Press SPACE to restart |
Paused |
ActionScript [AS1/AS2]
Frame 52function 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 + 7; 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; } blockSize = 8; 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); stop();Symbol 23 MovieClip Frame 61stop(); _parent.nextFrame();Symbol 25 MovieClip Frame 1stop();Symbol 54 MovieClip Frame 1onEnterFrame = function () { dd = new Date(); ss._rotation = (dd.getHours() * 30) + (dd.getMinutes() * 0.5); ll._rotation = dd.getMinutes() * 6; };Symbol 70 MovieClip Frame 1a = 1; while (a < 11) { aa = this["a" + a]; aa.xx = aa._x; aa.yy = aa._y; aa._x = 0; aa._y = 0; aa._alpha = 0; aa.dd = 0; a++; } w1._alpha = 0; w2._alpha = 0; rot = 0; det = 0; spd = 0; rad = 57.2957795130823; _parent.spp._xscale = 1; _parent.spp._yscale = 1; _parent.spp._alpha = 0; onEnterFrame = function () { var _local1 = _parent; var _local2 = this; per = _root.getBytesLoaded() / _root.getBytesTotal(); spd = (det - rot) / 20; spd = Math.min(spd, 1.5); rot = rot + spd; det = per * 360; _rotation = (360 - rot); a = 1; while (a < 11) { if (((per * 10) >= a) && ((aa.dd == 1) || (a == 1))) { aa = _local2["a" + a]; aa._alpha = aa._alpha + 2; aa._x = aa._x + ((aa.xx - aa._x) / 10); aa._y = aa._y + ((aa.yy - aa._y) / 10); xc = Math.abs(Math.abs(aa._x) - Math.abs(aa.xx)); yc = Math.abs(Math.abs(aa._y) - Math.abs(aa.yy)); if ((xc < 5) && (yc < 5)) { aa.dd = 1; } } a++; } if (per == 1) { ((_local1.spp._xscale < 100) ? (_local1.spp._xscale++) : null); _local1.spp._yscale = _local1.spp._xscale; _local1.spp._alpha = _local1.spp._xscale; if (a10._alpha > 10) { w1._alpha++; w2._alpha++; } } };Symbol 88 MovieClip Frame 1_parent.stop(); bb.onRelease = function () { if (_root.getBytesLoaded() == _root.getBytesTotal()) { _parent.play(); } else { getURL ("http://www.clockcrew.cc/talk/portal.php", "_blank"); } };Symbol 93 MovieClip Frame 1function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } _visible = false; __com_mochibot__("3ac51931", this, 10301, true);Symbol 111 MovieClip Frame 1stop();
Library Items
Symbol 1 Graphic | Used by:13 | |
Symbol 2 Graphic | Used by:13 | |
Symbol 3 Graphic | Used by:7 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip | Uses:4 | Used by:7 |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 MovieClip | Uses:3 5 6 | Used by:8 |
Symbol 8 MovieClip | Uses:7 | Used by:13 |
Symbol 9 Graphic | Used by:13 | |
Symbol 10 Graphic | Used by:13 | |
Symbol 11 Graphic | Used by:12 | |
Symbol 12 MovieClip | Uses:11 | Used by:13 |
Symbol 13 MovieClip [snakeMC] | Uses:1 2 8 9 10 12 | |
Symbol 14 Graphic | Used by:15 | |
Symbol 15 MovieClip [wallMC] | Uses:14 | |
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 [foodMC] | Uses:17 19 | |
Symbol 21 Graphic | Used by:22 | |
Symbol 22 MovieClip | Uses:21 | Used by:23 |
Symbol 23 MovieClip | Uses:22 | Used by:25 |
Symbol 24 Graphic | Used by:25 | |
Symbol 25 MovieClip | Uses:23 24 | Used by:88 |
Symbol 26 Graphic | Used by:85 | |
Symbol 27 Graphic | Used by:85 | |
Symbol 28 Graphic | Used by:85 | |
Symbol 29 Graphic | Used by:32 | |
Symbol 30 Graphic | Used by:31 | |
Symbol 31 MovieClip | Uses:30 | Used by:32 |
Symbol 32 MovieClip | Uses:29 31 | Used by:33 |
Symbol 33 MovieClip | Uses:32 | Used by:85 |
Symbol 34 Graphic | Used by:35 | |
Symbol 35 MovieClip | Uses:34 | Used by:85 |
Symbol 36 Graphic | Used by:37 | |
Symbol 37 MovieClip | Uses:36 | Used by:38 |
Symbol 38 MovieClip | Uses:37 | Used by:85 |
Symbol 39 Graphic | Used by:70 | |
Symbol 40 Graphic | Used by:41 | |
Symbol 41 MovieClip | Uses:40 | Used by:70 |
Symbol 42 Graphic | Used by:43 | |
Symbol 43 MovieClip | Uses:42 | Used by:70 |
Symbol 44 Graphic | Used by:45 | |
Symbol 45 MovieClip | Uses:44 | Used by:70 |
Symbol 46 Graphic | Used by:47 | |
Symbol 47 MovieClip | Uses:46 | Used by:70 |
Symbol 48 Graphic | Used by:55 | |
Symbol 49 Graphic | Used by:54 | |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 MovieClip | Uses:50 | Used by:54 |
Symbol 52 Graphic | Used by:53 | |
Symbol 53 MovieClip | Uses:52 | Used by:54 |
Symbol 54 MovieClip | Uses:49 51 53 | Used by:55 |
Symbol 55 MovieClip | Uses:48 54 | Used by:70 |
Symbol 56 Graphic | Used by:57 | |
Symbol 57 MovieClip | Uses:56 | Used by:70 |
Symbol 58 Graphic | Used by:59 | |
Symbol 59 MovieClip | Uses:58 | Used by:70 |
Symbol 60 Graphic | Used by:61 | |
Symbol 61 MovieClip | Uses:60 | Used by:70 |
Symbol 62 Graphic | Used by:63 | |
Symbol 63 MovieClip | Uses:62 | Used by:70 |
Symbol 64 Graphic | Used by:65 | |
Symbol 65 MovieClip | Uses:64 | Used by:70 |
Symbol 66 Graphic | Used by:67 | |
Symbol 67 MovieClip | Uses:66 | Used by:70 |
Symbol 68 Graphic | Used by:69 | |
Symbol 69 MovieClip | Uses:68 | Used by:70 |
Symbol 70 MovieClip | Uses:39 41 43 45 47 55 57 59 61 63 65 67 69 | Used by:85 |
Symbol 71 Graphic | Used by:85 | |
Symbol 72 Graphic | Used by:85 | |
Symbol 73 Graphic | Used by:85 | |
Symbol 74 Graphic | Used by:85 | |
Symbol 75 Graphic | Used by:78 | |
Symbol 76 Graphic | Used by:77 | |
Symbol 77 MovieClip | Uses:76 | Used by:78 |
Symbol 78 MovieClip | Uses:75 77 | Used by:85 |
Symbol 79 Graphic | Used by:85 | |
Symbol 80 Bitmap | Used by:81 | |
Symbol 81 Graphic | Uses:80 | Used by:82 |
Symbol 82 MovieClip | Uses:81 | Used by:83 |
Symbol 83 MovieClip | Uses:82 | Used by:85 |
Symbol 84 Graphic | Used by:85 | |
Symbol 85 MovieClip | Uses:26 27 28 33 35 38 70 71 72 73 74 78 79 83 84 | Used by:88 |
Symbol 86 Graphic | Used by:87 | |
Symbol 87 Button | Uses:86 | Used by:88 |
Symbol 88 MovieClip | Uses:25 85 87 | Used by:Timeline |
Symbol 89 Graphic | Used by:93 | |
Symbol 90 Font | Used by:91 92 | |
Symbol 91 Text | Uses:90 | Used by:93 |
Symbol 92 Text | Uses:90 | Used by:93 |
Symbol 93 MovieClip | Uses:89 91 92 | Used by:Timeline |
Symbol 94 Graphic | Used by:Timeline | |
Symbol 95 Font | Used by:96 106 109 113 | |
Symbol 96 EditableText | Uses:95 | Used by:Timeline |
Symbol 97 Graphic | Used by:Timeline | |
Symbol 98 Graphic | Used by:Timeline | |
Symbol 99 Font | Used by:100 101 | |
Symbol 100 Text | Uses:99 | Used by:Timeline |
Symbol 101 Text | Uses:99 | Used by:Timeline |
Symbol 102 MovieClip | Used by:Timeline | |
Symbol 103 Graphic | Used by:111 | |
Symbol 104 Font | Used by:105 108 110 | |
Symbol 105 EditableText | Uses:104 | Used by:111 |
Symbol 106 EditableText | Uses:95 | Used by:111 |
Symbol 107 Graphic | Used by:111 | |
Symbol 108 EditableText | Uses:104 | Used by:111 |
Symbol 109 EditableText | Uses:95 | Used by:111 |
Symbol 110 EditableText | Uses:104 | Used by:111 |
Symbol 111 MovieClip | Uses:103 105 106 107 108 109 110 | Used by:Timeline |
Symbol 112 Graphic | Used by:Timeline | |
Symbol 113 EditableText | Uses:95 | Used by:Timeline |
Instance Names
"scoreTextField" | Frame 2 | Symbol 96 EditableText |
"game" | Frame 52 | Symbol 102 MovieClip |
"textMC" | Frame 52 | Symbol 111 MovieClip |
"scoreTextField" | Frame 52 | Symbol 113 EditableText |
"ll" | Symbol 54 MovieClip Frame 1 | Symbol 51 MovieClip |
"ss" | Symbol 54 MovieClip Frame 1 | Symbol 53 MovieClip |
"w1" | Symbol 70 MovieClip Frame 1 | Symbol 41 MovieClip |
"w2" | Symbol 70 MovieClip Frame 1 | Symbol 43 MovieClip |
"a9" | Symbol 70 MovieClip Frame 1 | Symbol 45 MovieClip |
"a8" | Symbol 70 MovieClip Frame 1 | Symbol 47 MovieClip |
"a10" | Symbol 70 MovieClip Frame 1 | Symbol 55 MovieClip |
"a6" | Symbol 70 MovieClip Frame 1 | Symbol 57 MovieClip |
"a7" | Symbol 70 MovieClip Frame 1 | Symbol 59 MovieClip |
"a5" | Symbol 70 MovieClip Frame 1 | Symbol 61 MovieClip |
"a4" | Symbol 70 MovieClip Frame 1 | Symbol 63 MovieClip |
"a2" | Symbol 70 MovieClip Frame 1 | Symbol 65 MovieClip |
"a1" | Symbol 70 MovieClip Frame 1 | Symbol 67 MovieClip |
"a3" | Symbol 70 MovieClip Frame 1 | Symbol 69 MovieClip |
"spp" | Symbol 85 MovieClip Frame 1 | Symbol 38 MovieClip |
"bb" | Symbol 88 MovieClip Frame 1 | Symbol 87 Button |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 13 as "snakeMC" |
ExportAssets (56) | Timeline Frame 1 | Symbol 15 as "wallMC" |
ExportAssets (56) | Timeline Frame 1 | Symbol 20 as "foodMC" |
Labels
"start" | Symbol 111 MovieClip Frame 1 |
"gameOver" | Symbol 111 MovieClip Frame 2 |
"paused" | Symbol 111 MovieClip Frame 3 |
"hide" | Symbol 111 MovieClip Frame 4 |
|