The robot description file contains information about a robot. Empty lines and lines beginning with a #-sign are ignored. All other lines consists of a keyword followed by a colon and the data associated with that keyword.
Keyword | Description |
---|---|
name | The name of the robot |
code | The name of the file containing the assembly code for the is robot (see Embedded code below). |
brake | Brake power. Higher values means faster braking. |
accel | Acceleration. Higher values means faster acceleration. |
turnspeed | The speed which the robot can turn. |
maxspeed | The robots maximum speed. |
shields | Shield power when the game starts. |
scannerrecharge | The speed at which the scanners recharge after being used. |
scannerrange | The range of the scanner. |
weaponspeed | The speed of the bullets fired by the robot. |
weaponrecharge | The speed at which the weapong recharges after being fired. |
weaponpower | The amount of damage the bullets cause. |
weaponrange | The range of the bullets fired by this robot. |
It is possible to embed the assembler source in the robot definition file. To do this, don't specify a source file using the code keyword and use the special keyword end to mark the end of the robot definition. Everything after the end keyword will be read in as the assembly source code for this robot.