Virtual bullet doesn't line up with real bullets

Fragment of a discussion from Talk:Main Page
Jump to navigation Jump to search

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?)

Ultimatebuster03:03, 4 October 2011