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

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

Rebound v2.swf

This is the info page for
Flash #28829

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


Text
PAUSED

RESUME GAME

Q

100

%

Root Apex

REBOUD v2

LEVEL MODE

Survival

Click to Shoot
'P' to pause
Dont Get hit Off
the screen

LEVEL: 1

Survive for 20 seconds

LEVEL: 2

Hit the ball off the screen

LEVEL: 3

Collect the items

LEVEL: 4

Double your size

LEVEL: 5

Survive for 60 seconds

LEVEL: 6

Survive for 60 seconds, and collect the items

LEVEL: 7

Protect the ball for 50 seconds

LEVEL: 8

Knock the two balls off screen in 40 seconds

LEVEL: 9

Survive for 120 seconds

LEVEL: 10

Use the ball to collect the items

Game OVER

Try AGAIN?

ConGradulations!

You Won!

REPLAY?

You survived For:

SEconds

ActionScript [AS1/AS2]

Frame 2
function doSomething() { getURL ("http://rootapex.com/", _blank); } stop(); var levels = 1; MENU = new ContextMenu(); MENU.hideBuiltInItems(); Functioned = new ContextMenuItem("Root Apex", doSomething); MENU.customItems.push(Functioned); _root.menu = MENU; music = true; song.stop(); song = new Sound(); song.attachSound("music"); song.start(0, 999); _root.cursor.swapDepths(999); link.onRelease = function () { getURL ("http://rootapex.com/", "blank"); };
Frame 3
var lose = false; var time = 0; var objectnum = 0; var collected = 0; var lives = 3; if (levels == 0) { _root.bgcolor.gotoAndStop(Math.floor(Math.random() * 10)); } _root.createEmptyMovieClip("enemylayer", 990); _root.createEmptyMovieClip("bulletlayer", 991); var pauses = false; nextLevel(true); onEnterFrame = function () { if (level != 0) { if (lives == 0) { _root.gotoAndStop("losescreen"); } } if (Key.isDown(80) && (_root.pauses == false)) { pauses = true; _root.attachMovie("pausemenu", "pausemenu", 993); pausemenu._x = 315.9; pausemenu._y = 154.1; } if (Key.isDown(69) && (Key.isDown(84))) { if (Key.isDown(76) && (Key.isDown(65))) { if (Key.isDown(86) && (Key.isDown(83))) { if ((levels != 10) && (levels != 0)) { if (time >= 1) { nextLevel(false); } } } } } levelsDoneTest(); }; timer = function () { if (_root.pauses == false) { time++; } }; var intervaltimer; intervaltimer = setInterval(timer, 1000); nextLevel = function (reset) { _root.createEmptyMovieClip("enemylayer", 990); _root.createEmptyMovieClip("bulletlayer", 991); _root.generator.powerupnum = 10; if (reset == false) { levels++; } time = 0; objectnum = 0; collected = 0; _root.player.slowrate = 0.9; _root.player.kickback = -1; _root.player.bulletpwr = 4; _root.generator.maxsize = 30; _root.generator.maxspeed = 5; _root.generator.powerupwaitmax = 300; _root.player._rotation = 0; _root.player._width = 50; _root.player._height = _root.player._width; _root.player._x = 325; _root.player._y = 175; _root.bgcolor.gotoAndStop(levels); if (levels == 2) { _root.enemylayer.attachMovie("object", "o1", 9999); _root.enemylayer.o1._x = 425; _root.enemylayer.o1._y = 175; _root.objectnum++; } if (levels == 3) { _root.enemylayer.attachMovie("collectable", "c1", 9990); _root.enemylayer.c1._x = 50; _root.enemylayer.c1._y = 275; _root.enemylayer.attachMovie("collectable", "c2", 9991); _root.enemylayer.c2._x = 600; _root.enemylayer.c2._y = 55; _root.enemylayer.attachMovie("collectable", "c3", 9992); _root.enemylayer.c3._x = 395; _root.enemylayer.c3._y = 275; _root.generator.maxsize = 100; _root.generator.maxspeed = 10; } if (levels == 4) { _root.generator.powerupwaitmax = 150; } if (levels == 5) { _root.generator.maxspeed = 13; _root.generator.maxsize = 150; } if (levels == 6) { _root.enemylayer.attachMovie("collectable", "c1", 9990); _root.enemylayer.c1._x = 45; _root.enemylayer.c1._y = 45; _root.enemylayer.attachMovie("collectable", "c2", 9991); _root.enemylayer.c2._x = 325; _root.enemylayer.c2._y = 45; _root.enemylayer.attachMovie("collectable", "c3", 9992); _root.enemylayer.c3._x = 605; _root.enemylayer.c3._y = 45; _root.enemylayer.attachMovie("collectable", "c4", 9993); _root.enemylayer.c4._x = 45; _root.enemylayer.c4._y = 305; _root.enemylayer.attachMovie("collectable", "c5", 9994); _root.enemylayer.c5._x = 325; _root.enemylayer.c5._y = 305; _root.enemylayer.attachMovie("collectable", "c6", 9995); _root.enemylayer.c6._x = 605; _root.enemylayer.c6._y = 305; _root.generator.maxsize = 50; _root.generator.maxspeed = 10; } if (levels == 7) { _root.enemylayer.attachMovie("object", "o1", 9999); _root.enemylayer.o1._x = 425; _root.enemylayer.o1._y = 175; _root.objectnum++; _root.generator.maxsize = 70; _root.generator.maxspeed = 9; } if (levels == 8) { _root.enemylayer.attachMovie("object", "o1", 9999); _root.enemylayer.o1._x = 425; _root.enemylayer.o1._y = 175; _root.enemylayer.attachMovie("object", "o2", 9998); _root.enemylayer.o2._x = 225; _root.enemylayer.o2._y = 175; _root.objectnum = _root.objectnum + 2; _root.generator.maxsize = 70; } if (levels == 10) { _root.enemylayer.attachMovie("collectable", "c1", 9990); _root.enemylayer.c1._x = 45; _root.enemylayer.c1._y = 45; _root.enemylayer.attachMovie("collectable", "c2", 9991); _root.enemylayer.c2._x = 325; _root.enemylayer.c2._y = 45; _root.enemylayer.attachMovie("collectable", "c3", 9992); _root.enemylayer.c3._x = 605; _root.enemylayer.c3._y = 45; _root.enemylayer.attachMovie("collectable", "c4", 9993); _root.enemylayer.c4._x = 45; _root.enemylayer.c4._y = 305; _root.enemylayer.attachMovie("collectable", "c5", 9994); _root.enemylayer.c5._x = 325; _root.enemylayer.c5._y = 305; _root.enemylayer.attachMovie("collectable", "c6", 9995); _root.enemylayer.c6._x = 605; _root.enemylayer.c6._y = 305; _root.generator.maxsize = 50; _root.generator.maxspeed = 10; _root.enemylayer.attachMovie("object", "o1", 9999); _root.enemylayer.o1._x = 425; _root.enemylayer.o1._y = 175; _root.enemylayer.o1.slowrate = 0.9; _root.objectnum++; } }; levelsDoneTest = function () { if (levels == 1) { if (time == 20) { nextLevel(false); } } if (levels == 2) { if (time > 1) { if (_root.objectnum == 0) { nextLevel(false); } } } if (levels == 3) { if (time > 1) { if (collected == 3) { nextLevel(false); } } } if (levels == 4) { if (time > 1) { if (_root.player._width >= 100) { nextLevel(false); } } } if (levels == 5) { if (time == 60) { nextLevel(false); } } if (levels == 6) { if (time >= 60) { if (collected == 6) { nextLevel(false); } } } if (levels == 7) { if (_root.objectnum == 1) { if (time > 50) { nextLevel(false); } } else { nextLevel(true); } } if (levels == 8) { if (time < 40) { if (_root.objectnum == 0) { nextLevel(false); } } else { nextLevel(true); } } if (levels == 9) { if (time == 120) { nextLevel(false); } } if (levels == 10) { if (_root.objectnum > 0) { if (collected == 6) { gotoAndStop ("winscreen"); } } else { nextLevel(true); } } };
Frame 4
_root.pauses = true; _root.nextLevel(true); _root.lives = 3; _root.bulletlayer.removeMovieClip(); _root.enemylayer.removeMovieClip(); clearInterval(intervaltimer); replaybut.onRelease = function () { _root.bgcolor.gotoAndStop(1); _root.gotoAndStop("startmenu"); }; link.onRelease = function () { getURL ("http://rootapex.com/", "blank"); };
Frame 5
_root.pauses = true; _root.nextLevel(true); _root.lives = 3; _root.bulletlayer.removeMovieClip(); _root.enemylayer.removeMovieClip(); clearInterval(intervaltimer); replaybut.onRelease = function () { _root.bgcolor.gotoAndStop(1); _root.gotoAndStop("startmenu"); };
Frame 6
_root.pauses = true; var ttime = time; _root.nextLevel(true); time = ttime; _root.lives = 3; _root.bulletlayer.removeMovieClip(); _root.enemylayer.removeMovieClip(); clearInterval(intervaltimer); replaybut.onRelease = function () { _root.bgcolor.gotoAndStop(1); _root.gotoAndStop("startmenu"); };
Symbol 5 MovieClip [pwuprofminus] Frame 1
#initclip 19 Object.registerClass("pwuprofminus", powerup); #endinitclip
Symbol 7 MovieClip [pwuprofplus] Frame 1
#initclip 9 Object.registerClass("pwuprofplus", powerup); #endinitclip
Symbol 9 MovieClip [powerupsmall] Frame 1
#initclip 10 Object.registerClass("powerupsmall", powerup); #endinitclip
Symbol 11 MovieClip [powerupbig] Frame 1
#initclip 11 Object.registerClass("powerupbig", powerup); #endinitclip
Symbol 13 MovieClip [object] Frame 1
#initclip 12 Object.registerClass("object", object); #endinitclip
Symbol 15 MovieClip [bullet] Frame 1
#initclip 13 Object.registerClass("bullet", bullet); #endinitclip
Symbol 17 MovieClip [enemy] Frame 1
#initclip 14 Object.registerClass("enemy", orbenemy); #endinitclip
Symbol 21 MovieClip Frame 25
stop();
Symbol 29 MovieClip [pausemenu] Frame 1
musicbut.onRelease = function () { if (_root.music == true) { _root.music = false; _root.song.stop(); } else { _root.music = true; _root.song.start(0, 9999); } }; var q = 3; qualitybut.onRelease = function () { if (q == 3) { q = 2; _quality = "Medium"; } else if (q == 2) { q = 1; _quality = "Low"; } else { q = 3; _quality = "High"; } }; resumebut.onRelease = function () { _root.pauses = false; _root.pausemenu.removeMovieClip(); };
Symbol 32 MovieClip [collectable] Frame 1
#initclip 15 Object.registerClass("collectable", collectable); #endinitclip
Symbol 33 MovieClip [generator] Frame 1
#initclip 16 Object.registerClass("generator", generator); #endinitclip
Symbol 35 MovieClip [Player] Frame 1
#initclip 17 Object.registerClass("Player", player); #endinitclip
Symbol 37 MovieClip [cursor] Frame 1
#initclip 18 Object.registerClass("cursor", cursor); #endinitclip
Symbol 48 MovieClip Frame 1
onLoad = function () { total = _root.getBytesTotal(); }; onEnterFrame = function () { total = _root.getBytesTotal(); loaded = _root.getBytesLoaded(); percent = int((loaded / total) * 100); progresss = ("" + percent) + "%"; mask._xscale = percent; if (loaded >= total) { _root.gotoAndStop("startmenu"); } };
Symbol 128 MovieClip [__Packages.powerup] Frame 0
class powerup extends MovieClip { var _width, removeMovieClip, _x, _y; function powerup () { super(); } function orbenemy() { radius = _width / 2; } function onEnterFrame() { radius = _width / 2; if (_root.pauses == false) { if (collideTest(_root.player)) { _root.player._rotation = 0; if (pwnum == 2) { if (_root.player.radius >= 15) { _root.player._width = _root.player._width - 20; _root.player._height = _root.player._width; _root.player.radius = _root.player._width / 2; if (_root.player.slowrate < 0.9) { _root.player.slowrate = _root.player.slowrate + 0.1; } } } else if (pwnum == 1) { _root.player._width = _root.player._width + 20; _root.player._height = _root.player._width; _root.player.radius = _root.player._width / 2; if (_root.player.slowrate > 0.5) { _root.player.slowrate = _root.player.slowrate - 0.1; } } else if (pwnum == 3) { _root.player.kickback = _root.player.kickback - 0.5; _root.player.bulletpwr = _root.player.bulletpwr + 0.25; } else { if (_root.player.kickback < -1) { _root.player.kickback = _root.player.kickback + 0.5; } if (_root.player.bulletpwr > 3.5) { _root.player.bulletpwr = _root.player.bulletpwr - 0.25; } } removeMovieClip(); } if ((_x + dx) > (645 + radius)) { removeMovieClip(); } if ((_x + dx) < (5 - radius)) { removeMovieClip(); } if ((_y + dy) > (345 + radius)) { removeMovieClip(); } if ((_y + dy) < (5 - radius)) { removeMovieClip(); } _x = _x + dx; _y = _y + dy; } } function collideTest(what) { var _local5 = _x - what._x; var _local3 = _y - what._y; var _local4 = distFormula(_local5, _local3); var _local2 = (_width / 2) + (what._width / 2); if (_local4 < _local2) { return(true); } return(false); } function distFormula(dist1, dist2) { var _local1 = Math.sqrt((dist1 * dist1) + (dist2 * dist2)); return(_local1); } var maxx = 600; var maxy = 300; var dx = 5; var dy = 5; var radius = 0; var pwnum = 1; }
Symbol 129 MovieClip [__Packages.object] Frame 0
class object extends MovieClip { var _width, _x, _y, removeMovieClip; function object () { super(); } function player() { radius = _width / 2; } function onEnterFrame() { if (collideTest(_root.player)) { bounce(this, _root.player); } radius = _width / 2; if (_root.pauses == false) { _x = _x + dx; _y = _y + dy; loseTest(); slow(); } } function slow() { if (dx != 0) { if (Math.abs(dx) > 0.2) { dx = dx * slowrate; } else { dx = 0; } } if (dy != 0) { if (Math.abs(dy) > 0.2) { dy = dy * slowrate; } else { dy = 0; } } } function loseTest() { if ((_x + dx) > (maxx + radius)) { _root.objectnum--; removeMovieClip(); } if ((_x + dx) < (15 - radius)) { _root.objectnum--; removeMovieClip(); } if ((_y + dy) > (maxy + radius)) { _root.objectnum--; removeMovieClip(); } if ((_y + dy) < (15 - radius)) { _root.objectnum--; removeMovieClip(); } } function collideTest(what) { var _local5 = _x - what._x; var _local3 = _y - what._y; var _local4 = distFormula(_local5, _local3); var _local2 = (_width / 2) + (what._width / 2); if (_local4 < _local2) { return(true); } return(false); } function bounce(circle1, circle2) { var _local6 = circle1.radius; var _local5 = circle2.radius; var _local15 = distFormula(circle1.dx, circle1.dy); var _local13 = distFormula(circle2.dx, circle2.dy); var _local22 = circle1._x - circle2._x; var _local21 = circle1._y - circle2._y; var _local12 = Math.atan2(circle1.dy, circle1.dx); var _local11 = Math.atan2(circle2.dy, circle2.dx); var _local2 = Math.atan2(_local21, _local22); var _local18 = Math.cos(_local12 - _local2); var _local17 = Math.cos(_local11 - _local2); var _local20 = Math.sin(_local12 - _local2); var _local19 = Math.sin(_local11 - _local2); var _local16 = _local15 * _local18; var _local14 = _local13 * _local17; var _local8 = _local15 * _local20; var _local7 = _local13 * _local19; var _local10 = (((_local6 - _local5) * _local16) + ((_local5 + _local5) * _local14)) / (_local6 + _local5); var _local9 = (((_local6 + _local6) * _local16) + ((_local5 - _local6) * _local14)) / (_local6 + _local5); circle1.dx = (Math.cos(_local2) * _local10) + (Math.cos(_local2 + (Math.PI/2)) * _local8); circle1.dy = (Math.sin(_local2) * _local10) + (Math.sin(_local2 + (Math.PI/2)) * _local8); circle2.dx = (Math.cos(_local2) * _local9) + (Math.cos(_local2 + (Math.PI/2)) * _local7); circle2.dy = (Math.sin(_local2) * _local9) + (Math.sin(_local2 + (Math.PI/2)) * _local7); circle2._x = circle2._x + circle2.dx; circle2._y = circle2._y + circle2.dy; circle1._x = circle1._x + circle1.dx; circle1._y = circle1._y + circle1.dy; } function distFormula(dist1, dist2) { var _local1 = Math.sqrt((dist1 * dist1) + (dist2 * dist2)); return(_local1); } var slowrate = 0.7; var maxx = 615; var maxy = 315; var dx = 0; var dy = 0; var radius = 0; }
Symbol 130 MovieClip [__Packages.bullet] Frame 0
class bullet extends MovieClip { var _width, _rotation, _x, _y, removeMovieClip; function bullet () { super(); mass = (_width / 2) * strength; radius = _width / 2; } function onEnterFrame() { if (_root.pauses == false) { if ((dx == 0) && (dy == 0)) { dx = speed * Math.sin((Math.PI/180) * _rotation); dy = (-speed) * Math.cos((Math.PI/180) * _rotation); } gone(); hitEnemies(); hitObjects(); _x = _x + dx; _y = _y + dy; } } function gone() { if ((_x + dx) > (maxx + radius)) { removeMovieClip(); } if ((_x + dx) < (25 + radius)) { removeMovieClip(); } if ((_y + dy) > (maxy - radius)) { removeMovieClip(); } if ((_y + dy) < (25 + radius)) { removeMovieClip(); } } function collideTest(what) { var _local5 = _x - what._x; var _local3 = _y - what._y; var _local4 = distFormula(_local5, _local3); var _local2 = (_width / 2) + (what._width / 2); if (_local4 < _local2) { return(true); } return(false); } function hitEnemies() { var _local4 = 0; while (_local4 <= 8) { var _local3 = "e" + _local4; if (collideTest(_root.enemylayer[_local3])) { bounce(this, _root.enemylayer[_local3]); _root.enemylayer[_local3]._x = _root.enemylayer[_local3]._x + _root.enemylayer[_local3].dx; _root.enemylayer[_local3]._y = _root.enemylayer[_local3]._y + _root.enemylayer[_local3].dy; _x = _x + dx; _y = _y + dy; } _local4++; } } function hitObjects() { var _local4 = 0; while (_local4 <= 2) { var _local3 = "o" + _local4; if (collideTest(_root.enemylayer[_local3])) { bounce(this, _root.enemylayer[_local3]); _root.enemylayer[_local3]._x = _root.enemylayer[_local3]._x + _root.enemylayer[_local3].dx; _root.enemylayer[_local3]._y = _root.enemylayer[_local3]._y + _root.enemylayer[_local3].dy; _x = _x + dx; _y = _y + dy; } _local4++; } } function bounce(circle1, circle2) { var _local6 = circle1.radius; var _local5 = circle2.radius; var _local15 = distFormula(circle1.dx, circle1.dy); var _local13 = distFormula(circle2.dx, circle2.dy); var _local22 = circle1._x - circle2._x; var _local21 = circle1._y - circle2._y; var _local12 = Math.atan2(circle1.dy, circle1.dx); var _local11 = Math.atan2(circle2.dy, circle2.dx); var _local2 = Math.atan2(_local21, _local22); var _local18 = Math.cos(_local12 - _local2); var _local17 = Math.cos(_local11 - _local2); var _local20 = Math.sin(_local12 - _local2); var _local19 = Math.sin(_local11 - _local2); var _local16 = _local15 * _local18; var _local14 = _local13 * _local17; var _local8 = _local15 * _local20; var _local7 = _local13 * _local19; var _local10 = (((_local6 - _local5) * _local16) + ((_local5 + _local5) * _local14)) / (_local6 + _local5); var _local9 = (((_local6 + _local6) * _local16) + ((_local5 - _local6) * _local14)) / (_local6 + _local5); circle1.dx = (Math.cos(_local2) * _local10) + (Math.cos(_local2 + (Math.PI/2)) * _local8); circle1.dy = (Math.sin(_local2) * _local10) + (Math.sin(_local2 + (Math.PI/2)) * _local8); circle2.dx = (Math.cos(_local2) * _local9) + (Math.cos(_local2 + (Math.PI/2)) * _local7); circle2.dy = (Math.sin(_local2) * _local9) + (Math.sin(_local2 + (Math.PI/2)) * _local7); } function distFormula(dist1, dist2) { var _local1 = Math.sqrt((dist1 * dist1) + (dist2 * dist2)); return(_local1); } var maxx = 625; var maxy = 325; var radius = 0; var speed = 7.5; var dx = 0; var dy = 0; var mass = 100; var strength = 4; }
Symbol 131 MovieClip [__Packages.orbenemy] Frame 0
class orbenemy extends MovieClip { var _width, _x, removeMovieClip, _y; function orbenemy () { super(); radius = _width / 2; } function onEnterFrame() { radius = _width / 2; if (_root.pauses == false) { if (collideTest(_root.player)) { bounce(this, _root.player); } var _local3 = 0; while (_local3 <= 2) { var _local4 = "o" + _local3; if (collideTest(_root.enemylayer[_local4])) { bounce(this, _root.enemylayer[_local4]); } _local3++; } if ((_x + dx) > (645 + radius)) { removeMovieClip(); } if ((_x + dx) < (5 - radius)) { removeMovieClip(); } if ((_y + dy) > (345 + radius)) { removeMovieClip(); } if ((_y + dy) < (5 - radius)) { removeMovieClip(); } _x = _x + dx; _y = _y + dy; } } function collideTest(what) { var _local3 = _x - what._x; var _local2 = _y - what._y; var _local5 = distFormula(_local3, _local2); var _local4 = (_width / 2) + (what._width / 2); if (_local5 < _local4) { _x = _x + ((radius / 2) * Math.cos(Math.atan2(_local2, _local3))); _y = _y + ((radius / 2) * Math.sin(Math.atan2(_local2, _local3))); return(true); } return(false); } function bounce(circle1, circle2) { var _local6 = circle1.radius; var _local5 = circle2.radius; var _local15 = distFormula(circle1.dx, circle1.dy); var _local13 = distFormula(circle2.dx, circle2.dy); var _local22 = circle1._x - circle2._x; var _local21 = circle1._y - circle2._y; var _local12 = Math.atan2(circle1.dy, circle1.dx); var _local11 = Math.atan2(circle2.dy, circle2.dx); var _local2 = Math.atan2(_local21, _local22); var _local18 = Math.cos(_local12 - _local2); var _local17 = Math.cos(_local11 - _local2); var _local20 = Math.sin(_local12 - _local2); var _local19 = Math.sin(_local11 - _local2); var _local16 = _local15 * _local18; var _local14 = _local13 * _local17; var _local8 = _local15 * _local20; var _local7 = _local13 * _local19; var _local10 = (((_local6 - _local5) * _local16) + ((_local5 + _local5) * _local14)) / (_local6 + _local5); var _local9 = (((_local6 + _local6) * _local16) + ((_local5 - _local6) * _local14)) / (_local6 + _local5); circle1.dx = (Math.cos(_local2) * _local10) + (Math.cos(_local2 + (Math.PI/2)) * _local8); circle1.dy = (Math.sin(_local2) * _local10) + (Math.sin(_local2 + (Math.PI/2)) * _local8); circle2.dx = (Math.cos(_local2) * _local9) + (Math.cos(_local2 + (Math.PI/2)) * _local7); circle2.dy = (Math.sin(_local2) * _local9) + (Math.sin(_local2 + (Math.PI/2)) * _local7); } function distFormula(dist1, dist2) { var _local1 = Math.sqrt((dist1 * dist1) + (dist2 * dist2)); return(_local1); } var maxx = 600; var maxy = 300; var dx = 5; var dy = 5; var radius = 0; }
Symbol 132 MovieClip [__Packages.collectable] Frame 0
class collectable extends MovieClip { var _width, removeMovieClip, _x, _y; function collectable () { super(); } function player() { radius = _width / 2; } function onEnterFrame() { if (_root.levels == 10) { if (collideTest(_root.enemylayer.o1)) { _root.collected++; removeMovieClip(); } } else if (collideTest(_root.player)) { _root.collected++; removeMovieClip(); } radius = _width / 2; if (_root.pauses == false) { } } function collideTest(what) { var _local5 = _x - what._x; var _local3 = _y - what._y; var _local4 = distFormula(_local5, _local3); var _local2 = (_width / 2) + (what._width / 2); if (_local4 < _local2) { return(true); } return(false); } function distFormula(dist1, dist2) { var _local1 = Math.sqrt((dist1 * dist1) + (dist2 * dist2)); return(_local1); } var maxx = 600; var maxy = 300; var dx = 0; var dy = 0; var radius = 0; }
Symbol 133 MovieClip [__Packages.generator] Frame 0
class generator extends MovieClip { function generator () { super(); } function onEnterFrame() { if (_root.pauses == false) { if (wait == 0) { if (enemynum < enemymax) { var _local3 = 0; while (_local3 <= enemymax) { var _local4 = "e" + _local3; if (_root.enemylayer[_local4]._x == undefined) { enum = _local3; createEnemy(); break; } _local3++; } } } else { wait++; wait = wait % 40; } if (powerupwait == 0) { createPowerup(); } else { powerupwait++; powerupwait = powerupwait % powerupwaitmax; } maxsize = maxsize + 0.045; maxspeed = maxspeed + 0.005; minspeed = minspeed + 0.0002; maxyspeed = maxyspeed + 0.0003; } } function createPowerup() { var _local3 = "p" + powerupnum; var _local4 = Math.random(); if (_local4 < 0.25) { _root.enemylayer.attachMovie("powerupbig", _local3, powerupnum); _root.enemylayer[_local3].pwnum = 1; } else if ((_local4 > 0.25) && (_local4 < 0.5)) { _root.enemylayer.attachMovie("powerupsmall", _local3, powerupnum); _root.enemylayer[_local3].pwnum = 2; } else if ((_local4 > 0.5) && (_local4 < 0.75)) { _root.enemylayer.attachMovie("pwuprofplus", _local3, powerupnum); _root.enemylayer[_local3].pwnum = 3; } else { _root.enemylayer.attachMovie("pwuprofminus", _local3, powerupnum); _root.enemylayer[_local3].pwnum = 4; } if (Math.random() < 0.5) { _root.enemylayer[_local3]._x = 5; _root.enemylayer[_local3].dx = Math.floor(minspeed + (Math.random() * 2)); } else { _root.enemylayer[_local3]._x = 645; _root.enemylayer[_local3].dx = Math.floor(minspeed + (Math.random() * -2)); } if (Math.random() < 0.5) { _root.enemylayer[_local3].dy = Math.floor(minspeed + (Math.random() * 2)); } else { _root.enemylayer[_local3].dy = Math.floor(minspeed + (Math.random() * -2)); } _root.enemylayer[_local3]._y = Math.floor(Math.random() * 240) + 30; _root.enemylayer[_local3].radius = _root.enemylayer[_local3]._width / 2; powerupnum++; powerupwait = 1; powerupwait = powerupwait + Math.floor(Math.random() * powerupwaitmax); } function createEnemy() { var _local3 = "e" + enum; _root.enemylayer.attachMovie("enemy", _local3, enum); _root.enemylayer[_local3]._width = Math.floor(minsize + (Math.random() * (maxsize - minsize))); _root.enemylayer[_local3]._height = _root.enemylayer[_local3]._width; if (Math.random() < 0.5) { _root.enemylayer[_local3]._x = 5; _root.enemylayer[_local3].dx = Math.floor(minspeed + (Math.random() * (maxspeed - minspeed))); } else { _root.enemylayer[_local3]._x = 645; _root.enemylayer[_local3].dx = Math.floor((minspeed + (Math.random() * (maxspeed - minspeed))) * -1); } if (Math.random() < 0.5) { _root.enemylayer[_local3].dy = Math.floor(minspeed + (Math.random() * (maxyspeed - minspeed))); } else { _root.enemylayer[_local3].dy = Math.floor(minspeed + (Math.random() * (maxyspeed - minspeed))) * -1; } _root.enemylayer[_local3]._y = Math.floor(Math.random() * 240) + 30; _root.enemylayer[_local3].radius = _root.enemylayer[_local3]._width / 2; _root.enemynum++; wait = 1; wait = wait + Math.floor(Math.random() * 35); } var maxsize = 30; var minsize = 20; var maxspeed = 5; var minspeed = 1; var maxyspeed = 2; var enemynum = 0; var enum = 0; var enemymax = 8; var wait = 39; var powerupnum = 10; var powerupwait = 1; var powerupwaitmax = 300; }
Symbol 134 MovieClip [__Packages.player] Frame 0
class player extends MovieClip { var _width, _rotation, _y, _x; function player () { super(); radius = _width / 2; } function onEnterFrame() { if (_root.pauses == false) { if (firerate != 0) { firerate++; firerate = firerate % 5; } else if (firing == true) { firerate = 1; fire(); } _rotation = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 57.2957795130823; _x = _x + dx; _y = _y + dy; loseTest(); slow(); } } function onMouseDown() { firing = true; } function onMouseUp() { firing = false; } function slow() { if (dx != 0) { if (Math.abs(dx) > 0.2) { dx = dx * slowrate; } else { dx = 0; } } if (dy != 0) { if (Math.abs(dy) > 0.2) { dy = dy * slowrate; } else { dy = 0; } } } function loseTest() { if (_root.levels == 0) { if ((_x + dx) > (maxx + radius)) { _root.gotoAndStop("survived"); } if ((_x + dx) < (25 - radius)) { _root.gotoAndStop("survived"); } if ((_y + dy) > (maxy + radius)) { _root.gotoAndStop("survived"); } if ((_y + dy) < (25 - radius)) { _root.gotoAndStop("survived"); } } else { if ((_x + dx) > (maxx + radius)) { _root.nextLevel(true); } if ((_x + dx) < (25 - radius)) { _root.nextLevel(true); } if ((_y + dy) > (maxy + radius)) { _root.nextLevel(true); } if ((_y + dy) < (25 - radius)) { _root.nextLevel(true); } } } function fire() { createBullet(_rotation); var _local2 = new Sound(); _local2.attachSound("shot"); _local2.start(0, 1); dx = dx + (kickback * Math.cos((Math.PI/180) * _rotation)); dy = dy + (kickback * Math.sin((Math.PI/180) * _rotation)); } function createBullet(rot) { var _local3 = "b" + bulletnum; _root.bulletlayer.attachMovie("bullet", _local3, 1 + bulletnum); _root.bulletlayer[_local3]._x = _x + (radius * Math.cos((Math.PI/180) * _rotation)); _root.bulletlayer[_local3]._y = _y + (radius * Math.sin((Math.PI/180) * _rotation)); _root.bulletlayer[_local3]._rotation = rot + 90; _root.bulletlayer[_local3].strength = bulletpwr; bulletnum++; } var slowrate = 0.9; var firerate = 0; var firing = false; var range = 300; var bulletnum = 0; var maxx = 625; var maxy = 325; var dx = 0; var dy = 0; var kickback = -1; var bulletpwr = 4; var radius = 0; }
Symbol 135 MovieClip [__Packages.cursor] Frame 0
class cursor extends MovieClip { var _x, _y; function cursor () { super(); } function onEnterFrame() { Mouse.hide(); _x = _root._xmouse; _y = _root._ymouse; } }
Symbol 59 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 25
stop(); play1but.onRelease = function () { _root.levels = 1; _root.gotoAndStop("game"); }; play2but.onRelease = function () { _root.levels = 0; _root.gotoAndStop("game"); };
Symbol 77 MovieClip Frame 180
stop();
Symbol 82 MovieClip Frame 90
stop();
Symbol 86 MovieClip Frame 90
stop();
Symbol 90 MovieClip Frame 90
stop();
Symbol 94 MovieClip Frame 90
stop();
Symbol 98 MovieClip Frame 90
stop();
Symbol 102 MovieClip Frame 90
stop();
Symbol 106 MovieClip Frame 90
stop();
Symbol 110 MovieClip Frame 90
stop();
Symbol 114 MovieClip Frame 90
stop();
Symbol 118 MovieClip Frame 90
stop();
Symbol 119 MovieClip Frame 1
stop(); onEnterFrame = function () { var _local2 = _root.levels + 1; gotoAndStop(_local2); };

