Frame 1
function killuser() {
_root.gotoAndStop(20);
}
if (agree == 1) {
nextFrame();
} else {
stop();
}
Instance of Symbol 25 MovieClip in Frame 1
onClipEvent (load) {
illegal_page_url = "http://www.mindchamber.com/legal.html";
your_website_url = "http://www.mindchamber.com";
enable_protection = 1;
acceptable_domain = new Array();
acceptable_domain.push({url:"www.mindchamber.com", icon:"mindchamber"});
acceptable_domain.push({url:"mindchamber.com", icon:"mindchamber"});
acceptable_domain.push({url:"www.psychogoldfish.com", icon:"psychogoldfish"});
acceptable_domain.push({url:"media1.psychogoldfish.com", icon:"psychogoldfish"});
acceptable_domain.push({url:"testing.psychogoldfish.com", icon:"psychogoldfish"});
acceptable_domain.push({url:"uploads.ungrounded.net", icon:"newgrounds"});
acceptable_domain.push({url:"newgrounds.com", icon:"newgrounds"});
acceptable_domain.push({url:"www.newgrounds.com", icon:"newgrounds"});
acceptable_domain.push({url:"2darcade.com", icon:"sess"});
acceptable_domain.push({url:"www.2darcade.com", icon:"sess"});
acceptable_domain.push({url:"www.sess.net", icon:"sess"});
acceptable_domain.push({url:"sess.net", icon:"sess"});
acceptable_domain.push({url:"www.txmafia.com", icon:"txmafia"});
acceptable_domain.push({url:"txmafia.com", icon:"txmafia"});
domain = _root._url.split("/");
domain = domain[2];
_root.gooddomain = 0;
i = 0;
while (i < acceptable_domain.length) {
domain2 = acceptable_domain[i].url;
if (domain == domain2) {
_root.gooddomain = 1;
_root.sicon = acceptable_domain[i].icon;
}
i++;
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(int(PercentLoaded));
if (_root.gooddomain == 1) {
_root.icon.gotoAndStop(_root.sicon);
lag = ("This version of 'Radioactive Snakes From Mars' is licensed to '" + _root.sicon) + "'. This Legal copy has full functionality, and is being hosted with permission from the game's creator, Josh Tuttle.";
} else {
_root.icon.gotoAndStop("blank");
lag = "This version of 'Radioactive Snakes From Outer Space' is not licensed to the site hosting it. This game is operating in shareware mode and will not have full functionality.";
}
}
Frame 2
_root.players = 1;
_root.thisUser = 1;
_root.nextUser = 2;
_root.setup = 1;
_root.level = 1;
levz = 20;
if (_root.gooddomain != 1) {
levz = 5;
}
_root.player = new Array();
if (!resolution) {
resolution = 1;
}
if ((_root.gooddomain != 1) and (countdown != 1)) {
countdown = 1;
intervalID = setInterval(killuser, 300000);
}
stop();
Frame 3
p = 1;
while (p <= _root.players) {
_root.player[p] = new Object();
_root.player[p].score = 0;
_root.player[p].colors = 1;
_root.player[p].lives = 4;
_root.player[p].fill = new Array();
_root.player[p].cstep = 1;
_root.player[p].fill[1] = new Object();
_root.player[p].fill[2] = new Object();
_root.player[p].fill[3] = new Object();
_root.player[p].fill[4] = new Object();
p++;
}
nextFrame();
Instance of Symbol 89 MovieClip "snake" in Frame 4
onClipEvent (enterFrame) {
_parent.square._y = _parent["co" + _root.player[_root.setup].colors]._y;
_parent.square._x = _parent["co" + _root.player[_root.setup].colors]._x;
c = 1;
i = 1;
while (i <= 22) {
newCol = new Color(this["ball" + i]);
newCol.setTransform(_root.player[_root.setup].fill[c]);
c++;
if (c > _root.player[_root.setup].colors) {
c = 1;
}
i++;
}
}
Frame 5
if (_root.setup == _root.players) {
nextFrame();
} else {
_root.setup++;
prevFrame();
}
Frame 6
if (resolution == 2) {
game._width = 480;
game._height = 320;
game._x = 80;
game._y = 40;
} else if (resolution == 3) {
game._width = 320;
game._height = 240;
game._x = 160;
game._y = 80;
}
i = 1;
while (i <= _root.players) {
_root.player[i].cstep = 1;
_root.player[i].inverted = 0;
i++;
}
levd = "Level " + _root.level;
Frame 7
play();
Frame 16
if (players > 1) {
if (_root.player[1].vspoints > _root.player[2].vspoints) {
_root.player[1].score++;
} else if (_root.player[1].vspoints < _root.player[2].vspoints) {
_root.player[2].score++;
}
if ((_root.player[1].score >= 3) or (_root.player[2].score >= 3)) {
gotoAndStop ("results");
}
} else if (_root.player[1].lives < 0) {
gotoAndStop ("gameover");
}
Frame 17
gotoAndStop (5);
Frame 18
tag = random(5) + 1;
if (_root.player[1].score > _root.player[2].score) {
v1.gotoAndStop(tag);
v2.gotoAndStop(tag + 5);
} else if (_root.player[1].score > _root.player[2].score) {
v1.gotoAndStop(tag + 5);
v2.gotoAndStop(tag);
} else {
v1.gotoAndStop(11);
v2.gotoAndStop(11);
}
Frame 19
score2 = _root.player[1].score;
Symbol 23 Button
on (release) {
_root.agree = 1;
_root.play();
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 50 Button
on (release) {
_root.players = 1;
nextFrame();
}
Symbol 53 Button
on (release) {
if (_root.gooddomain == 1) {
_root.players = 2;
nextFrame();
} else {
share.play();
}
}
Symbol 55 Button
on (release) {
resolution++;
if (resolution == 1) {
res = "640 x 480";
} else if (resolution == 2) {
res = "480 x 360";
} else if (resolution == 3) {
res = "320 x 240";
} else {
resolution = 1;
res = "640 x 480";
}
}
Symbol 64 Button
on (release) {
_root.level++;
if (_root.level > levz) {
_root.level = 1;
}
}
Symbol 65 Button
on (release) {
_root.level--;
if (_root.level < 1) {
_root.level = levz;
}
}
Symbol 66 Button
on (release) {
scr.play();
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
stop();
Symbol 74 Button
on (release) {
getURL ("http://www.psychogoldfish.com/snakes/snake_scores.php", "_blank");
}
Symbol 78 Button
on (release) {
nextFrame();
}
Symbol 85 Button
on (release) {
mycol = new Color(this);
_root.player[_root.setup].fill[_parent.id] = mycol.getTransform();
}
Symbol 88 MovieClip Frame 1
id = _name.substring(1, 2);
nme = "color " + id;
if (_root.setup == 1) {
mycol = new Color(d1);
} else {
mycol = new Color(a1);
}
_root.player[_root.setup].fill[id] = mycol.getTransform();
Symbol 88 MovieClip Frame 2
newfill = new Color(sample);
newfill.setTransform(_parent.player[_root.setup].fill[id]);
Symbol 88 MovieClip Frame 3
if (_parent.player[_root.setup].colors >= id) {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 88 MovieClip Frame 5
if (_parent.player[_root.setup].colors >= id) {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 93 Button
on (release) {
_root.player[setup].colors = 1;
}
Symbol 94 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 2;
} else {
share.play();
}
}
Symbol 95 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 3;
} else {
share.play();
}
}
Symbol 96 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 4;
} else {
share.play();
}
}
Symbol 97 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 5;
} else {
share.play();
}
}
Symbol 98 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[setup].colors = 6;
} else {
share.play();
}
}
Symbol 99 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.c1);
mycol4 = new Color(p1.a1);
mycol5 = new Color(p1.a1);
mycol6 = new Color(p1.c1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 100 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.h1);
mycol5 = new Color(p1.h1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 101 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 5;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.y1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.y1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 102 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 2;
mycol1 = new Color(p1.p1);
mycol2 = new Color(p1.o1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 103 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.p1);
mycol2 = new Color(p1.n1);
mycol3 = new Color(p1.y1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 104 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.o1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 105 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.d1);
mycol2 = new Color(p1.q1);
mycol3 = new Color(p1.e1);
mycol4 = new Color(p1.q1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 106 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.y1);
mycol3 = new Color(p1.l1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 107 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.x1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.v1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 108 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.c1);
mycol3 = new Color(p1.d1);
mycol4 = new Color(p1.h1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 109 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 4;
mycol1 = new Color(p1.h1);
mycol2 = new Color(p1.u1);
mycol3 = new Color(p1.a1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 110 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.b1);
mycol4 = new Color(p1.b1);
mycol5 = new Color(p1.c1);
mycol6 = new Color(p1.c1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 111 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 5;
mycol1 = new Color(p1.s1);
mycol2 = new Color(p1.s1);
mycol3 = new Color(p1.t1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.t1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 112 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 2;
mycol1 = new Color(p1.y1);
mycol2 = new Color(p1.c1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 113 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 3;
mycol1 = new Color(p1.h1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.u1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 114 Button
on (release) {
if (_root.gooddomain == 1) {
_root.player[_root.setup].colors = 6;
mycol1 = new Color(p1.a1);
mycol2 = new Color(p1.a1);
mycol3 = new Color(p1.a1);
mycol4 = new Color(p1.u1);
mycol5 = new Color(p1.u1);
mycol6 = new Color(p1.u1);
_root.player[_root.setup].fill[1] = mycol1.getTransform();
_root.player[_root.setup].fill[2] = mycol2.getTransform();
_root.player[_root.setup].fill[3] = mycol3.getTransform();
_root.player[_root.setup].fill[4] = mycol4.getTransform();
_root.player[_root.setup].fill[5] = mycol5.getTransform();
_root.player[_root.setup].fill[6] = mycol6.getTransform();
} else {
share.play();
}
}
Symbol 119 MovieClip Frame 1
if ((_root.players > 1) and (_root.setup == 1)) {
_parent.dbut.text = "NEXT PLAYER >>";
} else {
_parent.dbut.text = "START GAME";
}
gotoAndStop(_root.setup);
Symbol 145 MovieClip Frame 1
if (_root.players == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 155 MovieClip Frame 1
id = _name.substring(4, 5);
if (int(id) > _root.players) {
nextFrame();
}
stop();
Symbol 164 MovieClip Frame 1
if ((_rotation < 91) and (_rotation > 89)) {
ym = 2;
} else if (_rotation < 0) {
ym = -1;
} else if (_rotation > 0) {
ym = 1;
} else {
ym = 0;
}
r = _rotation;
_root.wall.push({clip:_name, x:_x, y:_y, w:_width, h:_height, ym:ym});
if (ym == 2) {
ym = 1;
}
_rotation = 0;
_parent.walls++;
_parent.corner.duplicateMovieClip("c1" + _parent.walls, _parent.walls + 100);
_parent["c1" + _parent.walls]._x = _x;
_parent["c1" + _parent.walls]._y = _y;
_parent["c1" + _parent.walls]._rotation = r;
_parent.corner.duplicateMovieClip("c2" + _parent.walls, _parent.walls + 200);
_parent.wall.duplicateMovieClip("w" + _parent.walls, _parent.walls + 300);
_parent["w" + _parent.walls]._x = _x;
_parent["w" + _parent.walls]._y = _y;
_parent["w" + _parent.walls]._width = _width;
_parent["w" + _parent.walls]._rotation = r;
_rotation = r;
_parent["c2" + _parent.walls]._x = _x + _width;
_parent["c2" + _parent.walls]._y = _y + (_height * ym);
_parent["c2" + _parent.walls]._rotation = r;
Symbol 199 MovieClip Frame 1
level = _root.level;
if ((_root.gooddomain != 1) and (level > 5)) {
_root.gotoAndStop(20);
}
smod = 0;
lmod = 0;
_root.wall = new Array();
walls = 0;
while (level > _root.levz) {
level = level - _root.levz;
smod++;
lmod = lmod + 2;
}
trace(level);
gotoAndStop(level + 1);
Symbol 199 MovieClip Frame 2
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 3
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 4
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 5
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 3;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 6
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(4);
orb.push(5);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 7
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 8
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 9
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(5);
orb.push(3);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 10
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(3);
orb.push(2);
orb.push(1);
orb.push(4);
orb.push(5);
orb.push(2);
orb.push(1);
orb.push(3);
orb.push(1);
orb.push(4);
orb.push(1);
orb.push(1);
orb.push(5);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(2);
orb.push(1);
orb.push(5);
orb.push(3);
orb.push(4);
orb.push(1);
orb.push(1);
orb.push(5);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 11
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 3;
orb = new Array();
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
orb.push(1);
orb.push(2);
orb.push(3);
orb.push(5);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 12
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(3);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 13
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(4);
orb.push(1);
orb.push(5);
orb.push(2);
orb.push(2);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 14
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 15
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 4;
orb = new Array();
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(3);
orb.push(5);
orb.push(3);
orb.push(3);
orb.push(3);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 16
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 6 + lmod;
_root.snakeSize[2] = 6 + lmod;
_root.snakeSize[3] = 6 + lmod;
_root.snakeSize[4] = 6 + lmod;
multi = 1;
orb = new Array();
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
orb.push(2);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 17
_root.speed = 4 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 2;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 18
_root.speed = 6 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 2;
orb = new Array();
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
orb.push(4);
orb.push(4);
orb.push(4);
orb.push(5);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 19
_root.speed = 8 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 12 + lmod;
_root.snakeSize[2] = 12 + lmod;
_root.snakeSize[3] = 12 + lmod;
_root.snakeSize[4] = 12 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 20
_root.speed = 2 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 22 + lmod;
_root.snakeSize[2] = 22 + lmod;
_root.snakeSize[3] = 22 + lmod;
_root.snakeSize[4] = 22 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 199 MovieClip Frame 21
_root.speed = 6 + smod;
_root.snakeSize = new Array();
_root.snakeSize[1] = 22 + lmod;
_root.snakeSize[2] = 22 + lmod;
_root.snakeSize[3] = 22 + lmod;
_root.snakeSize[4] = 22 + lmod;
multi = 1;
orb = new Array();
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
orb.push(1);
_parent.orbs = orb.length;
Symbol 202 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
id = _name.substring(1, 2);
if (id <= _parent.map.multi) {
if ((_y < 0) and ((_parent.orb + 1) < _parent.orbs)) {
_x = (((random(36) + 1) * 16) + 24);
_y = (((random(24) + 1) * 16) + 56);
w = 0;
while (w < _root.wall.length) {
if (((_x + 24) > _root.wall[w].x) and ((_x - 24) < (_root.wall[w].x + _root.wall[w].w))) {
if (((_root.wall[w].ym == 2) and ((_y + 24) > _root.wall[w].y)) and ((_y - 24) < (_root.wall[w].y + _root.wall[w].h))) {
_y = -99;
} else if (((_root.wall[w].ym < 0) and ((_y - 24) < _root.wall[w].y)) and ((_y + 24) > (_root.wall[w].y - _root.wall[w].h))) {
xds = _x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y - (_root.wall[w].h * xpr);
if (((_y + 24) > yds) and ((_y - 24) < yds)) {
_y = -99;
} else if (((_root.wall[w].x < 24) and ((_root.wall[w].y - _root.wall[w].h) < 56)) and (_y <= yds)) {
_y = -99;
} else if ((((_root.wall[w].x + _root.wall[w].w) > 616) and (_root.wall[w].y > 456)) and (_y >= yds)) {
_y = -99;
}
} else if (((_root.wall[w].ym > 0) and ((_y + 24) > _root.wall[w].y)) and ((_y - 24) < (_root.wall[w].y + _root.wall[w].h))) {
xds = _x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y + (_root.wall[w].h * xpr);
if (((_y + 24) > yds) and ((_y - 24) < yds)) {
_y = -99;
} else if (((_root.wall[w].x < 24) and ((_root.wall[w].y + _root.wall[w].h) > 456)) and (_y >= yds)) {
_y = -99;
} else if ((((_root.wall[w].x + _root.wall[w].w) > 616) and ((_root.wall[w].y - _root.wall[w].h) < 56)) and (_y <= yds)) {
_y = -99;
}
} else if (((_y + 24) > _root.wall[w].y) and ((_y - 24) < _root.wall[w].y)) {
_y = -99;
}
}
w++;
}
if (_y > 0) {
_parent.orb++;
food.gotoAndStop(_parent.map.orb[_parent.orb]);
if (food._currentframe == 2) {
points = 350;
} else if (food._currentframe == 3) {
points = 150;
} else if (food._currentframe == 4) {
points = 500;
} else if (food._currentframe == 5) {
points = 100;
} else {
points = 250;
}
gotoAndPlay (3);
}
} else if (_y > 0) {
p = 1;
while (p <= _root.players) {
if (((_root.player[p].ball[1].x + 12) > _x) and ((_root.player[p].ball[1].x - 12) < _x)) {
if (((_root.player[p].ball[1].y + 12) > _y) and ((_root.player[p].ball[1].y - 12) < _y)) {
if ((food._currentframe == 2) and (_root.player[p].speed < 10)) {
if (_root.player[p].speed < 8) {
_root.player[p].speed = 8;
} else if (_root.player[p].speed < 14) {
_root.player[p].speed = _root.player[p].speed + 2;
}
} else if ((food._currentframe == 3) and (_root.player[p].speed > 2)) {
if (_root.player[p].speed > 4) {
_root.player[p].speed = 4;
} else if (_root.player[p].speed > 2) {
_root.player[p].speed = _root.player[p].speed - 2;
}
} else if (food._currentframe == 4) {
if (_root.players == 1) {
_root.player[p].inverted = 1;
} else {
ipn = 1;
while (ipn <= _root.players) {
if (ipn != p) {
_root.player[ipn].inverted = 1;
}
ipn++;
}
}
} else if (food._currentframe == 5) {
_root.player[p].inverted = 0;
_root.player[p].speed = _root.speed;
}
pt = 1;
while (pt <= 2) {
_root.player[p].ball[_root.player[p].ball.length] = new Object();
_root.player[p].ball[_root.player[p].ball.length - 1].step = new Array();
_root.player[p].ball[_root.player[p].ball.length - 1].x = _root.player[p].ball[_root.player[p].ball.length - 2].x;
_root.player[p].ball[_root.player[p].ball.length - 1].y = _root.player[p].ball[_root.player[p].ball.length - 2].y;
_root.player[p].ball[_root.player[p].ball.length - 1].dir = _root.player[p].ball[_root.player[p].ball.length - 2].dir;
_root.player[p].ball[_root.player[p].ball.length - 1].speed = _root.player[p].ball[_root.player[p].ball.length - 2].speed;
_root.player[p].ball[_root.player[p].ball.length - 1].delay = _root.player[p].ball[_root.player[p].ball.length - 2].delay + 16;
_root.player[p].ball[_root.player[p].ball.length - 1].clip = (("p" + p) + "b") + (_root.player[p].ball.length - 1);
_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]._x = _root.player[p].ball[_root.player[p].ball.length - 1].x;
_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]._y = _root.player[p].ball[_root.player[p].ball.length - 1].y;
_parent.pl = p;
tellTarget (_parent) {
depth++;
duplicateMovieClip ("snakeParts", (("p" + pl) + "b") + (_root.player[pl].ball.length - 1), 100 + depth);
};
paint = new Color(_parent[(("p" + p) + "b") + (_root.player[p].ball.length - 1)]);
paint.setTransform(_root.player[p].fill[_root.player[p].cstep]);
_root.player[p].cstep++;
if (_root.player[p].cstep > _root.player[p].colors) {
_root.player[p].cstep = 1;
}
_root.player[p].life = _root.player[p].life + 120;
if (_root.player[p].life > 72) {
_root.player[p].life = 720;
}
pt++;
}
_parent.onorb++;
_y = -99;
if (_root.players == 1) {
_root.player[1].score = _root.player[1].score + points;
} else {
_root.player[p].vspoints++;
}
if (_parent.onorb >= _parent.orbs) {
_parent.stop();
_root.clock = 0;
_root.readygo.play();
}
if (food._currentframe == 4) {
gotoAndPlay (25);
} else {
gotoAndPlay (20);
}
}
}
p++;
}
}
} else {
stop();
}
Symbol 208 MovieClip Frame 2
gotoAndPlay (1);
Symbol 208 MovieClip Frame 17
gotoAndPlay (1);
Symbol 208 MovieClip Frame 24
gotoAndPlay (1);
Symbol 208 MovieClip Frame 29
gotoAndPlay (1);
Symbol 210 Button
on (keyPress "p") {
gotoAndStop (40);
}
Symbol 211 MovieClip Frame 1
_root.clock = 0;
_root.readygo.gotoAndPlay(1);
_parent.pause.gotoAndStop(1);
map.wall._y = -999;
map.corner._y = -999;
snakeParts._y = -999;
Symbol 211 MovieClip Frame 2
depth = 0;
player = 1;
while (player <= _root.players) {
_root.player[player].speed = _root.speed;
_root.player[player].vspoints = 0;
_root.player[player].life = 720;
_root.player[player].oldspeed = _root.speed;
_root.player[player].ball = new Array();
i = 1;
while (i <= _root.snakeSize[player]) {
_root.player[player].ball[i] = new Object();
_root.player[player].ball[i].step = new Array();
_root.player[player].ball[i].delay = 0;
if (this.map["door" + player]._y < 48) {
_root.player[player].ball[i].dir = 0;
xm = 0;
ym = 16;
} else if (this.map["door" + player]._y > 464) {
_root.player[player].ball[i].dir = 6;
xm = 0;
ym = -16;
} else if (this.map["door" + player]._x < 16) {
_root.player[player].ball[i].dir = 9;
xm = 16;
ym = 0;
} else {
_root.player[player].ball[i].dir = 3;
xm = -16;
ym = 0;
}
_root.player[player].ball[i].x = this.map["door" + player]._x - (xm * (i - 2));
_root.player[player].ball[i].y = this.map["door" + player]._y - (ym * (i - 2));
_root.player[player].ball[i].speed = _root.speed;
depth++;
this.snakeParts.duplicateMovieClip((("p" + player) + "b") + i, 100 + depth);
_root.player[player].ball[i].clip = (("p" + player) + "b") + i;
if (i > 1) {
this[_root.player[player].ball[i].clip].gotoAndStop(2);
}
this[_root.player[player].ball[i].clip]._x = _root.player[player].ball[i].x;
this[_root.player[player].ball[i].clip]._y = _root.player[player].ball[i].y;
this[_root.player[player].ball[i].clip]._rotation = _root.player[player].ball[i].dir * 30;
paint = new Color(this[_root.player[player].ball[i].clip]);
paint.setTransform(_root.player[player].fill[_root.player[player].cstep]);
_root.player[player].cstep++;
if (_root.player[player].cstep > _root.player[player].colors) {
_root.player[player].cstep = 1;
}
i++;
}
player++;
}
loop = 0;
wait = 0;
Instance of Symbol 204 MovieClip in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(600);
}
Symbol 211 MovieClip Frame 35
frame.play();
onorb = 0;
orb = -1;
trace(_root.wall.length);
Symbol 211 MovieClip Frame 36
if (loop == 2) {
loop = 0;
}
_parent.pause.gotoAndStop(1);
loop++;
_root.clock = 1;
dead = 0;
if ((_root.readygo.tune == "music1") or (_root.readygo.tune == "music2")) {
ltune = "music";
} else {
ltune = _root.readygo.tune;
}
ltune2 = ltune;
ltune = "music";
player = 1;
while (player <= _root.players) {
if (_root.player[player].speed > 0) {
if (_root.player[player].life < 240) {
ltune = "musicfast";
} else if ((_root.player[player].speed > 4) and (ltune != "musicfast")) {
ltune = "musicfaster";
}
if (loop == 2) {
if (player == _root.thisUser) {
if ((Key.isDown(37) and (_root.player[player].inverted != 1)) or (Key.isDown(39) and (_root.player[player].inverted == 1))) {
_root.player[_root.thisUser].ball[1].dir--;
if (_root.player[_root.thisUser].ball[1].dir < 0) {
_root.player[_root.thisUser].ball[1].dir = 11;
}
} else if ((Key.isDown(39) and (_root.player[player].inverted != 1)) or (Key.isDown(37) and (_root.player[player].inverted == 1))) {
_root.player[_root.thisUser].ball[1].dir++;
if (_root.player[_root.thisUser].ball[1].dir > 11) {
_root.player[_root.thisUser].ball[1].dir = 0;
}
}
} else if (player == _root.nextUser) {
if ((Key.isDown(65) and (_root.player[player].inverted != 1)) or (Key.isDown(83) and (_root.player[player].inverted == 1))) {
_root.player[_root.nextUser].ball[1].dir--;
if (_root.player[_root.nextUser].ball[1].dir < 0) {
_root.player[_root.nextUser].ball[1].dir = 11;
}
} else if ((Key.isDown(83) and (_root.player[player].inverted != 1)) or (Key.isDown(65) and (_root.player[player].inverted == 1))) {
_root.player[_root.nextUser].ball[1].dir++;
if (_root.player[_root.nextUser].ball[1].dir > 11) {
_root.player[_root.nextUser].ball[1].dir = 0;
}
}
} else if (wait < 45) {
wait++;
} else {
_root.player[player].ball[1].dir--;
if (_root.player[player].ball[1].dir < 0) {
_root.player[player].ball[1].dir = 11;
}
wait = wait - 3;
}
}
i = 1;
while (i < _root.player[player].ball.length) {
hp = 1;
while (hp <= _root.players) {
if ((hp != player) or (i > 2)) {
if (_root.player[hp].speed > 0) {
xxd = _root.player[player].ball[i].x - _root.player[hp].ball[1].x;
xxd = xxd * xxd;
if (xxd <= 196) {
yyd = _root.player[player].ball[i].y - _root.player[hp].ball[1].y;
yyd = yyd * yyd;
if (yyd <= 196) {
xyd = Math.sqrt(yyd + xxd);
if (xyd <= 15) {
_root.player[hp].speed = 0;
if (i == 1) {
_root.player[player].speed = 0;
}
}
}
}
}
}
hp++;
}
if ((i == 1) and (_root.player[player].speed > 0)) {
w = 0;
while (w < _root.wall.length) {
if (((_root.player[player].ball[i].x + 12) > _root.wall[w].x) and ((_root.player[player].ball[i].x - 12) < (_root.wall[w].x + _root.wall[w].w))) {
if (((_root.wall[w].ym == 2) and ((_root.player[player].ball[i].y + 12) > _root.wall[w].y)) and ((_root.player[player].ball[i].y - 12) < (_root.wall[w].y + _root.wall[w].h))) {
_root.player[player].speed = 0;
} else if (((_root.wall[w].ym < 0) and ((_root.player[player].ball[i].y - 12) < _root.wall[w].y)) and ((_root.player[player].ball[i].y + 12) > (_root.wall[w].y - _root.wall[w].h))) {
xds = _root.player[player].ball[i].x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y - (_root.wall[w].h * xpr);
if (((_root.player[player].ball[i].y + 12) > yds) and ((_root.player[player].ball[i].y - 12) < yds)) {
_root.player[player].speed = 0;
}
} else if (((_root.wall[w].ym > 0) and ((_root.player[player].ball[i].y + 12) > _root.wall[w].y)) and ((_root.player[player].ball[i].y - 12) < (_root.wall[w].y + _root.wall[w].h))) {
xds = _root.player[player].ball[i].x - _root.wall[w].x;
xpr = xds / _root.wall[w].w;
yds = _root.wall[w].y + (_root.wall[w].h * xpr);
if (((_root.player[player].ball[i].y + 12) > yds) and ((_root.player[player].ball[i].y - 12) < yds)) {
_root.player[player].speed = 0;
}
} else if (((_root.player[player].ball[i].y + 12) > _root.wall[w].y) and ((_root.player[player].ball[i].y - 12) < _root.wall[w].y)) {
_root.player[player].speed = 0;
}
}
w++;
}
if (_root.player[player].ball[i].x < 22) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].x > 618) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].y < 54) {
_root.player[player].speed = 0;
} else if (_root.player[player].ball[i].y > 458) {
_root.player[player].speed = 0;
}
}
if (i == 1) {
ball = 1;
} else if (i == (_root.player[player].ball.length - 1)) {
ball = 3;
} else {
ball = 2;
}
this[_root.player[player].ball[i].clip].gotoAndStop(ball);
s = 0;
while (s < _root.player[player].speed) {
if (i == 1) {
if ((_root.player[player].oldspeed != _root.player[player].speed) or (_root.player[player].olddir != _root.player[player].ball[i].dir)) {
_root.player[player].ball[i].speed = _root.player[player].speed;
_root.player[player].ball[i + 1].step.push({x:_root.player[player].ball[i].x, y:_root.player[player].ball[i].y, dir:_root.player[player].ball[i].dir, speed:_root.player[player].ball[i].speed});
}
_root.player[player].oldspeed = _root.player[player].speed;
_root.player[player].olddir = _root.player[player].ball[i].dir;
} else if ((_root.player[player].ball[i].x == _root.player[player].ball[i].step[0].x) and (_root.player[player].ball[i].y == _root.player[player].ball[i].step[0].y)) {
_root.player[player].ball[i].dir = _root.player[player].ball[i].step[0].dir;
_root.player[player].ball[i].speed = _root.player[player].ball[i].step[0].speed;
_root.player[player].ball[i].step.shift();
_root.player[player].ball[i + 1].step.push({x:_root.player[player].ball[i].x, y:_root.player[player].ball[i].y, dir:_root.player[player].ball[i].dir, speed:_root.player[player].ball[i].speed});
}
if (_root.player[player].ball[i].dir == 0) {
xm = 0;
ym = 4;
} else if (_root.player[player].ball[i].dir == 1) {
xm = -2;
ym = 3.5;
} else if (_root.player[player].ball[i].dir == 2) {
xm = -3.5;
ym = 2;
} else if (_root.player[player].ball[i].dir == 3) {
xm = -4;
ym = 0;
} else if (_root.player[player].ball[i].dir == 4) {
xm = -3.5;
ym = -2;
} else if (_root.player[player].ball[i].dir == 5) {
xm = -2;
ym = -3.5;
} else if (_root.player[player].ball[i].dir == 6) {
xm = 0;
ym = -4;
} else if (_root.player[player].ball[i].dir == 7) {
xm = 2;
ym = -3.5;
} else if (_root.player[player].ball[i].dir == 8) {
xm = 3.5;
ym = -2;
} else if (_root.player[player].ball[i].dir == 9) {
xm = 4;
ym = 0;
} else if (_root.player[player].ball[i].dir == 10) {
xm = 3.5;
ym = 2;
} else if (_root.player[player].ball[i].dir == 11) {
xm = 2;
ym = 3.5;
}
if (_root.player[player].ball[i].delay > 0) {
_root.player[player].ball[i].delay = _root.player[player].ball[i].delay - 2;
} else {
_root.player[player].ball[i].y = _root.player[player].ball[i].y + ((ym / 4) * 2);
_root.player[player].ball[i].x = _root.player[player].ball[i].x + ((xm / 4) * 2);
}
s = s + 2;
}
this[_root.player[player].ball[i].clip]._x = _root.player[player].ball[i].x;
this[_root.player[player].ball[i].clip]._y = _root.player[player].ball[i].y;
this[_root.player[player].ball[i].clip]._rotation = _root.player[player].ball[i].dir * 30;
i++;
}
} else if (_root.player[player].ball.length > 0) {
this[_root.player[player].ball[1].clip].gotoAndStop(4);
removeMovieClip(_root.player[player].ball[0].clip);
_root.player[player].ball.shift();
if (_root.players > 1) {
_root.player[player].vspoints = -1;
}
if (playdead != 1) {
_root.readygo.gotoAndPlay("dead");
playdead = 1;
}
} else {
_root.player[player].lives--;
if (_root.players > 1) {
_root.level++;
}
_root.clock = 0;
stop();
}
player++;
}
if (ltune != ltune2) {
if (ltune == "music") {
ltune = "music1";
}
_root.readygo.tune = ltune;
_root.readygo.Music.stop();
_root.readygo.Music.attachSound(ltune);
_root.readygo.Music.start();
}
_root.txt = (orbs - onorb) + " pills remaining";
Symbol 211 MovieClip Frame 37
gotoAndPlay(_currentframe - 1);
Symbol 211 MovieClip Frame 40
_root.clock = 0;
_parent.pause.gotoAndStop(2);
toggleHighQuality();
Symbol 218 MovieClip Frame 1
id = _name.substring(1, 2);
if (id > _root.players) {
_y = -999;
stop();
} else {
ltxt = ("Player " + id) + " Life:";
if (_root.players == 1) {
if (_root.player[id].lives < 0) {
lives = "Game Over";
} else {
lives = "Lives: " + _root.player[id].lives;
}
score = "Score: " + _root.player[id].score;
} else {
if (_root.player[id].vspoints < 0) {
score = "Dead...";
} else {
score = "Pills: " + _root.player[id].vspoints;
}
lives = "Wins: " + _root.player[id].score;
}
live = (_root.player[id].life / 720) * 100;
if (live > 100) {
live = 100;
}
life._width = live;
if ((_root.clock == 1) and (_root.player[id].life > 0)) {
_root.player[id].life = _root.player[id].life - 2;
} else if ((_root.clock == 1) and (_root.player[id].speed > 0)) {
_root.player[id].speed = 0;
}
}
Symbol 218 MovieClip Frame 2
gotoAndPlay (1);
Symbol 227 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 234 MovieClip Frame 1
gotoAndStop(random(6) + 1);
Symbol 236 MovieClip Frame 1
stopAllSounds();
_root.player[1].speed = 4;
_root.player[2].speed = 4;
if (players == 1) {
_root.player[2].life = 720;
}
Symbol 236 MovieClip Frame 4
Music = new Sound();
Music.attachSound("music1");
tune = "music1";
Music.start();
Music.onSoundComplete = function () {
if (tune == "music1") {
tune = "music2";
} else if (tune == "music2") {
tune = "music1";
}
Music.attachSound(tune);
Music.start();
};
Symbol 236 MovieClip Frame 35
toggleHighQuality();
Symbol 236 MovieClip Frame 61
stop();
Symbol 236 MovieClip Frame 62
_root.level++;
toggleHighQuality();
Music.stop();
Symbol 236 MovieClip Frame 125
_parent.play();
stop();
Symbol 236 MovieClip Frame 126
toggleHighQuality();
Music.stop();
Symbol 236 MovieClip Frame 175
_parent.play();
Symbol 240 Button
on (keyPress "p") {
toggleHighQuality();
_parent.game.gotoAndPlay(36);
}
Symbol 253 Button
on (release) {
toggleHighQuality();
_parent.game.gotoAndPlay(36);
}
Symbol 254 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 272 Button
on (release) {
gotoAndPlay (1);
}
Symbol 279 Button
on (release) {
if ((_root.gooddomain == 1) and (pname.length > 0)) {
encryptdata = (((random(300) + "&") + escape(_root.player[1].score)) + "&") + escape(pname);
key = "xX2&+-oeER2ll@WopOiP438901";
encryptchars = "724xw?!@$-{A609By%^()DE8Q1TgabYcdSUVW&*XZf5ehijkl_+mnoFGHIJKLN=:;~OCMRPpqrsz.,/3tuv}'";
chars = encryptchars.split("");
ki = key.split("");
keylength = key.length;
echars = encryptchars.length;
convert = new Array();
c2 = 0;
line = 0;
while (line < ki.length) {
fr = "";
bk = "";
c2 = c2 + ord(ki[line]);
while (c2 > echars) {
c2 = c2 - echars;
}
c = 0;
while (c < echars) {
if (c < c2) {
bk = bk + chars[c];
} else {
fr = fr + chars[c];
}
c++;
}
convert[line] = fr + bk;
trace((convert[line] + " ---") + c2);
line++;
}
if (encryptdata.length > 0) {
score = "";
trace("Encrypting 'encryptdata'");
boggle = encryptdata.split("");
matrix = 0;
out = 0;
while (out < encryptdata.length) {
c = 0;
while (c < echars) {
if (boggle[out] == chars[c]) {
replace = convert[matrix].split("");
boggle[out] = replace[c];
c = echars + 10;
matrix++;
if (matrix >= keylength) {
matrix = 0;
}
}
c++;
}
score = score + boggle[out];
out++;
}
}
convert = undefined;
encryptdata = undefined;
key = undefined;
encryptchars = undefined;
chars = undefined;
boggle = undefined;
replace = undefined;
fr = undefined;
bk = undefined;
ki = undefined;
_root.player = undefined;
_root.wall = undefined;
getURL ("http://www.psychogoldfish.com/snakes/snake_scores.php", "_blank", "POST");
_root.gotoAndPlay(1);
}
if (_root.gooddomain != 1) {
_root.share.play();
}
}
Symbol 281 Button
on (release) {
if (_root.gooddomain != 1) {
_root.share.play();
} else {
_root.player[1].lives = 4;
_root.player[1].score = 0;
gotoAndPlay (6);
}
}