gLife
<<< Previous | gLife | Next >>>

# Terrain and animal attributes

gLife generates terrain and animals with initial attributes, which are listed below.

## Terrain generation

For generating the terrain:

- A maximum amount of food found on each section of terrain is set. This maximum is currently `250`. The food found there at the start is a random amount between 1 and 250.

- The rate that food can regenerate on the terrain is set. The maximum rate would be 5 units a turn.

## Animal generation

When creating new animals, a new animal has a variety of characteristics which are currently:

Sex

  `Sex` is either male or female: a simple 50:50 chance.

Age

  A new animal starts as 1.

Vision

  `Vision` is generated but not yet used.

Food issues

  The animal has two food characteristics: its `metafood` value (its metabolism) and its food storage: `foodstore`. These are not yet used.

Speed

  The animal's `speed` is generated, and determines how many units of space it can move in a turn.

Positioning

  The animal's position on the grid is generated as a X co-ordinate and a Y co-ordinate, and it starts there.

<<< Previous | Home | Next >>>
Things to fiddle with | Up | Animal rules