Macros and constants for definition cardinal directions in screen and world space.
More...
|
|
#define | RETROFLAT_DIR4_NONE (-1) |
| |
|
#define | RETROFLAT_DIR4_NORTH 0 |
| |
|
#define | RETROFLAT_DIR4_EAST 1 |
| |
|
#define | RETROFLAT_DIR4_SOUTH 2 |
| |
|
#define | RETROFLAT_DIR4_WEST 3 |
| |
|
#define | RETROFLAT_DIR8_NONE (-1) |
| |
|
#define | RETROFLAT_DIR8_NORTH 0 |
| |
|
#define | RETROFLAT_DIR8_EAST 2 |
| |
|
#define | RETROFLAT_DIR8_SOUTH 4 |
| |
|
#define | RETROFLAT_DIR8_WEST 6 |
| |
|
#define | retroflat_dir4_rotate_cw(dir) ((dir + 1) % 4) |
| |
|
#define | retroflat_dir8_reverse(dir) ((dir + 4) % 8) |
| |
|
#define | retroflat_dir8_bounce(dir) ((dir + 2) % 8) |
| |
|
|
typedef int8_t | retroflat_dir4_t |
| |
|
typedef int8_t | retroflat_dir8_t |
| |
|
|
MAUG_CONST int16_t SEG_MCONST | gc_retroflat_offsets8_x [8] |
| |
|
MAUG_CONST int16_t SEG_MCONST | gc_retroflat_offsets8_y [8] |
| |
|
MAUG_CONST int16_t SEG_MCONST | gc_retroflat_offsets4_x [4] |
| |
|
MAUG_CONST int16_t SEG_MCONST | gc_retroflat_offsets4_y [4] |
| |
Macros and constants for definition cardinal directions in screen and world space.