STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 228109 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2561 · P5121 |
This is the info page for Flash #24576 |
DONE |
LOADING MASTERMIND ... |
HOW TO PLAY Click on one of the five spaces to change the color of the rock in it. You can choose from five colors. When you press done, you get a white rock for every rock in the right place, and a black rock for every rock that is the right color, but in the wrong space. Use this information to make another guess. See if you can guess the combination in 10 turns or less. |
phantomgames.tk |
YOU WIN |
YOU LOSE |
ActionScript [AS1/AS2]
Frame 2if ((_root.getBytesLoaded() / _root.getBytesTotal) >= 1) { play(); } else { gotoAndPlay (1); }Frame 3function initGame() { topRowLoc = 100; leftColLoc = 280; rightColLoc = 390; horizSpace = 21; vertSpace = 23; solutionx = 336; solutiony = 340; solution = new Array(); i = 0; while (i < 5) { solution.push(int(Math.Random() * 5)); i++; } rows = new Array(); row = 0; createRow(); } function createRow() { i = 0; while (i < 5) { attachMovie("rock", (("rock" + row) + "-") + i, (row * 10) + i); clip = _root[(("rock" + row) + "-") + i]; clip._x = leftColLoc + (i * horizSpace); clip._y = topRowLoc + (row * vertSpace); clip.active = true; i++; } attachMovie("done", "done", 1000); _root.done._x = rightColLoc + 20; _root.done._y = topRowLoc + (row * vertSpace); } function doneGuess() { numRightSpot = 0; numRightColor = 0; i = 0; while (i < 5) { _root[(("rock" + row) + "-") + i].active = false; i++; } temp = [0, 0, 0, 0, 0]; i = 0; while (i < 5) { temp[solution[i]]++; i++; } i = 0; while (i < 5) { kolor = _root[(("rock" + row) + "-") + i]._currentFrame - 2; if (kolor == solution[i]) { numRightSpot++; temp[kolor]--; } i++; } i = 0; while (i < 5) { kolor = _root[(("rock" + row) + "-") + i]._currentFrame - 2; if (kolor != solution[i]) { if (0 < temp[kolor]) { numRightColor++; temp[kolor]--; } } i++; } level = (row * 10) + 5; x = rightColLoc; i = 0; while (i < numRightSpot) { attachMovie("rock", "white rock" + level, level); clip = _root["white rock" + level]; clip.gotoAndStop("white"); clip._x = x; clip._y = topRowLoc + (row * vertSpace); level++; x = x + horizSpace; i++; } i = 0; while (i < numRightColor) { attachMovie("rock", "black rock" + level, level); clip = _root["black rock" + level]; clip.gotoAndStop("black"); clip._x = x; clip._y = topRowLoc + (row * vertSpace); level++; x = x + horizSpace; i++; } done.removeMovieClip(); if (numRightSpot == 5) { gotoAndPlay (4); } else { row++; if (row >= 10) { showSolution(); gotoAndPlay (5); } else { createRow(); } } } function showSolution() { i = 0; while (i < 5) { attachMovie("rock", "solution" + i, 1001 + i); clip = _root["solution" + i]; clip._x = solutionx + (i * horizSpace); clip._y = solutiony; clip.gotoAndStop(solution[i] + 2); i++; } } initGame(); stop();Frame 4stop();Frame 5stop();Symbol 2 Buttonon (press) { if (active) { f = _currentframe + 1; if (6 < f) { f = 1; } gotoAndStop(f); } }Symbol 10 MovieClip [rock] Frame 1stop();Symbol 17 Buttonon (press) { _root.doneGuess(); }
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 Button | Uses:1 | Used by:10 |
Symbol 3 Graphic | Used by:10 | |
Symbol 4 Graphic | Used by:10 | |
Symbol 5 Graphic | Used by:10 | |
Symbol 6 Graphic | Used by:10 | |
Symbol 7 Graphic | Used by:10 | |
Symbol 8 Graphic | Used by:10 | |
Symbol 9 Graphic | Used by:10 | |
Symbol 10 MovieClip [rock] | Uses:2 3 4 5 6 7 8 9 | |
Symbol 11 Graphic | Used by:17 | |
Symbol 12 Graphic | Used by:17 | |
Symbol 13 Font | Used by:14 38 39 40 | |
Symbol 14 Text | Uses:13 | Used by:17 |
Symbol 15 Graphic | Used by:17 | |
Symbol 16 Graphic | Used by:17 | |
Symbol 17 Button | Uses:11 12 14 15 16 | Used by:18 |
Symbol 18 MovieClip [done] | Uses:17 | |
Symbol 19 Graphic | Used by:27 | |
Symbol 20 Graphic | Used by:27 | |
Symbol 21 ShapeTweening | Used by:27 | |
Symbol 22 ShapeTweening | Used by:27 | |
Symbol 23 Graphic | Used by:27 | |
Symbol 24 ShapeTweening | Used by:27 | |
Symbol 25 ShapeTweening | Used by:27 | |
Symbol 26 Graphic | Used by:27 | |
Symbol 27 MovieClip | Uses:19 20 21 22 23 24 25 26 | Used by:Timeline |
Symbol 28 Graphic | Used by:Timeline | |
Symbol 29 Font | Used by:30 | |
Symbol 30 Text | Uses:29 | Used by:Timeline |
Symbol 31 Graphic | Used by:Timeline | |
Symbol 32 Graphic | Used by:Timeline | |
Symbol 33 Font | Used by:35 | |
Symbol 34 Font | Used by:35 | |
Symbol 35 Text | Uses:33 34 | Used by:36 |
Symbol 36 MovieClip | Uses:35 | Used by:Timeline |
Symbol 37 Graphic | Used by:Timeline | |
Symbol 38 Text | Uses:13 | Used by:Timeline |
Symbol 39 Text | Uses:13 | Used by:Timeline |
Symbol 40 Text | Uses:13 | Used by:Timeline |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 10 as "rock" |
ExportAssets (56) | Timeline Frame 1 | Symbol 18 as "done" |
Labels
"win" | Frame 4 |
"lose" | Frame 5 |
"black" | Symbol 10 MovieClip [rock] Frame 7 |
"white" | Symbol 10 MovieClip [rock] Frame 8 |
|