STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228109
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/49868805?noj=FRM49868805-8DC" width="1" height="1"></div>

Inverse Kinematics Worms.swf

This is the info page for
Flash #60262

(Click the ID number above for more basic data on this flash file.)


Text
Instructions

Controls
- SPACEBAR
Reset the simulation and clear the field.
- Left mouse button
Create a computer controlled swimmer.
- SHIFT + Left mouse button
Create a player controlled swimmer.
- UP ARROW + Left mouse button
Create a new worm.
- DOWN ARROW
Switch between color / black.
-  UP ARROW + RIGHT ARROW + Left mouse button
Create a player controlled worm.

Howto
Create a player controlled swimmer and try to outswim the
worms for as long as possible, and collect green dots for extra
score. Your score will increase depending on the amount of
worms. Also, worms will get fatter and do more damage
whenever they eat a swimmer.
About
This is an experimental simulation. It can generate and render
computer controlled units, using inverse kinematics to render
the worm segment motion.

<p align="center"><font face="Verdana" size="10" color="#cccccc" letterSpacing="0.000000" kerning="0"><a href="mailto:rens.rongen@gmail.com"><b>rens.rongen@gmail.com</b></a></font></p>

7

Number of worms:

Help open/close

Best score:

0

Score:

0

Fattest worm:

0

Change the number and press SPACE to reset

ActionScript [AS1/AS2]

