Thursday, December 24, 2009

Merry Christmas

Or very nearly. 6 mins to go and I've just fixed a bug in my colour remapping. Originally I think it was a bug with VB.NET because it was doing really weird things, I edited the code, it seemed to fix it but there was no reason for it to have done so, so I changed it back and it still worked. It wasn't quite working though as evidenced by "bugs" in an output APAC image. I've changed the matching "distance" algorithm slightly and that's all fixed now :)

I'm going to add HLS colourspace stuff at some point (when xmas is out the way) because despite it now remapping correctly it's not picking colours that are perceptibly close just mathematically. HLS should fix that or at least allow me to add a bit of weighting to the conversion.


3 mins to go...


Pete

Wednesday, December 16, 2009

Conversions

So, I've been adding colour stuff to the app for the last few days.

I've done colour matching so you can load in an image and match it to a chosen palette (a8,c64 etc). The image you load can be any bit depth because it's matching an existing palette. So if for example you load a 24bpp image and match it to an A8 palette, you'll end up with an image with max 256 colours, all A8 ones. It's kind of up to the artist to make sure they don't use too many but there will be some colour reduction added soon.

I've also added APAC conversion which works from the colour matching, gets the A8 palette "index" number which equates to the colour/lum (4 bits of each) which it then splits onto 2 lines, gets the next pixel (I don't do any averaging across pixels atm, just fixed offset samples) does the same stuff and packs it with the previous one into a byte.

I also recently added image to char conversion + optimisation (same char removal/remapping) ready for all the level/tile editor/software sprite grabbing etc.


Pete

Saturday, December 12, 2009

Getting there.

Just as the original Exploding Fist was a bunch of nothing till it was nearly all designed/coded (he never tested his code, just wrote it then ran it when it was pretty much all finished) so the A8 version is currently a lot of partially done (in some cases finished) parts.

Once the current rewrite of the PC app for editing all the game data (backgrounds, sprite grabber, sprite animator, collision editor) is done, there is A8 code waiting for it all to be dropped into. Sooo, as soon as that data is ready there should be a demoable Exploding Fist :)


Pete

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

Tuesday, October 27, 2009

A right tool

I need to rewrite my tools code. It's got too unwieldy and adding stuff to it has become a nightmare.

It needs things like a basic "class" (although it's in C) for things like creating a zoomable scrollable window that allows clicks and zoomed overlays (such as a grid or outlines round "stuff"). All the code for that is in there already, just I have to recreate it each time for each new window and it's becoming a nightmare so it's time to add all that stuff to the window structure I created and have a single function to create that scrolling/scaling/does stuff "widget".



Pete

Saturday, October 17, 2009

New blog..

Set up this blog so anyone interested can watch my lazy ass attempt to work on too many retro projects at the same time.

Not sure about the layout yet, no doubt I'll change it at a later date.

Sorry about the url ;) It's kind of hard to find something available these days and it's sort of a terrible double/half pun on Eight Bit, bite/bitten, ate/eight. If I'd thought about it for more than 2 seconds atebitten or atebit might've been better although no doubt they were gone already. urghhh. :)


Pete