robocode - Return coordinates of a tank -
i have written code move tank specific point. first i've made wall stick , programmed find out when tank moves bottom-left. tank's coordinate (18,18), when use getwidth() , getheight() function returns tank's width , height - (40, 40).
i think when tank moves bottom-left, coordinate should (getwidth()/2, getheight()/2). doing wrong here?
Comments
Post a Comment