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

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

Entball.swf

This is the info page for
Flash #29879

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


Text
Made by Papermoth Games. Presented by www.albinoblacksheep.com

play/menu

score

best_score

last_score

Entball - controll with curser left and right.

Killball - Avoid the Killball at all costs.

Spawnerball - catch the Spawnerball before it spawns.

Growball - The Growball will make Entball bigger.

Slowball - The Slowball makes Entball temporarily slow.

Zoomball - The Zoomball makes Entball temporarily faster.

Entball - rules

Rushball - Rushball makes Entball permanently faster.

ActionScript [AS1/AS2]

Frame 121
gotoAndStop ("instructions"); function spawnball(linkname, xp, yp) { duplicateMovieClip ("objectnull", "obj" + objcount, 1000 + objcount); _root["obj" + objcount].attachMovie(linkname, "att", 1); objcount++; return(objcount - 1); } function initobject(id, xp, yp) { _root["obj" + id].pos[0] = xp; _root["obj" + id].pos[1] = yp; trace("yup"); } function initgame() { trace("initgame"); objcount = 0; _root.score = 0; _root.spawnball("entball_link"); _global.ent = _root.obj0; _root.spawnball("killball_link"); _root.spawnball("spawnerball_link"); _global.spawner = _root.obj2; } function removeballs() { var _local2 = 0; while (_local2 < objcount) { removeMovieClip(_root["obj" + _local2]); _local2++; } trace("removeBalls"); objcount = 0; } function gameover() { removeballs(); _root.lastscore = _root.score; if (_root.score > _root.bestscore) { _root.bestscore = score; } _root.newgame(); } function newgame() { trace("newgame"); initgame(); _root.gotoAndPlay("lp"); } _global.ball_init_radius = 8; _global.ball_init_speed = 1.7; _global.killball_grow_speed = 0.001; _global.turn_angle = 0.1; _global.spawn_frequency = 250; _global.zoomball_mod_amount = 4; _global.slowball_mod_amount = 4; _global.mod_fade_rate = 50; _global.sizeball_mod_amount = 2; _global.speedball_amount = 0.1; _global.ENTBALL = 0; _global.KILLBALL = 1; _global.SPAWNERBALL = 2; _global.ZOOMBALL = 3; _global.SLOWBALL = 4; _global.POWERUP_SHIELD = 100; _global.POWERUP_TELEPORT = 101; _global.objcount = 0; _root.bestscore = new Number(0); _root.lastscore = new Number(0); _root.score = new Number(0); var _root.score_readout:Object = "score:"; var _root.lastscore_readout:Object = "last score:"; var _root.bestscore_readout:Object = "best score:"; var _root.menutoggle:Boolean = false;
Instance of Symbol 3 MovieClip "objectnull" in Frame 121
onClipEvent (load) { function ballbehaviour() { pos[0] = pos[0] + (vel[0] * (speed * speedmod)); pos[1] = pos[1] + (vel[1] * (speed * speedmod)); boundarycollision(); projecttoworld(); } function boundarycollision() { if (pos[0] < radius) { pos[0] = radius; vel[0] = -vel[0]; } if (pos[0] > (_root.world._width - radius)) { pos[0] = _root.world._width - radius; vel[0] = -vel[0]; } if (pos[1] < radius) { pos[1] = radius; vel[1] = -vel[1]; } if (pos[1] > (_root.world._height - radius)) { pos[1] = _root.world._height - radius; vel[1] = -vel[1]; } } function projecttoworld() { _x = (pos[0] + _root.world._x); _y = (pos[1] + _root.world._y); } function ballcollision(other) { var _local1 = new Array(); var _local3 = new Number(); var _local2 = new Boolean(); _local2 = false; _local1[0] = pos[0] - other.pos[0]; _local1[1] = pos[1] - other.pos[1]; _local3 = Math.sqrt(Math.abs(_local1[0] * _local1[0]) + Math.abs(_local1[1] * _local1[1])); var _local5 = radius + other.radius; if (_local3 < _local5) { _local2 = true; } return(_local2); } function respawn() { var _local2 = Math.random(); if (_local2 < 0.5) { pos[0] = (Math.random() * (_root.world._width - (radius * 2))) + radius; pos[1] = 0; } else { pos[0] = 0; pos[1] = (Math.random() * (_root.world._height - (radius * 2))) + radius; } } var pos = new Array(); var speed = new Number(); speed = ball_init_speed; var speedmod = new Number(); speedmod = 1; pos[0] = _root.world._x + (_root.world._width / 2); pos[1] = _root.world._y + (_root.world._height / 2); var bearing = new Number(); bearing = Math.random() * 60; vel = new Array(); vel[0] = Math.sin(bearing) * speed; vel[1] = Math.cos(bearing) * speed; var radius = new Number(); radius = ball_init_radius; }
Instance of Symbol 3 MovieClip in Frame 121
onClipEvent (load) { _root.initgame(); } onClipEvent (enterFrame) { _root.score_readout = "score: " + _root.score; _root.bestscore_readout = "best score: " + _root.bestscore; _root.lastscore_readout = "last score: " + _root.lastscore; }
Frame 125
gotoAndPlay ("lp");
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [sizeball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { pp.respawn(); ent.radius = ent.radius + 1; ent._width = ent.radius * sizeball_mod_amount; ent._height = ent.radius * sizeball_mod_amount; } pp.ballbehaviour(); } pp = _parent._parent; ent = _root.obj0; var age = new Number(); age = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.speed = Math.random() * ball_init_speed; pp.pos[0] = spawner.pos[0]; pp.pos[1] = spawner.pos[1]; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip in Symbol 7 MovieClip [slowball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { pp.respawn(); ent.speedmod = ent.speedmod - slowball_mod_amount; if (ent.speedmod < 0) { ent.speedmod = 0; } } pp.ballbehaviour(); } pp = _parent._parent; ent = _root.obj0; var age = new Number(); age = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.speed = Math.random() * ball_init_speed; pp.pos[0] = spawner.pos[0]; pp.pos[1] = spawner.pos[1]; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip in Symbol 10 MovieClip [speedball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { pp.respawn(); ent.speed = ent.speed + speedball_amount; } pp.ballbehaviour(); } pp = _parent._parent; ent = _root.obj0; var age = new Number(); age = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.speed = Math.random() * ball_init_speed; pp.pos[0] = spawner.pos[0]; pp.pos[1] = spawner.pos[1]; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip in Symbol 13 MovieClip [zoomball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { pp.respawn(); ent.speedmod = ent.speedmod + zoomball_mod_amount; } pp.ballbehaviour(); } pp = _parent._parent; ent = _root.obj0; var age = new Number(); age = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.speed = Math.random() * ball_init_speed; pp.pos[0] = spawner.pos[0]; pp.pos[1] = spawner.pos[1]; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip in Symbol 16 MovieClip [killball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { _root.gameover(); } pp.ballbehaviour(); grow(); } function grow() { pp.radius = pp.radius + killball_grow_speed; pp._width = pp.radius * 2; pp._height = pp.radius * 2; } pp = _parent._parent; ent = _root.obj0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.pos[0] = 10; pp.pos[1] = 10; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip "codenull" in Symbol 19 MovieClip [entball_link] Frame 1
onClipEvent (load) { function update() { pp.ballbehaviour(); keypresses(); pp.speedmod = pp.speedmod - ((pp.speedmod - pp.speed) / mod_fade_rate); } function keypresses() { if (Key.isDown(39)) { pp.bearing = Math.atan2(pp.vel[0], pp.vel[1]); pp.bearing = pp.bearing - turn_angle; pp.vel[0] = Math.sin(pp.bearing) * pp.speed; pp.vel[1] = Math.cos(pp.bearing) * pp.speed; } if (Key.isDown(37)) { pp.bearing = Math.atan2(pp.vel[0], pp.vel[1]); pp.bearing = pp.bearing + turn_angle; pp.vel[0] = Math.sin(pp.bearing) * pp.speed; pp.vel[1] = Math.cos(pp.bearing) * pp.speed; } } pp = _parent._parent; var speedmod = new Number(); speedmod = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; } onClipEvent (enterFrame) { update(); }
Instance of Symbol 3 MovieClip in Symbol 22 MovieClip [spawnerball_link] Frame 1
onClipEvent (load) { function update() { if (pp.ballcollision(ent)) { pp.respawn(); pp.speed = Math.random() * ball_init_speed; _root.score++; age = 0; } age++; if (age > spawn_frequency) { var _local2 = random(4); if (_local2 == 0) { _root.spawnball("zoomball_link", pp.pos[0], pp.pos[1]); } if (_local2 == 1) { _root.spawnball("sizeball_link", pp.pos[0], pp.pos[1]); } if (_local2 == 2) { _root.spawnball("slowball_link", pp.pos[0], pp.pos[1]); } if (_local2 == 3) { _root.spawnball("speedball_link", pp.pos[0], pp.pos[1]); } age = 0; } pp.ballbehaviour(); } pp = _parent._parent; var age = new Number(); age = 0; pp._width = pp.radius * 2; pp._height = pp.radius * 2; pp.respawn(); pp.pos[0] = Math.sin(pp.bearing) * pp.speed; pp.pos[1] = Math.cos(pp.bearing) * pp.speed; pp.speed = Math.random() * ball_init_speed; } onClipEvent (enterFrame) { update(); }
Symbol 33 Button
on (press) { getURL ("http://www.albinoblacksheep.com", "_blank"); }
Symbol 34 Button
on (press) { getURL ("http://www.papermothgames.com", "_blank"); }
Symbol 48 MovieClip Frame 120
stop();
Symbol 59 Button
on (press) { _root.menutoggle = !_root.menutoggle; if (_root.menutoggle) { _root.newgame(); } else { _root.gotoAndStop("instructions"); _root.removeballs(); } }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:4 71
Symbol 3 MovieClipUsed by:4 7 10 13 16 19 22  Timeline
Symbol 4 MovieClip [sizeball_link]Uses:2 3
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7 71
Symbol 7 MovieClip [slowball_link]Uses:6 3
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10 71
Symbol 10 MovieClip [speedball_link]Uses:9 3
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13 71
Symbol 13 MovieClip [zoomball_link]Uses:12 3
Symbol 14 GraphicUsed by:15 36
Symbol 15 MovieClipUses:14Used by:16 71
Symbol 16 MovieClip [killball_link]Uses:15 3
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:19 71
Symbol 19 MovieClip [entball_link]Uses:18 3
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:22 71
Symbol 22 MovieClip [spawnerball_link]Uses:3 21
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:27
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:27
Symbol 27 MovieClipUses:24 26Used by:Timeline
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:Timeline
Symbol 30 FontUsed by:31
Symbol 31 TextUses:30Used by:35
Symbol 32 GraphicUsed by:33 34
Symbol 33 ButtonUses:32Used by:35 39
Symbol 34 ButtonUses:32Used by:35  Timeline
Symbol 35 ButtonUses:31 33 34Used by:Timeline
Symbol 36 MovieClipUses:14Used by:39
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:39
Symbol 39 MovieClipUses:36 38 33Used by:Timeline
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:40Used by:Timeline
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:45
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:43 44Used by:Timeline
Symbol 46 GraphicUsed by:47
Symbol 47 ButtonUses:46Used by:48
Symbol 48 MovieClipUses:47Used by:Timeline
Symbol 49 GraphicUsed by:59
Symbol 50 GraphicUsed by:51 59
Symbol 51 MovieClipUses:50Used by:54 58
Symbol 52 GraphicUsed by:53 59
Symbol 53 MovieClipUses:52Used by:54
Symbol 54 MovieClipUses:51 53Used by:59
Symbol 55 FontUsed by:56 60 61 62 63 64 65 66 67 68 69 70
Symbol 56 TextUses:55Used by:59
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:51 57Used by:59
Symbol 59 ButtonUses:49 54 56 58 50 52Used by:Timeline
Symbol 60 EditableTextUses:55Used by:Timeline
Symbol 61 EditableTextUses:55Used by:Timeline
Symbol 62 EditableTextUses:55Used by:Timeline
Symbol 63 EditableTextUses:55Used by:71
Symbol 64 EditableTextUses:55Used by:71
Symbol 65 EditableTextUses:55Used by:71
Symbol 66 EditableTextUses:55Used by:71
Symbol 67 EditableTextUses:55Used by:71
Symbol 68 EditableTextUses:55Used by:71
Symbol 69 EditableTextUses:55Used by:71
Symbol 70 EditableTextUses:55Used by:71
Symbol 71 MovieClipUses:18 15 2 6 21 12 63 64 65 66 67 68 69 9 70Used by:Timeline

