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>

Sundial snake.swf

This is the info page for
Flash #67496

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


Text
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 52
function 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 61
stop(); _parent.nextFrame();
Symbol 25 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
onEnterFrame = function () { dd = new Date(); ss._rotation = (dd.getHours() * 30) + (dd.getMinutes() * 0.5); ll._rotation = dd.getMinutes() * 6; };
Symbol 70 MovieClip Frame 1
a = 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 1
function __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 1
stop();

Library Items

Symbol 1 GraphicUsed by:13
Symbol 2 GraphicUsed by:13
Symbol 3 GraphicUsed by:7
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:3 5 6Used by:8
Symbol 8 MovieClipUses:7Used by:13
Symbol 9 GraphicUsed by:13
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 MovieClip [snakeMC]Uses:1 2 8 9 10 12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [wallMC]Uses:14
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:20
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:20
Symbol 20 MovieClip [foodMC]Uses:17 19
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:23
Symbol 23 MovieClipUses:22Used by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:23 24Used by:88
Symbol 26 GraphicUsed by:85
Symbol 27 GraphicUsed by:85
Symbol 28 GraphicUsed by:85
Symbol 29 GraphicUsed by:32
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:32
Symbol 32 MovieClipUses:29 31Used by:33
Symbol 33 MovieClipUses:32Used by:85
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:85
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:38
Symbol 38 MovieClipUses:37Used by:85
Symbol 39 GraphicUsed by:70
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:40Used by:70
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:70
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:70
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:70
Symbol 48 GraphicUsed by:55
Symbol 49 GraphicUsed by:54
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:54
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52Used by:54
Symbol 54 MovieClipUses:49 51 53Used by:55
Symbol 55 MovieClipUses:48 54Used by:70
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:70
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:70
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:70
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClipUses:62Used by:70
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:70
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClipUses:66Used by:70
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:70
Symbol 70 MovieClipUses:39 41 43 45 47 55 57 59 61 63 65 67 69Used by:85
Symbol 71 GraphicUsed by:85
Symbol 72 GraphicUsed by:85
Symbol 73 GraphicUsed by:85
Symbol 74 GraphicUsed by:85
Symbol 75 GraphicUsed by:78
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:78
Symbol 78 MovieClipUses:75 77Used by:85
Symbol 79 GraphicUsed by:85
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClipUses:82Used by:85
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:26 27 28 33 35 38 70 71 72 73 74 78 79 83 84Used by:88
Symbol 86 GraphicUsed by:87
Symbol 87 ButtonUses:86Used by:88
Symbol 88 MovieClipUses:25 85 87Used by:Timeline
Symbol 89 GraphicUsed by:93
Symbol 90 FontUsed by:91 92
Symbol 91 TextUses:90Used by:93
Symbol 92 TextUses:90Used by:93
Symbol 93 MovieClipUses:89 91 92Used by:Timeline
Symbol 94 GraphicUsed by:Timeline
Symbol 95 FontUsed by:96 106 109 113
Symbol 96 EditableTextUses:95Used by:Timeline
Symbol 97 GraphicUsed by:Timeline
Symbol 98 GraphicUsed by:Timeline
Symbol 99 FontUsed by:100 101
Symbol 100 TextUses:99Used by:Timeline
Symbol 101 TextUses:99Used by:Timeline
Symbol 102 MovieClipUsed by:Timeline
Symbol 103 GraphicUsed by:111
Symbol 104 FontUsed by:105 108 110
Symbol 105 EditableTextUses:104Used by:111
Symbol 106 EditableTextUses:95Used by:111
Symbol 107 GraphicUsed by:111
Symbol 108 EditableTextUses:104Used by:111
Symbol 109 EditableTextUses:95Used by:111
Symbol 110 EditableTextUses:104Used by:111
Symbol 111 MovieClipUses:103 105 106 107 108 109 110Used by:Timeline
Symbol 112 GraphicUsed by:Timeline
Symbol 113 EditableTextUses:95Used by:Timeline

Instance Names

"scoreTextField"Frame 2Symbol 96 EditableText
"game"Frame 52Symbol 102 MovieClip
"textMC"Frame 52Symbol 111 MovieClip
"scoreTextField"Frame 52Symbol 113 EditableText
"ll"Symbol 54 MovieClip Frame 1Symbol 51 MovieClip
"ss"Symbol 54 MovieClip Frame 1Symbol 53 MovieClip
"w1"Symbol 70 MovieClip Frame 1Symbol 41 MovieClip
"w2"Symbol 70 MovieClip Frame 1Symbol 43 MovieClip
"a9"Symbol 70 MovieClip Frame 1Symbol 45 MovieClip
"a8"Symbol 70 MovieClip Frame 1Symbol 47 MovieClip
"a10"Symbol 70 MovieClip Frame 1Symbol 55 MovieClip
"a6"Symbol 70 MovieClip Frame 1Symbol 57 MovieClip
"a7"Symbol 70 MovieClip Frame 1Symbol 59 MovieClip
"a5"Symbol 70 MovieClip Frame 1Symbol 61 MovieClip
"a4"Symbol 70 MovieClip Frame 1Symbol 63 MovieClip
"a2"Symbol 70 MovieClip Frame 1Symbol 65 MovieClip
"a1"Symbol 70 MovieClip Frame 1Symbol 67 MovieClip
"a3"Symbol 70 MovieClip Frame 1Symbol 69 MovieClip
"spp"Symbol 85 MovieClip Frame 1Symbol 38 MovieClip
"bb"Symbol 88 MovieClip Frame 1Symbol 87 Button

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 13 as "snakeMC"
ExportAssets (56)Timeline Frame 1Symbol 15 as "wallMC"
ExportAssets (56)Timeline Frame 1Symbol 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




http://swfchan.com/14/67496/info.shtml
Created: 11/4 -2019 12:41:24 Last modified: 11/4 -2019 12:41:24 Server time: 22/12 -2024 19:33:59