I don't know what made me dig back into my GBA development stuff, but i did. I pulled out my rom reader/writer and started to dig for source code on GBA games. I actually found a lot more this time. When i started to fuck around with this stuff about a year ago there wasn't much that i understood. Now i've grown a little as far as code goes and i understand a lot more about writing things and then having to compile them. Shit all the stuff i've built up til now has been in director (lingo) or action script. Nothing i've ever done is really that advanced. Shit even the PHP that i've done doesn't even need to be compiled. Well i'm off the subject. I was always wondering how the graphics worked on GBA. I finally found source code with PCX files and .h files. Taking a look at the stuff i finally think i get a part of it.
const u16 n0Data[] = {
0x8E00, 0x3B3B, 0x8E3B, 0x0000, 0x3B8E, 0x8E3B, 0x3B3B, 0x008E, 0x3B8E, 0x8E3B,
Look at that data. It's all binhex color values. a html color could be shown in 6 binhex digits. Every web programmer knows this. 00000 = black, fffff = white, ff0000 = red duh. But what it really breaks down to is RGB mixtures. First two digits are red, then next two are blue and final two are green. AND the binhex values break down to a base 10 value between 0 and 255. So, for all you assholes out there who would always bitch about Macintosh having that fucked up color system that was always on a scale of 0 to 255. 0 to 100 is not exactly as accurate if you know your math. So i again am off the subject. If you look at the data in this PCX conversion, you see 0x8E00 as the first set of data. it really is telling you the colors of the first two pixels. Ignore the 0x, and then the 8E is the first pixel color and 00 is the second. BUT these are not RGB color values, they are only numbers between 0 and 255. Cause it's only an 8 bit color palette.
Well enough of that. I've talked enough. Now i just wonder one thing. You can link two GBA's together with a link cable. Easy enough. I just wonder if anybody has made a link to USB adapter. You could technically play multiplayer games online, or even link your GBA to a desktop application for an addressbook or something. hmmmm.
No Comments Yet
