[Home]Brainfade/Questions

Robo Home | Brainfade | Changes | Preferences | AllPages

I'm having a bit of a problem with my movement and think it could be down to a technicality of some of the robocode methods. I'm looking to limit the maximum speed of my bot (both forwards and backwards) but i seem to be unable to do so.

For instance, if i call setMaxVelocity?(6), does this mean (-8 <= velocity <= 6) or (-6 <= velocity <= 6)?? and also, if i call setMaxVelocity?(-6) does this mean (-8 <= velocity <= -6) or (-6 <= velocity <= 0)??

perplexed.... Brainfade

(-6 <= c <= 6) and (0 <= x <= 0) respectively I suspect Also, note that you won't slow down more than 2 pixels/tick/tick or speed up more than 1 pixels/tick/tick -- FnH


Robo Home | Brainfade | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited August 30, 2003 21:50 EST by FnH (diff)
Search: