spamguy/diplomacy

Map arrows point to centre of objects, not outside them

Closed this issue · 2 comments

Right now the map draws arrows such that the tip of the head's coordinates are directly on top of any other unit that might be there. It doesn't look quite right. Two possible solutions:

  1. Head coordinates should be X distance away from the 'real' coordinate where other units might be drawn, regardless of what direction the arrow is coming from. I swear I saw a Stack Overflow question about how to do this. I would prefer this solution.
  2. Define in the variant a new coordinate type dedicated to where arrow heads point. Something like
    {arrowX: 123, arrowY: 345}

Done.