(And if you plan to do ASM, ditch it entirely no matter what. You should ditch it entirely if you plan to do hi-color. Unfortunately GBDK's interrupt system adds a very large overhead, so that probably won't work with GBDK. Since you'll be using a HBlank interrupt, you need to go fast. And one last buffer that stores palette lists Have another buffer that stores the computed palettesģ. Use a buffer (in HRAM) that stores the scanlines at which the LYC interrupt should trigger, how many palettes need to be refreshed, and the low byte of a pointer to the palette listĢ. I would recommend the LYC bit, since you don't need to trigger on every scanline.ġ. So, you should really use the STAT interrupt. It would consume the whole frame just to display the effects. Having the HBlank code run using a busy loop is basically a very bad idea. Problem is, I'm learning ASM just to solve this problem, and I'm still very confused on how I'd go about swapping the palettes in memory during hblank.įirst problem that comes to my mind is where the asm code would fit in my C code, would something like this work? Now my thought is: hicolor is overkill in my case, I don't want 8 palettes swapped every 1 or 2 scanlines, I just need to recolor each row of tiles.ġ) Export from the ascii art software each screen he makes, extracting a standard array of tiles id is of course the easy part.Ģ) I will collect palettes and tile attributes in a tiles-row fashion, restricting to 8 palettes of 4 colors per row (making offline colors optimization at this stage).ģ) Where I'm stuck, the GBC code that loads these palettes per row of tiles. So, first thing I tried was processing his artwork with the standard hicolor technique, and it all went fine, it always converts perfectly, no color bleeds. He's coming up with pictures like the first one on this page: That ascii software lets him choose 2 arbitrary colors for each tile, we are restricting the total palette to 16 colors max, but I won't be able to restrict his workflow to using 8 palettes 4 colors each. He composes his art choosing symbols from this array of 16x16 custom tiles: I have an artist making some ascii art using this software: The end result I'm trying to achieve is the following: Hi PinoBatch, yes I am getting the feeling that hblank is quickly consumed with the lengthy c instructions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |