mirror of
https://github.com/zeldaret/tmc
synced 2026-07-10 07:06:52 -04:00
Improve LayerStruct
This commit is contained in:
@@ -506,6 +506,7 @@ extern u8 gManagerCount;
|
||||
|
||||
/** @name Tile Macros */ /// @{
|
||||
#define TILE(x, y) (((((x)-gRoomControls.origin_x) >> 4) & 0x3F) | ((((y)-gRoomControls.origin_y) >> 4) & 0x3F) << 6)
|
||||
#define TILE_POS(x, y) (x + (y << 6))
|
||||
#define COORD_TO_TILE(entity) TILE((entity)->x.HALF.HI, (entity)->y.HALF.HI)
|
||||
#define COORD_TO_TILE_OFFSET(entity, xOff, yOff) TILE((entity)->x.HALF.HI - (xOff), (entity)->y.HALF.HI - (yOff))
|
||||
/// @}
|
||||
|
||||
Reference in New Issue
Block a user