home *** CD-ROM | disk | FTP | other *** search
- 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 = _root.player[player].cstep + 1;
- if(_root.player[player].cstep > _root.player[player].colors)
- {
- _root.player[player].cstep = 1;
- }
- i++;
- }
- player++;
- }
- loop = 0;
- wait = 0;
-