comparison docs/Level_structure @ 387:a0bd30dee476

Add docs describing level conf file format
author Neil Muller <drnlmuller@gmail.com>
date Thu, 29 Oct 2009 20:48:09 +0000
parents
children 02a6de5629d6
comparison
equal deleted inserted replaced
386:9f5cc2a880d5 387:a0bd30dee476
1 Levels are stored as two files.
2
3 The level.tga file provides the tilemap for the starting layout. We use
4 two layers of pgu's tilemap - the tile layer, for the objects of interest,
5 and the code layer, which indicates the starting chicken positions.
6
7 The level.conf file allows the default game constants to be customised.
8
9 Example level.conf:
10
11 [Level]
12 Map: farm.tga
13 Goal: Survive
14 # -1 for unlimited
15 Turn limit: 14
16
17 [Game values]
18 Max Foxes: 10
19 Starting Cash: 100
20 Sell Price Egg: 10
21 Sell Price Chicken: 5
22 Sell Price Dead Fox: 5
23
24 [Fox probabilities]
25 Fox: 30
26 GreedyFox: 30
27 NinjaFox: 30
28 DemoFox: 9
29 Rinkhals: 1
30
31
32