This code is free to use for any purpose whatsoever. Giving credit to me somewhere is nice, but not required. |
Debugging graphics for Robocode 1.1+ in 3 easy steps: |
1. Extend DrawingBot. 2. Call the drawing functions you want in your code, for example YourRobotsName.drawText("Hello, World!, 100, 100, Color.WHITE); 3. Run Robocode and click the "Paint" button in your robot's console to turn on graphics for your bot and you'll see the graphics appear. An example of how to use this is /LinearTargetingBot?. <pre> |
</pre> |