home *** CD-ROM | disk | FTP | other *** search
- pBestTime = _root.fTimeString(_root.pTimes[pLevelNum]);
- pLevelNumDisplay = pLevelNum + 1;
- if(_root.game.world._width > _root.game.world._height)
- {
- divide = _root.game.world._width;
- }
- else
- {
- divide = _root.game.world._height;
- }
- divide = 21000;
- this.createEmptyMovieClip("shape",0);
- this.shape.beginFill("0x405482",100);
- i = 0;
- while(i < _root.mapsArray[pLevelNum][4].length)
- {
- if(_root.mapsArray[pLevelNum][4][i][0] == "moveTo")
- {
- this.shape.moveTo(_root.mapsArray[pLevelNum][4][i][1] / divide * 350,_root.mapsArray[pLevelNum][4][i][2] / divide * 350);
- }
- else
- {
- this.shape.lineTo(_root.mapsArray[pLevelNum][4][i][1] / divide * 350,_root.mapsArray[pLevelNum][4][i][2] / divide * 350);
- }
- i++;
- }
- this.shape.endFill();
- halfWidth = 50 / divide;
- halfHeight = 50 / divide;
- startLocX = 0;
- startLocY = 0;
- this.shape.beginFill("0xFF0000",100);
- this.shape.moveTo(startLocX - halfWidth,startLocY - halfHeight);
- this.shape.lineTo(startLocX + halfWidth,startLocY - halfHeight);
- this.shape.lineTo(startLocX + halfWidth,startLocY + halfHeight);
- this.shape.lineTo(startLocX - halfWidth,startLocY + halfHeight);
- this.shape.lineTo(startLocX - halfWidth,startLocY - halfHeight);
- this.shape.endFill();
- endLocX = _root.mapsArray[pLevelNum][3][0] / divide * 350;
- endLocY = _root.mapsArray[pLevelNum][3][1] / divide * 350;
- this.shape.beginFill("0x00FF00",100);
- this.shape.moveTo(endLocX - halfWidth,endLocY - halfHeight);
- this.shape.lineTo(endLocX + halfWidth,endLocY - halfHeight);
- this.shape.lineTo(endLocX + halfWidth,endLocY + halfHeight);
- this.shape.lineTo(endLocX - halfWidth,endLocY + halfHeight);
- this.shape.lineTo(endLocX - halfWidth,endLocY - halfHeight);
- this.shape.endFill();
- this.shape._x = 50 - this.shape._width / 2;
- this.shape._y = 50 - this.shape._height / 2;
- if(_root.pTimes[pLevelNum] == 0)
- {
- stop();
- }
- else
- {
- gotoAndStop(2);
- txTime.text = pBestTime;
- }
-