GenerateTreasure x0,y0,xM,yM,mirrMode;

initial setup of the treasure generator

missing by default

the parameters are integers

The treasure generator can work in two ways:

  1. Can generate treasure before the game starts
  2. Can generate treasures while playing, from time to time.

The first four parameter sets the bounding rectangle in which the treasures will be spread. The bounding rectangle refers to the center point of the treasures. For example if the treasures are 20x20, and we want spread them on the whole field, this can be done by the following row:

GenerateTreasure 10,10,639,439,2;

The last parameter sets the mirroring mode. The possible values are:

This command just sets up the terasure generator. To generate the treasures, we will use two further commands:

InitialTreasures
TimerPutTreasures

Sample : Atom, Carma, Meadow2, Mini