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

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

touhou hakurei reimu kirisame marisa izayoi sakuya remilia scarlet alice margatroid patchouli knowledge yakumo yukari konpaku youmu hong meiling saigyouji yuyuko ibuki suika flash tagme.swf

This is the info page for
Flash #130834

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


ActionScript [AS1/AS2]
Frame 1
function checkp(ball, pad) { var bounds = pad.getBounds(_root); if ((ball._x > bounds.xMin) && (ball._x < bounds.xMax)) { var dx = (ball._x - pad._x); var dy = (ball._y - pad._y); var angle = ((pad._rotation * Math.PI) / 180); var cosa = Math.cos(angle); var sina = Math.sin(angle); var y1 = ((dy * cosa) - (dx * sina)); var vy1 = ((ball.vy * cosa) - (ball.vx * sina)); if ((y1 > -10) && (y1 < vy1)) { var x1 = ((dx * cosa) + (dy * sina)); var vx1 = ((ball.vx * cosa) + (ball.vy * sina)); y1 = -10; vy1 = vy1 * bounce; dx = (x1 * cosa) - (y1 * sina); dy = (y1 * cosa) + (x1 * sina); ball._x = pad._x + dx; ball._y = pad._y + dy; ball.vx = (vx1 * cosa) - (vy1 * sina); ball.vy = (vy1 * cosa) + (vx1 * sina); vr = vr - ((vy1 * dx) * 0.001); } } } function checkfloor(ball) { var bounds = floor.getBounds(_root); if ((ball._x > bounds.xMin) && (ball._x < bounds.xMax)) { var dx = (ball._x - floor._x); var dy = (ball._y - floor._y); var angle = ((floor._rotation * Math.PI) / 180); var cosa = Math.cos(angle); var sina = Math.sin(angle); var y1 = ((dy * cosa) - (dx * sina)); var vy1 = ((ball.vy * cosa) - (ball.vx * sina)); if ((y1 > -10) && (y1 < vy1)) { var x1 = ((dx * cosa) + (dy * sina)); var vx1 = ((ball.vx * cosa) + (ball.vy * sina)); y1 = -10; vy1 = vy1 * bounce; dx = (x1 * cosa) - (y1 * sina); dy = (y1 * cosa) + (x1 * sina); ball._x = floor._x + dx; ball._y = floor._y + dy; ball.vx = (vx1 * cosa) - (vy1 * sina); ball.vy = (vy1 * cosa) + (vx1 * sina); } } } function ballMove() { this._rotation = this._rotation + (this.vx * Math.PI); this.vy = this.vy + grav; this._x = this._x + this.vx; this._y = this._y + this.vy; if (((this._x > 540) || (this._x < 0)) || (this._y > 400)) { this.removeMovieClip(); } var pp; var i = 0; while (i <= numPaddles) { pp = _root["p" + i]; checkp(this, pp); i++; } checkfloor(this); checkwheel(this); } function checkwheel(ball) { var dx = (ball._x - wheel._x); var dy = (ball._y - wheel._y); var dist = Math.sqrt((dx * dx) + (dy * dy)); if (dist < 60) { var angle = Math.atan2(dy, dx); ball._x = wheel._x + (Math.cos(angle) * 60); ball._y = wheel._y + (Math.sin(angle) * 60); var ballspeed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); ball.vx = (Math.cos(angle) * ballspeed) * (-bounce); ball.vy = (Math.sin(angle) * ballspeed) * (-bounce); } } bounce = -0.3; grav = 0.5; numPaddles = 6; oneSlice = 360 / numPaddles; count = 0; i = 0; while (i < numPaddles) { pad = attachMovie("paddle", "p" + count, count++); pad._x = 520; pad._y = 230; pad._rotation = (pad.base = i * oneSlice); i++; } onEnterFrame = function () { if ((getTimer() - start) > 1000) { start = getTimer(); ball = attachMovie("ball", "b" + count, count++, {_x:50, _y:10, vx:Math.random(), vy:Math.random(), onEnterFrame:ballMove}); ball.gotoAndStop(Math.floor(Math.random() * 7) + 1); } vr = vr * 0.95; baseRot = baseRot + vr; wheel._rotation = baseRot; i = 0; while (i <= numPaddles) { _root["p" + i]._rotation = baseRot + _root["p" + i].base; i++; } };

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:15
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:15
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:15
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:15
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:15
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:15
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClip [ball]Uses:2 4 6 8 10 12 14
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip [paddle]Uses:16
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:Timeline
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:22
Symbol 22 MovieClipUses:21Used by:Timeline

Instance Names

"floor"Frame 1Symbol 19 MovieClip
"wheel"Frame 1Symbol 22 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 15 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 17 as "paddle"




http://swfchan.com/27/130834/info.shtml
Created: 21/2 -2019 21:46:57 Last modified: 21/2 -2019 21:46:57 Server time: 22/12 -2024 19:14:40