|
Download
Filename: RelativeDistance.scx
Filesize: 33.45KB
Not enough votes.
Log in to rate
| Jan 3 2019, 3:37 am |
| goobie |
| Not Given. |
| 263 |
| Human (Terran) | | () | | () | | () | | () | | () | | () | | Computer (Zerg) |
|
|
This map computes the relative x and y distance between two units and displays the distance in minerals and gas. This implementation is accurate to 8 pixels, rounded down, and up to a distance of 224 pixels. It does not use a full grid system, but rather shifting locations to isolate information about the x and y coordinates individually. This has allowed me to use only 30 locations.
There are issues if the units are too close to the edge of the map.
It does not currently differentiate between left/right or above/below. I know how to differentiate left and right, but not above and below. I don't need relative directions for my current project, but if anyone's interested it is a problem I'd like to implement direction detection some point.
|
|