Skip to content
(R)Evolution Simulator edited this page Mar 28, 2018 · 2 revisions

A Chunk is a small square portion in which the virtual territory is subdivided.

Variables

Each chunk is characterized by:

  • a position in the world; a maximum amount of grass foodmax (between 0 and 100);
  • a grass growth coefficient growth_coeff, directly proportional to the maximum amount of grass in the chunk;
  • a temperature, which varies between -100 (cold) and 100 (warm), constant over time;
  • an amount of grass food, that variates for tick to tick. Both the temperature and the initial amount of the grass are distributed in the world through Perlin's Simple Noise, a function that assigns values ​​close to neighbouring variables (a more homogeneous "randomization")

Territory by temperature Territory by foodmax

You can see two images depicting the world in the absence of creatures, in the first from the thermal point of view (the areas are warmer tend to red, while the colder ones tend to blue), while in the second from the point of view of the distribution of the maximum quantity of food (the dark green areas have little food, while the light green areas have so much food). As you can see, the temperature gradually varies between a chunk and another close, thanks precisely to the Perlin's Simple Noise. The same applies to the distribution of food quantity.

Behaviour

Each tick the creatures eat part of the grass present in the chunk, therefore the food value of the chunk decreases. On the other side each tick the grass inside a chunk regrows, therefore the food value of the chunk increases.

Clone this wiki locally