blitzxion / Tanks.js

Using Javascript and HTML5, watch the AI build up their army and battle each other!
12 stars 4 forks source link

World wrap should affect tracing lines (T) #31

Open derekgates opened 12 years ago

derekgates commented 12 years ago

Issue #9 brought us attacking with world wrap in mind. Unfortunately when the traces are on and an enemy is being attacked around the wrap, the line is shown through the long way (center of screen).

http://dl.dropbox.com/u/1736241/Screenshots/ki.png

jmaygarden commented 12 years ago

A special case needs to be added for wrapped targets. Then two separate line segments must be drawn.

derekgates commented 12 years ago

@jmaygarden did a great job on this. Finally looks like it should. Thank you!

Noticing some flickering target lines on turrets (#45)