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

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

Speedy Circles v0.9.swf

This is the info page for
Flash #67518

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


Text
Credits

Action Scripter:

Back

Graphics:

Music:

Inspiration:

Thanks To:

Crea (:D you rock!)
Adam Newman  (Thx for the boss ideas n crap :P)
Paul Lahm (Just for bein a cool guy lol)
Cahenn (Helped with some AS)
Google (i <3 google)
Flashkit (Got some sounds from here)
Newgrounds (Yeaa! Some constructive reviews helped!)
Flash MX Proffessional 2004 (w00t)
Flash book on physics (Helped me with some physics)

A tutorial on physics in my flash book

Chainsaw_09, Lenningrad - "Menya Zovut Shnor" and Rock Music (if you know the name tell me!)

Aldarn + Crea

Aldarn + Cahenn

Instructions

On most levels, the aim of the game is basically to survive until the timer runs out. Health is lost by
hitting walls, and the amount that is lost depends on how hard you hit the wall. On every level, there
is an 'enemy' ball also moving around. Smashing into him will give you points, but he will also smash
into you, and may cause you to hit a wall, beware!

On some levels, there are extra enemies which if you touch will cause you to lose HP
very fast, beware of these enemies (picture to the right).

Every 5 levels there will be a boss fight, where the basic rules go out of the window. In these levels
you will be required to smash into the enemy as hard as you can, to cause his damage to increase,
and once he is at 100%, you will advance the level.

During your game various power-ups will also appear, giving you health and other goodies, aswell as
points! Be sure to pick these up!

The basic controls are the arrow keys, remember you are the blue ball!

Page 2

Stats

Page 1

In the game there are 3 main stats. These are strength, defence and hp. Strength increases how far
your opponent will be knocked if you hit them, or how far you will be knocked if they hit you. This is a
vital statistic if you wish to stay alive! Defence is also a vital statistic in staying alive. Each time you
train defence you gain +5. This means that the damage you take will be determined by the formula:
Dmg = Speed - (Defence/10)
The maximum defence you can train is 30, and the smallest amount of damage you can take from
the "spinning enemies" is 0.25. HP is fairly self explanitory, if you have less than or equal to 0 hp, then
its game over! However, you can restart from your last level if you wish :).

Page 3

Power-ups

In the game there are currently only 3 power-ups. These are HP+10, HP+20 and temporary invincibility.
Getting power ups gives you points aswell as doing their individual effect.

LOADING

A XENWARS PRODUCTION

INSTRUCTIONS

INSTRUCTIONS

CREDITS

CREDITS

PLAY

PLAY

RESET GAME

RESET GAME

Menya Zovut Shnor

Chainsaw_09

Rock Music

None!

Music

SPEEDY CIRCLES

SPEEDY CIRCLES

Version 0.85

Highest

Last Level

Timer

HP

Level

%

%

Points

%

Quality

H

M

L

Timer

HP

Level

%

%

Points

%

%

%

%

%

%

%

%

%

%

Enemy Hp

%

Disabled

BOSS FIGHT!!!

BOSS FIGHT!!!

Quality

%

%

%

%

%

%

%

%

%

%

%

%

%

%

%

Enemy Hp

%

%

%

%

%

%

RIP

Neopets

%

%

%

%

%

%

%

%

%

Enemy Hp

CONGRATULATIONS!!! You have beaten the main game
mode, hope you had fun! Want more? Why not try
and beat the other game modes too? (version 1.0
only).

REPLAY

SEND SCORE

YOU WIN!!!

YOU WIN!!!

GAME OVER

GAME OVER

Sorry! You have died! But all is not lost, if you
wish to play again return to the main menu and
press play. You will resume from your last level.
If you wish to start from scratch, press 'Reset
Game', and then hit play. Have fun!

Level Up!!!

Level Up!!!

Unused Stats

Strength

HP

Points

Defence

(Max Def = 30)

(100 Points = +1 Stat)

Music

ActionScript [AS1/AS2]

Frame 1
loadedbytes = getBytesLoaded(); totalbytes = getBytesTotal(); percentbytes = int(loadedbytes / (totalbytes / 100)); tellTarget (_root.loader) { gotoAndStop(_root.percentbytes); };
Frame 2
if (loadedbytes == totalbytes) { gotoAndStop (3); } else { gotoAndPlay (1); }
Frame 3
function itemHandler(obj, item) { getURL ("http://www.xenwars.com", "_blank"); } root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); root_cm.customItems.push(new ContextMenuItem("Xenwars", itemHandler)); _root.menu = root_cm; storage = SharedObject.getLocal("store"); level = storage.data.uptolevel; yourhigh = storage.data.myhighscore; hp = storage.data.myhp; used = storage.data.myused; unused = storage.data.myunused; str = storage.data.mystr; points = storage.data.mypoints; defence = storage.data.mydef; if (level == undefined) { storage.data.uptolevel = 1; level = 1; } if (yourhigh == undefined) { storage.data.myhighscore = 0; yourhigh = 0; } if (hp == undefined) { storage.data.myhp = 100; hp = 100; } if (used == undefined) { storage.data.myused = 0; used = 0; } if (unused == undefined) { storage.data.myunused = 0; unused = 0; } if (str == undefined) { storage.data.mystr = 20; str = 20; } if (points == undefined) { storage.data.mypoints = 0; points = 0; } if (defence == undefined) { storage.data.mydef = 0; defence = 0; } _root.lastlevel = storage.data.uptolevel; _root.highest = storage.data.myhighscore; _root.lasthpleft = storage.data.myhp; _root.lastpoints = storage.data.mypoints; _root.lastunused = storage.data.myunused; _root.laststr = storage.data.mystr; _root.lastused = storage.data.myused; _root.lastdef = storage.data.mydef; stop();
Frame 4
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 20; ball2.vx = -5; ball2.vy = -3; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= _root.dist) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > _root.dist) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 4
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 5
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 20; ball2.vx = -5; ball2.vy = -3; ball2.move(); ball3.mass = 10; ball3.vx = -1; ball3.vy = -1; ball3.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 5
onClipEvent (enterFrame) { if (_root.invin == 0) { _root.ball; if (hitTest(_root.ball3)) { defs = _root.defence / 20; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 6
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 113) { this._x = 113; this.vx = -this.vx; } else if (this._x > 402) { this._x = 402; this.vx = -this.vx; } if (this._y < 160) { this._y = 160; this.vy = -this.vy; } else if (this._y > 290) { this._y = 290; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 20; ball2.vx = -5; ball2.vy = -3; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 113) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._x > 402) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y < 160) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y > 290) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 6
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball3)) { _root.hp = _root.hp - 1; if (_root.hp < 1) { ball.gotoAndPlay(2); } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 7
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 10; ball2.vx = -7; ball2.vy = -7; ball2.move(); ball3.mass = 10; ball3.vx = 10; ball3.vy = 10; ball3.move(); ball4.mass = 10; ball4.vx = 7; ball4.vy = 7; ball4.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 7
onClipEvent (enterFrame) { if (_root.invin == 0) { _root.ball; if (hitTest(_root.ball3)) { defs = _root.defence / 10; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } _root.ball; if (hitTest(_root.ball4)) { defs = _root.defence / 10; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 8
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } _root.enemyhp = 0; MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 50; ball2.vx = -10; ball2.vy = -6; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 40) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 10; thehp = Math.floor((40 * speed) / 50); _root.enemyhp = _root.enemyhp + thehp; if (_root.enemyhp > 100) { _root.enemyhp = 100; } enemyhealth.gotoAndStop(_root.enemyhp); } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 8
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball3)) { _root.hp = _root.hp - 1; if (_root.hp < 1) { this.gotoAndPlay(2); } } _root.ball; if (hitTest(_root.pwrup1)) { removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } }
Frame 9
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } else if ((((this._x < 390) && (this._x > 370)) && (this._y > 150)) && (this._y < 300)) { this._x = 390; this.vx = -this.vx; } else if ((((this._x < 160) && (this._x > 140)) && (this._y > 150)) && (this._y < 300)) { this._x = 140; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } else if ((((this._y < 300) && (this._y > 280)) && (this._x > 140)) && (this._x < 390)) { this._y = 300; this.vy = -this.vy; } else if ((((this._y < 170) && (this._y > 150)) && (this._x > 140)) && (this._x < 390)) { this._y = 150; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball3.mass = 10; ball3.vx = -1; ball3.vy = -1; ball3.move(); ball4.mass = 10; ball4.vx = -5; ball4.vy = -5; ball4.move(); ball5.mass = 10; ball5.vx = -10; ball5.vy = -10; ball5.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if ((((ball._y < 300) && (ball._y > 280)) && (ball._x > 140)) && (ball._x < 390)) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if ((((ball._y < 170) && (ball._y > 150)) && (ball._x > 140)) && (ball._x < 390)) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if ((((ball._x < 390) && (ball._x > 370)) && (ball._y > 150)) && (ball._y < 300)) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if ((((ball._x < 160) && (ball._x > 140)) && (ball._y > 150)) && (ball._y < 300)) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp < 1) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 9
onClipEvent (enterFrame) { if (_root.invin == 0) { _root.ball; if (hitTest(_root.ball3)) { defs = _root.defence / 10; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } _root.ball; if (hitTest(_root.ball4)) { defs = _root.defence / 10; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } _root.ball; if (hitTest(_root.ball5)) { defs = _root.defence / 10; dmglol = 1 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 10
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball4.mass = 10; ball4.vx = -5; ball4.vy = -5; ball4.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 10
onClipEvent (enterFrame) { if (_root.invin == 0) { _root.ball; if (hitTest(_root.ball4)) { defs = _root.defence / 10; dmglol = 2 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 11
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball4.mass = 10; ball4.vx = -5; ball4.vy = -5; ball4.move(); ball5.mass = 10; ball5.vx = -7; ball5.vy = -7; ball5.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 11
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball5)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 5 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp < 1) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 12
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball5.mass = 10; ball5.vx = -7; ball5.vy = -7; ball5.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 12
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball5)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 5 - defs; if (dmglol < 0.25) { dmglol = 0.25; } _root.hp = _root.hp - dmglol; if (_root.hp < 1) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } _root.ball; if (hitTest(_root.teleport)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } }
Frame 13
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } _root.enemyhp = 0; MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 150; ball2.vx = -10; ball2.vy = -6; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 50) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 2; thehp = Math.floor(((40 * speed) / 50) / 2); _root.enemyhp = _root.enemyhp + thehp; if (_root.enemyhp > 100) { _root.enemyhp = 100; } enemyhealth.gotoAndStop(_root.enemyhp); } else if (distance > 50) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 13
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } _root.ball; if (hitTest(_root.teleport)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } _root.ball; if (hitTest(_root.teleport2)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } _root.ball; if (hitTest(_root.teleport3)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } _root.ball; if (hitTest(_root.teleport4)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } }
Frame 14
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 14
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Instance of Symbol 258 MovieClip "mine6" in Frame 14
onClipEvent (enterFrame) { _root.mine6; if (hitTest(_root.ball)) { explosion = new Sound(); explosion.attachSound("explosion1"); _root.explosion.start(); this.gotoAndPlay(41); } }
Instance of Symbol 258 MovieClip "mine3" in Frame 14
onClipEvent (enterFrame) { _root.mine3; if (hitTest(_root.ball)) { explosion = new Sound(); explosion.attachSound("explosion1"); _root.explosion.start(); this.gotoAndPlay(41); } }
Instance of Symbol 258 MovieClip "mine2" in Frame 14
onClipEvent (enterFrame) { _root.mine2; if (hitTest(_root.ball)) { _root.explosion = new Sound(); _root.explosion.attachSound("explosion1"); _root.explosion.start(); this.gotoAndPlay(41); } }
Instance of Symbol 258 MovieClip "mine1" in Frame 14
onClipEvent (enterFrame) { _root.mine1; if (hitTest(_root.ball)) { explosion = new Sound(); explosion.attachSound("explosion1"); _root.explosion.start(); this.gotoAndPlay(41); } }
Instance of Symbol 258 MovieClip "mine4" in Frame 14
onClipEvent (enterFrame) { _root.mine4; if (hitTest(_root.ball)) { explosion = new Sound(); explosion.attachSound("explosion1"); _root.explosion.start(); this.gotoAndPlay(41); } }
Frame 15
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 205) { this._y = 205; this.vy = -this.vy; } else if (this._y > 250) { this._y = 250; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -5; ball.vy = 0; ball.move(); ball2.mass = 100; ball2.vx = -5; ball2.vy = -3; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 205) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 250) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 15
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 16
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball5.mass = 10; ball5.vx = -7; ball5.vy = -7; ball5.move(); ball4.mass = 10; ball4.vx = -5; ball4.vy = -5; ball4.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 16
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball5)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 2 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.ball4)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 2 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } _root.ball; if (hitTest(_root.teleport)) { num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2; } }
Frame 17
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 40; ball2.vx = -10; ball2.vy = -6; ball2.move(); ball5.mass = 10; ball5.vx = -15; ball5.vy = -15; ball5.move(); ball4.mass = 10; ball4.vx = -3; ball4.vy = -10; ball4.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 17
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.ball5)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 5 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.ball4)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 5 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 18
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } _root.enemyhp = 0; _root.onedecoy = 0; _root.twodecoy = 0; MovieClip.prototype.move = function () { this.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 40) { this._y = 40; this.vy = -this.vy; } else if (this._y > 410) { this._y = 410; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; ball.mass = _root.str; ball.vx = -3; ball.vy = 6; ball.move(); ball2.mass = 100; ball2.vx = -5; ball2.vy = -6; ball2.move(); coll = 0; _root.onEnterFrame = function () { if (_root.invin == 0) { speed = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); dmg = Math.floor((40 * speed) / 50) - (_root.defence / 10); if (dmg < 0) { dmg = 0; } if (ball._x < 0) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._x > 520) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y < 40) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (ball._y > 410) { hitwall = 1; _root.hp = _root.hp - dmg; if (_root.hp <= 0) { ball.gotoAndPlay(2); } } if (hitwall == 1) { hit = new Sound(); blah = Math.round(Math.random() * 3); if (blah == 1) { thesound = "hit1"; } if (blah == 3) { thesound = "hit2"; } if (blah == 2) { thesound = "hit3"; } hit.attachSound(thesound); _root.hit.start(); hitwall = 0; } } distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); hitd = new Sound(); hitd.attachSound("hitother"); _root.hitd.start(); _root.points = _root.points + 5; thehp = Math.floor(((40 * speed) / 50) / 2); _root.enemyhp = _root.enemyhp + thehp; if (_root.enemyhp > 100) { _root.enemyhp = 100; } enemyhealth.gotoAndStop(_root.enemyhp); } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } }; if (_root.points > yourhigh) { yourhigh = _root.points; storage.data.myhighscore = _root.points; } storage.data.uptolevel = _root.level; storage.data.myhp = _root.hp; storage.data.mypoints = _root.points; storage.data.myunused = _root.unused; storage.data.mystr = _root.str; storage.data.myused = _root.used; storage.data.mydef = _root.defence; stop();
Instance of Symbol 17 MovieClip [ball] "ball" in Frame 18
onClipEvent (enterFrame) { _root.ball; if (hitTest(_root.dc1)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 2 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.dc2)) { if (_root.invin == 0) { defs = _root.defence / 10; dmglol = 2 - defs; if (dmglol < 0.5) { dmglol = 0.5; } _root.hp = _root.hp - dmglol; if (_root.hp <= 0) { this.gotoAndPlay(2); } } } _root.ball; if (hitTest(_root.pwrup1)) { _root.gotitem1 = new Sound(); _root.gotitem1.attachSound("item1and2"); _root.gotitem1.start(); removeMovieClip(_root.pwrup1); _root.hp = _root.hp + 10; _root.points = _root.points + 10; } _root.ball; if (hitTest(_root.pwrup2)) { _root.gotitem2 = new Sound(); _root.gotitem2.attachSound("item1and2"); _root.gotitem2.start(); removeMovieClip(_root.pwrup2); _root.hp = _root.hp + 20; _root.points = _root.points + 20; } _root.ball; if (hitTest(_root.pwrup3)) { _root.gotitem3 = new Sound(); _root.gotitem3.attachSound("item3"); _root.gotitem3.start(); removeMovieClip(_root.pwrup3); _root.points = _root.points + 30; _root.invin = 1; this.gotoAndPlay(45); } }
Frame 19
removeMovieClip(_root.pwrup1); removeMovieClip(_root.pwrup2); removeMovieClip(_root.pwrup3); removeMovieClip(_root.dc1); removeMovieClip(_root.dc2); stop();
Frame 20
removeMovieClip(_root.pwrup1); removeMovieClip(_root.pwrup2); removeMovieClip(_root.pwrup3); removeMovieClip(_root.dc1); removeMovieClip(_root.dc2); stop();
Frame 21
if (_root.invin == 1) { _root.invin = 0; } if (_root.hp <= 0) { _level0.gotoAndStop(19); }
Frame 40
_root.level = _root.level + 1; _root.points = _root.points + 50; if (((_root.points > 99) && (_root.used < 1)) && (_root.unused < 1)) { _root.unused = _root.unused + 1; } if (((_root.points > 199) && (_root.used < 2)) && (_root.unused < 2)) { _root.unused = _root.unused + 1; } if (((_root.points > 299) && (_root.used < 3)) && (_root.unused < 3)) { _root.unused = _root.unused + 1; } if (((_root.points > 399) && (_root.used < 4)) && (_root.unused < 4)) { _root.unused = _root.unused + 1; } if (((_root.points > 499) && (_root.used < 5)) && (_root.unused < 5)) { _root.unused = _root.unused + 1; } if (((_root.points > 599) && (_root.used < 6)) && (_root.unused < 6)) { _root.unused = _root.unused + 1; } if (((_root.points > 699) && (_root.used < 7)) && (_root.unused < 7)) { _root.unused = _root.unused + 1; } if (((_root.points > 799) && (_root.used < 8)) && (_root.unused < 8)) { _root.unused = _root.unused + 1; } if (((_root.points > 899) && (_root.used < 9)) && (_root.unused < 9)) { _root.unused = _root.unused + 1; } if (((_root.points > 999) && (_root.used < 10)) && (_root.unused < 10)) { _root.unused = _root.unused + 1; } if (((_root.points > 1099) && (_root.used < 11)) && (_root.unused < 11)) { _root.unused = _root.unused + 1; } if (((_root.points > 1199) && (_root.used < 12)) && (_root.unused < 12)) { _root.unused = _root.unused + 1; } if (((_root.points > 1299) && (_root.used < 13)) && (_root.unused < 13)) { _root.unused = _root.unused + 1; } if (((_root.points > 1399) && (_root.used < 14)) && (_root.unused < 14)) { _root.unused = _root.unused + 1; } if (((_root.points > 1499) && (_root.used < 15)) && (_root.unused < 15)) { _root.unused = _root.unused + 1; } if (((_root.points > 1599) && (_root.used < 16)) && (_root.unused < 16)) { _root.unused = _root.unused + 1; } if (((_root.points > 1699) && (_root.used < 17)) && (_root.unused < 17)) { _root.unused = _root.unused + 1; } if (((_root.points > 1799) && (_root.used < 18)) && (_root.unused < 18)) { _root.unused = _root.unused + 1; } if (((_root.points > 1899) && (_root.used < 19)) && (_root.unused < 19)) { _root.unused = _root.unused + 1; } if (((_root.points > 1999) && (_root.used < 20)) && (_root.unused < 20)) { _root.unused = _root.unused + 1; } stop();
Symbol 12 MovieClip [notothis1] Frame 40
num = Math.floor(Math.random() * 3); if (num == 1) { gotoAndPlay (41); } else { gotoAndPlay (1); }
Symbol 12 MovieClip [notothis1] Frame 51
num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2;
Symbol 12 MovieClip [notothis1] Frame 61
gotoAndPlay (1);
Symbol 13 MovieClip [decoy1] Frame 40
num = Math.floor(Math.random() * 3); if (num == 1) { gotoAndPlay (41); } else if (num > 1) { gotoAndPlay (1); } num2 = Math.floor(Math.random() * 10); if (num2 == 1) { if (_root.twodecoy == 0) { gotoAndPlay (62); } else if (_root.twodecoy == 1) { gotoAndPlay (1); } else if (num2 > 1) { gotoAndPlay (1); } }
Symbol 13 MovieClip [decoy1] Frame 51
num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2;
Symbol 13 MovieClip [decoy1] Frame 61
gotoAndPlay (1);
Symbol 13 MovieClip [decoy1] Frame 62
_root.twodecoy = 1; _root.attachMovie("notothis1", "dc2", 2); num3 = Math.floor(Math.random() * 550); num41 = Math.floor(Math.random() * 400); num42 = num41 + 40; _root.dc2._x = num3; _root.dc2._y = num42; _root.dc2.mass = 10; _root.dc2.vx = 5; _root.dc2.vy = 5; _root.dc2.move(); gotoAndPlay (1);
Symbol 17 MovieClip [ball] Frame 1
#initclip 5 Object.registerClass("ball", Ball); #endinitclip stop();
Symbol 17 MovieClip [ball] Frame 2
_level0.gotoAndStop(20);
Symbol 17 MovieClip [ball] Frame 40
_level0.gotoAndStop(15);
Symbol 17 MovieClip [ball] Frame 45
_root.dist = 55; timeD = new MyTimer(3); timeD.start(); if (this.D.hasPassed()) { _root.invin = 0; _root.dist = 30; this.gotoAndPlay(1); }
Symbol 17 MovieClip [ball] Frame 46
gotoAndPlay (45);
Symbol 19 MovieClip [ball2] Frame 1
#initclip 3 Object.registerClass("ball2", Ball); #endinitclip
Symbol 20 MovieClip [level1] Frame 1
function findAnAngle(xthing, ything) { term = (Math.PI/180); if (xthing < 0) { t = 180 + (Math.atan(ything / xthing) / term); } else if ((xthing > 0) && (ything >= 0)) { t = Math.atan(ything / xthing) / term; } else if ((xthing > 0) && (ything < 0)) { t = 360 + (Math.atan(ything / xthing) / term); } else if ((xthing == 0) && (ything == 0)) { t = 0; } else if ((xthing == 0) && (ything >= 0)) { t = 90; } else { t = 270; } return(t); } function doCollision(ball, ball2) { dx = ball._x - ball2._x; dy = ball._y - ball2._y; phi = Math.atan(dy / dx); term = (Math.PI/180); v1i = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); v2i = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); ang1 = findAnAngle(ball.vx, ball.vy) * term; ang2 = findAnAngle(ball2.vx, ball2.vy) * term; v1xr = v1i * Math.cos(ang1 - phi); v1yr = v1i * Math.sin(ang1 - phi); v2xr = v2i * Math.cos(ang2 - phi); v2yr = v2i * Math.sin(ang2 - phi); v1fxr = (((ball.mass - ball2.mass) * v1xr) + ((ball2.mass + ball2.mass) * v2xr)) / (ball.mass + ball2.mass); v2fxr = (((ball.mass + ball.mass) * v1xr) + ((ball2.mass - ball.mass) * v2xr)) / (ball.mass + ball2.mass); v1fyr = v1yr; v2fyr = v2yr; _root.ball.vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr); _root.ball.vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr); _root.ball2.vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr); _root.ball2.vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr); } MovieClip.prototype.move = function () { _root.onEnterFrame = function () { if (this._x < 0) { this._x = 0; this.vx = -this.vx; } else if (this._x > 520) { this._x = 520; this.vx = -this.vx; } if (this._y < 0) { this._y = 0; this.vy = -this.vy; } else if (this._y > 370) { this._y = 370; this.vy = -this.vy; } this._x = this._x + this.vx; this._y = this._y + this.vy; }; }; _root.onLoad = function () { ball.mass = 20; ball.vx = 3; ball.vy = 6; ball.move(); ball2.mass = 5; ball2.vx = -5; ball2.vy = -3; ball2.move(); coll = 0; }; _root.onEnterFrame = function () { distance_x = Math.abs(ball._x - ball2._x); distance_y = Math.abs(ball._y - ball2._y); distance = Math.sqrt((distance_x * distance_x) + (distance_y * distance_y)); if ((distance <= 30) && (coll == 0)) { coll = 1; doCollision(ball, ball2); } else if (distance > 30) { coll = 0; } if (Key.isDown(39) && (ball.vx < 10)) { ball.vx = ball.vx + 0.5; } if (Key.isDown(37) && (ball.vx > -10)) { ball.vx = ball.vx - 0.5; } if (Key.isDown(38) && (ball.vy > -10)) { ball.vy = ball.vy - 0.5; } if (Key.isDown(40) && (ball.vy < 10)) { ball.vy = ball.vy + 0.5; } };
Symbol 29 Button
on (release) { removeMovieClip(_root.credz); }
Symbol 52 Button
on (release) { removeMovieClip(_root.inst); }
Symbol 55 Button
on (release) { this.gotoAndStop(2); }
Symbol 58 Button
on (release) { this.gotoAndStop(1); }
Symbol 61 Button
on (release) { this.gotoAndStop(3); }
Symbol 67 MovieClip [instructions] Frame 1
stop();
Symbol 67 MovieClip [instructions] Frame 2
stop();
Symbol 67 MovieClip [instructions] Frame 3
stop();
Symbol 71 MovieClip [enemy1] Frame 1
#initclip 4 Object.registerClass("enemy1", Ball); #endinitclip
Symbol 336 MovieClip [__Packages.MyTimer] Frame 0
class MyTimer { var time, btime; function MyTimer (seconds) { time = seconds * 1000; } function setTime(time) { this.time = time; } function setTimeSeconds(time) { this.time = time * 1000; } function addTime(offset) { time = time + offset; } function getTime() { return(time); } function start() { btime = getTimer(); } function hasPassed() { return((getTimer() - btime) > time); } function toString() { var _local2 = getTimer() - btime; var _local4 = _local2 % 1000; var _local3 = Math.floor(_local2 / 1000); return((_local3 + "::") + _local4); } function timeLeft() { return((time + btime) - getTimer()); } function countDown() { var _local2 = timeLeft(); var _local4 = _local2 % 1000; var _local3 = Math.floor(_local2 / 1000); return(_local3); } }
Symbol 337 MovieClip [__Packages.Ball] Frame 0
class Ball extends MovieClip { function Ball () { super(); } function findAnAngle(xthing, ything) { var _local3 = (Math.PI/180); if (xthing < 0) { var _local4 = 180 + (Math.atan(ything / xthing) / _local3); } else if ((xthing > 0) && (ything >= 0)) { var _local4 = Math.atan(ything / xthing) / _local3; } else if ((xthing > 0) && (ything < 0)) { var _local4 = 360 + (Math.atan(ything / xthing) / _local3); } else if ((xthing == 0) && (ything == 0)) { var _local4 = 0; } else if ((xthing == 0) && (ything >= 0)) { var _local4 = 90; } else { var _local4 = 270; } return(_local4); } function doCollision(ball, ball2) { var _local20 = ball._x - ball2._x; var _local18 = ball._y - ball2._y; var _local4 = Math.atan(_local18 / _local20); var _local6 = (Math.PI/180); var _local15 = Math.sqrt((ball.vx * ball.vx) + (ball.vy * ball.vy)); var _local14 = Math.sqrt((ball2.vx * ball2.vx) + (ball2.vy * ball2.vy)); var _local13 = findAnAngle(ball.vx, ball.vy) * _local6; var _local12 = findAnAngle(ball2.vx, ball2.vy) * _local6; var _local10 = _local15 * Math.cos(_local13 - _local4); var _local17 = _local15 * Math.sin(_local13 - _local4); var _local11 = _local14 * Math.cos(_local12 - _local4); var _local19 = _local14 * Math.sin(_local12 - _local4); var _local9 = (((ball.mass - ball2.mass) * _local10) + ((ball2.mass + ball2.mass) * _local11)) / (ball.mass + ball2.mass); var _local7 = (((ball.mass + ball.mass) * _local10) + ((ball2.mass - ball.mass) * _local11)) / (ball.mass + ball2.mass); var _local8 = _local17; var _local16 = _local19; _root.ball.vx = (Math.cos(_local4) * _local9) + (Math.cos(_local4 + (Math.PI/2)) * _local8); _root.ball.vy = (Math.sin(_local4) * _local9) + (Math.sin(_local4 + (Math.PI/2)) * _local8); _root.ball2.vx = (Math.cos(_local4) * _local7) + (Math.cos(_local4 + (Math.PI/2)) * _local16); _root.ball2.vy = (Math.sin(_local4) * _local7) + (Math.sin(_local4 + (Math.PI/2)) * _local16); } }
Symbol 87 Button
on (release) { _root.attachMovie("instructions", "inst", 1); _root.inst._x = 38; _root.inst._y = 135; }
Symbol 90 Button
on (release) { _root.attachMovie("creditz", "credz", 1); _root.credz._x = 38; _root.credz._y = 135; }
Symbol 93 Button
on (release) { if (_root.lasthpleft > 30) { _root.hp = _root.lasthpleft; } else { _root.hp = 30; } _root.level = _root.lastlevel; _root.points = _root.lastpoints; _root.unused = _root.lastunused; _root.str = _root.laststr; _root.used = _root.lastused; _root.defence = _root.lastdef; _root.dist = 30; _root.invin = 0; _level0.gotoAndPlay(_root.lastlevel + 3); }
Symbol 96 Button
on (release) { _root.lasthpleft = 100; _root.lastlevel = 1; _root.lastpoints = 0; _root.lastunused = 0; _root.laststr = 20; _root.lastused = 0; _root.lastdef = 0; }
Symbol 101 Button
on (release) { this.gotoAndPlay(3); }
Symbol 105 Button
on (release) { done = new Sound(); done.attachSound("done.wav"); _root.done.start(); this.music = "Menya Zovut Shnur"; gotoAndStop (23); }
Symbol 108 Button
on (release) { done = new Sound(); done.attachSound("done.wav"); _root.done.start(); this.music = "Chainsaw_09"; gotoAndStop (21); }
Symbol 110 Button
on (release) { done = new Sound(); done.attachSound("done.wav"); _root.done.start(); this.music = "Rock Music"; gotoAndStop (22); }
Symbol 112 Button
on (release) { done = new Sound(); done.attachSound("done.wav"); _root.done.start(); this.music = "None!"; gotoAndStop (24); }
Symbol 113 Button
on (release) { this.gotoAndPlay(2); }
Symbol 123 MovieClip Frame 1
this.music = "None"; stop();
Symbol 123 MovieClip Frame 3
stopAllSounds();
Symbol 123 MovieClip Frame 20
stop();
Symbol 123 MovieClip Frame 21
stop();
Symbol 123 MovieClip Frame 22
stop();
Symbol 123 MovieClip Frame 23
stop();
Symbol 123 MovieClip Frame 24
stop();
Symbol 140 MovieClip Frame 1
timeCheck = new MyTimer(10); timeCheck.start(); this.onEnterFrame = function () { this.thetimer = this.timeCheck.countDown(); if (this.timeCheck.hasPassed()) { removeMovieClip(_root.pwrup1); removeMovieClip(_root.pwrup2); removeMovieClip(_root.pwrup3); _level0.gotoAndPlay(21); } if (this.thetimer == 9) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 7) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 4) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 2) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } };
Symbol 150 Button
on (release) { _quality = "HIGH"; }
Symbol 152 Button
on (release) { _quality = "MEDIUM"; }
Symbol 154 Button
on (release) { _quality = "LOW"; }
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 100
removeMovieClip(_root.dc1); removeMovieClip(_root.dc2); _level0.gotoAndPlay(21);
Symbol 197 MovieClip Frame 70
_visible = false;
Symbol 216 MovieClip Frame 1
timeCheck = new MyTimer(20); timeCheck.start(); this.onEnterFrame = function () { this.thetimer = this.timeCheck.countDown(); if (this.timeCheck.hasPassed()) { removeMovieClip(_root.pwrup1); removeMovieClip(_root.pwrup2); removeMovieClip(_root.pwrup3); _level0.gotoAndPlay(21); } if (this.thetimer == 19) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 17) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 14) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 12) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 9) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 7) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 4) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } if (this.thetimer == 2) { num = Math.floor(Math.random() * 100); if (num == 1) { nump = Math.floor(Math.random() * 10); if (nump < 6) { _root.attachMovie("powerup1", "pwrup1", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup1._x = num1; _root.pwrup1._y = num22; } if ((nump < 9) && (nump > 5)) { _root.attachMovie("powerup2", "pwrup2", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup2._x = num1; _root.pwrup2._y = num22; } if (nump > 8) { _root.attachMovie("powerup3", "pwrup3", 1); num1 = Math.floor(Math.random() * 550); num21 = Math.floor(Math.random() * 400); num22 = num21 + 40; _root.pwrup3._x = num1; _root.pwrup3._y = num22; } } } };
Symbol 258 MovieClip Frame 40
gotoAndPlay (1);
Symbol 258 MovieClip Frame 46
if (_root.invin == 0) { dmges = 20 - (_root.defence / 10); _root.hp = dmges; if (_root.hp <= 0) { _root.ball.gotoAndPlay(2); } }
Symbol 258 MovieClip Frame 55
_visible = false;
Symbol 291 MovieClip Frame 40
num = Math.floor(Math.random() * 5); if (num < 4) { gotoAndPlay (41); } else if (num == 4) { gotoAndPlay (63); } else if (num == 5) { gotoAndPlay (1); } num2 = Math.floor(Math.random() * 10); if (num2 == 1) { if (_root.onedecoy == 0) { gotoAndPlay (62); } else if (_root.onedecoy == 1) { gotoAndPlay (1); } else if (num2 > 1) { gotoAndPlay (1); } }
Symbol 291 MovieClip Frame 51
num1 = Math.floor(Math.random() * 550); num2 = Math.floor(Math.random() * 440); if (num1 > 500) { num1 = 500; } if (num1 < 50) { num1 = 50; } if (num2 > 400) { num2 = 400; } if (num2 < 80) { num2 = 80; } this._x = num1; this._y = num2;
Symbol 291 MovieClip Frame 61
gotoAndPlay (1);
Symbol 291 MovieClip Frame 62
_root.onedecoy = 1; _root.attachMovie("decoy1", "dc1", 1); num5 = Math.floor(Math.random() * 550); num61 = Math.floor(Math.random() * 400); num62 = num61 + 40; _root.dc1._x = num5; _root.dc1._y = num62; _root.dc1.mass = 10; _root.dc1.vx = 5; _root.dc1.vy = 5; _root.dc1.move(); gotoAndPlay (1);
Symbol 291 MovieClip Frame 73
if (_root.ball.vx < 0) { num1 = _root.ball._x + 30; num2 = _root.ball._y; } else if (_root.ball.vx > 0) { num1 = _root.ball._x - 30; num2 = _root.ball._y; } this._x = num1; this._y = num2; if (_root.ball.vx < 0) { this.vx = -15; } else if (_root.ball.vx > 0) { this.vx = 15; }
Symbol 291 MovieClip Frame 83
gotoAndPlay (1);
Symbol 298 Button
on (release) { _level0.gotoAndStop(3); }
Symbol 316 Button
on (release) { _level0.gotoAndPlay(_root.level + 3); }
Symbol 327 Button
on (release) { if (_root.unused > 0) { _root.str = _root.str + 5; _root.used = _root.used + 1; _root.unused = _root.unused - 1; } }
Symbol 328 Button
on (release) { if (_root.unused > 0) { _root.hp = _root.hp + 50; _root.used = _root.used + 1; _root.unused = _root.unused - 1; } }
Symbol 331 Button
on (release) { if ((_root.unused > 0) && (_root.defence < 30)) { _root.defence = _root.defence + 5; _root.used = _root.used + 1; _root.unused = _root.unused - 1; } }

Library Items

Symbol 1 Sound [hit2]
Symbol 2 Sound [hit1]
Symbol 3 Sound [hit3]
Symbol 4 Sound [hitother]
Symbol 5 Sound [item3]
Symbol 6 Sound [item1and2]
Symbol 7 Sound [explosion1]
Symbol 8 Sound [done.wav]
Symbol 9 GraphicUsed by:12 13 291
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:12 13 291
Symbol 12 MovieClip [notothis1]Uses:9 11
Symbol 13 MovieClip [decoy1]Uses:9 11
Symbol 14 GraphicUsed by:20
Symbol 15 GraphicUsed by:17
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip [ball]Uses:15 16Used by:20  Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip [ball2]Uses:18Used by:20  Timeline
Symbol 20 MovieClip [level1]Uses:14 17 19
Symbol 21 GraphicUsed by:39 67
Symbol 22 FontUsed by:23 44 311 313
Symbol 23 TextUses:22Used by:39
Symbol 24 FontUsed by:25 30 31 32 33 34 35 36 37 38 45 46 49 50 54 57 59 60 63 129
Symbol 25 TextUses:24Used by:39
Symbol 26 GraphicUsed by:29 52
Symbol 27 FontUsed by:28 51 56 59 62
Symbol 28 TextUses:27Used by:29 52
Symbol 29 ButtonUses:26 28Used by:39
Symbol 30 TextUses:24Used by:39
Symbol 31 TextUses:24Used by:39
Symbol 32 TextUses:24Used by:39
Symbol 33 TextUses:24Used by:39
Symbol 34 TextUses:24Used by:39
Symbol 35 TextUses:24Used by:39
Symbol 36 TextUses:24Used by:39
Symbol 37 TextUses:24Used by:39
Symbol 38 TextUses:24Used by:39
Symbol 39 MovieClip [creditz]Uses:21 23 25 29 30 31 32 33 34 35 36 37 38
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip [powerup2]Uses:40Used by:67
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClip [powerup1]Uses:42Used by:67
Symbol 44 TextUses:22Used by:67
Symbol 45 TextUses:24Used by:67
Symbol 46 TextUses:24Used by:67
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:67  Timeline
Symbol 49 TextUses:24Used by:67
Symbol 50 TextUses:24Used by:67
Symbol 51 TextUses:27Used by:67
Symbol 52 ButtonUses:26 28Used by:67
Symbol 53 GraphicUsed by:55 58 61
Symbol 54 TextUses:24Used by:55
Symbol 55 ButtonUses:53 54Used by:67
Symbol 56 TextUses:27Used by:67
Symbol 57 TextUses:24Used by:58
Symbol 58 ButtonUses:53 57Used by:67
Symbol 59 TextUses:24 27Used by:67
Symbol 60 TextUses:24Used by:61
Symbol 61 ButtonUses:53 60Used by:67
Symbol 62 TextUses:27Used by:67
Symbol 63 TextUses:24Used by:67
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClip [powerup3]Uses:64 65Used by:67
Symbol 67 MovieClip [instructions]Uses:21 44 45 46 48 49 50 51 52 55 56 58 59 61 62 63 43 41 66
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClip [enemy1]Uses:69 70Used by:Timeline
Symbol 72 GraphicUsed by:Timeline
Symbol 73 FontUsed by:74 75
Symbol 74 TextUses:73Used by:Timeline
Symbol 75 TextUses:73Used by:Timeline
Symbol 76 GraphicUsed by:Timeline
Symbol 77 GraphicUsed by:80
Symbol 78 GraphicUsed by:80
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:77 78 79Used by:Timeline
Symbol 336 MovieClip [__Packages.MyTimer]
Symbol 337 MovieClip [__Packages.Ball]
Symbol 81 GraphicUsed by:Timeline
Symbol 82 GraphicUsed by:Timeline
Symbol 83 GraphicUsed by:Timeline
Symbol 84 FontUsed by:85 86 88 89 91 92 94 95 126 127 297 300 302 303 306 307
Symbol 85 TextUses:84Used by:87
Symbol 86 TextUses:84Used by:87
Symbol 87 ButtonUses:85 86Used by:Timeline
Symbol 88 TextUses:84Used by:90
Symbol 89 TextUses:84Used by:90
Symbol 90 ButtonUses:88 89Used by:Timeline
Symbol 91 TextUses:84Used by:93
Symbol 92 TextUses:84Used by:93
Symbol 93 ButtonUses:91 92Used by:Timeline
Symbol 94 TextUses:84Used by:96
Symbol 95 TextUses:84Used by:96
Symbol 96 ButtonUses:94 95Used by:Timeline
Symbol 97 GraphicUsed by:105 123
Symbol 98 FontUsed by:99 104 107 109 111 114 115 116 118 120 122
Symbol 99 EditableTextUses:98Used by:123
Symbol 100 GraphicUsed by:101 113
Symbol 101 ButtonUses:100Used by:123
Symbol 102 GraphicUsed by:123 185
Symbol 103 TextUsed by:105
Symbol 104 TextUses:98Used by:105
Symbol 105 ButtonUses:97 103 104Used by:123
Symbol 106 GraphicUsed by:108 110 112
Symbol 107 TextUses:98Used by:108
Symbol 108 ButtonUses:106 107Used by:123
Symbol 109 TextUses:98Used by:110
Symbol 110 ButtonUses:106 109Used by:123
Symbol 111 TextUses:98Used by:112
Symbol 112 ButtonUses:106 111Used by:123
Symbol 113 ButtonUses:100Used by:123
Symbol 114 EditableTextUses:98Used by:123
Symbol 115 EditableTextUses:98Used by:123
Symbol 116 EditableTextUses:98Used by:123
Symbol 117 SoundUsed by:123
Symbol 118 EditableTextUses:98Used by:123
Symbol 119 SoundUsed by:123
Symbol 120 EditableTextUses:98Used by:123
Symbol 121 SoundUsed by:123
Symbol 122 EditableTextUses:98Used by:123
Symbol 123 MovieClipUses:97 99 101 102 105 108 110 112 113 114 115 116 117 118 119 120 121 122Used by:Timeline
Symbol 124 FontUsed by:125 130 131 132 133 335
Symbol 125 EditableTextUses:124Used by:Timeline
Symbol 126 TextUses:84Used by:128
Symbol 127 TextUses:84Used by:128
Symbol 128 MovieClipUses:126 127Used by:Timeline
Symbol 129 TextUses:24Used by:Timeline
Symbol 130 EditableTextUses:124Used by:Timeline
Symbol 131 EditableTextUses:124Used by:Timeline
Symbol 132 EditableTextUses:124Used by:Timeline
Symbol 133 EditableTextUses:124Used by:Timeline
Symbol 134 GraphicUsed by:Timeline
Symbol 135 GraphicUsed by:Timeline
Symbol 136 GraphicUsed by:Timeline
Symbol 137 FontUsed by:138 139 141 142 143 144 145 146 161 162 164 170 171 172 174 175 176 179 180 181 188 200 201 202 208 209 210 215 219 220 221 227 228 229 235 236 237 242 245 246 247 260 261 262 271 272 273 276 277 278 286 287 288 290 317 318 319 320 321 322 323 324 329 330
Symbol 138 TextUses:137Used by:Timeline
Symbol 139 EditableTextUses:137Used by:140
Symbol 140 MovieClipUses:139Used by:Timeline
Symbol 141 TextUses:137Used by:Timeline
Symbol 142 TextUses:137Used by:Timeline
Symbol 143 EditableTextUses:137Used by:Timeline
Symbol 144 EditableTextUses:137Used by:Timeline
Symbol 145 TextUses:137Used by:Timeline
Symbol 146 EditableTextUses:137Used by:Timeline
Symbol 147 FontUsed by:148 149 151 153 182 198 241 289
Symbol 148 TextUses:147Used by:Timeline
Symbol 149 TextUses:147Used by:150
Symbol 150 ButtonUses:149Used by:Timeline
Symbol 151 TextUses:147Used by:152
Symbol 152 ButtonUses:151Used by:Timeline
Symbol 153 TextUses:147Used by:154
Symbol 154 ButtonUses:153Used by:Timeline
Symbol 155 GraphicUsed by:Timeline
Symbol 156 GraphicUsed by:Timeline
Symbol 157 FontUsed by:158 159 160 163
Symbol 158 TextUses:157Used by:Timeline
Symbol 159 TextUses:157Used by:Timeline
Symbol 160 TextUses:157Used by:Timeline
Symbol 161 EditableTextUses:137Used by:Timeline
Symbol 162 EditableTextUses:137Used by:Timeline
Symbol 163 TextUses:157Used by:Timeline
Symbol 164 EditableTextUses:137Used by:Timeline
Symbol 165 GraphicUsed by:168
Symbol 166 GraphicUsed by:168
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:165 166 167Used by:Timeline
Symbol 169 GraphicUsed by:Timeline
Symbol 170 EditableTextUses:137Used by:Timeline
Symbol 171 EditableTextUses:137Used by:Timeline
Symbol 172 EditableTextUses:137Used by:Timeline
Symbol 173 GraphicUsed by:Timeline
Symbol 174 EditableTextUses:137Used by:Timeline
Symbol 175 EditableTextUses:137Used by:Timeline
Symbol 176 EditableTextUses:137Used by:Timeline
Symbol 177 GraphicUsed by:Timeline
Symbol 178 GraphicUsed by:Timeline
Symbol 179 EditableTextUses:137Used by:Timeline
Symbol 180 EditableTextUses:137Used by:Timeline
Symbol 181 EditableTextUses:137Used by:Timeline
Symbol 182 EditableTextUses:147Used by:Timeline
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClipUses:183Used by:187
Symbol 185 MovieClipUses:102Used by:187
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:184 185 186Used by:Timeline
Symbol 188 EditableTextUses:137Used by:Timeline
Symbol 189 FontUsed by:190
Symbol 190 TextUses:189Used by:Timeline
Symbol 191 FontUsed by:192
Symbol 192 TextUses:191Used by:Timeline
Symbol 193 FontUsed by:194 195
Symbol 194 EditableTextUses:193Used by:197
Symbol 195 EditableTextUses:193Used by:196
Symbol 196 MovieClipUses:195Used by:197
Symbol 197 MovieClipUses:194 196Used by:Timeline
Symbol 198 TextUses:147Used by:Timeline
Symbol 199 GraphicUsed by:Timeline
Symbol 200 EditableTextUses:137Used by:Timeline
Symbol 201 EditableTextUses:137Used by:Timeline
Symbol 202 EditableTextUses:137Used by:Timeline
Symbol 203 GraphicUsed by:206
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:204Used by:206 270
Symbol 206 MovieClipUses:203 205Used by:Timeline
Symbol 207 GraphicUsed by:Timeline
Symbol 208 EditableTextUses:137Used by:Timeline
Symbol 209 EditableTextUses:137Used by:Timeline
Symbol 210 EditableTextUses:137Used by:Timeline
Symbol 211 GraphicUsed by:214
Symbol 212 GraphicUsed by:213
Symbol 213 ButtonUses:212Used by:214
Symbol 214 MovieClipUses:211 213Used by:Timeline
Symbol 215 EditableTextUses:137Used by:216
Symbol 216 MovieClipUses:215Used by:Timeline
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:Timeline
Symbol 219 EditableTextUses:137Used by:Timeline
Symbol 220 EditableTextUses:137Used by:Timeline
Symbol 221 EditableTextUses:137Used by:Timeline
Symbol 222 GraphicUsed by:224
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClipUses:222 223Used by:Timeline
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:225Used by:Timeline
Symbol 227 EditableTextUses:137Used by:Timeline
Symbol 228 EditableTextUses:137Used by:Timeline
Symbol 229 EditableTextUses:137Used by:Timeline
Symbol 230 GraphicUsed by:232
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:230 231Used by:Timeline
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:Timeline
Symbol 235 EditableTextUses:137Used by:Timeline
Symbol 236 EditableTextUses:137Used by:Timeline
Symbol 237 EditableTextUses:137Used by:Timeline
Symbol 238 GraphicUsed by:240
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:238 239Used by:Timeline
Symbol 241 EditableTextUses:147Used by:Timeline
Symbol 242 EditableTextUses:137Used by:Timeline
Symbol 243 GraphicUsed by:244
Symbol 244 MovieClipUses:243Used by:Timeline
Symbol 245 EditableTextUses:137Used by:Timeline
Symbol 246 EditableTextUses:137Used by:Timeline
Symbol 247 EditableTextUses:137Used by:Timeline
Symbol 248 GraphicUsed by:258
Symbol 249 GraphicUsed by:258
Symbol 250 GraphicUsed by:258
Symbol 251 GraphicUsed by:258
Symbol 252 GraphicUsed by:258
Symbol 253 GraphicUsed by:258
Symbol 254 GraphicUsed by:258
Symbol 255 GraphicUsed by:258
Symbol 256 GraphicUsed by:258
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClipUses:248 249 250 251 252 253 254 255 256 257Used by:Timeline
Symbol 259 GraphicUsed by:Timeline
Symbol 260 EditableTextUses:137Used by:Timeline
Symbol 261 EditableTextUses:137Used by:Timeline
Symbol 262 EditableTextUses:137Used by:Timeline
Symbol 263 GraphicUsed by:270
Symbol 264 GraphicUsed by:270
Symbol 265 FontUsed by:266
Symbol 266 TextUses:265Used by:270
Symbol 267 FontUsed by:268
Symbol 268 TextUses:267Used by:270
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClipUses:263 205 264 266 268 269Used by:Timeline
Symbol 271 EditableTextUses:137Used by:Timeline
Symbol 272 EditableTextUses:137Used by:Timeline
Symbol 273 EditableTextUses:137Used by:Timeline
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:Timeline
Symbol 276 EditableTextUses:137Used by:Timeline
Symbol 277 EditableTextUses:137Used by:Timeline
Symbol 278 EditableTextUses:137Used by:Timeline
Symbol 279 GraphicUsed by:285
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:280Used by:285
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClipUses:282Used by:285
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:279 281 283 284Used by:Timeline
Symbol 286 EditableTextUses:137Used by:Timeline
Symbol 287 EditableTextUses:137Used by:Timeline
Symbol 288 EditableTextUses:137Used by:Timeline
Symbol 289 EditableTextUses:147Used by:Timeline
Symbol 290 EditableTextUses:137Used by:Timeline
Symbol 291 MovieClipUses:9 11Used by:Timeline
Symbol 292 GraphicUsed by:Timeline
Symbol 293 FontUsed by:294 309
Symbol 294 TextUses:293Used by:Timeline
Symbol 295 GraphicUsed by:298 301
Symbol 296 GraphicUsed by:298
Symbol 297 TextUses:84Used by:298
Symbol 298 ButtonUses:295 296 297Used by:Timeline
Symbol 299 GraphicUsed by:301
Symbol 300 TextUses:84Used by:301
Symbol 301 ButtonUses:295 299 300Used by:Timeline
Symbol 302 TextUses:84Used by:304
Symbol 303 TextUses:84Used by:304
Symbol 304 MovieClipUses:302 303Used by:Timeline
Symbol 305 GraphicUsed by:Timeline
Symbol 306 TextUses:84Used by:308
Symbol 307 TextUses:84Used by:308
Symbol 308 MovieClipUses:306 307Used by:Timeline
Symbol 309 TextUses:293Used by:Timeline
Symbol 310 GraphicUsed by:Timeline
Symbol 311 EditableTextUses:22Used by:Timeline
Symbol 312 GraphicUsed by:Timeline
Symbol 313 TextUses:22Used by:Timeline
Symbol 314 GraphicUsed by:316
Symbol 315 GraphicUsed by:316
Symbol 316 ButtonUses:314 315Used by:Timeline
Symbol 317 TextUses:137Used by:Timeline
Symbol 318 TextUses:137Used by:Timeline
Symbol 319 TextUses:137Used by:Timeline
Symbol 320 EditableTextUses:137Used by:Timeline
Symbol 321 EditableTextUses:137Used by:Timeline
Symbol 322 EditableTextUses:137Used by:Timeline
Symbol 323 TextUses:137Used by:Timeline
Symbol 324 EditableTextUses:137Used by:Timeline
Symbol 325 GraphicUsed by:327 328 331
Symbol 326 GraphicUsed by:327 328 331
Symbol 327 ButtonUses:325 326Used by:Timeline
Symbol 328 ButtonUses:325 326Used by:Timeline
Symbol 329 TextUses:137Used by:Timeline
Symbol 330 EditableTextUses:137Used by:Timeline
Symbol 331 ButtonUses:325 326Used by:Timeline
Symbol 332 FontUsed by:333 334
Symbol 333 TextUses:332Used by:Timeline
Symbol 334 TextUses:332Used by:Timeline
Symbol 335 EditableTextUses:124Used by:Timeline

Instance Names

"loader"Frame 1Symbol 80 MovieClip
"ball"Frame 4Symbol 17 MovieClip [ball]
"ball2"Frame 4Symbol 19 MovieClip [ball2]
"ball"Frame 5Symbol 17 MovieClip [ball]
"ball2"Frame 5Symbol 19 MovieClip [ball2]
"ball3"Frame 5Symbol 48 MovieClip
"ball"Frame 6Symbol 17 MovieClip [ball]
"ball2"Frame 6Symbol 19 MovieClip [ball2]
"ball"Frame 7Symbol 17 MovieClip [ball]
"ball2"Frame 7Symbol 19 MovieClip [ball2]
"ball3"Frame 7Symbol 48 MovieClip
"ball4"Frame 7Symbol 48 MovieClip
"ball"Frame 8Symbol 17 MovieClip [ball]
"enemyhealth"Frame 8Symbol 187 MovieClip
"ball2"Frame 8Symbol 71 MovieClip [enemy1]
"ball"Frame 9Symbol 17 MovieClip [ball]
"ball2"Frame 9Symbol 19 MovieClip [ball2]
"ball3"Frame 9Symbol 48 MovieClip
"ball5"Frame 9Symbol 48 MovieClip
"ball4"Frame 9Symbol 48 MovieClip
"ball"Frame 10Symbol 17 MovieClip [ball]
"ball2"Frame 10Symbol 19 MovieClip [ball2]
"ball4"Frame 10Symbol 214 MovieClip
"ball"Frame 11Symbol 17 MovieClip [ball]
"ball2"Frame 11Symbol 19 MovieClip [ball2]
"ball5"Frame 11Symbol 224 MovieClip
"ball"Frame 12Symbol 17 MovieClip [ball]
"ball2"Frame 12Symbol 19 MovieClip [ball2]
"ball5"Frame 12Symbol 224 MovieClip
"teleport"Frame 12Symbol 232 MovieClip
"ball"Frame 13Symbol 17 MovieClip [ball]
"teleport"Frame 13Symbol 232 MovieClip
"teleport4"Frame 13Symbol 232 MovieClip
"teleport3"Frame 13Symbol 232 MovieClip
"teleport2"Frame 13Symbol 232 MovieClip
"ball2"Frame 13Symbol 240 MovieClip
"enemyhealth"Frame 13Symbol 187 MovieClip
"ball"Frame 14Symbol 17 MovieClip [ball]
"ball2"Frame 14Symbol 19 MovieClip [ball2]
"mine6"Frame 14Symbol 258 MovieClip
"mine3"Frame 14Symbol 258 MovieClip
"mine2"Frame 14Symbol 258 MovieClip
"mine1"Frame 14Symbol 258 MovieClip
"mine4"Frame 14Symbol 258 MovieClip
"ball"Frame 15Symbol 17 MovieClip [ball]
"ball2"Frame 15Symbol 19 MovieClip [ball2]
"ball"Frame 16Symbol 17 MovieClip [ball]
"ball2"Frame 16Symbol 19 MovieClip [ball2]
"teleport"Frame 16Symbol 232 MovieClip
"ball4"Frame 16Symbol 214 MovieClip
"ball5"Frame 16Symbol 214 MovieClip
"ball"Frame 17Symbol 17 MovieClip [ball]
"ball2"Frame 17Symbol 19 MovieClip [ball2]
"ball4"Frame 17Symbol 224 MovieClip
"ball5"Frame 17Symbol 224 MovieClip
"ball"Frame 18Symbol 17 MovieClip [ball]
"enemyhealth"Frame 18Symbol 187 MovieClip
"ball2"Frame 18Symbol 291 MovieClip
"ball"Symbol 20 MovieClip [level1] Frame 1Symbol 17 MovieClip [ball]
"ball2"Symbol 20 MovieClip [level1] Frame 1Symbol 19 MovieClip [ball2]

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "hit2"
ExportAssets (56)Timeline Frame 1Symbol 2 as "hit1"
ExportAssets (56)Timeline Frame 1Symbol 3 as "hit3"
ExportAssets (56)Timeline Frame 1Symbol 4 as "hitother"
ExportAssets (56)Timeline Frame 1Symbol 5 as "item3"
ExportAssets (56)Timeline Frame 1Symbol 6 as "item1and2"
ExportAssets (56)Timeline Frame 1Symbol 7 as "explosion1"
ExportAssets (56)Timeline Frame 1Symbol 8 as "done.wav"
ExportAssets (56)Timeline Frame 1Symbol 12 as "notothis1"
ExportAssets (56)Timeline Frame 1Symbol 13 as "decoy1"
ExportAssets (56)Timeline Frame 1Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 1Symbol 20 as "level1"
ExportAssets (56)Timeline Frame 1Symbol 39 as "creditz"
ExportAssets (56)Timeline Frame 1Symbol 41 as "powerup2"
ExportAssets (56)Timeline Frame 1Symbol 43 as "powerup1"
ExportAssets (56)Timeline Frame 1Symbol 43 as "powerup1"
ExportAssets (56)Timeline Frame 1Symbol 41 as "powerup2"
ExportAssets (56)Timeline Frame 1Symbol 66 as "powerup3"
ExportAssets (56)Timeline Frame 1Symbol 67 as "instructions"
ExportAssets (56)Timeline Frame 1Symbol 66 as "powerup3"
ExportAssets (56)Timeline Frame 1Symbol 71 as "enemy1"
ExportAssets (56)Timeline Frame 1Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 1Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 1Symbol 336 as "__Packages.MyTimer"
ExportAssets (56)Timeline Frame 1Symbol 337 as "__Packages.Ball"
ExportAssets (56)Timeline Frame 4Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 4Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 5Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 5Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 6Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 6Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 7Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 7Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 8Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 8Symbol 71 as "enemy1"
ExportAssets (56)Timeline Frame 9Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 9Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 10Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 10Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 11Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 11Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 12Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 12Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 13Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 14Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 14Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 15Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 15Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 16Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 16Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 17Symbol 17 as "ball"
ExportAssets (56)Timeline Frame 17Symbol 19 as "ball2"
ExportAssets (56)Timeline Frame 18Symbol 17 as "ball"

Dynamic Text Variables

musicSymbol 99 EditableText""
musicSymbol 114 EditableText""
musicSymbol 115 EditableText""
musicSymbol 116 EditableText""
musicSymbol 118 EditableText""
musicSymbol 120 EditableText""
musicSymbol 122 EditableText""
lastlevelSymbol 130 EditableText""
highestSymbol 131 EditableText""
thetimerSymbol 139 EditableText""
hpSymbol 143 EditableText"%"
levelSymbol 144 EditableText"%"
pointsSymbol 146 EditableText"%"
hpSymbol 161 EditableText"%"
levelSymbol 162 EditableText"%"
pointsSymbol 164 EditableText"%"
hpSymbol 170 EditableText"%"
levelSymbol 171 EditableText"%"
pointsSymbol 172 EditableText"%"
hpSymbol 174 EditableText"%"
levelSymbol 175 EditableText"%"
pointsSymbol 176 EditableText"%"
hpSymbol 179 EditableText"%"
levelSymbol 180 EditableText"%"
pointsSymbol 181 EditableText"%"
enemyhpSymbol 188 EditableText""
hpSymbol 200 EditableText"%"
levelSymbol 201 EditableText"%"
pointsSymbol 202 EditableText"%"
hpSymbol 208 EditableText"%"
levelSymbol 209 EditableText"%"
pointsSymbol 210 EditableText"%"
thetimerSymbol 215 EditableText""
hpSymbol 219 EditableText"%"
levelSymbol 220 EditableText"%"
pointsSymbol 221 EditableText"%"
hpSymbol 227 EditableText"%"
levelSymbol 228 EditableText"%"
pointsSymbol 229 EditableText"%"
hpSymbol 235 EditableText"%"
levelSymbol 236 EditableText"%"
pointsSymbol 237 EditableText"%"
enemyhpSymbol 242 EditableText""
hpSymbol 245 EditableText"%"
levelSymbol 246 EditableText"%"
pointsSymbol 247 EditableText"%"
hpSymbol 260 EditableText"%"
levelSymbol 261 EditableText"%"
pointsSymbol 262 EditableText"%"
hpSymbol 271 EditableText"%"
levelSymbol 272 EditableText"%"
pointsSymbol 273 EditableText"%"
hpSymbol 276 EditableText"%"
levelSymbol 277 EditableText"%"
pointsSymbol 278 EditableText"%"
hpSymbol 286 EditableText"%"
levelSymbol 287 EditableText"%"
pointsSymbol 288 EditableText"%"
enemyhpSymbol 290 EditableText""
strSymbol 320 EditableText""
hpSymbol 321 EditableText""
unusedSymbol 322 EditableText""
pointsSymbol 324 EditableText""
defenceSymbol 330 EditableText""




http://swfchan.com/14/67518/info.shtml
Created: 11/4 -2019 12:29:26 Last modified: 11/4 -2019 12:29:26 Server time: 16/05 -2024 19:09:33