Code: Select all
maxInd = USERINDEX + TILE_USERLENGTH - 1;
and shouldn't
Code: Select all
VDP_setVerticalScroll(BPLAN, nextvpos);
Code: Select all
VDP_setVerticalScroll(BPLAN, 0);
Moderator: Stef
Code: Select all
maxInd = USERINDEX + TILE_USERLENGTH - 1;
Code: Select all
VDP_setVerticalScroll(BPLAN, nextvpos);
Code: Select all
VDP_setVerticalScroll(BPLAN, 0);
Code: Select all
VDP_setVerticalScroll(BPLAN, nextvpos);
Code: Select all
VDP_drawImageEx(APLAN, &border, TILE_ATTR_FULL(PAL2, FALSE, FALSE, FALSE, ind), 0, 0, TRUE, TRUE);
ind += border.tileset->numTile;
newInd = ind;
maxInd = TILE_USERINDEX + TILE_USERLENGTH - 1;
for(i = 174; i < 214; i++)
{
//if(i == 37) {
//music
// SND_startPlay_PCM(thundercats_music, sizeof(thundercats_music), SOUND_RATE_8000, SOUND_PAN_CENTER, FALSE);
//}
Image *img = images[i];
// number of tile of current image
u16 numTile = img->tileset->numTile;
// no enough vram space for the current image ? restart
if ((ind + numTile) >= maxInd) {
ind = newInd;
}
u16 nextvpos = vpos ^ 0x20;
VDP_drawImageEx(BPLAN, img, TILE_ATTR_FULL(pal, FALSE, FALSE, FALSE, ind), 7, nextvpos + 4, TRUE, TRUE);
// move to new image
VDP_waitVSync();
VDP_setVerticalScroll(BPLAN, nextvpos);
ind += numTile;
pal ^= 1;
vpos = nextvpos;
waitTick(100);
}
while(1)
{
VDP_waitVSync();
}
return 0;
Code: Select all
VDP_setVerticalScroll(BPLAN, nextvpos * 8);
Thanks Stef!Stef wrote:The last video looks really cool
By the way, you can improve greatly the audio quality by using the ADPCM driver instead. It will consume a bit more of rom space but you will have a 22 Khz playback instead of the very low 8 Khz
Good.I'm using the ASM version, i think i even use your version which do not contain header information.
Code uptimized for speed too. Aplib is very fast.The code is optimized for size but definitely not for speed.
I don't know what you mean by "real time" decompression. Do you want to decompress fullscreen image 60 fps in realtime? I don't think it's possible.I believe i can improve it but still the compression schem is probably too slow for "real time" decompression.
I even contacted Konami but they definitely don't want that we distribute any of their code properties (at least not freely).
Of course i don't want to decompress big imageCode uptimized for speed too. Aplib is very fast.
..
I don't know what you mean by "real time" decompression. Do you want to decompress fullscreen image 60 fps in realtime? I don't think it's possible.
Well at least i tried :pStef wrote:You mad
You can implement some simple kind of LZxx (place instead xx anything you want). It's fastest way from top of my mind.