1.1 --- a/include/image.h Sat Nov 10 22:11:32 2018 +0100
1.2 +++ b/include/image.h Sat Nov 10 22:40:06 2018 +0100
1.3 @@ -116,6 +116,19 @@
1.4
1.5
1.6
1.7 +/* Initialise a sprite object using an existing image without the capability of
1.8 + storing regions of the screen.
1.9 +
1.10 + SpriteOverwriting(<name>, image_t *image, display_config_t *cfg, int yscale)
1.11 +*/
1.12 +
1.13 +#define SpriteOverwriting(NAME, IMAGE, CFG, YSCALE) \
1.14 + sprite_t NAME = { \
1.15 + .image=IMAGE, \
1.16 + .regions=0, \
1.17 + .yscale=YSCALE, \
1.18 + .cfg=CFG};
1.19 +
1.20 /* Initialise a sprite object using an existing image, creating stored regions
1.21 for the animation of the sprite.
1.22