From one side, I have these sprites:
https://github.com/jsmolina/speccy-misi ... prites.png
and their corresponding mask:
https://github.com/jsmolina/speccy-misi ... s_mask.png
All of them become .asm files on:
https://github.com/jsmolina/speccy-misi ... r.asm#L122
Sprite then is created by
Code: Select all
struct sp1_ss * sp;
sp = sp1_CreateSpr(SP1_DRAW_MASK2LB, SP1_TYPE_2BYTE, 4, (int)sprite_protar1, 1);
sp1_AddColSpr(sp, SP1_DRAW_MASK2, SP1_TYPE_2BYTE, (int)sprite_protar2, 0);
sp1_AddColSpr(sp, SP1_DRAW_MASK2, SP1_TYPE_2BYTE, (int)sprite_protar3, 0);
sp1_AddColSpr(sp, SP1_DRAW_MASK2RB, SP1_TYPE_2BYTE, 0, 0);
sp1_IterateSprChar(sp, initialiseColour);
#define RIGHTC1 16
#define RIGHTC2 80
#define LEFTC1 144
#define LEFTC2 208
So moving it becomes:
Code: Select all
sp1_MoveSprAbs(misifu.sp, &full_screen, (void*) misifu.offset, misifu.y, misifu.x, 0, 0);
But for some weird reason, the cat is not FULLY displayed on all of its heigh (yellow is the visible part):
I tried playing with '16' and so, but current value is the only one that seems to work.
You could find TAP file here: https://github.com/jsmolina/speccy-misi ... misifu.tap
My question is, am I missing something on regards of offset parameter? sp1_MoveSprAbs third param.