Only the server will parse the file; the data is sent pre-parsed to all clients.
block x y w h;
x | The obstacle's upper left x coordinate. | |
y | The obstacle's upper left y coordinate. | |
w | The width of the obstacle. | |
h | The height of the obstacle. |
flip type;
type | The type of transform. Valid options are:
|
goal team x y w h;
team | The color of the owning team. Valid options are:
| |
x | The goal's upper left x coordinate. | |
y | The goal's upper left y coordinate. | |
w | The width of the goal. | |
h | The height of the goal. |
include fname;
The path used to find the file is the program's working directory unless a path is given in the name. In the future this will be changed to search the following paths, in order:
fname | The file name to include. Some file systems have case sensitive file names. This includes most file systems native to Unix-like systems. To ensure proper operation on all operating systems, assume names are case sensitive. Also, use the slash ('/') as the directory separator. |
offset x y;
x | The offset for x coordinates. | |
y | The offset for y coordinates. |
size w h;
w | The width of the field. The value must not exceed 2047 and must be greater than 31. | |
h | The height of the field. The value must not exceed 2047 and must be greater than 31. |
spawn team x y w h;
team | The color of the owning team. Valid options are:
| |
x | The spawn area's upper left x coordinate. | |
y | The spawn area's upper left y coordinate. | |
w | The width of the area. | |
h | The height of the area. |
# An example of the battlefield file format size 512 512 # This is a 512x512 sized field. It is not in pixels. # setup goal locations goal blue 496 248 16 16; goal red 0 248 16 16; # some spawn points spawn red 0 216 16 16; spawn blue 496 216 16 16; spawn red 0 280 16 16; spawn blue 496 280 16 16; # some obstacles block 48 216 8 80; block 464 216 8 80; # position stuff that will come later in this file offset 192 192; # load stuff from a file with 128x128 size and put it in the center include cntblocks;