Library Items

Symbol 1 Sound [shot]
Symbol 2 Sound [music]
Symbol 3 GraphicUsed by:5
Symbol 4 GraphicUsed by:5 7 9 11 13 16 21 35 73
Symbol 5 MovieClip [pwuprofminus]Uses:3 4
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip [pwuprofplus]Uses:6 4
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip [powerupsmall]Uses:8 4
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip [powerupbig]Uses:10 4
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [object]Uses:12 4
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [bullet]Uses:14
Symbol 16 MovieClipUses:4Used by:17
Symbol 17 MovieClip [enemy]Uses:16
Symbol 18 ShapeTweeningUsed by:21
Symbol 19 ShapeTweeningUsed by:21
Symbol 20 ShapeTweeningUsed by:21
Symbol 21 MovieClipUses:18 19 20 4Used by:29
Symbol 22 GraphicUsed by:29
Symbol 23 FontUsed by:24 25 26 71 72 75 120 121 122 123 124 125 126 127
Symbol 24 TextUses:23Used by:29
Symbol 25 TextUses:23Used by:29
Symbol 26 TextUses:23Used by:29
Symbol 27 GraphicUsed by:28 48
Symbol 28 ButtonUses:27Used by:29 73  Timeline
Symbol 29 MovieClip [pausemenu]Uses:21 22 24 25 26 28
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:32
Symbol 32 MovieClip [collectable]Uses:31
Symbol 33 MovieClip [generator]Used by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip [Player]Uses:34 4Used by:Timeline
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip [cursor]Uses:36Used by:Timeline
Symbol 38 GraphicUsed by:41 43
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:41
Symbol 41 MovieClipUses:38 40Used by:48  Timeline
Symbol 42 GraphicUsed by:48
Symbol 43 MovieClipUses:38Used by:48
Symbol 44 FontUsed by:45
Symbol 45 EditableTextUses:44Used by:48
Symbol 46 FontUsed by:47
Symbol 47 TextUses:46Used by:48
Symbol 48 MovieClipUses:41 42 43 27 45 47Used by:Timeline
Symbol 128 MovieClip [__Packages.powerup]
Symbol 129 MovieClip [__Packages.object]
Symbol 130 MovieClip [__Packages.bullet]
Symbol 131 MovieClip [__Packages.orbenemy]
Symbol 132 MovieClip [__Packages.collectable]
Symbol 133 MovieClip [__Packages.generator]
Symbol 134 MovieClip [__Packages.player]
Symbol 135 MovieClip [__Packages.cursor]
Symbol 49 GraphicUsed by:59
Symbol 50 GraphicUsed by:59
Symbol 51 GraphicUsed by:59
Symbol 52 GraphicUsed by:59
Symbol 53 GraphicUsed by:59
Symbol 54 GraphicUsed by:59
Symbol 55 GraphicUsed by:59
Symbol 56 GraphicUsed by:59
Symbol 57 GraphicUsed by:59
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:49 50 51 52 53 54 55 56 57 58Used by:Timeline
Symbol 60 GraphicUsed by:64
Symbol 61 FontUsed by:62
Symbol 62 TextUses:61Used by:64
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:60 62 63Used by:Timeline
Symbol 65 ShapeTweeningUsed by:73
Symbol 66 FontUsed by:67
Symbol 67 TextUses:66Used by:68
Symbol 68 MovieClipUses:67Used by:73
Symbol 69 ShapeTweeningUsed by:73
Symbol 70 ShapeTweeningUsed by:73
Symbol 71 TextUses:23Used by:73
Symbol 72 TextUses:23Used by:73
Symbol 73 MovieClipUses:65 68 69 70 4 71 72 28Used by:Timeline
Symbol 74 GraphicUsed by:Timeline
Symbol 75 TextUses:23Used by:76
Symbol 76 MovieClipUses:75Used by:77
Symbol 77 MovieClipUses:76Used by:Timeline
Symbol 78 FontUsed by:79 80 83 84 87 88 91 92 95 96 99 100 103 104 107 108 111 112 115 116
Symbol 79 TextUses:78Used by:81
Symbol 80 TextUses:78Used by:81
Symbol 81 MovieClipUses:79 80Used by:82
Symbol 82 MovieClipUses:81Used by:119
Symbol 83 TextUses:78Used by:85
Symbol 84 TextUses:78Used by:85
Symbol 85 MovieClipUses:83 84Used by:86
Symbol 86 MovieClipUses:85Used by:119
Symbol 87 TextUses:78Used by:89
Symbol 88 TextUses:78Used by:89
Symbol 89 MovieClipUses:87 88Used by:90
Symbol 90 MovieClipUses:89Used by:119
Symbol 91 TextUses:78Used by:93
Symbol 92 TextUses:78Used by:93
Symbol 93 MovieClipUses:91 92Used by:94
Symbol 94 MovieClipUses:93Used by:119
Symbol 95 TextUses:78Used by:97
Symbol 96 TextUses:78Used by:97
Symbol 97 MovieClipUses:95 96Used by:98
Symbol 98 MovieClipUses:97Used by:119
Symbol 99 TextUses:78Used by:101
Symbol 100 TextUses:78Used by:101
Symbol 101 MovieClipUses:99 100Used by:102
Symbol 102 MovieClipUses:101Used by:119
Symbol 103 TextUses:78Used by:105
Symbol 104 TextUses:78Used by:105
Symbol 105 MovieClipUses:103 104Used by:106
Symbol 106 MovieClipUses:105Used by:119
Symbol 107 TextUses:78Used by:109
Symbol 108 TextUses:78Used by:109
Symbol 109 MovieClipUses:107 108Used by:110
Symbol 110 MovieClipUses:109Used by:119
Symbol 111 TextUses:78Used by:113
Symbol 112 TextUses:78Used by:113
Symbol 113 MovieClipUses:111 112Used by:114
Symbol 114 MovieClipUses:113Used by:119
Symbol 115 TextUses:78Used by:117
Symbol 116 TextUses:78Used by:117
Symbol 117 MovieClipUses:115 116Used by:118
Symbol 118 MovieClipUses:117Used by:119
Symbol 119 MovieClipUses:82 86 90 94 98 102 106 110 114 118Used by:Timeline
Symbol 120 TextUses:23Used by:Timeline
Symbol 121 TextUses:23Used by:Timeline
Symbol 122 TextUses:23Used by:Timeline
Symbol 123 TextUses:23Used by:Timeline
Symbol 124 TextUses:23Used by:Timeline
Symbol 125 TextUses:23Used by:Timeline
Symbol 126 EditableTextUses:23Used by:Timeline
Symbol 127 TextUses:23Used by:Timeline

