67 #ifndef _METASPRITES_H_INCLUDE
68 #define _METASPRITES_H_INCLUDE
93 #define metasprite_end -128
94 #define METASPR_ITEM(dy,dx,dt,a) {(dy),(dx),(dt),(a)}
95 #define METASPR_TERM {metasprite_end}
110 static void __hide_metasprite(
uint8_t id);
148 return __move_metasprite(base_sprite, (y << 8) | (
uint8_t)x);
157 return __move_metasprite(base_sprite, (y << 8) | (
uint8_t)x);
188 return __move_metasprite_flipx(base_sprite, (y << 8) | (
uint8_t)(x - 8u));
197 return __move_metasprite_vflip(base_sprite, (y << 8) | (
uint8_t)(x - 8u));
229 return __move_metasprite_flipy(base_sprite, ((y - ((
LCDC_REG &
LCDCF_OBJ16) ? 16u : 8u)) << 8) | x);
238 return __move_metasprite_hflip(base_sprite, ((y - ((
LCDC_REG &
LCDCF_OBJ16) ? 16u : 8u)) << 8) | x);
292 __hide_metasprite(base_sprite);
unsigned char UINT8
Definition: types.h:49
#define LCDCF_OBJ16
Definition: hardware.h:227
__REG LCDC_REG
Definition: hardware.h:162
unsigned char uint8_t
Definition: stdint.h:51
unsigned short int uint16_t
Definition: stdint.h:52
signed char int8_t
Definition: stdint.h:43