SPR_initSprite gone?
Posted: Thu Apr 27, 2017 6:44 pm
Hey,
I've noticed SPR_initSprite has disappeared what replaced it?
Matt
I've noticed SPR_initSprite has disappeared what replaced it?
Matt
Sega Megadrive/Genesis development
https://gendev.spritesmind.net/forum/
Code: Select all
SYS_disableInts();
VDP_setPalette(PAL3, zombie_sprite.palette->data);
SYS_enableInts();
//SPR_initSprite(&sprites[0], (SpriteDefinition*)&zombie_sprite, ENEMYSPRITE_POSITION_X, ENEMYSPRITE_POSITION_Y, TILE_ATTR(PAL3, TRUE, FALSE, FALSE));
SPR_addSprite((SpriteDefinition*)&zombie_sprite, ENEMYSPRITE_POSITION_X, ENEMYSPRITE_POSITION_Y, TILE_ATTR(PAL3, TRUE, FALSE, FALSE));
SPR_setAlwaysVisible(&sprites[0], TRUE);
sprites[0].timer = 0;
SPR_setAnim(&sprites[0], ANIM_MOVING);