I am loading it (to swap the picture) periodically in my game loop, and this probably is suboptimal, but nevertheless, I don't think it is the problem.
Here is my sprite code:
Code: Select all
#include <genesis>
#include "ship1.h"
int main()
{
VDP_setPalette(PAL0, ship1.palette);
VDP_loadBMPTileData((u32*) ship1.image, TILE1, ship1.w/8, ship1.h/8, ship1.w/8);
//This works!
VDP_fillTileMapRectInc(APLAN, TILE_ATTR_FULL(PAL0, 0, 0, 0, TILE1), 15, 15, ship1.w/8, ship1.h/8);
SpriteDef myShip;
myShip.posx = (320-ship1.w)/2;
myShip.posy = (224-ship1.h)/2;
myShip.size = SPRITE_SIZE(4,4);
myShip.tile_attr = TILE_ATTR_FULL(PAL0,1,0,0,TILE1);
myShip.link = 0;
VDP_setSpriteP(0, &myShip);
VDP_updateSprites();
while(1)
{
VDP_waitVSync();
}
}