STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 228153 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2561 · P5122 |
This is the info page for Flash #8874 |
CREDITS |
MORE GAMES BY ME |
INSTRUCTIONS |
PLAY |
PARTICLES |
COPYRIGHT 2006 MATTEO GUARNIERI (WWW.RAGDOLLSOFT.COM) |
BACK TO MENU |
CREDITS CONCEPT AND PROGRAMMING MATTEO GUARNIERI (WWW.RAGDOLLSOFT.COM) MUSIC DIMRAIN47 |
INSTRUCTIONS MOVE THE BLUE BALL WITH THE MOUSE AVOID THE RED BALLS FOR AS LONG AS YOU CAN THAT'S IT |
ActionScript [AS1/AS2]
Frame 1var loader = new tloader(); loader.init(); onEnterFrame = function () { loader.loop(); }; stop();Frame 3var menuchoice = 0; var scrittealpha = 0; var olddeltatime = getTimer(); var deltamult; var deltat; for (var mc in _root) { _root[mc].removeMovieClip(); } for (var mc in _root) { _root[mc]._alpha = 0; } stop(); onEnterFrame = function () { deltat = getTimer() - olddeltatime; deltamult = Math.min(deltat, 40) / 28.5714285714286; if (menuchoice == 0) { if (scrittealpha < 100) { scrittealpha = scrittealpha + (3 * deltamult); } } if (menuchoice > 0) { scrittealpha = scrittealpha - (3 * deltamult); } if (scrittealpha < 0) { if (menuchoice == 1) { _root.gotoAndPlay("game"); } if (menuchoice == 2) { _root.gotoAndPlay("credits"); } if (menuchoice == 3) { _root.gotoAndPlay("instructions"); } } for (var _local2 in _root) { _root[_local2]._alpha = scrittealpha; } };Instance of Symbol 14 MovieClip in Frame 3on (release) { _root.menuchoice = 2; }Instance of Symbol 16 MovieClip in Frame 3on (release) { getURL ("http://www.ragdollsoft.com", "blank"); }Instance of Symbol 18 MovieClip in Frame 3on (release) { _root.menuchoice = 3; }Instance of Symbol 20 MovieClip in Frame 3on (release) { _root.menuchoice = 1; Mouse.hide(); }Frame 4var game = new tgame(); game.init(true); onEnterFrame = function () { game.mainloop(); }; stop();Frame 5var menuchoice = 0; var scrittealpha = 0; var olddeltatime = getTimer(); var deltamult; var deltat; for (var mc in _root) { _root[mc]._alpha = 0; } stop(); onEnterFrame = function () { deltat = getTimer() - olddeltatime; deltamult = Math.min(deltat, 40) / 28.5714285714286; if (menuchoice == 0) { if (scrittealpha < 100) { scrittealpha = scrittealpha + (3 * deltamult); } } if (menuchoice > 0) { scrittealpha = scrittealpha - (3 * deltamult); } if (scrittealpha < 0) { if (menuchoice == 1) { _root.gotoAndPlay("mainmenu"); } } for (var _local2 in _root) { _root[_local2]._alpha = scrittealpha; } };Instance of Symbol 27 MovieClip in Frame 5on (release) { _root.menuchoice = 1; }Frame 6var menuchoice = 0; var scrittealpha = 0; var olddeltatime = getTimer(); var deltamult; var deltat; for (var mc in _root) { _root[mc]._alpha = 0; } stop(); onEnterFrame = function () { deltat = getTimer() - olddeltatime; deltamult = Math.min(deltat, 40) / 28.5714285714286; if (menuchoice == 0) { if (scrittealpha < 100) { scrittealpha = scrittealpha + (3 * deltamult); } } if (menuchoice > 0) { scrittealpha = scrittealpha - (3 * deltamult); } if (scrittealpha < 0) { if (menuchoice == 1) { _root.gotoAndPlay("mainmenu"); } } for (var _local2 in _root) { _root[_local2]._alpha = scrittealpha; } };Symbol 32 MovieClip [__Packages.tloader] Frame 0class tloader { var scrittamc, myformat, tsm, i; function tloader () { } function init() { scrittamc = new Array(); myformat = new TextFormat(); myformat.font = "verdana11"; myformat.bold = false; var _local4 = new flash.filters.DropShadowFilter(2, 135, 0, 1, 4, 4, 0.7, 1, false, false, false); tsm = _root.createEmptyMovieClip("tsm", 1500); tsm.testo = "RAGDOLLSOFT.COM"; tsm.scritte = new Array(); i = 0; while (i < tsm.testo.length) { tsm.scritte[i] = tsm.createEmptyMovieClip("scritta" + i, i); tsm.scritte[i].createTextField("scritta", 0, 0, 0, 0, 0); tsm.scritte[i].scritta.textColor = 0; tsm.scritte[i].scritta.setNewTextFormat(myformat); tsm.scritte[i].scritta.text = tsm.testo.substr(i, 1); tsm.scritte[i]._xscale = 130; tsm.scritte[i]._yscale = 130; tsm.scritte[i].scritta.autoSize = true; tsm.scritte[i].scritta.selectable = false; tsm.scritte[i].scritta.embedFonts = true; tsm.scritte[i]._visible = true; var _local3 = tsm.scritte[i].filters; _local3.push(_local4); tsm.scritte[i].filters = _local3; tsm.scritte[i].x = i * 13.5; tsm.scritte[i].y = -20; tsm.scritte[i].yv = 0; tsm.scritte[i].delay = i * 6; i++; } tsm._x = (screenw / 2) - (tsm._width / 2); i = 0; while (i < 2) { scrittamc[i] = _root.createEmptyMovieClip("scritteloader" + i, 11100 + i); scrittamc[i].createTextField("scritta", 0, 0, 0, 0, 0); scrittamc[i].scritta.textColor = 0; scrittamc[i].scritta.setTextFormat(myformat); scrittamc[i]._xscale = 100; scrittamc[i]._yscale = 100; scrittamc[i].scritta.autoSize = true; scrittamc[i].scritta.selectable = false; scrittamc[i].scritta.embedFonts = true; scrittamc[i]._visible = false; var _local3 = scrittamc[i].filters; _local3.push(_local4); scrittamc[i].filters = _local3; i++; } scrittamc[1].scritta.text = "LOADING..."; scrittamc[1].scritta.setTextFormat(myformat); scrittamc[1]._xscale = 130; scrittamc[1]._yscale = 130; scrittamc[1]._x = (screenw / 2) - (scrittamc[1]._width / 2); tsm.onRelease = function () { getURL ("http://www.ragdollsoft.com", "blank"); }; } function loop() { var _local4 = getTimer() - olddeltatime; deltamult = Math.min(_local4, 40) / 28.5714285714286; tsm._x = (screenw / 2) - (tsm._width / 2); i = 0; while (i < tsm.testo.length) { tsm.scritte[i].delay = tsm.scritte[i].delay - 1; tsm.scritte[i].delay = Math.max(-1, tsm.scritte[i].delay); if (tsm.scritte[i].delay < 0) { tsm.scritte[i].yv = tsm.scritte[i].yv + 0.02; tsm.scritte[i].y = tsm.scritte[i].y + (tsm.scritte[i].yv * deltamult); } if (tsm.scritte[i].y > 120) { tsm.scritte[i].y = 119.999; tsm.scritte[i].yv = tsm.scritte[i].yv * -0.9; } tsm.scritte[i]._y = tsm.scritte[i].y; tsm.scritte[i]._x = tsm.scritte[i].x; i++; } var _local3 = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; scrittamc[0].scritta.text = Math.floor(_local3) + "%"; scrittamc[0].scritta.setTextFormat(myformat); scrittamc[0]._xscale = 110; scrittamc[0]._yscale = 110; scrittamc[0]._x = (screenw / 2) - (scrittamc[0]._width / 2); scrittamc[0]._y = 230; scrittamc[0]._visible = true; scrittamc[0]._alpha = scrittealpha; scrittamc[1]._alpha = scrittealpha; tsm._alpha = scrittealpha; scrittamc[1].scritta.text = "LOADING"; i = 0; while (i < numdots) { scrittamc[1].scritta.text = scrittamc[1].scritta.text + "."; i++; } scrittamc[1].scritta.setTextFormat(myformat); scrittamc[1]._y = 190; scrittamc[1]._visible = true; if (_local3 > (dotmult * 3)) { dotmult = dotmult + 1; numdots = numdots + 1; if (numdots > 3) { numdots = 0; } } if (_local3 == 100) { phase = 1; } if (phase == 1) { scrittealpha = scrittealpha - 2; if (scrittealpha < 0) { _root.gotoAndPlay("mainmenu"); } } } var deltamult = 1; var olddeltatime = getTimer(); var screenw = 450; var screenh = 450; var dotmult = 0; var numdots = 0; var phase = 0; var scrittealpha = 100; }Symbol 33 MovieClip [__Packages.tgame] Frame 0class tgame { var commenti, giudizi, i, maxgiudizio, musicmc, ballsoundmc, ballsound, bumpersoundmc, bumpersound, musicsound, mymusicvol, basecolortr, mycolortr, lastedtime, myformat, mymouse, volumer, scritte, balls, deltat, deltamult; function tgame () { } function init(startsound) { commenti = new Array(); commenti[3] = "EASY PEASY"; commenti[4] = "STILL QUITE EASY"; commenti[5] = "FUN BEGINS NOW"; commenti[6] = "QUITE CHALLENGING"; commenti[7] = "PRETTY TOUGH"; commenti[8] = "VERY TRICKY"; commenti[9] = "TERRIBLY HARD"; commenti[10] = "INSANELY DIFFICULT"; commenti[11] = "TOTALLY NUTS"; commenti[12] = "INCREDIBLY CHALLENGING"; commenti[13] = "ALMOST IMPOSSIBLE"; commenti[14] = "UTTLERLY INCREDIBLE"; commenti[15] = "TOTALLY IMPOSSIBLE"; giudizi = new Array(); i = 0; giudizi[i] = "F: TERRIBLE TRY"; i++; giudizi[i] = "E: BAD EFFORT"; i++; giudizi[i] = "D: POOR PERFORMANCE"; i++; giudizi[i] = "C-:NOT VERY IMPRESSIVE"; i++; giudizi[i] = "C: SATISFACTORY"; i++; giudizi[i] = "C+: NOT BAD"; i++; giudizi[i] = "B-: QUITE GOOD"; i++; giudizi[i] = "B: NICE ROUND!"; i++; giudizi[i] = "B+: GREAT JOB! "; i++; giudizi[i] = "A-:SERIOUSLY IMPRESSIVE!"; i++; giudizi[i] = "A: STUNNING REFLEXES!"; i++; giudizi[i] = "A+: YOU'RE THE MAN!"; maxgiudizio = i; scrittefinealpha = 0; olddeltatime = getTimer(); musicmc = _root.createEmptyMovieClip("musicmc", 245); ballsoundmc = _root.createEmptyMovieClip("ballsoundmc", 246); ballsound = new Sound(ballsoundmc); ballsound.attachSound("ball.mp3"); ballsound.setVolume(250); bumpersoundmc = _root.createEmptyMovieClip("bumpersoundmc", 247); bumpersound = new Sound(bumpersoundmc); bumpersound.attachSound("bumper.mp3"); bumpersound.setVolume(800); musicsound = new Sound(musicmc); musicsound.attachSound("112.mp3"); mymusicvol = 100; musicsound.setVolume(mymusicvol); stoppingsound = false; if (soundson and startsound) { musicsound.start(0, 150); } basecolortr = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); mycolortr = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 51, 51, 0); lastedtime = 0; gamephase = 0; myformat = new TextFormat(); myformat.font = "verdana11"; myformat.size = 13; myformat.bold = false; gametime = 0; gravity = 0; currentballs = 0; Mouse.hide(); mymouse = _root.attachMovie("ball4mc", "mymouse", 100); mymouse.cacheAsBitmap = true; mymouse.r = 12; mymouse.x = 0; mymouse.y = 0; mymouse._x = -100; mymouse._y = -100; mymouse.xv = 0; mymouse.yv = 0; mymouse.mass = 1; mymouse.actualmass = 1; mymouse.hit = false; mymouse.xshift = 0; mymouse.yshift = 0; mymouse.spawning = true; mymouse.spawntime = maxspawntime; mymouse._alpha = 0; mymouse.colortr = new flash.geom.ColorTransform(0.2, 0.2, 0.9, 1, 0, 0, 25.5, 0); mymouse.transform.colorTransform = mymouse.colortr; var _local4 = new flash.filters.DropShadowFilter(2, 135, 0, 1, 4, 4, 0.7, 1, false, false, false); var _local3 = mymouse.filters; _local3.push(_local4); mymouse.filters = _local3; volumer = _root.attachMovie("volumermc", "volumer", 152); volumer.onRelease = function () { _root.game.soundson = !_root.game.soundson; if (_root.game.soundson) { _root.game.musicsound.start(0, 150); this.gotoAndStop(1); } if (!_root.game.soundson) { _root.game.musicsound.stop(); this.gotoAndStop(2); } }; volumer._xscale = 16; volumer._yscale = 16; volumer._x = 229; volumer._y = 410; _local3 = volumer.filters; _local3.push(_local4); volumer.filters = _local3; if (soundson) { volumer.gotoAndStop(1); } if (!soundson) { volumer.gotoAndStop(2); } volumer._visible = false; scritte = new Array(); i = 0; while (i < 8) { if ((i <= 4) or (i >= 7)) { scritte[i] = _root.createEmptyMovieClip("scritte" + i, 11100 + i); } else { scritte[i] = _root.createEmptyMovieClip("scritte" + i, i); } scritte[i].createTextField("scritta", 0, 0, 0, 0, 0); scritte[i].scritta.textColor = 0; scritte[i].scritta.setNewTextFormat(myformat); scritte[i]._xscale = 100; scritte[i]._yscale = 100; scritte[i].scritta.autoSize = true; scritte[i].scritta.selectable = false; scritte[i]._visible = false; _local3 = scritte[i].filters; _local3.push(_local4); scritte[i].filters = _local3; scritte[i].scritta.embedFonts = true; i++; } scritte[5].scritta.text = "3 BALLS"; scritte[5].stoptime = 0; scritte[5]._xscale = 120; scritte[5]._xscale = 120; scritte[5]._x = (screenw / 2) - (scritte[5]._width / 2); scritte[5]._y = 190; scritte[5].phase = 0; scritte[1].onRelease = function () { _root.game.gamephase = 2; Mouse.hide(); }; scritte[2].onRelease = function () { _root.game.gamephase = 3; }; scritte[3].onRelease = function () { getURL ("http://www.ragdollsoft.com", "blank"); }; balls = new Array(); i = 0; while (i < maxballs) { balls[i] = _root.attachMovie("ball4mc", "ball" + i, i + 10); balls[i].mass = 1; balls[i].actualmass = 1; balls[i].r = 12; balls[i].x = (Math.random() * (screenw - (2 * balls[i].r))) + balls[i].r; balls[i].y = (Math.random() * (screenh - (2 * balls[i].r))) + balls[i].r; balls[i].colored = false; balls[i].oldx = balls[i].x; balls[i].oldy = balls[i].y; balls[i].xv = ((Math.random() - 0.5) * 10) * 1.5; balls[i].yv = ((Math.random() - 0.5) * 10) * 1.5; balls[i].angle = (Math.random() * Math.PI) * 2; balls[i].xv = Math.sin(balls[i].angle) * 6.5; balls[i].yv = Math.cos(balls[i].angle) * 6.5; balls[i].xshift = 0; balls[i].yshift = 0; balls[i]._visible = false; balls[i].cacheAsBitmap = true; balls[i].spawning = true; balls[i].spawntime = maxspawntime; balls[i].colortr = new flash.geom.ColorTransform(0.9, 0.2, 0.2, 1, 25.5, 0, 0, 0); balls[i].transform.colorTransform = balls[i].colortr; _local3 = balls[i].filters; _local3.push(_local4); balls[i].filters = _local3; i++; } balls[0].colored = true; i = 0; while (i < currentballs) { balls[i]._visible = true; i++; } } function mainloop() { deltat = getTimer() - olddeltatime; deltamult = Math.min(deltat, 40) / 28.5714285714286; olddeltatime = getTimer(); var _local3; var _local4; fpstime = fpstime + 1; if ((!continousmusic) and stoppingsound) { mymusicvol = mymusicvol - (1 * deltamult); musicsound.setVolume(mymusicvol); if (mymusicvol < 0) { musicsound.stop(); stoppingsound = false; } } handlescritta(); if (gamephase == 0) { if (!mymouse.hit) { lastedtime = lastedtime + (1 * deltamult); } if ((getTimer() - oldmillisecs) > 1000) { fpstime = 0; oldmillisecs = getTimer(); } if ((!mymouse.hit) and (!mymouse.spawning)) { if (currentballs < realmaxballs) { gametime = gametime + (1 * deltamult); } if (gametime > ((35 * (currentballs - 1)) * 7)) { gametime = 0; currentballs = currentballs + 1; balls[currentballs - 1]._visible = true; scritte[5].scritta.text = currentballs + " BALLS"; scritte[5].phase = 1; scritte[5]._alpha = 0; scritte[5]._visible = true; scritte[5].stoptime = 0; scritte[6].scritta.text = commenti[currentballs]; scritte[6]._alpha = 0; scritte[6]._visible = true; scritte[6]._x = (screenw / 2) - (scritte[6]._width / 2); scritte[6]._y = 220; } } if (mymouse.spawning) { mymouse._alpha = ((maxspawntime - mymouse.spawntime) / maxspawntime) * 100; mymouse.spawntime = mymouse.spawntime - (1 * deltamult); if (mymouse.spawntime < 0) { mymouse.spawning = false; mymouse._alpha = 100; currentballs = 3; scritte[5].scritta.text = currentballs + " BALLS"; scritte[5].phase = 1; scritte[5]._alpha = 0; scritte[5]._visible = true; scritte[5].stoptime = 0; scritte[6].scritta.text = commenti[currentballs]; scritte[6]._alpha = 0; scritte[6]._visible = true; scritte[6]._x = (screenw / 2) - (scritte[6]._width / 2); scritte[6]._y = 220; gametime = 0; _local3 = 0; while (_local3 < 3) { balls[_local3]._visible = true; _local3++; } } } _local3 = 0; while (_local3 < currentballs) { if (balls[_local3].spawning) { balls[_local3]._alpha = ((maxspawntime - balls[_local3].spawntime) / maxspawntime) * 100; balls[_local3].spawntime = balls[_local3].spawntime - (1 * deltamult); if (balls[_local3].spawntime < 0) { balls[_local3].spawning = false; balls[_local3]._alpha = 100; } } _local3++; } if (mymouse.hit) { mymouse.yv = mymouse.yv + (gravity * deltamult); mymouse.x = mymouse.x + (mymouse.xv * deltamult); mymouse.y = mymouse.y + (mymouse.yv * deltamult); } _local3 = 0; while (_local3 < currentballs) { if (!balls[_local3].spawning) { balls[_local3].yv = balls[_local3].yv + (gravity * deltamult); balls[_local3].x = balls[_local3].x + (balls[_local3].xv * deltamult); balls[_local3].y = balls[_local3].y + (balls[_local3].yv * deltamult); } _local3++; } mymouse.xshift = 0; mymouse.yshift = 0; _local3 = 0; while (_local3 < currentballs) { balls[_local3].xshift = 0; balls[_local3].yshift = 0; _local3++; } _local3 = 0; while (_local3 < currentballs) { _local4 = _local3 + 1; while (_local4 < currentballs) { if ((((((balls[_local3].x - balls[_local4].x) * (balls[_local3].x - balls[_local4].x)) + ((balls[_local3].y - balls[_local4].y) * (balls[_local3].y - balls[_local4].y))) < ((balls[_local3].r + balls[_local4].r) * (balls[_local3].r + balls[_local4].r))) and (!balls[_local3].spawning)) and (!balls[_local4].spawning)) { collision(balls[_local3], balls[_local4]); } _local4++; } _local3++; } _local4 = 0; while (_local4 < currentballs) { if (!balls[_local4].spawning) { if ((((mymouse.x - balls[_local4].x) * (mymouse.x - balls[_local4].x)) + ((mymouse.y - balls[_local4].y) * (mymouse.y - balls[_local4].y))) < ((mymouse.r + balls[_local4].r) * (mymouse.r + balls[_local4].r))) { collision(mymouse, balls[_local4]); mymouse.hit = true; gravity = maxgravity; if (!continousmusic) { stoppingsound = true; } } } _local4++; } _local3 = 0; while (_local3 < currentballs) { balls[_local3].x = balls[_local3].x + balls[_local3].xshift; balls[_local3].y = balls[_local3].y + balls[_local3].yshift; _local3++; } mymouse.x = mymouse.x + mymouse.xshift; mymouse.y = mymouse.y + mymouse.yshift; if (!mymouse.hit) { mymouse.x = _root._xmouse; mymouse.y = _root._ymouse; mymouse.xv = 0; mymouse.yv = 0; } bordercollision(); _local3 = 0; while (_local3 < currentballs) { balls[_local3]._x = balls[_local3].x; balls[_local3]._y = balls[_local3].y; _local3++; } mymouse._x = mymouse.x; mymouse._y = mymouse.y; } if (mymouse.hit and (gamephase == 0)) { var _local6 = 1; _local3 = 0; while (_local3 < currentballs) { if (balls[_local3].y < (screenh + 100)) { _local6 = 0; } _local3++; } if (mymouse.y < (screenh + 100)) { _local6 = 0; } if (_local6) { Mouse.show(); gamephase = 1; var _local5 = 1; var _local9 = 1; var _local7 = 40; var _local8 = 30; scritte[4].scritta.text = ("YOU REACHED " + currentballs) + " BALLS"; scritte[4]._xscale = _local9 * 100; scritte[4]._yscale = _local9 * 100; scritte[4]._x = (screenw / 2) - (scritte[4]._width / 2); scritte[4]._y = 70 + _local8; scritte[4]._visible = true; scritte[0].scritta.text = ("YOU LASTED " + Math.floor(lastedtime / 35)) + " SECONDS"; scritte[0]._xscale = _local5 * 100; scritte[0]._yscale = _local5 * 100; scritte[0]._x = (screenw / 2) - (scritte[0]._width / 2); scritte[0]._y = 110 + _local8; scritte[0]._visible = true; scritte[7].scritta.text = "GRADE " + giudizi[Math.min(Math.floor((lastedtime / 35) / 15), maxgiudizio)]; scritte[7]._xscale = _local5 * 100; scritte[7]._yscale = _local5 * 100; scritte[7]._x = (screenw / 2) - (scritte[7]._width / 2); scritte[7]._y = 150 + _local8; scritte[7]._visible = true; scritte[1].scritta.text = "PLAY AGAIN"; scritte[1]._xscale = 100 * _local5; scritte[1]._yscale = 100 * _local5; scritte[1]._x = (screenw / 2) - (scritte[1]._width / 2); scritte[1]._y = 200 + _local7; scritte[1]._visible = true; scritte[2].scritta.text = "BACK TO MENU"; scritte[2]._xscale = 100 * _local5; scritte[2]._yscale = 100 * _local5; scritte[2]._x = (screenw / 2) - (scritte[2]._width / 2); scritte[2]._y = 240 + _local7; scritte[2]._visible = true; scritte[3].scritta.text = "MORE GAMES BY ME"; scritte[3]._xscale = 100 * _local5; scritte[3]._yscale = 100 * _local5; scritte[3]._x = (screenw / 2) - (scritte[3]._width / 2); scritte[3]._y = 280 + _local7; scritte[3]._visible = true; mymouse._alpha = 0; volumer._visible = true; } } if (gamephase == 1) { if (scrittefinealpha < 100) { scrittefinealpha = scrittefinealpha + (3 * deltamult); } } if (gamephase == 2) { scrittefinealpha = scrittefinealpha - (3 * deltamult); if (scrittefinealpha <= 0) { if (!_root.game.continousmusic) { _root.game.musicsound.stop(); } _root.game.init(!_root.game.continousmusic); } } if (gamephase == 3) { scrittefinealpha = scrittefinealpha - (3 * deltamult); if (scrittefinealpha <= 0) { _root.game.musicsound.stop(); _root.gotoAndPlay("mainmenu"); } } if (gamephase > 0) { _local3 = 0; while (_local3 < 5) { scritte[_local3]._alpha = scrittefinealpha; _local3++; } _local3 = 7; while (_local3 < 8) { scritte[_local3]._alpha = scrittefinealpha; _local3++; } volumer._alpha = scrittefinealpha; } } function handlescritta() { if (scritte[5].phase == 1) { scritte[5]._alpha = scritte[5]._alpha + (2 * deltamult); scritte[6]._alpha = scritte[5]._alpha; if (scritte[5]._alpha > 100) { scritte[5].phase = 2; } } if (scritte[5].phase == 2) { scritte[5].stoptime = scritte[5].stoptime + (1 * deltamult); if (scritte[5].stoptime > 10) { scritte[5].phase = 3; } } if (scritte[5].phase == 3) { scritte[5]._alpha = scritte[5]._alpha - (2 * deltamult); scritte[6]._alpha = scritte[5]._alpha; if (scritte[5]._alpha <= 0) { scritte[6]._visible = false; scritte[5]._visible = false; scritte[5].phase = 0; } } } function bordercollision() { var _local2 = 0.01; var _local3 = 1; var _local4 = (40 * mymusicvol) / 100; i = 0; while (i < currentballs) { if (balls[i].x < (0 + balls[i].r)) { bumpersound.setVolume(Math.abs(balls[i].xv) * _local4); if (soundson) { bumpersound.start(); } balls[i].x = (0 + _local2) + balls[i].r; balls[i].xv = (-balls[i].xv) * _local3; } if (balls[i].x > (screenw - balls[i].r)) { bumpersound.setVolume(Math.abs(balls[i].xv) * _local4); if (soundson) { bumpersound.start(); } balls[i].x = (screenw - _local2) - balls[i].r; balls[i].xv = (-balls[i].xv) * _local3; } if ((balls[i].y > (screenh - balls[i].r)) and (!mymouse.hit)) { bumpersound.setVolume(Math.abs(balls[i].yv) * _local4); if (soundson) { bumpersound.start(); } balls[i].y = (screenh - _local2) - balls[i].r; balls[i].yv = (-balls[i].yv) * _local3; } if (balls[i].y < (0 + balls[i].r)) { bumpersound.setVolume(Math.abs(balls[i].yv) * _local4); if (soundson) { bumpersound.start(); } balls[i].y = (0 + _local2) + balls[i].r; balls[i].yv = (-balls[i].yv) * _local3; } i++; } if (mymouse.x < (0 + mymouse.r)) { mymouse.x = (0 + _local2) + mymouse.r; mymouse.xv = (-mymouse.xv) * _local3; } if (mymouse.x > (screenw - mymouse.r)) { mymouse.x = (screenw - _local2) - mymouse.r; mymouse.xv = (-mymouse.xv) * _local3; } if ((mymouse.y > (screenh - mymouse.r)) and (!mymouse.hit)) { mymouse.y = (screenh - _local2) - mymouse.r; mymouse.yv = (-mymouse.yv) * _local3; } if (mymouse.y < (0 + mymouse.r)) { mymouse.y = (0 + _local2) + mymouse.r; mymouse.yv = (-mymouse.yv) * _local3; } } function collision(ball1, ball2) { var _local5 = 1E-7; var _local15 = 3000; var _local14 = (50 * mymusicvol) / 100; var _local7 = ball2.x - ball1.x; var _local6 = ball2.y - ball1.y; var _local4 = Math.sqrt((_local7 * _local7) + (_local6 * _local6)); var _local9 = ball1.r + ball2.r; if (_local4 < _local9) { var _local13 = ball2.xv - ball1.xv; var _local12 = ball2.yv - ball1.yv; if (Math.abs(_local4) < _local5) { _local4 = _local5; } if (Math.abs(_local7) < _local5) { _local7 = _local5; } if (Math.abs(_local6) < _local5) { _local6 = _local5; } var _local8 = _local6 / _local7; if (Math.abs(_local8) < _local5) { _local8 = _local5; } var _local10 = (-1 * (_local12 + ((1 / _local8) * _local13))) / (_local8 + (1 / _local8)); var _local11 = _local10 * _local8; ball1.xshift = ball1.xshift - ((((((_local9 + 0.01) - _local4) * _local7) / _local4) * ball1.actualmass) / (ball1.actualmass + ball2.actualmass)); ball1.yshift = ball1.yshift - ((((((_local9 + 0.01) - _local4) * _local6) / _local4) * ball1.actualmass) / (ball1.actualmass + ball2.actualmass)); ball2.xshift = ball2.xshift + ((((((_local9 + 0.01) - _local4) * _local7) / _local4) * ball2.actualmass) / (ball1.actualmass + ball2.actualmass)); ball2.yshift = ball2.yshift + ((((((_local9 + 0.01) - _local4) * _local6) / _local4) * ball2.actualmass) / (ball1.actualmass + ball2.actualmass)); ball1.xv = ball1.xv - (((_local10 * 2) * ball1.actualmass) / (ball1.actualmass + ball2.actualmass)); ball1.yv = ball1.yv - (((_local11 * 2) * ball1.actualmass) / (ball1.actualmass + ball2.actualmass)); ball2.xv = ball2.xv + (((_local10 * 2) * ball2.actualmass) / (ball1.actualmass + ball2.actualmass)); ball2.yv = ball2.yv + (((_local11 * 2) * ball2.actualmass) / (ball1.actualmass + ball2.actualmass)); ballsound.setVolume(Math.sqrt((_local10 * _local10) + (_local11 * _local11)) * _local14); if (soundson) { ballsound.start(); } } } function repulse(ball1, ball2) { var _local4 = 3000; var _local3 = ball2.x - ball1.x; var _local2 = ball2.y - ball1.y; var _local1 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); ball1.xshift = ball1.xshift + (((((-_local4) * _local3) / _local1) / _local1) / _local1); ball2.xshift = ball2.xshift + ((((_local4 * _local3) / _local1) / _local1) / _local1); ball1.yshift = ball1.yshift + (((((-_local4) * _local2) / _local1) / _local1) / _local1); ball2.yshift = ball2.yshift + ((((_local4 * _local2) / _local1) / _local1) / _local1); } var scrittefinealpha = 100; var olddeltatime = getTimer(); var continousmusic = false; var realmaxballs = 15; var stoppingsound = false; var soundson = true; var maxgravity = 0.3; var maxspawntime = 50; var gametime = 0; var mousewasup = true; var mouseisdown = false; var screenw = 450; var screenh = 450; var currentballs = 0; var maxballs = 20; var fpstime = 0; var oldmillisecs = getTimer(); var gamephase = 0; var gravity = 0; }
Library Items
Symbol 1 Font [verdana11] | Used by:13 15 17 19 21 23 26 28 30 | |
Symbol 2 Sound [ball.mp3] | ||
Symbol 3 Sound [bumper.mp3] | ||
Symbol 4 Graphic | Used by:6 | |
Symbol 5 Graphic | Used by:6 | |
Symbol 6 MovieClip [volumermc] | Uses:4 5 | |
Symbol 7 Bitmap | Used by:8 | |
Symbol 8 Graphic | Uses:7 | Used by:9 |
Symbol 9 MovieClip [ball4mc] | Uses:8 | |
Symbol 10 Graphic | Used by:11 Timeline | |
Symbol 11 MovieClip | Uses:10 | Used by:Timeline |
Symbol 32 MovieClip [__Packages.tloader] | ||
Symbol 33 MovieClip [__Packages.tgame] | ||
Symbol 12 Sound [112.mp3] | Used by:Timeline | |
Symbol 13 Text | Uses:1 | Used by:14 |
Symbol 14 MovieClip | Uses:13 | Used by:Timeline |
Symbol 15 Text | Uses:1 | Used by:16 |
Symbol 16 MovieClip | Uses:15 | Used by:Timeline |
Symbol 17 Text | Uses:1 | Used by:18 |
Symbol 18 MovieClip | Uses:17 | Used by:Timeline |
Symbol 19 Text | Uses:1 | Used by:20 |
Symbol 20 MovieClip | Uses:19 | Used by:Timeline |
Symbol 21 Text | Uses:1 | Used by:22 |
Symbol 22 MovieClip | Uses:21 | Used by:Timeline |
Symbol 23 Text | Uses:1 | Used by:24 |
Symbol 24 MovieClip | Uses:23 | Used by:25 |
Symbol 25 MovieClip | Uses:24 | Used by:Timeline |
Symbol 26 Text | Uses:1 | Used by:27 |
Symbol 27 MovieClip | Uses:26 | Used by:Timeline |
Symbol 28 Text | Uses:1 | Used by:29 |
Symbol 29 MovieClip | Uses:28 | Used by:Timeline |
Symbol 30 Text | Uses:1 | Used by:31 |
Symbol 31 MovieClip | Uses:30 | Used by:Timeline |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "verdana11" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "ball.mp3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "bumper.mp3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "volumermc" |
ExportAssets (56) | Timeline Frame 1 | Symbol 9 as "ball4mc" |
ExportAssets (56) | Timeline Frame 1 | Symbol 32 as "__Packages.tloader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 33 as "__Packages.tgame" |
ExportAssets (56) | Timeline Frame 2 | Symbol 12 as "112.mp3" |
Labels
"mainmenu" | Frame 3 |
"game" | Frame 4 |
"credits" | Frame 5 |
"instructions" | Frame 6 |
|