Mercurial > rinkhals
changeset 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 | 9f5cc2a880d5 |
children | c6f0e3e72e86 |
files | docs/Level_structure |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/Level_structure Thu Oct 29 20:48:09 2009 +0000 @@ -0,0 +1,32 @@ +Levels are stored as two files. + +The level.tga file provides the tilemap for the starting layout. We use +two layers of pgu's tilemap - the tile layer, for the objects of interest, +and the code layer, which indicates the starting chicken positions. + +The level.conf file allows the default game constants to be customised. + +Example level.conf: + +[Level] +Map: farm.tga +Goal: Survive +# -1 for unlimited +Turn limit: 14 + +[Game values] +Max Foxes: 10 +Starting Cash: 100 +Sell Price Egg: 10 +Sell Price Chicken: 5 +Sell Price Dead Fox: 5 + +[Fox probabilities] +Fox: 30 +GreedyFox: 30 +NinjaFox: 30 +DemoFox: 9 +Rinkhals: 1 + + +