source: docs/Level_structure @ 387:a0bd30dee476

Last change on this file since 387:a0bd30dee476 was 387:a0bd30dee476, checked in by Neil Muller <drnlmuller@…>, 11 years ago

Add docs describing level conf file format

File size: 607 bytes
Line 
1Levels are stored as two files.
2
3The level.tga file provides the tilemap for the starting layout. We use
4two layers of pgu's tilemap - the tile layer, for the objects of interest,
5and the code layer, which indicates the starting chicken positions.
6
7The level.conf file allows the default game constants to be customised.
8
9Example level.conf:
10
11[Level]
12Map: farm.tga
13Goal: Survive
14# -1 for unlimited
15Turn limit: 14
16
17[Game values]
18Max Foxes: 10
19Starting Cash: 100
20Sell Price Egg: 10
21Sell Price Chicken: 5
22Sell Price Dead Fox: 5
23
24[Fox probabilities]
25Fox: 30
26GreedyFox: 30
27NinjaFox: 30
28DemoFox: 9
29Rinkhals: 1
30
31
32
Note: See TracBrowser for help on using the repository browser.