Difference between revisions of "Thread:Talk:Main Page/Virtual bullet doesn't line up with real bullets/reply (3)"

From Robowiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 03:03, 4 October 2011

Yeah that's correct, the setFire is from the last tick.

What's a typical pattern for robocode as to code placement? I'm currently placing the gun turning code in the while true loop and the firing code in onScannedRobot

and it's wrapped with if (getGunHeat() == 0.0)

Should I change that layout? (also add && getGunTurnRemaining() == 0.0 to the fire wrap?)