FWDufHȔFu` TActions for superShot: Frame 18 of Layer Name Layer 1gotoAndPlay(1);T4cActions for striker: Frame 1 of Layer Name Layer 1stop();Actions for striker: Frame 2 of Layer Name Layer 1stop();c+&P& Actions for energy: Frame 1 of Layer Name Layer 1stop();jActions for energy: Frame 19 of Layer Name Layer 1gotoAndPlay(2);  j ,Actions for Scene 1: Frame 10 of Layer Name mainstop(); _root.timeOut=0; _root.buildMeter.buildMeterMask._height=0; function addScore(input) { _root.score+=input; tmp=""; // zero pad the score like a real arcade game... if (_root.score<1000000000) {tmp+="0"} if (_root.score<100000000) {tmp+="0"} if (_root.score<10000000) {tmp+="0"} if (_root.score<1000000) {tmp+="0"} if (_root.score<100000) {tmp+="0"} if (_root.score<10000) {tmp+="0"} if (_root.score<1000) {tmp+="0"} if (_root.score<100) {tmp+="0"} if (_root.score<10) {tmp+="0"} _root.scoreDisp.text=tmp + _root.score; } maxX=550; maxY=400; rActions for ball (ball)onClipEvent(load) { holder=0; maxSpeed=8; minSPeed=-8; dx=0; dy=0; friction=.995; this.ballPerim._visible=false; } onClipEvent(enterFrame) { if (holder>0) { _x=eval('_root.player' + holder)._x; _y=eval('_root.player' + holder)._y; } else { dx*=friction; dy*=friction; _x+=dx; _y+=dy; for (i in this.ballPerim) { this.ballPerim.localToGlobal(p={x:this.ballPerim[i]._x,y:this.ballPerim[i]._y}) if(_root.background.hitTest(p.x, p.y, true)){ rad=10; if (_root.background.hitTest(p.x, (p.y-rad), true)) { dy+=2; hitsound=1; } if (_root.background.hitTest(p.x, (p.y+rad), true)) { dy-=2; hitsound=1; } if (_root.background.hitTest((p.x+rad), p.y, true)) { dx-=2; hitsound=1; } if (_root.background.hitTest((p.x-rad), p.y, true)) { dx+=2; hitsound=1; } if (dx>maxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dxmaxDr) { dr=maxDr; } else if (dr<(minDr)) { dr=minDr; } _rotation+=dr; // degrade velocity over time? dx*=friction; dy*=friction; // Bounds Method: bounce! if (Key.isDown(37)) { _rotation-=8; dr=0; } if (Key.isDown(39)) { _rotation+=8; dr=0; } if (Key.isDown(38)) { angle=(_rotation/360)*2*Math.PI; dx+=(acc*Math.sin(angle)); dy-=(acc*Math.cos(angle)); if (dx>maxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dx0) { if (_root.ball.holder==1) { _root.ball.holder=0; _root.timeOut=100; _root.ball.gotoAndStop(3); strength=(build/buildMax)*_root.ball.maxSpeed; angle=(_rotation/360)*2*Math.PI; _root.ball.dx=(Math.sin(angle))*strength; _root.ball.dy=-1*((Math.cos(angle))*strength); dx-=(Math.sin(angle))*strength*.2; dy=(Math.cos(angle))*strength*.2; } else { if (buildmaxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dx0) { if (_root.timeOut==1) { _root.ball.gotoAndStop(1);} _root.timeOut--; } }Actions for player2 (striker)onClipEvent(load) { playerNum=substring(_name,7,1); maxSpeed=3; minSpeed=maxSpeed*-1; dx=Math.floor(Math.random()*maxSpeed*2)-maxSpeed; dy=Math.floor(Math.random()*maxSpeed*2)-maxSpeed; frozen=0; } onClipEvent(enterFrame) { if (frozen==0) { _x+=dx; _y+=dy; if (hitTest(_root.player1)) { _root.player1.dx*=-1; _root.player1.dy*=-1; } ballDist=Math.abs(_x-_root.ball._x)+Math.abs(_y-_root.ball._y); spd=Math.abs(dx)+Math.abs(dy); if ( (_root.timeOut==0) and (ballDist<25) and (_root.ball.holder==0) ){ _root.ball.holder=2; _root.ball._x=_x; _root.ball._y=_y; } // shot hit if (hitTest(_root.shot)) { frozen=1; ftimer=100; gotoAndStop(2); } if (hitTest(_root.superShot)) { frozen=1; if (_root.ball.holder=playerNum){ _root.ball.holder=0; _root.timeOut=100; _root.ball.gotoAndStop(3); _root.ball.dx=dx; _root.ball.dy=dy; } ftimer=300; gotoAndStop(2); } // hit test w/ sensors for (i in this.perim) { this.perim.localToGlobal(p={x:this.perim[i]._x,y:this.perim[i]._y}) if(_root.background.hitTest(p.x, p.y, true)){ rad=10; if (_root.background.hitTest(p.x, (p.y-rad), true)) { dy+=2; hitsound=1; } if (_root.background.hitTest(p.x, (p.y+rad), true)) { dy-=2; hitsound=1; } if (_root.background.hitTest((p.x+rad), p.y, true)) { dx-=2; hitsound=1; } if (_root.background.hitTest((p.x-rad), p.y, true)) { dx+=2; hitsound=1; } if (dx>maxSpeed) {dx=maxSpeed;} if (dy>maxSpeed) {dy=maxSpeed;} if (dx0) { _x+=dx; _y+=dy; timer++; if ( (_root.background.hitTest(_x, _y, true)) or (timer>99) or (_x<0) or (_x>_root.maxX) or (_y<0) or (_y>_root.maxY) ) { timer=0; active=0; _x=-500; _y=0; } } }Actions for superShot (superShot)onClipEvent(load) { _x=-500; _y=-100; active=0; timer=0; stop(); } onClipEvent(enterFrame) { if (active>0) { _x+=dx; _y+=dy; timer++; if ( (timer>20) or (_x<0) or (_x>_root.maxX) or (_y<0) or (_y>_root.maxY) ) { timer=0; active=0; _x=-500; _y=-100; } } else { stop(); } },,,,!, 3, N, `, {, , , , , , ,,/,A,\,n,,,,,,, rGrOrgr}rrrrr r r rrr r rKrnrrr@rNrrrrr  r" r#` r$u r& r' r( r* r* r+ r+ r,( r,; r-G r-Z <^<<<<< <2<D< V< h< z< < <<<<<]<<<<<<<<$<!7<"Y<#~<%<&<'<)<* <+><,l<-<-<.<.</</<0<0 <2<41<:_<;w<=<><?d<@~<A<C<D<E<F<H0<IQ<Ky<K<K<O<P<Q<R <S4<TW<U}<V<W<X<YZ<[<\<]<^<_<`M<a<b<e <f&<gE<he<i<j<k <lK<n<p<q<u<v<wu<x<y<z<{<}'<~k<<<<<<9<N<\<o<{<<<<<BUBBBB&&&&']'' ' ( ( (()E)r))"*q****** +"+#0+$>+%e+&+'+(+)+++,+0+1#,2,3,4,5!-66-8D-9-:-<-=->.@.AV.Bk.Dy.D.E.E.F.F.G.G.L.M /N%/O*/:/: 0:$0:>0:P0:c0:0: 0: 0: 1: 1:1:1: 2:&2-5H5b5x5555 5 5 6 66C66667)7MActions for engines: Frame 1 of Layer Name Layer 1stop();MActions for engines: Frame 2 of Layer Name Layer 1_root.enginesOn=1; fActions for engines: Frame 4 of Layer Name Layer 1gotoAndPlay(2);M* M4 fp RiActions for ball: Frame 1 of Layer Name Layer 1Stop();_Actions for ball: Frame 2 of Layer Name Layer 1Stop();IActions for ball: Frame 3 of Layer Name Layer 1Stop();Ri_ I