Bonus cookies and mines appear randomly during games. The average creation rate can be specified using the Advanced tab of the New Match window. Robots can determine the creation rate by examining the _cmrate system variable. There is an equal chance of each new instance being either a cookie or a mine. Because creation occurs randomly, cookies and mines may be created in unequal numbers and at varying rates over the short term. The location of each new instance is also random.

Cookies and mines have the same dimensions and do not move laterally or rotate.

Cookie/Mine Size

The size of both cookies and mines is defined by an upright square measuring 9 x 9 units. You can see the boundaries of both cookies and mines in the game by opening the Settings Window, then click the Animation/Sound tab, and checking "Collision Boxes". 

       


Energy Effects

When a robot collides with either a cookie or a mine the robot's energy is changed. Cookies add energy to the robot, while mines take away energy. Whenever a robot collides with another object it incurs 1 energy of collision damage. When a robot hits a cookie or mine the energy change is added to the collision damage.

  Energy Collision Total Change
Cookie 21 -1 20
Mine -19 -1 -20


See Also

robot attributes, arena attributes, missile attributes, _cmrate