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 #77415 |
Click on the pieces to move. |
Match this! A correct match will unlock a special reward picture! |
Shuffle |
Sliding puzzle game Featuring Pickle! Art & game by Shawn the Touched |
TM |
Back |
This sort of puzzle is known as the "15 Puzzle" or sometimes the "Loyd 15" named after puzzle expert Sam Loyd, who popularised the puzzle in 1878. When the puzzle is shuffled, the tiles are randomly distributed, and due to the nature of the puzzle, some of these combinations cannot be solved. If you end up with a nearly-solved puzzle that looks like figure 2, then you should re- shuffle. My personal record with this puzzle is 3 minutes. A search on the net for "15 sliding puzzle" will get you plenty of helpful strategy guides. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Figure 1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 15 14 |
Figure 2 |
Game by Shawn the Touched http://whiteradish.com |
<P ALIGN="LEFT"><FONT FACE="Arial" SIZE="6" COLOR="#FFFFFF"><A HREF="http://whiteradish.com" target = "_top"><B>Game by Shawn the Touched</B></A></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="6" COLOR="#FFFFFF"><A HREF="http://whiteradish.com" target = "_top"><B>http://whiteradish.com</B></A></FONT></P> |
Congratulations! Here is your reward picture! |
Click to download full-size version! (opens in a new browser window) |
ActionScript [AS1/AS2]
Frame 1function PieceX(col) { return(xBase + (col * xSpace)); } function PieceY(row) { return(yBase + (row * ySpace)); } function Initialize() { Congratulations.stop(); numRows = 4; numCols = 4; numCells = numRows * numCols; xBase = p0._x; yBase = p0._y; xSpace = 45; ySpace = 45; var c = 1; var r = 0; posArray = []; i = 0; while (i < (numCells - 1)) { posArray[i] = i; i++; } empty = i - 1; } function isWinner() { var i = 0; while (i < (numCells - 1)) { if (posArray[i] != i) { return(false); } i++; } return(true); } function Click(clicked) { if (isWinner()) { shuffle(); Congratulations.gotoAndStop(1); } else { pos = posArray[clicked]; emptyRow = Math.floor(empty / numCols); emptyCol = empty - (emptyRow * numCols); clickedRow = Math.floor(pos / numCols); clickedCol = pos - (clickedRow * numCols); rowDiff = Math.abs(clickedRow - emptyRow); colDiff = Math.abs(clickedCol - emptyCol); adjacent = (rowDiff + colDiff) == 1; if (adjacent) { var piece = eval ("/p" + clicked); piece._x = PieceX(emptyCol); piece._y = PieceY(emptyRow); posArray[clicked] = empty; empty = pos; if (isWinner()) { Congratulations.play(); } } } } function Shuffle() { var cf = function (x, y) { if (x[1] < y[1]) { return(-1); } if (x[1] > y[1]) { return(1); } return(0); }; var i; var cell = []; i = 0; while (i < numCells) { cell.push([i, Math.random()]); i++; } cell.sort(cf); var r = 0; var c = 0; i = 0; while (i < numCells) { var piece = cell[i][0]; if (piece == (numCells - 1)) { empty = i; } else { posArray[piece] = i; var p = eval ("/p" + piece); p._x = PieceX(c); p._y = PieceY(r); } if ((++c) >= numCols) { c = 0; r++; } i++; } } stop(); if (!initialized) { Initialize(); initialized = true; }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(2); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(3); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(4); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(5); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(6); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(7); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(8); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(9); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(10); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(11); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(12); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(13); }Instance of Symbol 24 MovieClip in Frame 1on (press) { _root.Click(14); }Instance of Symbol 29 MovieClip "p2" in Frame 1on (press) { _root.Click(2); }Instance of Symbol 31 MovieClip "p3" in Frame 1on (press) { _root.Click(3); }Instance of Symbol 33 MovieClip "p4" in Frame 1on (press) { _root.Click(4); }Instance of Symbol 35 MovieClip "p5" in Frame 1on (press) { _root.Click(5); }Instance of Symbol 37 MovieClip "p6" in Frame 1on (press) { _root.Click(6); }Instance of Symbol 39 MovieClip "p7" in Frame 1on (press) { _root.Click(7); }Instance of Symbol 41 MovieClip "p8" in Frame 1on (press) { _root.Click(8); }Instance of Symbol 45 MovieClip "p9" in Frame 1on (press) { _root.Click(9); }Instance of Symbol 47 MovieClip "p10" in Frame 1on (press) { _root.Click(10); }Instance of Symbol 49 MovieClip "p11" in Frame 1on (press) { _root.Click(11); }Instance of Symbol 51 MovieClip "p12" in Frame 1on (press) { _root.Click(12); }Instance of Symbol 53 MovieClip "p13" in Frame 1on (press) { _root.Click(13); }Instance of Symbol 55 MovieClip "p14" in Frame 1on (press) { _root.Click(14); }Frame 2gotoAndStop (1);Symbol 21 Buttonon (release) { Shuffle(); }Symbol 23 Buttonon (press) { _root.Click(0); }Symbol 25 Buttonon (press) { _root.Click(1); }Symbol 27 Buttonon (press) { _root.Click(0); }Symbol 43 Buttonon (press) { _root.Click(1); }Symbol 58 Buttonon (release) { help.nextFrame(); }Symbol 64 Buttonon (release) { getURL ("http://pinklemonadeanime.com", "_blank"); }Symbol 67 MovieClip Frame 40_root.gotoAndStop("win");Symbol 73 Buttonon (release) { prevFrame(); }Symbol 84 MovieClip Frame 1stop();Symbol 93 Buttonon (release) { getURL ("http://www.drowtales.com/~whiteradish/guest/kernpickle.jpg", "_blank"); }Symbol 96 Buttonon (release) { getURL ("http://www.drowtales.com/~whiteradish/guest/kernpickle.jpg", "_blank"); }
Library Items
Symbol 1 Graphic | Used by:Timeline | |
Symbol 2 Graphic | Used by:Timeline | |
Symbol 3 Graphic | Used by:84 96 Timeline | |
Symbol 4 Graphic | Used by:Timeline | |
Symbol 5 Font | Used by:6 60 | |
Symbol 6 Text | Uses:5 | Used by:Timeline |
Symbol 7 Graphic | Used by:12 26 27 28 30 32 34 36 38 40 42 43 44 46 48 50 52 54 | |
Symbol 8 Bitmap | Used by:9 | |
Symbol 9 Graphic | Uses:8 | Used by:10 |
Symbol 10 MovieClip | Uses:9 | Used by:12 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 |
Symbol 11 Graphic | Used by:12 | |
Symbol 12 MovieClip | Uses:7 10 11 | Used by:Timeline |
Symbol 13 Font | Used by:15 70 75 80 82 90 | |
Symbol 14 Font | Used by:15 | |
Symbol 15 Text | Uses:13 14 | Used by:Timeline |
Symbol 16 Graphic | Used by:21 | |
Symbol 17 Font | Used by:18 | |
Symbol 18 Text | Uses:17 | Used by:21 |
Symbol 19 Graphic | Used by:21 | |
Symbol 20 Graphic | Used by:21 | |
Symbol 21 Button | Uses:16 18 19 20 | Used by:Timeline |
Symbol 22 Graphic | Used by:23 24 25 Timeline | |
Symbol 23 Button | Uses:22 | Used by:Timeline |
Symbol 24 MovieClip | Uses:22 | Used by:Timeline |
Symbol 25 Button | Uses:22 | Used by:Timeline |
Symbol 26 MovieClip | Uses:7 10 | Used by:27 |
Symbol 27 Button | Uses:26 7 | Used by:Timeline |
Symbol 28 MovieClip | Uses:7 10 | Used by:29 |
Symbol 29 MovieClip | Uses:28 | Used by:Timeline |
Symbol 30 MovieClip | Uses:7 10 | Used by:31 |
Symbol 31 MovieClip | Uses:30 | Used by:Timeline |
Symbol 32 MovieClip | Uses:7 10 | Used by:33 |
Symbol 33 MovieClip | Uses:32 | Used by:Timeline |
Symbol 34 MovieClip | Uses:7 10 | Used by:35 |
Symbol 35 MovieClip | Uses:34 | Used by:Timeline |
Symbol 36 MovieClip | Uses:7 10 | Used by:37 |
Symbol 37 MovieClip | Uses:36 | Used by:Timeline |
Symbol 38 MovieClip | Uses:7 10 | Used by:39 |
Symbol 39 MovieClip | Uses:38 | Used by:Timeline |
Symbol 40 MovieClip | Uses:7 10 | Used by:41 |
Symbol 41 MovieClip | Uses:40 | Used by:Timeline |
Symbol 42 MovieClip | Uses:7 10 | Used by:43 |
Symbol 43 Button | Uses:42 7 | Used by:Timeline |
Symbol 44 MovieClip | Uses:7 10 | Used by:45 |
Symbol 45 MovieClip | Uses:44 | Used by:Timeline |
Symbol 46 MovieClip | Uses:7 10 | Used by:47 |
Symbol 47 MovieClip | Uses:46 | Used by:Timeline |
Symbol 48 MovieClip | Uses:7 10 | Used by:49 |
Symbol 49 MovieClip | Uses:48 | Used by:Timeline |
Symbol 50 MovieClip | Uses:7 10 | Used by:51 |
Symbol 51 MovieClip | Uses:50 | Used by:Timeline |
Symbol 52 MovieClip | Uses:7 10 | Used by:53 |
Symbol 53 MovieClip | Uses:52 | Used by:Timeline |
Symbol 54 MovieClip | Uses:7 10 | Used by:55 |
Symbol 55 MovieClip | Uses:54 | Used by:Timeline |
Symbol 56 Graphic | Used by:58 | |
Symbol 57 Graphic | Used by:58 | |
Symbol 58 Button | Uses:56 57 | Used by:Timeline |
Symbol 59 Font | Used by:60 | |
Symbol 60 Text | Uses:59 5 | Used by:Timeline |
Symbol 61 Graphic | Used by:64 | |
Symbol 62 Font | Used by:63 86 87 88 | |
Symbol 63 Text | Uses:62 | Used by:64 |
Symbol 64 Button | Uses:61 63 | Used by:Timeline |
Symbol 65 Graphic | Used by:67 | |
Symbol 66 Sound | Used by:67 | |
Symbol 67 MovieClip | Uses:65 66 | Used by:Timeline |
Symbol 68 Graphic | Used by:84 | |
Symbol 69 Graphic | Used by:73 | |
Symbol 70 Text | Uses:13 | Used by:73 |
Symbol 71 Graphic | Used by:73 | |
Symbol 72 Graphic | Used by:73 | |
Symbol 73 Button | Uses:69 70 71 72 | Used by:84 |
Symbol 74 Graphic | Used by:84 | |
Symbol 75 Text | Uses:13 | Used by:84 |
Symbol 76 Graphic | Used by:84 | |
Symbol 77 Font | Used by:78 81 | |
Symbol 78 Text | Uses:77 | Used by:84 |
Symbol 79 Graphic | Used by:84 | |
Symbol 80 Text | Uses:13 | Used by:84 |
Symbol 81 Text | Uses:77 | Used by:84 |
Symbol 82 Text | Uses:13 | Used by:84 |
Symbol 83 Graphic | Used by:84 | |
Symbol 84 MovieClip | Uses:68 3 73 74 75 76 78 79 80 81 82 83 | Used by:Timeline |
Symbol 85 Graphic | Used by:Timeline | |
Symbol 86 Text | Uses:62 | Used by:Timeline |
Symbol 87 EditableText | Uses:62 | Used by:Timeline |
Symbol 88 Text | Uses:62 | Used by:Timeline |
Symbol 89 Graphic | Used by:93 | |
Symbol 90 Text | Uses:13 | Used by:93 |
Symbol 91 Graphic | Used by:93 | |
Symbol 92 Graphic | Used by:93 | |
Symbol 93 Button | Uses:89 90 91 92 | Used by:Timeline |
Symbol 94 Bitmap | Used by:95 | |
Symbol 95 Graphic | Uses:94 | Used by:96 |
Symbol 96 Button | Uses:3 95 | Used by:Timeline |
Instance Names
"p0" | Frame 1 | Symbol 27 Button |
"p2" | Frame 1 | Symbol 29 MovieClip |
"p3" | Frame 1 | Symbol 31 MovieClip |
"p4" | Frame 1 | Symbol 33 MovieClip |
"p5" | Frame 1 | Symbol 35 MovieClip |
"p6" | Frame 1 | Symbol 37 MovieClip |
"p7" | Frame 1 | Symbol 39 MovieClip |
"p8" | Frame 1 | Symbol 41 MovieClip |
"p1" | Frame 1 | Symbol 43 Button |
"p9" | Frame 1 | Symbol 45 MovieClip |
"p10" | Frame 1 | Symbol 47 MovieClip |
"p11" | Frame 1 | Symbol 49 MovieClip |
"p12" | Frame 1 | Symbol 51 MovieClip |
"p13" | Frame 1 | Symbol 53 MovieClip |
"p14" | Frame 1 | Symbol 55 MovieClip |
"Congratulations" | Frame 1 | Symbol 67 MovieClip |
"help" | Frame 1 | Symbol 84 MovieClip |
Special Tags
Protect (24) | Timeline Frame 1 | 0 bytes "" |
Labels
"win" | Frame 3 |
|