Staredit Network > Starcraft I Database > File: Relative Distance

Sunken Treasure
(Reload)
Relative Distance
Download
Filename: RelativeDistance.scx
Filesize: 33.45KB

Thumbnail

Rating
Not enough votes.
Log in to rate

File Information
General
Uploaded on:Jan 3 2019, 3:37 am
Uploaded by:goobie
Author:Not Given.
Downloads:263

Map-Data
Tileset:Badlands
Dimension:64x64

Forces
Force 1
Human (Terran)
()
()
()
()
()
()
Force 2
Computer (Zerg)
Force 3
Force 4

Map-Statistics
Units:9
Triggers:121
Locations:31
Strings:38
File Description
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.

All Images

Comments
No comments yet.
[07:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
Please log in to shout.


Members Online: Prankenstein, Zincoshine