Frame 1
function fnGetChain(p_x, p_y, p_iCount, p_iDist, p_iMs) { var _local3 = new Object(); _local3.fx = 0; _local3.fy = 0; _local3.tg = -1; _local3.att = -50 + (Math.random() * 100); _local3.iCount = p_iCount; _local3.ms = p_iMs; _local3.iDist = p_iDist; _local3.level = 0; _local3.control = false; _local3.col = Number(fnHex()); alpha = (Math.random() * Math.PI) * 2; alpha_add = Math.random() * ((Math.random() > 0.5) ? -1 : 1); _local3.aElements = new Array(); _local3.fr = 1 + Math.floor(Math.random() * 7); var _local2 = 0; while (_local2 < p_iCount) { var _local1 = {clip:mcField.attachMovie("point", (("p_" + g_iCount) + "_") + _local2, mcField.getNextHighestDepth()), x:((_local2 > 0) ? (_local3.aElements[_local2 - 1].x + (Math.cos(alpha) * _local3.iDist)) : (p_x)), y:((_local2 > 0) ? (_local3.aElements[_local2 - 1].y + (Math.sin(alpha) * _local3.iDist)) : (p_y))}; alpha = alpha + alpha_add; if (_local2 > 0) { _local1.parent = _local3.aElements[_local2 - 1]; } else { _local1.parent = null; } _local1.fx = 0; _local1.fy = 0; _local1.fd = false; _local1.ch = false; _local1.clip._x = _local1.x; _local1.clip._y = _local1.y; _local1.clip._alpha = (100 / p_iCount) * (p_iCount - _local2); _local1.clip._xscale = (_local1.clip._yscale = (100 / p_iCount) * (p_iCount - _local2)); _local1.clip.elements.gotoAndStop(_local3.fr); _local3.aElements[_local3.aElements.length] = _local1; _local1.objColor = new Color(_local1.clip); _local1.objColor.setRGB(_local3.col); _local2++; } _local3.aElements[0].clip._alpha = 0; g_iCount++; return(_local3); } function fnHex() { var _local2 = "0x"; var _local1 = 0; while (_local1 < 6) { _local2 = _local2 + aColors[Math.floor(Math.random() * 16)]; _local1++; } return(_local2); } function fnVictim(p_x, p_y, p_player) { var _local1 = {clip:mcVictims.attachMovie("victim", "v_" + vCount, mcVictims.getNextHighestDepth()), x:p_x, y:p_y, fx:0, fy:0, sx:0, sy:0, ignore:0, control:((p_player && (!bPlayer)) ? true : false), r:Math.random() * 360, cr:false, life:30, rs:-0.1 + (Math.random() * 0.2)}; if (p_player && (!bPlayer)) { bPlayer = true; } _local1.clip._x = _local1.x; _local1.clip._y = _local1.y; _local1.clip._rotation = _local1.r; aVictims[aVictims.length] = _local1; vCount++; } function fnReact(p_aChain) { p_aChain.aElements[0].x = p_aChain.aElements[0].x + p_aChain.fx; p_aChain.aElements[0].y = p_aChain.aElements[0].y + (p_aChain.fy + iGrav); if (!p_aChain.control) { if ((p_aChain.aElements[0].x > 500) || (p_aChain.aElements[0].x < 0)) { p_aChain[0].x = ((p_aChain.aElements[0].x >= 500) ? 498 : 2); p_aChain.fx = -p_aChain.fx; p_aChain.fy = p_aChain.fy * ((Math.random() < 0.5) ? -1 : 1); } if ((p_aChain.aElements[0].y > 480) || (p_aChain.aElements[0].y < 0)) { p_aChain.aElements[0].y = ((p_aChain.aElements[0].y >= 480) ? 479 : 2); p_aChain.fx = p_aChain.fx * ((Math.random() < 0.5) ? -1 : 1); p_aChain.fy = -p_aChain.fy; } } var _local2 = 1; while (_local2 < p_aChain.aElements.length) { var _local5 = p_aChain.aElements[_local2].x - p_aChain.aElements[_local2].parent.x; var _local4 = p_aChain.aElements[_local2].y - p_aChain.aElements[_local2].parent.y; var _local3 = Math.atan2(_local4, _local5); if (p_aChain.aElements[_local2].parent.fd && (!p_aChain.aElements[_local2].parent.fc)) { p_aChain.aElements[_local2].clip._xscale = p_aChain.aElements[_local2].clip._xscale + 5; p_aChain.aElements[_local2].clip._yscale = p_aChain.aElements[_local2].clip._yscale + 5; p_aChain.aElements[_local2].parent.clip.gotoAndStop(1); p_aChain.aElements[_local2].parent.clip.elements.gotoAndStop(p_aChain.fr); p_aChain.aElements[_local2].parent.fd = false; p_aChain.aElements[_local2].fc = true; if (_local2 != (p_aChain.aElements.length - 1)) { p_aChain.aElements[_local2].clip.gotoAndStop(2); p_aChain.aElements[_local2].fd = true; } } p_aChain.aElements[_local2].parent.fc = false; p_aChain.aElements[_local2].x = p_aChain.aElements[_local2].parent.x + ((p_aChain.iDist - ((p_aChain.iDist / p_aChain.iCount) * _local2)) * Math.cos(_local3)); p_aChain.aElements[_local2].y = (p_aChain.aElements[_local2].parent.y + ((p_aChain.iDist - ((p_aChain.iDist / p_aChain.iCount) * _local2)) * Math.sin(_local3))) + iGrav; if (!p_aChain.control) { if (p_aChain.aElements[_local2].y > 480) { p_aChain.aElements[_local2].y = 479; p_aChain.aElements[_local2].fy = p_aChain.aElements[_local2].fy + 0.4; } if (p_aChain.aElements[_local2].y < 5) { p_aChain.aElements[_local2].y = 4; } if (p_aChain.aElements[_local2].x > 495) { p_aChain.aElements[_local2].x = 494; } if (p_aChain.aElements[_local2].x < 5) { p_aChain.aElements[_local2].x = 4; } } p_aChain.aElements[_local2].y = p_aChain.aElements[_local2].y - p_aChain.aElements[_local2].fy; p_aChain.aElements[_local2].fy = p_aChain.aElements[_local2].fy * 0.99; p_aChain.aElements[_local2].clip._x = p_aChain.aElements[_local2].x; p_aChain.aElements[_local2].clip._y = p_aChain.aElements[_local2].y; p_aChain.aElements[_local2].clip._rotation = (_local3 * 57.2957795130823) + 180; _local2++; } p_aChain.aElements[0].clip._x = p_aChain.aElements[0].x; p_aChain.aElements[0].clip._y = p_aChain.aElements[0].y; } function fnRender() { var _local1 = 0; while (_local1 < aVictims.length) { var _local6 = false; if (aVictims[_local1].control) { aVictims[_local1].sx = aVictims[_local1].sx - ((aVictims[_local1].x - _xmouse) / 50); aVictims[_local1].sy = aVictims[_local1].sy - (((aVictims[_local1].y - _ymouse) + 10) / 50); var _local4 = aVictims[_local1].x - objDot.x; var _local3 = aVictims[_local1].y - objDot.y; if (Math.abs(Math.sqrt((_local4 * _local4) + (_local3 * _local3))) < 20) { iScore = iScore + (500 * (aWorms.length - (bwControl ? 1 : 0))); fnGetDot(); } aVictims[_local1].r = Math.atan2(aVictims[_local1].sy, aVictims[_local1].sx) * 57.2957795130823; var _local9 = Math.abs(Math.sqrt((aVictims[_local1].sx * aVictims[_local1].sx) + (aVictims[_local1].sy * aVictims[_local1].sy))); if (_local9 > 1.5) { if ((aVictims[_local1].clip._currentframe != 2) && (aVictims[_local1].clip._currentframe != 3)) { aVictims[_local1].clip.gotoAndStop((aVictims[_local1].cr ? 3 : 2)); } aVictims[_local1].clip._rotation = aVictims[_local1].r; } else { if ((aVictims[_local1].clip._currentframe != 1) || (aVictims[_local1].clip._currentframe != 4)) { aVictims[_local1].clip.gotoAndStop((aVictims[_local1].cr ? 4 : 1)); } aVictims[_local1].clip._rotation = aVictims[_local1].r + 90; } } else { var _local2 = 0; while (_local2 < aWorms.length) { var _local4 = aVictims[_local1].x - aWorms[_local2].aElements[0].x; var _local3 = aVictims[_local1].y - aWorms[_local2].aElements[0].y; var _local7 = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); if (Math.abs(_local7) < 150) { _local6 = true; if (aVictims[_local1].ignore > 0) { aVictims[_local1].ignore--; } else { aVictims[_local1].fx = aVictims[_local1].fx + (_local4 / 200); aVictims[_local1].fy = aVictims[_local1].fy + (_local3 / 200); } aVictims[_local1].clip._rotation = Math.atan2(aVictims[_local1].sy, aVictims[_local1].sx) * 57.2957795130823; if ((aVictims[_local1].clip._currentframe != 2) && (aVictims[_local1].clip._currentframe != 3)) { aVictims[_local1].clip.gotoAndStop((aVictims[_local1].cr ? 3 : 2)); } } _local2++; } if ((aVictims[_local1].x > 495) || (aVictims[_local1].x < 5)) { aVictims[_local1].x = ((aVictims[_local1].x > 495) ? 495 : 5); aVictims[_local1].fx = ((aVictims[_local1].x == 5) ? 2 : -2); aVictims[_local1].fy = -1 + (Math.random() * 2); if (!aVictims[_local1].control) { if (_local6) { aVictims[_local1].ignore = 30 + (Math.random() * 100); } else { aVictims[_local1].r = 0; } } } if ((aVictims[_local1].y > 480) || (aVictims[_local1].y < 5)) { aVictims[_local1].y = ((aVictims[_local1].y > 480) ? 479 : 5); aVictims[_local1].fx = -1 + (Math.random() * 2); aVictims[_local1].fy = ((aVictims[_local1].y == 5) ? 2 : -2); if (!aVictims[_local1].control) { if (_local6) { aVictims[_local1].ignore = 30 + (Math.random() * 100); } else if (((aVictims[_local1].y == 490) && (aVictims[_local1].sx > 0)) && (aVictims[_local1].sy > 0)) { aVictims[_local1].r = Math.atan(aVictims[_local1].sy / aVictims[_local1].sx) * 57.2957795130823; } else { aVictims[_local1].r = 0; } } } if (((aVictims[_local1].ignore > 0) && (aVictims[_local1].y > 200)) && (_local6)) { aVictims[_local1].fy = aVictims[_local1].fy - 0.8; } if (!_local6) { if ((aVictims[_local1].clip._currentframe != 1) || (aVictims[_local1].clip._currentframe != 4)) { aVictims[_local1].clip.gotoAndStop((aVictims[_local1].cr ? 4 : 1)); } aVictims[_local1].r = aVictims[_local1].r + ((Math.round(aVictims[_local1].r) != 0) ? (((Math.abs(aVictims[_local1].r % 360) > 180) ? 1 : -1)) : 0); aVictims[_local1].clip._rotation = aVictims[_local1].r; aVictims[_local1].fx = aVictims[_local1].fx + (Math.cos((aVictims[_local1].r - 90) * (Math.PI/180)) * 1); aVictims[_local1].fy = aVictims[_local1].fy + (Math.sin((aVictims[_local1].r - 90) * (Math.PI/180)) * 1); } } aVictims[_local1].fy = aVictims[_local1].fy + iGrav; aVictims[_local1].fx = aVictims[_local1].fx * 0.5; aVictims[_local1].fy = aVictims[_local1].fy * 0.5; aVictims[_local1].sx = aVictims[_local1].sx + aVictims[_local1].fx; aVictims[_local1].sy = aVictims[_local1].sy + aVictims[_local1].fy; aVictims[_local1].sx = aVictims[_local1].sx / 1.2; aVictims[_local1].sy = aVictims[_local1].sy / 1.2; var _local5 = Math.sqrt((aVictims[_local1].sx * aVictims[_local1].sx) + (aVictims[_local1].sy * aVictims[_local1].sy)); var _local8 = Math.atan2(aVictims[_local1].sy, aVictims[_local1].sx); if ((Math.abs(_local5) > (aVictims[_local1].cr ? 1 : 2)) && (!aVictims[_local1].control)) { aVictims[_local1].fx = 0; aVictims[_local1].fy = 0; aVictims[_local1].sx = (_local5 * Math.cos(_local8)) / 2; aVictims[_local1].sy = (_local5 * Math.sin(_local8)) / 2; } if ((Math.abs(_local5) > (aVictims[_local1].cr ? 3 : 4)) && (aVictims[_local1].control)) { aVictims[_local1].fx = 0; aVictims[_local1].fy = 0; aVictims[_local1].sx = (_local5 * Math.cos(_local8)) / 2; aVictims[_local1].sy = (_local5 * Math.sin(_local8)) / 2; } if (aVictims[_local1].control) { if ((aVictims[_local1].x > 500) || (aVictims[_local1].x < 0)) { aVictims[_local1].x = ((aVictims[_local1].x > 500) ? 499 : 1); } if ((aVictims[_local1].y > 480) || (aVictims[_local1].y < 0)) { aVictims[_local1].y = ((aVictims[_local1].y > 480) ? 479 : 1); } } aVictims[_local1].x = aVictims[_local1].x + aVictims[_local1].sx; aVictims[_local1].y = aVictims[_local1].y + aVictims[_local1].sy; aVictims[_local1].clip._x = aVictims[_local1].x; aVictims[_local1].clip._y = aVictims[_local1].y; aVictims[_local1].clip._xscale = (aVictims[_local1].clip._yscale = 50); _local1++; } _local1 = 0; while (_local1 < aParticles.length) { aParticles[_local1].clip._rotation = aParticles[_local1].clip._rotation + aParticles[_local1].rs; aParticles[_local1].fy = aParticles[_local1].fy + (iGrav * aParticles[_local1].w); aParticles[_local1].fx = aParticles[_local1].fx * 0.7; aParticles[_local1].fy = aParticles[_local1].fy * 0.7; aParticles[_local1].rs = aParticles[_local1].rs * 0.9; if (aParticles[_local1].t == "bubble") { aParticles[_local1].fx = aParticles[_local1].fx + (-0.1 + (Math.random() * 0.2)); aParticles[_local1].fy = aParticles[_local1].fy + (-0.1 + (Math.random() * 0.2)); } aParticles[_local1].a = aParticles[_local1].a - aParticles[_local1].adec; aParticles[_local1].sx = aParticles[_local1].sx + aParticles[_local1].fx; aParticles[_local1].sy = aParticles[_local1].sy + aParticles[_local1].fy; aParticles[_local1].x = aParticles[_local1].x + aParticles[_local1].sx; aParticles[_local1].y = aParticles[_local1].y + aParticles[_local1].sy; aParticles[_local1].clip._x = aParticles[_local1].x; aParticles[_local1].clip._y = aParticles[_local1].y; aParticles[_local1].clip._alpha = aParticles[_local1].a; aParticles[_local1].s = aParticles[_local1].s + aParticles[_local1].sp; aParticles[_local1].clip._xscale = (aParticles[_local1].clip._yscale = aParticles[_local1].s); if (aParticles[_local1].a <= 0) { removeMovieClip(aParticles[_local1].clip); aParticles.splice(_local1, 1); _local1--; } _local1++; } } function fnBubble() { var _local1 = {clip:mcParticles.attachMovie("bubble", "p_" + pCount, mcParticles.getNextHighestDepth()), x:Math.random() * 500, y:500, fx:0, fy:0, sx:0, sy:0, a:5 + (Math.random() * 40), sp:0, w:-0.5 - (Math.random() * 0.1), adec:0.1 + Math.random(), s:5 + (Math.random() * 50), rs:-30 + (Math.random() * 60), t:"bubble"}; _local1.clip._x = _local1.x; _local1.clip._y = _local1.y; _local1.clip._alpha = 0; aParticles[aParticles.length] = _local1; pCount++; } function fnDamage(iIndex, p_fx, p_fy, p_iLevel) { var _local3 = Math.random() * ((p_iLevel / 2) + 2); if (_local3 > 1.5) { aVictims[iIndex].life = aVictims[iIndex].life - _local3; aVictims[iIndex].cr = true; aVictims[iIndex].clip.gotoAndPlay(4); var _local1 = {clip:mcParticles.attachMovie("limb", "p_" + pCount, mcParticles.getNextHighestDepth()), x:aVictims[iIndex].x, y:aVictims[iIndex].y, fx:p_fx / 10, fy:p_fy / 10, sx:0, sy:0, a:100, sp:0, w:0.01, adec:1 + (Math.random() * 0.5), s:5 + (Math.random() * 25), rs:-30 + (Math.random() * 60), t:"limb"}; _local1.clip._x = _local1.x; _local1.clip._y = _local1.y; _local1.clip._alpha = 0; aParticles[aParticles.length] = _local1; pCount++; _local1 = {clip:mcParticles.attachMovie("blood", "p_" + pCount, mcParticles.getNextHighestDepth()), x:aVictims[iIndex].x, y:aVictims[iIndex].y, fx:0, fy:0, sx:0, sy:0, a:20 + (Math.random() * 100), sp:1, adec:0.4 + (Math.random() * 0.2), w:0, s:5 + (Math.random() * 20), rs:-30 + (Math.random() * 60), t:"blood"}; _local1.clip._x = _local1.x; _local1.clip._y = _local1.y; _local1.clip._alpha = 0; aParticles[aParticles.length] = _local1; pCount++; } } function fnColors() { bBlack = (bBlack ? false : true); var _local2 = 0; while (_local2 < aWorms.length) { var _local1 = 0; while (_local1 < aWorms[_local2].aElements.length) { aWorms[_local2].aElements[_local1].objColor.setRGB((bBlack ? 0 : (aWorms[_local2].col))); _local1++; } _local2++; } } function fnReset() { for (var _local9 in mcField) { mcField[_local9].removeMovieClip(); } for (var _local9 in mcVictims) { mcVictims[_local9].removeMovieClip(); } for (var _local9 in mcParticles) { mcParticles[_local9].removeMovieClip(); } objDot.clip.removeMovieClip(); g_iCount = 0; vCount = 0; pCount = 0; bwControl = false; objDot.active = false; objDot.clip.removeMovieClip(); if (iScore > biScore) { biScore = iScore; txtScore.text = biScore; } iScore = 0; iFattest = 0; txtFat.text = 0; txtCScore.text = 0; bPlayer = false; aWorms = []; aVictims = []; aParticles = []; var _local8 = Number(_root.iNum.text); var _local2 = 0; while (_local2 < _local8) { var _local7 = 5 + Math.floor(Math.random() * 90); var _local6 = 5 + Math.floor(Math.random() * 15); var _local5 = Math.random() * 500; var _local4 = Math.random() * 480; var _local3 = 2 + (Math.random() * 2); aWorms[aWorms.length] = fnGetChain(_local5, _local4, _local7, _local6, _local3); _local2++; } } function fnGetDot() { if (objDot.active) { objDot.clip.removeMovieClip(); } objDot.active = true; objDot.x = 25 + (Math.random() * 450); objDot.y = 15 + (Math.random() * 450); objDot.clip = mcDots.attachMovie("dot_mc", "dot_mcInst", 1); objDot.clip._x = objDot.x; objDot.clip._y = objDot.y; } var mcField = _root.createEmptyMovieClip("mc_chain", 1); var mcVictims = _root.createEmptyMovieClip("mc_victims", 2); var mcParticles = _root.createEmptyMovieClip("mc_particles", 3); var mcDots = _root.createEmptyMovieClip("mc_dots", 4); var mcHelp = _root.createEmptyMovieClip("mc_help", 5); mcHelp.attachMovie("info_mc", "info_mcInst", 1); mcHelp.info_mcInst._x = 75; mcHelp.info_mcInst._y = 75; var aWorms = new Array(); var aVictims = new Array(); var aParticles = new Array(); var objDot = new Object(); var g_iCount = 0; var vCount = 0; var pCount = 0; var iGrav = 0.3; var biScore = 0; var iScore = 0; var iFattest = 0; var bBlack = false; var bPlayer = false; var bPause = true; var bwControl = false; var aColors = ["a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; _root.onEnterFrame = function () { if (!bPause) { fnRender(); if (bPlayer) { if (!objDot.active) { fnGetDot(); } iScore = iScore + (aWorms.length - (bwControl ? 1 : 0)); txtCScore.text = iScore; } var _local1 = 0; while (_local1 < aWorms.length) { if (aWorms[_local1].control) { var _local4 = aWorms[_local1].aElements[0].x - _xmouse; var _local3 = aWorms[_local1].aElements[0].y - _ymouse; aWorms[_local1].fx = aWorms[_local1].fx - (_local4 / 100); aWorms[_local1].fy = aWorms[_local1].fy - (_local3 / 100); } else { aWorms[_local1].fx = aWorms[_local1].fx + (-0.4 + (Math.random() * 0.8)); aWorms[_local1].fy = aWorms[_local1].fy + (-0.4 + (Math.random() * 0.8)); } var _local2 = 0; while (_local2 < aWorms.length) { if (_local1 != _local2) { var _local4 = aWorms[_local1].aElements[0].x - aWorms[_local2].aElements[0].x; var _local3 = aWorms[_local1].aElements[0].y - aWorms[_local2].aElements[0].y; var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); if (Math.abs(_local5) < 50) { if (aWorms[_local1].att > 0) { aWorms[_local1].fx = aWorms[_local1].fx - (_local4 / 200); aWorms[_local1].fy = aWorms[_local1].fy - (_local3 / 200); } aWorms[_local1].att++; if (aWorms[_local1].att > 400) { aWorms[_local1].att = -300 + (Math.random() * 100); } } } _local2++; } if ((aWorms[_local1].tg == -1) && (!aWorms[_local1].control)) { aWorms[_local1].tg = Math.floor(Math.random() * aVictims.length); } _local2 = 0; while (_local2 < aVictims.length) { var _local4 = aWorms[_local1].aElements[0].x - aVictims[_local2].x; var _local3 = aWorms[_local1].aElements[0].y - aVictims[_local2].y; var _local7 = ((aVictims[aWorms[_local1].tg] != undefined) ? (aWorms[_local1].aElements[0].x - aVictims[aWorms[_local1].tg].x) : 0); var _local6 = ((aVictims[aWorms[_local1].tg] != undefined) ? (aWorms[_local1].aElements[0].y - aVictims[aWorms[_local1].tg].y) : 0); var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); if ((Math.random() < 0.001) && (!aWorms[_local1].control)) { aWorms[_local1].tg = _local2; } if (Math.abs(_local5) < 200) { if (!aWorms[_local1].control) { aWorms[_local1].fx = aWorms[_local1].fx - (_local7 / 500); aWorms[_local1].fy = aWorms[_local1].fy - (_local6 / 500); } if (Math.abs(_local5) < 10) { fnDamage(_local2, aWorms[_local1].fx, aWorms[_local1].fy, aWorms[_local1].level); aVictims[_local2].fx = aVictims[_local2].fx + aWorms[_local1].fx; aVictims[_local2].fy = aVictims[_local2].fy + aWorms[_local1].fy; if (aVictims[_local2].life <= 0) { aWorms[_local1].level++; aWorms[_local1].aElements[0].clip.lvlTxt.text = aWorms[_local1].level; if (aWorms[_local1].level > iFattest) { iFattest = aWorms[_local1].level; txtFat.text = iFattest; } if (aVictims[_local2].control) { bPlayer = false; if (iScore > biScore) { biScore = iScore; txtScore.text = biScore; } iScore = 0; objDot.clip.removeMovieClip(); objDot.active = false; } aVictims[_local2].clip.removeMovieClip(); aVictims.splice(_local2, 1); _local2--; aWorms[_local1].tg = -1; aWorms[_local1].aElements[1].fd = true; aWorms[_local1].aElements[1].gotoAndStop(2); } } } _local2++; } if (Math.abs(aWorms[_local1].fx) > aWorms[_local1].ms) { aWorms[_local1].fx = aWorms[_local1].ms * ((aWorms[_local1].fx > 0) ? 1 : -1); } if (Math.abs(aWorms[_local1].fy) > aWorms[_local1].ms) { aWorms[_local1].fy = aWorms[_local1].ms * ((aWorms[_local1].fy > 0) ? 1 : -1); } fnReact(aWorms[_local1]); _local1++; } if (Math.random() < 0.1) { fnBubble(); } } }; _root.onMouseDown = function () { if (!bPause) { if (Key.isDown(38)) { var _local5 = 5 + Math.floor(Math.random() * 90); var _local4 = 5 + Math.floor(Math.random() * 15); var _local3 = _xmouse; var _local2 = ((_ymouse > 480) ? 480 : (_ymouse)); var _local1 = 2 + (Math.random() * 2); aWorms[aWorms.length] = fnGetChain(_local3, _local2, _local5, _local4, _local1); if (Key.isDown(39) && (!bwControl)) { bwControl = true; aWorms[aWorms.length - 1].control = true; } iNum.text = aWorms.length; } else if (_ymouse > 20) { fnVictim(_xmouse, _ymouse, Key.isDown(16)); } } }; fnReset();
Symbol 9 MovieClip [point] Frame 1
stop();
Symbol 9 MovieClip [point] Frame 2
stop();
Symbol 31 MovieClip [victim] Frame 1
stop();
Symbol 31 MovieClip [victim] Frame 2
stop();
Symbol 31 MovieClip [victim] Frame 3
stop();
Symbol 31 MovieClip [victim] Frame 4
stop();
Symbol 48 MovieClip [dot_mc] Frame 30
gotoAndPlay (1);
Symbol 57 Button
on (keyPress "<Space>") { fnReset(); } on (keyPress "<Down>") { fnColors(); } on (press) { bPause = (bPause ? false : true); if (bPause) { mcHelp.attachMovie("info_mc", "info_mcInst", 1); mcHelp.info_mcInst._x = 75; mcHelp.info_mcInst._y = 75; } else { mcHelp.info_mcInst.removeMovieClip(); } }

Library Items

Symbol 1 GraphicUsed by:7
Symbol 2 GraphicUsed by:7
Symbol 3 GraphicUsed by:7
Symbol 4 GraphicUsed by:7
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:1 2 3 4 5 6Used by:9
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip [point]Uses:7 8
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:10 11 12 13Used by:31
Symbol 15 GraphicUsed by:19
Symbol 16 GraphicUsed by:19
Symbol 17 GraphicUsed by:19
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:15 16 17 18Used by:31
Symbol 20 GraphicUsed by:25
Symbol 21 GraphicUsed by:25
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip [victim_crippled]Uses:20 21 22 23 24Used by:31
Symbol 26 GraphicUsed by:30
Symbol 27 GraphicUsed by:30
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:26 27 28 29Used by:31
Symbol 31 MovieClip [victim]Uses:14 19 25 30
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip [limb]Uses:32
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip [blood]Uses:34
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip [bubble]Uses:36
Symbol 38 GraphicUsed by:45
Symbol 39 FontUsed by:40 42 43 44 53 55 58 59 60 61 62 63 64
Symbol 40 TextUses:39Used by:45
Symbol 41 FontUsed by:42 43 44 52
Symbol 42 TextUses:39 41Used by:45
Symbol 43 TextUses:39 41Used by:45
Symbol 44 EditableTextUses:39 41Used by:45
Symbol 45 MovieClip [info_mc]Uses:38 40 42 43 44
Symbol 46 ShapeTweeningUsed by:48
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip [dot_mc]Uses:46 47
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:Timeline
Symbol 51 GraphicUsed by:Timeline
Symbol 52 EditableTextUses:41Used by:Timeline
Symbol 53 TextUses:39Used by:Timeline
Symbol 54 GraphicUsed by:57
Symbol 55 TextUses:39Used by:57
Symbol 56 GraphicUsed by:57
Symbol 57 ButtonUses:54 55 56Used by:Timeline
Symbol 58 EditableTextUses:39Used by:Timeline
Symbol 59 EditableTextUses:39Used by:Timeline
Symbol 60 TextUses:39Used by:Timeline
Symbol 61 EditableTextUses:39Used by:Timeline
Symbol 62 TextUses:39Used by:Timeline
Symbol 63 EditableTextUses:39Used by:Timeline
Symbol 64 TextUses:39Used by:Timeline

Instance Names

"iNum"Frame 1Symbol 52 EditableText
"input"Frame 1Symbol 57 Button
"txtScore"Frame 1Symbol 59 EditableText
"txtCScore"Frame 1Symbol 61 EditableText
"txtFat"Frame 1Symbol 63 EditableText
"elements"Symbol 9 MovieClip [point] Frame 1Symbol 7 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 9 as "point"
ExportAssets (56)Timeline Frame 1Symbol 25 as "victim_crippled"
ExportAssets (56)Timeline Frame 1Symbol 31 as "victim"
ExportAssets (56)Timeline Frame 1Symbol 33 as "limb"
ExportAssets (56)Timeline Frame 1Symbol 35 as "blood"
ExportAssets (56)Timeline Frame 1Symbol 37 as "bubble"
ExportAssets (56)Timeline Frame 1Symbol 45 as "info_mc"
ExportAssets (56)Timeline Frame 1Symbol 48 as "dot_mc"




http://swfchan.com/13/60262/info.shtml
Created: 16/4 -2019 08:47:03 Last modified: 16/4 -2019 08:47:03 Server time: 08/05 -2024 06:16:11