STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229594 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #29968 |
Player: |
Computer: |
0 |
0 |
How to Play |
The player takes turns with the computer drawing a line to connect two dots, either horizontally or vertically. If a player makes the line that completes a box, that player scores one point, and draws another line. Once all the dots are connected, the player with the most points is the winner! |
Play More Games |
Restart Game |
ActionScript [AS1/AS2]
Frame 91function markLine(line, p) { var _local4 = line.x; var _local3 = line.y; var _local2 = 0; line.marked = true; _root.plays--; line.gotoAndPlay(p + 2); var _local5 = countSides(_local4, _local3); if (_local3 % 2) { if (_local5[0] == 4) { boxes[(_local3 - 1) / 2][_local4 - 1].gotoAndStop(p + 1); _local2++; } if (_local5[1] == 4) { boxes[(_local3 - 1) / 2][_local4].gotoAndStop(p + 1); _local2++; } } else { if (_local5[0] == 4) { boxes[(_local3 / 2) - 1][_local4].gotoAndStop(p + 1); _local2++; } if (_local5[1] == 4) { boxes[_local3 / 2][_local4].gotoAndStop(p + 1); _local2++; } } if (_local2) { _root["score" + p].text = int(_root["score" + p].text) + _local2; } if (_root.plays < 1) { p = int(score1.text); var _local6 = int(score2.text); if (p > _local6) { message.gotoAndStop(2); } else if (_local6 > p) { message.gotoAndStop(3); } else { message.gotoAndStop(4); } } return(_local2); } function findPlay() { var _local8 = 2; var _local6 = random(17); var _local7 = random(((_local6 % 2) ? 9 : 8)); pass = 0; while (pass < 3) { var _local1 = _local6; var _local2 = _local7; do { if (lines[_local1][_local2] && (!lines[_local1][_local2].marked)) { var _local4 = countSides(_local2, _local1); var _local3 = 0; switch (pass) { case 0 : if ((_local4[0] == 4) || (_local4[1] == 4)) { _local3 = 1; } break; case 1 : if ((_local4[0] < 3) && (_local4[1] < 3)) { _local3 = 2; } break; case 2 : _local3 = 3; } if (_local3) { markLine(lines[_local1][_local2], _local8); return(_local3); } } var _local5 = ((_local1 % 2) ? 9 : 8); _local2++; if (_local2 >= _local5) { _local2 = 0; _local1++; } if (_local1 >= 17) { _local1 = 0; } } while ((_local1 != _local6) || (_local2 != _local7)); pass++; } } function countSides(x, y) { var _local1 = [1, 1]; if (y % 2) { if (lines[y - 1][x - 1].marked) { _local1[0]++; } if (lines[y][x - 1].marked) { _local1[0]++; } if (lines[y + 1][x - 1].marked) { _local1[0]++; } if (lines[y - 1][x].marked) { _local1[1]++; } if (lines[y][x + 1].marked) { _local1[1]++; } if (lines[y + 1][x].marked) { _local1[1]++; } } else { if (lines[y - 1][x].marked) { _local1[0]++; } if (lines[y - 2][x].marked) { _local1[0]++; } if (lines[y - 1][x + 1].marked) { _local1[0]++; } if (lines[y + 1][x].marked) { _local1[1]++; } if (lines[y + 2][x].marked) { _local1[1]++; } if (lines[y + 1][x + 1].marked) { _local1[1]++; } } return(_local1); } stop(); message.gotoAndStop(1); var boxes = []; y = 0; while (y < 8) { if (!boxes[y]) { boxes[y] = []; } x = 0; while (x < 8) { if (!boxes[y][x]) { boxes[y][x] = game.attachMovie("Box", (("box" + y) + "x") + x, game.getNextHighestDepth()); } boxes[y][x].player = 0; boxes[y][x]._x = 22.5 + (x * 50); boxes[y][x]._y = 22.5 + (y * 50); boxes[y][x]._width = 50; boxes[y][x]._height = 50; boxes[y][x].gotoAndStop(1); x++; } y++; } var plays = 0; var lines = []; y = 0; while (y < 17) { var max = ((y % 2) ? 9 : 8); if (!lines[y]) { lines[y] = []; } x = 0; while (x < max) { plays++; if (!lines[y][x]) { lines[y][x] = game.attachMovie("Line", (("line" + y) + "x") + x, game.getNextHighestDepth()); } lines[y][x].x = x; lines[y][x].y = y; lines[y][x].marked = false; lines[y][x]._x = 22.5 + (x * 50); lines[y][x]._y = (22.5 + ((y / 2) * 50)) - ((y % 2) ? 25 : 0); lines[y][x]._width = ((y % 2) ? 5 : 50); lines[y][x]._height = ((y % 2) ? 50 : 5); lines[y][x].gotoAndStop(1); x++; } y++; }Frame 92gotoAndPlay (91);Symbol 4 MovieClip [Line] Frame 1stop(); this.onPress = function () { if (!this.marked) { if (!_root.markLine(this, 1)) { do { var found = _root.findPlay(); } while (found == 1); } } }; this.onRollOver = function () { if (!this.marked) { this.gotoAndStop(2); } }; this.onRollOut = function () { if (!this.marked) { this.gotoAndStop(1); } };Symbol 4 MovieClip [Line] Frame 3stop();Symbol 4 MovieClip [Line] Frame 10stop();Symbol 7 MovieClip [Box] Frame 1stop();Symbol 14 Buttonon (press) { getURL ("http://www.gamegutter.com/?dots"); }Symbol 28 Buttonon (press) { getURL ("http://www.gamegutter.com/?dots", "_top"); }Symbol 31 Buttonon (press) { gotoAndPlay (92); }Symbol 36 MovieClip Frame 1stop();
Library Items
Symbol 1 Graphic | Used by:4 7 | |
Symbol 2 Graphic | Used by:4 | |
Symbol 3 Graphic | Used by:4 | |
Symbol 4 MovieClip [Line] | Uses:1 2 3 | |
Symbol 5 Graphic | Used by:7 | |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 MovieClip [Box] | Uses:1 5 6 | |
Symbol 8 Graphic | Used by:Timeline | |
Symbol 9 Bitmap | Used by:10 | |
Symbol 10 Graphic | Uses:9 | Used by:Timeline |
Symbol 11 Bitmap | Used by:12 | |
Symbol 12 Graphic | Uses:11 | Used by:Timeline |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 Button | Uses:13 | Used by:Timeline |
Symbol 15 Graphic | Used by:Timeline | |
Symbol 16 Graphic | Used by:17 | |
Symbol 17 MovieClip | Uses:16 | Used by:Timeline |
Symbol 18 Font | Used by:19 20 21 22 23 27 30 | |
Symbol 19 Text | Uses:18 | Used by:Timeline |
Symbol 20 Text | Uses:18 | Used by:Timeline |
Symbol 21 EditableText | Uses:18 | Used by:Timeline |
Symbol 22 EditableText | Uses:18 | Used by:Timeline |
Symbol 23 Text | Uses:18 | Used by:Timeline |
Symbol 24 Font | Used by:25 | |
Symbol 25 Text | Uses:24 | Used by:Timeline |
Symbol 26 Graphic | Used by:28 | |
Symbol 27 Text | Uses:18 | Used by:28 |
Symbol 28 Button | Uses:26 27 | Used by:Timeline |
Symbol 29 Graphic | Used by:31 | |
Symbol 30 Text | Uses:18 | Used by:31 |
Symbol 31 Button | Uses:29 30 | Used by:Timeline |
Symbol 32 Graphic | Used by:Timeline | |
Symbol 33 Graphic | Used by:36 | |
Symbol 34 Graphic | Used by:36 | |
Symbol 35 Graphic | Used by:36 | |
Symbol 36 MovieClip | Uses:33 34 35 | Used by:Timeline |
Instance Names
"game" | Frame 91 | Symbol 17 MovieClip |
"score1" | Frame 91 | Symbol 21 EditableText |
"score2" | Frame 91 | Symbol 22 EditableText |
"message" | Frame 91 | Symbol 36 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "Line" |
ExportAssets (56) | Timeline Frame 1 | Symbol 7 as "Box" |
|