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 #60676 |
In this game, simply click to operate the fan. Blow the orange critters into the blue portal, avoiding the black holes. When all critters are on the portal, it will activate. This is a prototype with placeholder gfx. Concept and coding by Behrooz B. Shahriari. |
(RE)PLAY |
YOU BEAT THE LEVEL! Now try level ! |
3 |
HOLE DEATH! You let a critter fall down a hole! |
FAN DEATH! You touched a critter with the fan while it was on! A bloody death ensued! You bastard! |
YOU BEAT ALL LEVELS! Congratulations! A fuller prototype will be coming soon. |
ActionScript [AS1/AS2]
Frame 6function xFanEffect(critterX, critterY) { var xSeperation; var ySeperation; var SEPERATIONDIVIDER = 10; var POWERMULTIPLIER = 0.1; var seperationSquared; var totalPower; xSeperation = (critterX - _root._xmouse) / SEPERATIONDIVIDER; ySeperation = (critterY - _root._ymouse) / SEPERATIONDIVIDER; seperationSquared = (xSeperation * xSeperation) + (ySeperation * ySeperation); totalPower = ((_root.fanpower * _root.fanpower) * POWERMULTIPLIER) / seperationSquared; return(totalPower * (xSeperation / (Math.abs(xSeperation) + Math.abs(ySeperation)))); } function yFanEffect(critterX, critterY) { var xSeperation; var ySeperation; var SEPERATIONDIVIDER = 10; var POWERMULTIPLIER = 0.1; var seperationSquared; var totalPower; xSeperation = (critterX - _root._xmouse) / SEPERATIONDIVIDER; ySeperation = (critterY - _root._ymouse) / SEPERATIONDIVIDER; seperationSquared = (xSeperation * xSeperation) + (ySeperation * ySeperation); totalPower = ((_root.fanpower * _root.fanpower) * POWERMULTIPLIER) / seperationSquared; return(totalPower * (ySeperation / (Math.abs(xSeperation) + Math.abs(ySeperation)))); } function checkForDeath(critterX, critterY) { if (((_root.hole1.hitTest(critterX, critterY) || (_root.hole2.hitTest(critterX, critterY))) || (_root.hole3.hitTest(critterX, critterY))) || (_root.hole4.hitTest(critterX, critterY))) { _root.gotoAndStop("holeDeath"); } if (_root.fan.hitTest(critterX, critterY) && (5 < _root.fanPower)) { _root.gotoAndStop("fanDeath"); } } var fanPower = 0; var level = 1; stop();Instance of Symbol 19 MovieClip "critter1" in Frame 6onClipEvent (load) { var dx = 0; var dy = 0; var MAXD = 20; var FRICTION = 0.9; var BOUNCINESS = -2; var TOPBOUNDARY = 0; var BOTTOMBOUNDARY = 370; var LEFTBOUNDARY = 0; var RIGHTBOUNDARY = 600; } onClipEvent (enterFrame) { dx = dx + _root.xFanEffect(_x, _y); dy = dy + _root.yFanEffect(_x, _y); if (MAXD < dx) { dx = MAXD; } else if (dx < (-MAXD)) { dx = -MAXD; } if (MAXD < dy) { dy = MAXD; } else if (dy < (-MAXD)) { dy = -MAXD; } _x = (_x + dx); _y = (_y + dy); dx = dx * FRICTION; dy = dy * FRICTION; if (_y < TOPBOUNDARY) { _y = TOPBOUNDARY; dy = BOUNCINESS * dy; } else if (BOTTOMBOUNDARY < _y) { _y = BOTTOMBOUNDARY; dy = BOUNCINESS * dy; } if (_x < LEFTBOUNDARY) { _x = LEFTBOUNDARY; dx = BOUNCINESS * dx; } else if (RIGHTBOUNDARY < _x) { _x = RIGHTBOUNDARY; dx = BOUNCINESS * dx; } _root.checkForDeath(_x, _y); }Instance of Symbol 23 MovieClip in Frame 6onClipEvent (enterFrame) { if (((this.hitTest(_root.critter1) && (this.hitTest(_root.critter2))) && (this.hitTest(_root.critter3))) && (this.hitTest(_root.critter4))) { _root.level++; _root.gotoAndStop("levelEnd"); } }Instance of Symbol 19 MovieClip "critter2" in Frame 6onClipEvent (load) { var dx = 0; var dy = 0; var MAXD = 20; var FRICTION = 0.9; var BOUNCINESS = -2; var TOPBOUNDARY = 0; var BOTTOMBOUNDARY = 370; var LEFTBOUNDARY = 0; var RIGHTBOUNDARY = 600; } onClipEvent (enterFrame) { dx = dx + _root.xFanEffect(_x, _y); dy = dy + _root.yFanEffect(_x, _y); if (MAXD < dx) { dx = MAXD; } else if (dx < (-MAXD)) { dx = -MAXD; } if (MAXD < dy) { dy = MAXD; } else if (dy < (-MAXD)) { dy = -MAXD; } _x = (_x + dx); _y = (_y + dy); dx = dx * FRICTION; dy = dy * FRICTION; if (_y < TOPBOUNDARY) { _y = TOPBOUNDARY; dy = BOUNCINESS * dy; } else if (BOTTOMBOUNDARY < _y) { _y = BOTTOMBOUNDARY; dy = BOUNCINESS * dy; } if (_x < LEFTBOUNDARY) { _x = LEFTBOUNDARY; dx = BOUNCINESS * dx; } else if (RIGHTBOUNDARY < _x) { _x = RIGHTBOUNDARY; dx = BOUNCINESS * dx; } _root.checkForDeath(_x, _y); }Instance of Symbol 19 MovieClip "critter4" in Frame 6onClipEvent (load) { var dx = 0; var dy = 0; var MAXD = 20; var FRICTION = 0.9; var BOUNCINESS = -2; var TOPBOUNDARY = 0; var BOTTOMBOUNDARY = 370; var LEFTBOUNDARY = 0; var RIGHTBOUNDARY = 600; } onClipEvent (enterFrame) { dx = dx + _root.xFanEffect(_x, _y); dy = dy + _root.yFanEffect(_x, _y); if (MAXD < dx) { dx = MAXD; } else if (dx < (-MAXD)) { dx = -MAXD; } if (MAXD < dy) { dy = MAXD; } else if (dy < (-MAXD)) { dy = -MAXD; } _x = (_x + dx); _y = (_y + dy); dx = dx * FRICTION; dy = dy * FRICTION; if (_y < TOPBOUNDARY) { _y = TOPBOUNDARY; dy = BOUNCINESS * dy; } else if (BOTTOMBOUNDARY < _y) { _y = BOTTOMBOUNDARY; dy = BOUNCINESS * dy; } if (_x < LEFTBOUNDARY) { _x = LEFTBOUNDARY; dx = BOUNCINESS * dx; } else if (RIGHTBOUNDARY < _x) { _x = RIGHTBOUNDARY; dx = BOUNCINESS * dx; } _root.checkForDeath(_x, _y); }Instance of Symbol 19 MovieClip "critter3" in Frame 6onClipEvent (load) { var dx = 0; var dy = 0; var MAXD = 20; var FRICTION = 0.9; var BOUNCINESS = -2; var TOPBOUNDARY = 0; var BOTTOMBOUNDARY = 370; var LEFTBOUNDARY = 0; var RIGHTBOUNDARY = 600; } onClipEvent (enterFrame) { dx = dx + _root.xFanEffect(_x, _y); dy = dy + _root.yFanEffect(_x, _y); if (MAXD < dx) { dx = MAXD; } else if (dx < (-MAXD)) { dx = -MAXD; } if (MAXD < dy) { dy = MAXD; } else if (dy < (-MAXD)) { dy = -MAXD; } _x = (_x + dx); _y = (_y + dy); dx = dx * FRICTION; dy = dy * FRICTION; if (_y < TOPBOUNDARY) { _y = TOPBOUNDARY; dy = BOUNCINESS * dy; } else if (BOTTOMBOUNDARY < _y) { _y = BOTTOMBOUNDARY; dy = BOUNCINESS * dy; } if (_x < LEFTBOUNDARY) { _x = LEFTBOUNDARY; dx = BOUNCINESS * dx; } else if (RIGHTBOUNDARY < _x) { _x = RIGHTBOUNDARY; dx = BOUNCINESS * dx; } _root.checkForDeath(_x, _y); }Instance of Symbol 27 MovieClip "fan" in Frame 6onClipEvent (enterFrame) { Mouse.hide(); _x = _root._xMouse; _y = _root._yMouse; }Instance of Symbol 28 MovieClip in Frame 26onClipEvent (enterFrame) { if (((this.hitTest(_root.critter1) && (this.hitTest(_root.critter2))) && (this.hitTest(_root.critter3))) && (this.hitTest(_root.critter4))) { _root.level = 1; _root.gotoAndStop("gameEnd"); } }Symbol 11 Buttonon (release) { getURL ("http://www.newgrounds.com", "blank"); }Symbol 16 Buttonon (release) { _root.play(); }Symbol 17 MovieClip Frame 1_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop (3); }Symbol 17 MovieClip Frame 2gotoAndPlay (1);Instance of Symbol 26 MovieClip in Symbol 27 MovieClip Frame 1onClipEvent (load) { var rotationSpeed = 0; var ROTATIONSPEEDMAX = 30; var ACCELERATION = 3; var DECCELERATION = 0.5; var turnedOn = false; } onClipEvent (mouseDown) { turnedOn = true; } onClipEvent (mouseUp) { turnedOn = false; } onClipEvent (enterFrame) { if (turnedOn) { rotationSpeed = rotationSpeed + ACCELERATION; if (ROTATIONSPEEDMAX < rotationSpeed) { rotationSpeed = ROTATIONSPEEDMAX; } } else { rotationSpeed = rotationSpeed - DECCELERATION; if (rotationSpeed < 0) { rotationSpeed = 0; } } _rotation = (_rotation + rotationSpeed); _root.fanPower = rotationSpeed; if (360 < _rotation) { _rotation = (_rotation - 360); } }Symbol 33 Buttonon (release) { gotoAndStop(("level" + _root.level) + "Start" +5); }
Library Items
Symbol 1 Font | Used by:2 | ||
Symbol 2 Text | Uses:1 | Used by:Timeline | |
Symbol 3 Graphic | Used by:17 | ||
Symbol 4 Graphic | Used by:5 | ||
Symbol 5 MovieClip | Uses:4 | Used by:17 | |
Symbol 6 Graphic | Used by:17 | ||
Symbol 7 Graphic | Used by:10 11 | ||
Symbol 8 Graphic | Used by:10 11 | ||
Symbol 9 Graphic | Used by:10 11 | ||
Symbol 10 MovieClip | Uses:7 8 9 | Used by:11 | |
Symbol 11 Button | Uses:10 7 8 9 | Used by:17 | |
Symbol 12 Graphic | Used by:16 | ||
Symbol 13 Graphic | Used by:16 | ||
Symbol 14 Graphic | Used by:16 | ||
Symbol 15 Graphic | Used by:16 | ||
Symbol 16 Button | Uses:12 13 14 15 | Used by:17 | |
Symbol 17 MovieClip | Uses:3 5 6 11 16 | Used by:Timeline | |
Symbol 18 Graphic | Used by:19 | ||
Symbol 19 MovieClip | Uses:18 | Used by:Timeline | |
Symbol 20 Graphic | Used by:21 | ||
Symbol 21 MovieClip | Uses:20 | Used by:Timeline | |
Symbol 22 Graphic | Used by:23 28 | ||
Symbol 23 MovieClip | Uses:22 | Used by:Timeline | |
Symbol 24 Graphic | Used by:25 | ||
Symbol 25 MovieClip | Uses:24 | Used by:26 | |
Symbol 26 MovieClip | Uses:25 | Used by:27 | |
Symbol 27 MovieClip | Uses:26 | Used by:Timeline | |
Symbol 28 MovieClip | Uses:22 | Used by:Timeline | |
Symbol 29 Font | Used by:30 34 35 36 37 38 | ||
Symbol 30 Text | Uses:29 | Used by:31 | |
Symbol 31 MovieClip | Uses:30 | Used by:33 | |
Symbol 32 Graphic | Used by:33 | ||
Symbol 33 Button | Uses:31 32 | Used by:Timeline | |
Symbol 34 Text | Uses:29 | Used by:Timeline | |
Symbol 35 EditableText | Uses:29 | Used by:Timeline | |
Symbol 36 Text | Uses:29 | Used by:Timeline | |
Symbol 37 Text | Uses:29 | Used by:Timeline | |
Symbol 38 Text | Uses:29 | Used by:Timeline |
Instance Names
"critter1" | Frame 6 | Symbol 19 MovieClip |
"hole2" | Frame 6 | Symbol 21 MovieClip |
"hole1" | Frame 6 | Symbol 21 MovieClip |
"hole4" | Frame 6 | Symbol 21 MovieClip |
"hole3" | Frame 6 | Symbol 21 MovieClip |
"critter2" | Frame 6 | Symbol 19 MovieClip |
"critter4" | Frame 6 | Symbol 19 MovieClip |
"critter3" | Frame 6 | Symbol 19 MovieClip |
"fan" | Frame 6 | Symbol 27 MovieClip |
"bar" | Symbol 17 MovieClip Frame 1 | Symbol 5 MovieClip |
Labels
"level1Start" | Frame 6 |
"level2Start" | Frame 16 |
"level3Start" | Frame 26 |
"levelEnd" | Frame 36 |
"holeDeath" | Frame 46 |
"fanDeath" | Frame 56 |
"gameEnd" | Frame 66 |
"loaded" | Symbol 17 MovieClip Frame 3 |
Dynamic Text Variables
_root.level | Symbol 35 EditableText | "3 " |
|