#89635 - nick5454 - Sun Jun 25, 2006 10:26 pm
I have a sprite thats 16x32. But I can get the image to comeout correctly.
If I use a 32x32 it comes out correctly. But I would like to make it 16x32 instead.
Can someone give me a pointer or a link for some help for setting up sprites.
Code is included for an example. This is from j. harbours book. The first sprite example.
Thanks,
Nick
#define COLOR_16 0x0000
#define COLOR_256 0x2000
#define SIZE_8 0x0
#define SIZE_16 0x4000
#define SIZE_32 0x8000
#define SIZE_64 0xC000
typedef struct tagSprite
{
unsigned short attribute0;
unsigned short attribute1;
unsigned short attribute2;
unsigned short attribute3;
} Sprite, *pSprite;
sprites[0].attribute0 = COLOR_256 | y;
sprites[0].attribute1 = SIZE_16 | x;
sprites[0].attribute2 = char_number;
If I use a 32x32 it comes out correctly. But I would like to make it 16x32 instead.
Can someone give me a pointer or a link for some help for setting up sprites.
Code is included for an example. This is from j. harbours book. The first sprite example.
Thanks,
Nick
#define COLOR_16 0x0000
#define COLOR_256 0x2000
#define SIZE_8 0x0
#define SIZE_16 0x4000
#define SIZE_32 0x8000
#define SIZE_64 0xC000
typedef struct tagSprite
{
unsigned short attribute0;
unsigned short attribute1;
unsigned short attribute2;
unsigned short attribute3;
} Sprite, *pSprite;
sprites[0].attribute0 = COLOR_256 | y;
sprites[0].attribute1 = SIZE_16 | x;
sprites[0].attribute2 = char_number;