maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RetroFlat Direction API

Macros and constants for definition cardinal directions in screen and world space. More...

Collaboration diagram for RetroFlat Direction API:

Macros

#define RETROFLAT_DIR4_NORTH   0
 
#define RETROFLAT_DIR4_EAST   1
 
#define RETROFLAT_DIR4_SOUTH   2
 
#define RETROFLAT_DIR4_WEST   3
 
#define RETROFLAT_DIR8_NORTH   0
 
#define RETROFLAT_DIR8_EAST   2
 
#define RETROFLAT_DIR8_SOUTH   4
 
#define RETROFLAT_DIR8_WEST   6
 
#define retroflat_dir8_reverse(dir)
 
#define retroflat_dir8_bounce(dir)
 

Variables

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]
 

Detailed Description

Macros and constants for definition cardinal directions in screen and world space.

Macro Definition Documentation

◆ retroflat_dir8_bounce

#define retroflat_dir8_bounce ( dir)
Value:
((dir + 2) % 8)

◆ retroflat_dir8_reverse

#define retroflat_dir8_reverse ( dir)
Value:
((dir + 4) % 8)