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 #24347 |
score: |
level: |
level: |
score: |
0000 |
0000 |
0000 |
0000 |
A simple puzzle game... The objective is to flip the tiles and get 3 or more in a row. Click to start! ARROWKEYS to control. SPACE to flip tiles. CTRL to speed up. |
A simple puzzle game... The objective is to flip the tiles and get 3 or more in a row. Click to start! ARROWKEYS to control. SPACE to flip tiles. CTRL to speed up. |
ActionScript [AS1/AS2]
Frame 3stop();Instance of Symbol 54 MovieClip [empty] in Frame 3onClipEvent (mouseDown) { _parent.gotoAndStop(6); }Frame 6function control() { if (gameover) { if (gameoverTimer < getTimer()) { removeMovieClip(this.con); removeMovieClip(this.cover); removeMovieClip(this.marker); gotoAndStop (3); } return(undefined); } if (((lastScroll + levelArray[level]) < getTimer()) || (Key.isDown(Key.CONTROL))) { pixely = pixely + 1; var basey = (scrolly * tileH); this.con._y = (-(pixely + basey)) + 10; this.marker._y = ((this.marker.y * tileH) - pixely) + 10; lastScroll = getTimer(); if (pixely == 16) { pixely = 0; scrolly++; addnewline(); removeline(); if (1 < this.marker.y) { this.marker.y = this.marker.y - 1; } flipped = true; } } if (getTimer() < (lastTime + 80)) { return(undefined); } var s = getTimer(); if (flipped) { var x = 0; while (x < maxWidth) { fall(x); x++; } var again = checkAll(); if (again == 0) { flipped = false; } lastTime = getTimer() + 90; } var mx = ((my = (flip = 0))); if (Key.isDown(Key.UP)) { my = -1; } else if (Key.isDown(Key.DOWN)) { my = 1; } else if (Key.isDown(Key.LEFT)) { mx = -1; } else if (Key.isDown(Key.RIGHT)) { mx = 1; } if (Key.isDown(Key.SPACE)) { flip = 1; } if (((mx == 0) && (my == 0)) && (flip == 0)) { return(undefined); } var nextX = (this.marker.x + mx); var nextY = (this.marker.y + my); if (9 < nextY) { nextY = 9; } if ((nextX >= 0) && (nextX < (maxWidth - 1))) { this.marker._x = (nextX * tileW) + 10; this.marker.x = nextX; } if ((nextY >= 1) && (nextY < (maxheight - 1))) { this.marker._y = ((nextY * tileH) - pixely) + 10; this.marker.y = nextY; } if (flip) { flipTiles(nextX, nextY + scrolly); flipped = true; } lastTime = getTimer(); } function checkAll() { var r = 0; var y = scrolly; while (y < ((maxHeight + scrolly) - 1)) { r = r + checkRow(y); y++; } var x = 0; while (x < maxWidth) { r = r + checkColumn(x); x++; } return(r); } function checkRow(y) { var r = 0; var inarow = 0; var x = 0; while (x < maxWidth) { var type = cMap[y][x]; if ((type == lastType) && (type != 0)) { inarow++; } else { inarow = 0; } if (inarow == 2) { var tx = x; while ((x - 3) < tx) { greyTile(tx, y); tx--; } addscore(30); r++; } if ((2 < inarow) && (type == lastType)) { greyTile(x, y); if (inarow == 3) { inarowSign(x - 1, y, "four"); addscore(10); } if (inarow == 4) { inarowSign(x - 2, y, "five"); addscore(20); } } var lastType = type; x++; } return(r); } function checkColumn(x) { var r = 0; var inarow = 0; var y = scrolly; while (y < ((maxHeight + scrolly) - 1)) { var type = cMap[y][x]; if ((type == lastType) && (type != 0)) { inarow++; } else { inarow = 0; } if (inarow == 2) { var ty = y; while ((y - 3) < ty) { greyTile(x, ty); ty--; } r++; addscore(30); } if ((2 < inarow) && (type == lastType)) { greyTile(x, y); if (inarow == 3) { inarowSign(x, y - 1, "four"); addscore(10); } if (inarow == 4) { inarowSign(x, y - 2, "five"); addscore(20); } } var lastType = type; y++; } return(r); } function inarowSign(x, y, label) { this.con.attachMovie("inarow", "sign", ++d); this.con.sign._x = x * tileW; this.con.sign._y = y * tileH; this.con.sign.gotoAndPlay(label); } function greyTile(x, y) { this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); cMap[y][x] = 0; } function flipTiles(x, y) { var n1 = cMap[y][x]; var n2 = cMap[y][x + 1]; this.con[(("t" + y) + "_") + x].gotoAndStop(n2 + 1); this.con[(("t" + y) + "_") + (x + 1)].gotoAndStop(n1 + 1); cMap[y][x] = n2; cMap[y][x + 1] = n1; } function addscore(s) { this.cover.score = this.cover.score + s; if (((level + 1) * 200) < this.cover.score) { nextLevel(); } } function nextLevel() { if (level < levelArray.length) { level++; } this.cover.level = level; } function randomStart() { this.attachMovie("empty", "con", 0); this.con._x = 10; this.con._y = 10; this.attachMovie("cover", "cover", 1); this.cover.level = level; this.cover.score = 0; flipped = true; d = 0; scrolly = 0; gameover = false; cMap = []; var y = 0; while (y < maxHeight) { cMap[y] = new Array(maxWidth); var x = 0; while (x < maxWidth) { cMap[y][x] = 0; x++; } y++; } var y = (maxHeight - 1); while (4 < y) { var x = 0; while (x < maxWidth) { if (y >= maxHeight) { var rn = Math.randomBetween(1, 5); } else { var rn = Math.randomBetween(0, 5); } this.con.attachMovie("tile", (("t" + y) + "_") + x, ++d); this.con[(("t" + y) + "_") + x]._x = x * tileW; this.con[(("t" + y) + "_") + x]._y = y * tileH; this.con[(("t" + y) + "_") + x].gotoAndStop(rn + 1); if (y == (maxHeight - 1)) { this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); } cMap[y][x] = rn; x++; } y--; } var x = 0; while (x < maxWidth) { fall(x); x++; } this.attachMovie("marker", "marker", 2); this.marker._x = (2 * tileW) + 10; this.marker._y = (5 * tileH) + 10; this.marker.x = 2; this.marker.y = 5; } function addnewline() { var y = ((maxHeight + scrolly) - 1); cMap[y] = []; var x = 0; while (x < maxWidth) { var rn = Math.randomBetween(1, 5); this.con.attachMovie("tile", (("t" + y) + "_") + x, ++d); this.con[(("t" + y) + "_") + x]._x = x * tileW; this.con[(("t" + y) + "_") + x]._y = y * tileH; this.con[(("t" + y) + "_") + x].gotoAndStop(rn + 1); this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); cMap[y][x] = rn; this.con[(("t" + (y - 1)) + "_") + x].t.gotoAndStop(1); x++; } } function removeline() { var y = scrolly; var x = 0; while (x < maxWidth) { if (cMap[y][x] != 0) { blackAll(); gameover = true; gameoverTimer = getTimer() + 2000; return(undefined); } removeMovieClip(this.con[(("t" + y) + "_") + x]); x++; } } function blackAll() { var y = scrolly; while (y < (maxHeight + scrolly)) { var x = 0; while (x < maxWidth) { if (cMap[y][x] != 0) { this.con[(("t" + y) + "_") + x].gotoAndStop(7); } x++; } y++; } } function fall(column) { var x = column; var numzeros = 0; var y = scrolly; while (y < (maxHeight + scrolly)) { if (cMap[y][x] == 0) { numzeros++; } y++; } var counter = 0; while (counter < numzeros) { var y = (maxHeight + scrolly); while (y >= scrolly) { if (cMap[y][x] == 0) { counter++; this.con[(("t" + y) + "_") + x].gotoAndStop(1); } if ((cMap[y][x] != 0) && (0 < counter)) { var tox = x; var toy = (y + counter); var type = cMap[y][x]; moveTile(x, y, tox, toy, type); counter = 0; break; } y--; } } } function movetile(x, y, tox, toy, type) { this.con[(("t" + y) + "_") + x].gotoAndStop(1); cMap[y][x] = 0; this.con[(("t" + toy) + "_") + tox].gotoAndStop(type + 1); cMap[toy][tox] = type; } fscommand ("allowscale", false); _quality = "LOW"; stop(); Math.randomBetween = function (low_number, high_number) { var this_number = (high_number - low_number); var ran_unrounded = (Math.random() * this_number); var ran_number = Math.round(ran_unrounded); ran_number = ran_number + low_number; return(ran_number); }; tileW = (tileH = 16); maxHeight = 11; maxWidth = 6; numOfTiles = 5; level = 0; levelArray = []; var asdf = 0; var i = 14; while (1 < i) { levelArray[asdf] = i * 100; asdf++; i--; } randomStart();Instance of Symbol 53 MovieClip [empty] in Frame 6onClipEvent (enterFrame) { _parent.control(); }Symbol 6 MovieClip Frame 1stop();Symbol 11 MovieClip Frame 1stop();Symbol 16 MovieClip Frame 1stop();Symbol 21 MovieClip Frame 1stop();Symbol 26 MovieClip Frame 1stop();Symbol 29 MovieClip [tile] Frame 1stop();Symbol 39 MovieClip [inarow] Frame 20removeMovieClip(this);Symbol 39 MovieClip [inarow] Frame 40removeMovieClip(this);
Library Items
Symbol 1 MovieClip [empty] | ||
Symbol 2 Bitmap | Used by:3 | |
Symbol 3 Graphic | Uses:2 | Used by:6 |
Symbol 4 Bitmap | Used by:5 | |
Symbol 5 Graphic | Uses:4 | Used by:6 |
Symbol 6 MovieClip | Uses:3 5 | Used by:29 |
Symbol 7 Bitmap | Used by:8 | |
Symbol 8 Graphic | Uses:7 | Used by:11 |
Symbol 9 Bitmap | Used by:10 | |
Symbol 10 Graphic | Uses:9 | Used by:11 |
Symbol 11 MovieClip | Uses:8 10 | Used by:29 |
Symbol 12 Bitmap | Used by:13 | |
Symbol 13 Graphic | Uses:12 | Used by:16 |
Symbol 14 Bitmap | Used by:15 | |
Symbol 15 Graphic | Uses:14 | Used by:16 |
Symbol 16 MovieClip | Uses:13 15 | Used by:29 |
Symbol 17 Bitmap | Used by:18 | |
Symbol 18 Graphic | Uses:17 | Used by:21 |
Symbol 19 Bitmap | Used by:20 | |
Symbol 20 Graphic | Uses:19 | Used by:21 |
Symbol 21 MovieClip | Uses:18 20 | Used by:29 |
Symbol 22 Bitmap | Used by:23 | |
Symbol 23 Graphic | Uses:22 | Used by:26 |
Symbol 24 Bitmap | Used by:25 | |
Symbol 25 Graphic | Uses:24 | Used by:26 |
Symbol 26 MovieClip | Uses:23 25 | Used by:29 |
Symbol 27 Bitmap | Used by:28 | |
Symbol 28 Graphic | Uses:27 | Used by:29 |
Symbol 29 MovieClip [tile] | Uses:6 11 16 21 26 28 | |
Symbol 30 Bitmap | Used by:31 | |
Symbol 31 Graphic | Uses:30 | Used by:34 |
Symbol 32 Bitmap | Used by:33 | |
Symbol 33 Graphic | Uses:32 | Used by:34 |
Symbol 34 MovieClip [marker] | Uses:31 33 | |
Symbol 35 Bitmap | Used by:36 | |
Symbol 36 Graphic | Uses:35 | Used by:39 |
Symbol 37 Bitmap | Used by:38 | |
Symbol 38 Graphic | Uses:37 | Used by:39 |
Symbol 39 MovieClip [inarow] | Uses:36 38 | |
Symbol 40 Graphic | Used by:52 | |
Symbol 41 Font | Used by:42 43 48 50 | |
Symbol 42 Text | Uses:41 | Used by:52 |
Symbol 43 Text | Uses:41 | Used by:52 |
Symbol 44 Font | Used by:45 46 47 49 | |
Symbol 45 Text | Uses:44 | Used by:52 |
Symbol 46 Text | Uses:44 | Used by:52 |
Symbol 47 EditableText | Uses:44 | Used by:52 |
Symbol 48 EditableText | Uses:41 | Used by:52 |
Symbol 49 EditableText | Uses:44 | Used by:52 |
Symbol 50 EditableText | Uses:41 | Used by:52 |
Symbol 51 Graphic | Used by:52 | |
Symbol 52 MovieClip [cover] | Uses:40 42 43 45 46 47 48 49 50 51 | |
Symbol 53 MovieClip [empty] | Used by:Timeline | |
Symbol 54 MovieClip [empty] | Used by:Timeline | |
Symbol 55 Bitmap | Used by:56 57 | |
Symbol 56 Graphic | Uses:55 | Used by:Timeline |
Symbol 57 Graphic | Uses:55 | Used by:Timeline |
Symbol 58 Font | Used by:60 61 | |
Symbol 59 Font | Used by:60 61 | |
Symbol 60 Text | Uses:58 59 | Used by:Timeline |
Symbol 61 Text | Uses:58 59 | Used by:Timeline |
Symbol 62 Graphic | Used by:Timeline |
Instance Names
"t" | Symbol 29 MovieClip [tile] Frame 2 | Symbol 6 MovieClip |
"t" | Symbol 29 MovieClip [tile] Frame 3 | Symbol 11 MovieClip |
"t" | Symbol 29 MovieClip [tile] Frame 4 | Symbol 16 MovieClip |
"t" | Symbol 29 MovieClip [tile] Frame 5 | Symbol 21 MovieClip |
"t" | Symbol 29 MovieClip [tile] Frame 6 | Symbol 26 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "empty" |
ExportAssets (56) | Timeline Frame 1 | Symbol 29 as "tile" |
ExportAssets (56) | Timeline Frame 1 | Symbol 34 as "marker" |
ExportAssets (56) | Timeline Frame 1 | Symbol 39 as "inarow" |
ExportAssets (56) | Timeline Frame 1 | Symbol 52 as "cover" |
ExportAssets (56) | Timeline Frame 1 | Symbol 53 as "empty" |
ExportAssets (56) | Timeline Frame 1 | Symbol 54 as "empty" |
ExportAssets (56) | Timeline Frame 3 | Symbol 54 as "empty" |
ExportAssets (56) | Timeline Frame 4 | Symbol 54 as "empty" |
ExportAssets (56) | Timeline Frame 5 | Symbol 54 as "empty" |
ExportAssets (56) | Timeline Frame 6 | Symbol 53 as "empty" |
Labels
"four" | Symbol 39 MovieClip [inarow] Frame 1 |
"five" | Symbol 39 MovieClip [inarow] Frame 21 |
Dynamic Text Variables
score | Symbol 47 EditableText | "0000" |
score | Symbol 48 EditableText | "0000" |
level | Symbol 49 EditableText | "0000" |
level | Symbol 50 EditableText | "0000" |
|