82 #ifndef _METASPRITES_H_INCLUDE
83 #define _METASPRITES_H_INCLUDE
108 #define metasprite_end -128
109 #define METASPR_ITEM(dy,dx,dt,a) {(dy),(dx),(dt),(a)}
110 #define METASPR_TERM {metasprite_end}
125 static void __hide_metasprite(
uint8_t id);
163 return __move_metasprite(base_sprite, (y << 8) | (
uint8_t)x);
172 return __move_metasprite(base_sprite, (y << 8) | (
uint8_t)x);
203 return __move_metasprite_flipx(base_sprite, (y << 8) | (
uint8_t)(x - 8u));
212 return __move_metasprite_vflip(base_sprite, (y << 8) | (
uint8_t)(x - 8u));
244 return __move_metasprite_flipy(base_sprite, ((y - ((
LCDC_REG &
LCDCF_OBJ16) ? 16u : 8u)) << 8) | x);
253 return __move_metasprite_hflip(base_sprite, ((y - ((
LCDC_REG &
LCDCF_OBJ16) ? 16u : 8u)) << 8) | x);
307 __hide_metasprite(base_sprite);
#define LCDCF_OBJ16
Definition: hardware.h:231
__REG LCDC_REG
Definition: hardware.h:166
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