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:
- Can generate treasure before the game starts
- 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:
- 0 no mirroring
- 1 mirroring by the verical axis
- 2 mirroring by the horizontal axis
- 3 mirroring by the center point
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