Tilemap: Support for x-flipped and xy-flipped (180°) tiles
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1864 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -36,3 +36,10 @@ void Tilemap_draw(word x, word y, byte color);
|
||||
#define TILE_X(t) (((t)%Main_tilemap_width)*Snap_width+Snap_offset_X)
|
||||
#define TILE_Y(t) (((t)/Main_tilemap_width)*Snap_height+Snap_offset_Y)
|
||||
|
||||
enum TILE_FLIPPED
|
||||
{
|
||||
TILE_FLIPPED_NONE = 0,
|
||||
TILE_FLIPPED_X = 1,
|
||||
TILE_FLIPPED_Y = 2,
|
||||
TILE_FLIPPED_XY = 3, // needs be TILE_FLIPPED_X|TILE_FLIPPED_Y
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user