home *** CD-ROM | disk | FTP | other *** search
- if(_root.game.world._width > _root.game.world._height)
- {
- divide = _root.game.world._width;
- }
- else
- {
- divide = _root.game.world._height;
- }
- this.createEmptyMovieClip("shape",0);
- this.shape.beginFill("0x00FFFF",75);
- i = 0;
- while(i < _root.mapsArray[_root.levelNumber][4].length)
- {
- if(_root.mapsArray[_root.levelNumber][4][i][0] == "moveTo")
- {
- this.shape.moveTo(_root.mapsArray[_root.levelNumber][4][i][1] / divide * 350,_root.mapsArray[_root.levelNumber][4][i][2] / divide * 350);
- }
- else
- {
- this.shape.lineTo(_root.mapsArray[_root.levelNumber][4][i][1] / divide * 350,_root.mapsArray[_root.levelNumber][4][i][2] / divide * 350);
- }
- i++;
- }
- this.shape.endFill();
- halfWidth = 50 / divide * 350;
- halfHeight = 50 / divide * 350;
- startLocX = _root.mapsArray[_root.levelNumber][2][0] / divide * 350;
- startLocY = _root.mapsArray[_root.levelNumber][2][1] / divide * 350;
- this.shape.beginFill("0xFF0000",75);
- 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[_root.levelNumber][3][0] / divide * 350;
- endLocY = _root.mapsArray[_root.levelNumber][3][1] / divide * 350;
- this.shape.beginFill("0x00FF00",75);
- 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();
- yourLocX = (- _root.game.world._x + 300) / divide * 350;
- yourLocY = (- _root.game.world._y + 225) / divide * 350;
- this.shape.beginFill("0xFFFF00",100);
- this.shape.moveTo(yourLocX - 2,yourLocY - 2);
- this.shape.lineTo(yourLocX + 2,yourLocY - 2);
- this.shape.lineTo(yourLocX + 2,yourLocY + 2);
- this.shape.lineTo(yourLocX - 2,yourLocY + 2);
- this.shape.lineTo(yourLocX - 2,yourLocY - 2);
- this.shape.endFill();
- this.shape._x = (600 - this.shape._width) / 2;
- this.shape._y = (450 - this.shape._height) / 2;
-