Mercurial > atc
view docs/Maps.txt @ 35:c0c52fb4a7fd
Moved most of single player game code into new class Game()
This will simplify code management between single/multi-player game
modes
author | Josef "Jeff" Sipek <jeffpc@optonline.net> |
---|---|
date | Thu, 18 Aug 2005 00:14:13 -0500 |
parents | db207c3ed161 |
children | 05245904f997 |
line wrap: on
line source
Map pack description: ===================== By default, maps are located in maps/, but this can be changed in the config file. In this file, we'll assume that the config file contains the default settings. Here is a sample directory structure we'll work with: maps/ |-- map1/ | |-- map.info | |-- map.png | `-- navaid.info |-- map2/ | |-- map.info | |-- map.png | `-- navaid.info `-- default/ |-- map.info |-- map.png `-- navaid.info As you can see, the maps/ contains directories, one per map. Each of the map directories contains the three basic files: * map.info = information about the map * map.png = the map "background" image * navaid.info = navigation aids information Let's look at each of these files individually. map.info: ========= There are 5 lines (separated by "\n") they contain the following information: * number (decimal) of degrees to be added to the longitude. Internally, the center of the image is (0,0), but to allow different geographic locations this number is simply added whenever we want to display the true longitude * number (decimal) of degrees to be added to the latitude. Internally, the center of the image is (0,0), but to allow different geographic locations this number is simply added whenever we want to display the true latitude * number (decimal) of meters per pixel * tower offset from the left edge of the background image (pixels) * tower offset from the top edge of the background image (pixels) map.png: ======== A standard, non-transparent 1024x768 PNG image to be used as the map itself. navaid.info: ============ Contains an unlimited number of navigation aiding beacons. Each beacon takes up one line (separated by "\n"). Each line can be split by spaces into six parts: * beacon offset from the left edge (pixels) * beacon offset from the top edge (pixels) * beacon frequency (MHz) * beacon name (string) * beacon range (meters)