Pixel Positions

by Kaiochao
Get the absolute pixel coordinates of atoms on the map. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Kaiochao.PixelPositions##version=3

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Kaiochao.PixelPositions##version=3

216 downloads
Version 3
Date added: Jun 23 2017
Last updated: Jul 27
0 fans
Adds procs to atoms to get their "world pixel coordinates":
atom
proc
// Vectors
Size()
LowerPosition()
CenterPosition()

// Numbers
Width()
Height()

LowerX()
LowerY()

CenterX()
CenterY()

Includes:
- Tile Sizes, required by the calculations from tile-based coordinates to pixel coordinates.
- Vector2 for vector sizes and positions.

7/27/2019
Updated documentation.