annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
387
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
1 Levels are stored as two files.
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
2
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
3 The level.tga file provides the tilemap for the starting layout. We use
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
4 two layers of pgu's tilemap - the tile layer, for the objects of interest,
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
5 and the code layer, which indicates the starting chicken positions.
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
6
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
7 The level.conf file allows the default game constants to be customised.
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
8
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
9 Example level.conf:
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
10
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
11 [Level]
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
12 Map: farm.tga
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
13 Goal: Survive
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
14 # -1 for unlimited
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
15 Turn limit: 14
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
16
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
17 [Game values]
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
18 Max Foxes: 10
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
19 Starting Cash: 100
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
20 Sell Price Egg: 10
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
21 Sell Price Chicken: 5
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
22 Sell Price Dead Fox: 5
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
23
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
24 [Fox probabilities]
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
25 Fox: 30
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
26 GreedyFox: 30
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
27 NinjaFox: 30
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
28 DemoFox: 9
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
29 Rinkhals: 1
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
30
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
31
a0bd30dee476 Add docs describing level conf file format
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
32