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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -