Monday, November 2, 2009

Prince of Pain-in-the-assia

As there seems to be a lot of chat, graphics editing and other shenanigans going on on the AA forum (not least of which by myself) about doing C64/Atari800 Prince of Persia I decided to have a look at repacking the DOS sprites. As they've got a bit of anti-alias colour in them I can actually make them smaller than the originals (they'll be 4 colour on these versions) and with some bit packing, smaller still..

Now to write the depacker!! I'm going to do the C64 one first (cuz it's easier). It'll check width and height to see what number/layout of hardware sprites are needed, set those up at the correct X/Y positions on screen and then depack the data into them. I need to build masking into the routine which makes it even more arsey and it's at times like these I hate 6502 and it's lack of registers.

The A8 version will no doubt be a bigger bitch as it has to do the software spriting/masking/setting PMG positions etc at the same time. YUK!


Pete