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/95337360?noj=FRM95337360-22DC" width="1" height="1"></div>

RoboSoccer.swf

This is the info page for
Flash #29178

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


Text
Game Loading ...

Restart

Restart

Restart

©

Absolutist.com

Absolutist.com

Absolutist.com

Absolutist.com

Human

Robot

0

0

:

Time left:

10:00

Click to start a new Game

More games

ActionScript [AS1/AS2]

Frame 1
tellTarget ("_level0") { lbLoadingGame = ""; };
Frame 3
if (_framesloaded >= _totalframes) { gotoAndPlay (4); } else { gotoAndPlay (2); }
Frame 4
function Brain() { Brain1(A, G); } function Brain1(P, E) { Kx = P.GoalX - B._x; Ky = P.GoalY - B._y; K = Math.sqrt((Kx * Kx) + (Ky * Ky)); if (K == 0) { return(undefined); } Kx = Kx / K; Ky = Ky / K; Dx = B._x - P._x; Dy = B._y - P._y; D = Math.sqrt((Dx * Dx) + (Dy * Dy)); K0x = Dx - ((Kx * 0.1) * D); K0y = Dy - ((Ky * 0.1) * D); K0 = Math.sqrt((K0x * K0x) + (K0y * K0y)); if (K0 == 0) { return(undefined); } K0x = K0x / K0; K0y = K0y / K0; P.Vx = P.V * K0x; P.Vy = P.V * K0y; P._rotation = Math.atan2(K0y, K0x) * 57.3; } function Brain0(P, E) { if (0 < (P.Dir * (P._x - B._x))) { P.State = 0; } if (50 < (P.Dir * (B._x - P._x))) { P.State = 1; } if (0 < (P.Dir * B.Vx)) { P.State = 1; } if (P.State == 0) { GotoPoint(P, P.GateX, P.GateY); } else if (G.State == 1) { GotoPoint(P, B._x, B._y); } } function GotoPoint(N, x, y) { dX = x - N._x; dY = y - N._y; Phi = 57.3 * Math.atan2(dY, dX); N._rotation = Phi; N.Vx = N.V * Math.cos(N._rotation / 57.3); N.Vy = N.V * Math.sin(N._rotation / 57.3); } function Moving() { B._x = B._x + B.Vx; B._y = B._y + B.Vy; G._x = G._x + G.Vx; G._y = G._y + G.Vy; A._x = A._x + A.Vx; A._y = A._y + A.Vy; } function Collisions() { if ((((X1 + Rb) >= B._x) and (GateY1 < B._y)) and (B._y < GateY2)) { StartPosition(); stScoreA = Number(stScoreA) + 1; return(undefined); } if (((B._x >= (X2 - Rb)) and (GateY1 < B._y)) and (B._y < GateY2)) { StartPosition(); stScoreG = Number(stScoreG) + 1; return(undefined); } if ((X1 + R) >= G._x) { G.Vx = Math.abs(G.Vx); G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; } if (G._x >= (X2 - R)) { G.Vx = -Math.abs(G.Vx); G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; } if ((Y1 + R) >= G._y) { G.Vy = Math.abs(G.Vy); G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; } if (G._y >= (Y2 - R)) { G.Vy = -Math.abs(G.Vy); G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; } if ((X1 + R) >= A._x) { A.Vx = Math.abs(A.Vx); A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; } if (A._x >= (X2 - R)) { A.Vx = -Math.abs(A.Vx); A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; } if ((Y1 + R) >= A._y) { A.Vy = Math.abs(A.Vy); A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; } if (A._y >= (Y2 - R)) { A.Vy = -Math.abs(A.Vy); A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; } if (B._x < (X1 + Rb)) { B.Vx = Math.abs(B.Vx); } if ((X2 - Rb) < B._x) { B.Vx = -Math.abs(B.Vx); } if (B._y < (Y1 + Rb)) { B.Vy = Math.abs(B.Vy); } if ((Y2 - Rb) < B._y) { B.Vy = -Math.abs(B.Vy); } dX = G._x - A._x; dY = G._y - A._y; S = (dX * dX) + (dY * dY); if (S < dGA) { tmp = G.Vx; G.Vx = A.Vx; A.Vx = tmp; tmp = G.Vy; G.Vy = A.Vy; A.Vy = tmp; A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; Lambda = (((0.9 * Math.sqrt(S)) / (2 * R)) - 1) / 2; A._x = A._x + (Lambda * dX); A._y = A._y + (Lambda * dY); G._x = G._x - (Lambda * dX); G._y = G._y - (Lambda * dY); } dX = G._x - B._x; dY = G._y - B._y; S = (dX * dX) + (dY * dY); if (S < dBG) { B.Vx = 2 * ((2 * G.Vx) - B.Vx); B.Vy = 2 * ((2 * G.Vy) - B.Vy); if (VBmax2 < ((B.Vx * B.Vx) + (B.Vy * B.Vy))) { B.V = Math.sqrt((B.Vx * B.Vx) + (B.Vy * B.Vy)); B.Vx = (B.Vx * VBmax) / B.V; B.Vy = (B.Vy * VBmax) / B.V; } Lambda = ((0.9 * Math.sqrt(S)) / (R + Rb)) - 1; B._x = B._x + (Lambda * dX); B._y = B._y + (Lambda * dY); } dX = A._x - B._x; dY = A._y - B._y; S = (dX * dX) + (dY * dY); if (dBG >= S) { B.Vx = 2 * ((2 * A.Vx) - B.Vx); B.Vy = 2 * ((2 * A.Vy) - B.Vy); if (VBmax2 < ((B.Vx * B.Vx) + (B.Vy * B.Vy))) { B.V = Math.sqrt((B.Vx * B.Vx) + (B.Vy * B.Vy)); B.Vx = (B.Vx * VBmax) / B.V; B.Vy = (B.Vy * VBmax) / B.V; } Lambda = ((0.9 * Math.sqrt(S)) / (R + Rb)) - 1; B._x = B._x + (Lambda * dX); B._y = B._y + (Lambda * dY); } B.Vx = B.Vx * 0.999; B.Vy = B.Vy * 0.999; } function StartPosition() { G._x = 83; G._y = 180; G.Vx = 2; G.Vy = 0; G._rotation = Math.atan2(G.Vy, G.Vx) * 57.3; G.V = Math.sqrt((G.Vx * G.Vx) + (G.Vy * G.Vy)); A._x = 408; A._y = 180; A.Vx = -2; A.Vy = 0; A._rotation = Math.atan2(A.Vy, A.Vx) * 57.3; A.V = Math.sqrt((A.Vx * A.Vx) + (A.Vy * A.Vy)); B._x = 250; B._y = 180; B.Vx = 0; if (random(2) == 0) { B.Vy = random(20) / 10; } else { B.Vy = (-random(20)) / 10; } B.V = Math.sqrt((B.Vx * B.Vx) + (B.Vy * B.Vy)); } function InitGame() { StartPosition(); stScoreG = (stScoreA = "0"); stTime = "10:00"; Time = getTimer(); GameFinish = false; wndFinish._visible = false; } X1 = 29; X2 = 470; Y1 = 46; Y2 = 318; GateY1 = 127; GateY2 = 232; A.GateX = 472; A.GateY = 180; G.GateX = 27; G.GateY = 180; A.GoalX = 27; A.GoalY = 180; G.GoalX = 472; G.GoalY = 180; A.Dir = -1; G.Dir = 1; R = A._width / 2; Rb = B._width / 2; dGA = (4 * R) * R; dBG = (R + Rb) * (R + Rb); dR = R - Rb; Rb2 = 2 * Rb; Vmax = 3; VBmax = 4; VBmax2 = VBmax * VBmax; if (!initialized) { initialized = true; fscommand ("showmenu", false); GameFinish = true; StartPosition(); stScoreG = (stScoreA = "0"); stTime = "10:00"; Time = getTimer(); }
Instance of Symbol 9 MovieClip in Frame 4
onClipEvent (keyDown) { if (Key.isDown(Key.LEFT)) { _parent.G._rotation = _parent.G._rotation - 10; } if (Key.isDown(Key.RIGHT)) { _parent.G._rotation = _parent.G._rotation + 10; } if (Key.isDown(Key.UP) or Key.isDown(88)) { if (_parent.G.V < _parent.Vmax) { _parent.G.V = _parent.G.V + 0.5; } } if (Key.isDown(Key.DOWN) or Key.isDown(90)) { if (0 < _parent.G.V) { _parent.G.V = _parent.G.V - 0.5; } } if (Key.isDown(Key.SPACE)) { } _parent.G.Vx = _parent.G.V * Math.cos(_parent.G._rotation / 57.3); _parent.G.Vy = _parent.G.V * Math.sin(_parent.G._rotation / 57.3); } onClipEvent (mouseDown) { _parent.GotoPoint(_parent.G, _parent._xmouse, _parent._ymouse); }
Instance of Symbol 50 MovieClip "wndFinish" in Frame 4
onClipEvent (keyDown) { } onClipEvent (mouseDown) { if (_parent.GameFinish) { _parent.InitGame(); } }
Frame 5
if (GameFinish) { return(undefined); } Collisions(); Moving();
Frame 6
if (GameFinish) { return(undefined); } Collisions(); Moving();
Frame 7
if (GameFinish) { return(undefined); } Collisions(); Moving();
Frame 8
if (GameFinish) { return(undefined); } Moving();
Frame 9
if (GameFinish) { gotoAndPlay (5); return(undefined); } Collisions(); Moving(); Brain(); var sec = int(600 - ((getTimer() - Time) / 1000)); var min = int(sec / 60); if (0 >= sec) { wndFinish._visible = true; GameFinish = true; stTime = "00:00"; gotoAndPlay (5); return(undefined); } sec = sec - (60 * min); if (9 < sec) { stTime = (min + ":") + sec; } else { stTime = (min + ":0") + sec; } if (min < 10) { stTime = "0" + stTime; } gotoAndPlay (5);
Symbol 19 Button
on (release) { InitGame(); }
Symbol 55 Button
on (release) { getURL ("http://absolutist.com/games.html", "_blank"); }

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 FontUsed by:3 20 36 37
Symbol 3 TextUses:2Used by:4
Symbol 4 MovieClipUses:1 3Used by:Timeline
Symbol 5 GraphicUsed by:9
Symbol 6 GraphicUsed by:7 8
Symbol 7 MovieClipUses:6Used by:9
Symbol 8 MovieClipUses:6Used by:9
Symbol 9 MovieClipUses:5 7 8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 FontUsed by:13 15 17 51
Symbol 13 TextUses:12Used by:19
Symbol 14 GraphicUsed by:19
Symbol 15 TextUses:12Used by:19
Symbol 16 GraphicUsed by:19
Symbol 17 TextUses:12Used by:19
Symbol 18 GraphicUsed by:19
Symbol 19 ButtonUses:13 14 15 16 17 18Used by:Timeline
Symbol 20 EditableTextUses:2Used by:29
Symbol 21 FontUsed by:22 24 26 28
Symbol 22 EditableTextUses:21Used by:29
Symbol 23 GraphicUsed by:29
Symbol 24 EditableTextUses:21Used by:29
Symbol 25 GraphicUsed by:29
Symbol 26 EditableTextUses:21Used by:29
Symbol 27 GraphicUsed by:29
Symbol 28 EditableTextUses:21Used by:29
Symbol 29 ButtonUses:20 22 23 24 25 26 27 28Used by:Timeline
Symbol 30 FontUsed by:31 32 33 34 35 49
Symbol 31 TextUses:30Used by:Timeline
Symbol 32 TextUses:30Used by:Timeline
Symbol 33 EditableTextUses:30Used by:Timeline
Symbol 34 EditableTextUses:30Used by:Timeline
Symbol 35 TextUses:30Used by:Timeline
Symbol 36 TextUses:2Used by:Timeline
Symbol 37 EditableTextUses:2Used by:Timeline
Symbol 38 GraphicUsed by:40
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:38 39Used by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:40 41Used by:Timeline
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:43 44Used by:47
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:45 46Used by:Timeline
Symbol 48 GraphicUsed by:50
Symbol 49 TextUses:30Used by:50
Symbol 50 MovieClipUses:48 49Used by:Timeline
Symbol 51 TextUses:12Used by:55
Symbol 52 GraphicUsed by:55
Symbol 53 GraphicUsed by:55
Symbol 54 GraphicUsed by:55
Symbol 55 ButtonUses:51 52 53 54Used by:Timeline

Instance Names

"B"Frame 4Symbol 11 MovieClip
"G"Frame 4Symbol 42 MovieClip
"A"Frame 4Symbol 47 MovieClip
"wndFinish"Frame 4Symbol 50 MovieClip

Dynamic Text Variables

TextField13Symbol 20 EditableText"©"
TextField9Symbol 22 EditableText"Absolutist.com"
TextField9Symbol 24 EditableText"Absolutist.com"
TextField9Symbol 26 EditableText"Absolutist.com"
TextField9Symbol 28 EditableText"Absolutist.com"
stScoreGSymbol 33 EditableText"0"
stScoreASymbol 34 EditableText"0"
stTimeSymbol 37 EditableText"10:00"




http://swfchan.com/6/29178/info.shtml
Created: 20/5 -2019 01:08:52 Last modified: 20/5 -2019 01:08:52 Server time: 22/12 -2024 22:30:18