Instance Names

"world"Frame 1Symbol 29 MovieClip
"world"Frame 121Symbol 29 MovieClip
"objectnull"Frame 121Symbol 3 MovieClip
"codenull"Symbol 19 MovieClip [entball_link] Frame 1Symbol 3 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 4 as "sizeball_link"
ExportAssets (56)Timeline Frame 1Symbol 7 as "slowball_link"
ExportAssets (56)Timeline Frame 1Symbol 10 as "speedball_link"
ExportAssets (56)Timeline Frame 1Symbol 13 as "zoomball_link"
ExportAssets (56)Timeline Frame 1Symbol 16 as "killball_link"
ExportAssets (56)Timeline Frame 1Symbol 19 as "entball_link"
ExportAssets (56)Timeline Frame 1Symbol 22 as "spawnerball_link"

Labels

"lp"Frame 122
"instructions"Frame 131

Dynamic Text Variables

score_readoutSymbol 60 EditableText"score"
_root.bestscore_readoutSymbol 61 EditableText"best_score"
_root.lastscore_readoutSymbol 62 EditableText"last_score"




http://swfchan.com/6/29879/info.shtml
Created: 19/5 -2019 16:19:41 Last modified: 19/5 -2019 16:19:41 Server time: 11/05 -2024 10:07:24