source: docs/Level_structure @ 408:02a6de5629d6

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

Levels can include starting equipment

File size: 1.0 KB
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
7Different codes mean chickens ahve different levels of equipment.
8
901 - chicken with no equipment
1002 - chicken with helmet
1103 - chicken with kevlar
1204 - chicken with knife
1305 - chicken with rifle
1406 - chicken with kevlar & helmet
1507 - chicken with helmet & knife
1608 - chicken with kevlar & knife
1709 - chicken with kevlar, helmet & knife
1810 - chicken with helmet & rifle
1911 - chicken with kevlar & rifle
2012 - chicken with kevlar, helmet & rifle
21
22The level.conf file allows the default game constants to be customised.
23
24Example level.conf:
25
26[Level]
27Map: farm.tga
28Goal: Survive
29# -1 for unlimited
30Turn limit: 14
31
32[Game values]
33Max Foxes: 10
34Starting Cash: 100
35Sell Price Egg: 10
36Sell Price Chicken: 5
37Sell Price Dead Fox: 5
38
39[Fox probabilities]
40Fox: 30
41GreedyFox: 30
42NinjaFox: 30
43DemoFox: 9
44Rinkhals: 1
45
46
47
Note: See TracBrowser for help on using the repository browser.