Instance Names

"bgcolor"Frame 2Symbol 59 MovieClip
"link"Frame 2Symbol 64 MovieClip
"cursor"Frame 2Symbol 37 MovieClip [cursor]
"player"Frame 3Symbol 35 MovieClip [Player]
"generator"Frame 3Symbol 33 MovieClip [generator]
"levelnum"Frame 3Symbol 119 MovieClip
"replaybut"Frame 4Symbol 28 Button
"replaybut"Frame 5Symbol 28 Button
"timertext"Frame 6Symbol 126 EditableText
"replaybut"Frame 6Symbol 28 Button
"inem"Symbol 17 MovieClip [enemy] Frame 1Symbol 16 MovieClip
"resumebut"Symbol 29 MovieClip [pausemenu] Frame 1Symbol 28 Button
"musicbut"Symbol 29 MovieClip [pausemenu] Frame 1Symbol 28 Button
"qualitybut"Symbol 29 MovieClip [pausemenu] Frame 1Symbol 28 Button
"mask"Symbol 48 MovieClip Frame 1Symbol 43 MovieClip
"percent_txt"Symbol 48 MovieClip Frame 1Symbol 45 EditableText
"play2but"Symbol 73 MovieClip Frame 25Symbol 28 Button
"play1but"Symbol 73 MovieClip Frame 25Symbol 28 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "shot"
ExportAssets (56)Timeline Frame 1Symbol 2 as "music"
ExportAssets (56)Timeline Frame 1Symbol 5 as "pwuprofminus"
ExportAssets (56)Timeline Frame 1Symbol 7 as "pwuprofplus"
ExportAssets (56)Timeline Frame 1Symbol 9 as "powerupsmall"
ExportAssets (56)Timeline Frame 1Symbol 11 as "powerupbig"
ExportAssets (56)Timeline Frame 1Symbol 13 as "object"
ExportAssets (56)Timeline Frame 1Symbol 15 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 17 as "enemy"
ExportAssets (56)Timeline Frame 1Symbol 29 as "pausemenu"
ExportAssets (56)Timeline Frame 1Symbol 32 as "collectable"
ExportAssets (56)Timeline Frame 1Symbol 33 as "generator"
ExportAssets (56)Timeline Frame 1Symbol 35 as "Player"
ExportAssets (56)Timeline Frame 1Symbol 37 as "cursor"
ExportAssets (56)Timeline Frame 1Symbol 128 as "__Packages.powerup"
ExportAssets (56)Timeline Frame 1Symbol 129 as "__Packages.object"
ExportAssets (56)Timeline Frame 1Symbol 130 as "__Packages.bullet"
ExportAssets (56)Timeline Frame 1Symbol 131 as "__Packages.orbenemy"
ExportAssets (56)Timeline Frame 1Symbol 132 as "__Packages.collectable"
ExportAssets (56)Timeline Frame 1Symbol 133 as "__Packages.generator"
ExportAssets (56)Timeline Frame 1Symbol 134 as "__Packages.player"
ExportAssets (56)Timeline Frame 1Symbol 135 as "__Packages.cursor"

Labels

"preloader"Frame 1
"startmenu"Frame 2
"game"Frame 3
"losescreen"Frame 4
"winscreen"Frame 5
"survived"Frame 6

Dynamic Text Variables

percentSymbol 45 EditableText"100"
timeSymbol 126 EditableText""




http://swfchan.com/6/28829/info.shtml
Created: 20/5 -2019 05:45:45 Last modified: 20/5 -2019 05:45:45 Server time: 22/12 -2024 12:50:34