STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229703 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5192 |
This is the info page for Flash #27480 |
Presents... |
PEGZ |
PEGZ |
When you need a kwik break! |
Instructions |
Instructions |
Start Game |
Start Game |
Instructions |
Using the mouse, move the blue pieces one at a time. The only valid move is to jump another single piece and land in an empty hole. Try to finish the game with only one single piece remaining... in the centre hole! |
Restart |
Restart |
Moves left : |
Well Done! |
You cleared the board... |
ActionScript [AS1/AS2]
Frame 45stop();Frame 46stop();Frame 47function initGame() { holeSpace = 30; puzzleLeft = 160; puzzleTop = 80; i = 0; y = 0; while (y < 9) { x = 0; while (x < 9) { if (((y < 3) or (y > 5)) and ((x < 3) or (x > 5))) { } else { attachMovie("hole", "hole" + i, i); _root["hole" + i]._x = (x * holeSpace) + puzzleLeft; _root["hole" + i]._y = (y * holeSpace) + puzzleTop; if ((x != 4) or (y != 4)) { attachMovie("peg", "peg" + i, 100 + i); _root["peg" + i]._x = (x * holeSpace) + puzzleLeft; _root["peg" + i]._y = (y * holeSpace) + puzzleTop; } i++; } x++; } y++; } maxHole = i; } function dragPeg(peg) { pegx = peg._x; pegy = peg._y; peg.swapDepths(2000); startDrag (peg, true); } function dropPeg(peg) { stopDrag(); placed = false; overHole = false; i = 0; while (i < maxHole) { hole = _root["hole" + i]; if (hole.hitTest(_xmouse, _ymouse)) { overHole = true; break; } i++; } if (!pegThere(hole._x, hole._y)) { dx = 0; dy = 0; if ((pegx == hole._x) and ((pegy - (holeSpace * 2)) == hole._y)) { dy = -1; } else if ((pegx == hole._x) and ((pegy + (holeSpace * 2)) == hole._y)) { dy = 1; } else if ((pegy == hole._y) and ((pegx - (holeSpace * 2)) == hole._x)) { dx = -1; } else if ((pegy == hole._y) and ((pegx + (holeSpace * 2)) == hole._x)) { dx = 1; } if ((dx != 0) or (dy != 0)) { midThere = false; i = 0; while (i < maxHole) { mid = _root["peg" + i]; if ((mid._x == (pegx + (dx * holeSpace))) and (mid._y == (pegy + (dy * holeSpace)))) { peg._x = hole._x; peg._y = hole._y; score--; if (score == 0) { gotoAndStop (48); } mid.removeMovieClip(); placed = true; break; } i++; } } } if (!placed) { peg._x = pegx; peg._y = pegy; } } function pegThere(x, y) { i = 0; while (i < maxHole) { peg = _root["peg" + i]; if ((peg._x == x) and (peg._y == y)) { return(true); } i++; } return(false); } function restartGame() { i = 0; while (i < maxHole) { _root["peg" + i].removeMovieClip(); _root["hole" + i].removeMovieClip(); i++; } initGame(); } initGame(); var score = 43; stop();Frame 48stop(); i = 0; while (i < maxHole) { _root["peg" + i].removeMovieClip(); _root["hole" + i].removeMovieClip(); i++; }Symbol 2 Buttonon (press) { _root.dragPeg(this); } on (release) { _root.dropPeg(this); }Symbol 15 Buttonon (release) { getURL ("http://www.kwikgames.com"); }Symbol 21 Buttonon (release) { gotoAndStop (46); }Symbol 27 Buttonon (release) { gotoAndStop (47); }Symbol 32 Buttonon (release) { gotoAndStop (47); }Symbol 33 Buttonon (release) { getURL ("http://www.kwikgames.com", _blank); }Symbol 40 Buttonon (press) { score = 43; restartGame(); }Symbol 46 Buttonon (press) { gotoAndStop (47); restartGame(); }
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 Button | Uses:1 | Used by:3 |
Symbol 3 MovieClip [peg] | Uses:2 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip [hole] | Uses:4 | |
Symbol 6 Graphic | Used by:15 33 Timeline | |
Symbol 7 Font | Used by:8 17 19 23 25 29 36 38 41 42 43 44 45 | |
Symbol 8 Text | Uses:7 | Used by:Timeline |
Symbol 9 Font | Used by:10 11 | |
Symbol 10 Text | Uses:9 | Used by:Timeline |
Symbol 11 Text | Uses:9 | Used by:Timeline |
Symbol 12 Font | Used by:13 | |
Symbol 13 Text | Uses:12 | Used by:15 33 |
Symbol 14 Graphic | Used by:15 33 | |
Symbol 15 Button | Uses:13 6 14 | Used by:Timeline |
Symbol 16 Graphic | Used by:21 | |
Symbol 17 Text | Uses:7 | Used by:21 |
Symbol 18 Graphic | Used by:21 | |
Symbol 19 Text | Uses:7 | Used by:21 |
Symbol 20 Graphic | Used by:21 | |
Symbol 21 Button | Uses:16 17 18 19 20 | Used by:Timeline |
Symbol 22 Graphic | Used by:27 32 | |
Symbol 23 Text | Uses:7 | Used by:27 32 |
Symbol 24 Graphic | Used by:27 32 | |
Symbol 25 Text | Uses:7 | Used by:27 32 |
Symbol 26 Graphic | Used by:27 32 | |
Symbol 27 Button | Uses:22 23 24 25 26 | Used by:Timeline |
Symbol 28 Graphic | Used by:Timeline | |
Symbol 29 Text | Uses:7 | Used by:Timeline |
Symbol 30 Font | Used by:31 | |
Symbol 31 Text | Uses:30 | Used by:Timeline |
Symbol 32 Button | Uses:22 23 24 25 26 | Used by:Timeline |
Symbol 33 Button | Uses:13 6 14 | Used by:Timeline |
Symbol 34 Graphic | Used by:Timeline | |
Symbol 35 Graphic | Used by:40 46 | |
Symbol 36 Text | Uses:7 | Used by:40 46 |
Symbol 37 Graphic | Used by:40 46 | |
Symbol 38 Text | Uses:7 | Used by:40 46 |
Symbol 39 Graphic | Used by:40 46 | |
Symbol 40 Button | Uses:35 36 37 38 39 | Used by:Timeline |
Symbol 41 EditableText | Uses:7 | Used by:Timeline |
Symbol 42 Text | Uses:7 | Used by:Timeline |
Symbol 43 EditableText | Uses:7 | Used by:Timeline |
Symbol 44 Text | Uses:7 | Used by:Timeline |
Symbol 45 Text | Uses:7 | Used by:Timeline |
Symbol 46 Button | Uses:35 36 37 38 39 | Used by:Timeline |
Special Tags
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "peg" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "hole" |
Labels
"start" | Frame 45 |
"instructions" | Frame 46 |
Dynamic Text Variables
score | Symbol 41 EditableText | "" |
score | Symbol 43 EditableText | "" |
|