I'm mainly a python developer, so pls don't be too cruel to me ;-;
I'm making a port of a game to the TI 84 CE using the CE C toolchain, however I have run into the issue of compressing and decompressing sprites. I know how to do it, but is there a way to use a for() loop to decompress several at a time? I don't want spaghetti code, nor do I want my code to look like
Code:
Any help is appreciated! Again, I apologize if the answer is an obvious one I'm not the best at this
I'm making a port of a game to the TI 84 CE using the CE C toolchain, however I have run into the issue of compressing and decompressing sprites. I know how to do it, but is there a way to use a for() loop to decompress several at a time? I don't want spaghetti code, nor do I want my code to look like
Code:
gfx_sprite_t *image;
image = gfx_MallocSprite(image_width, image_height);
zx0_Decompress(image, image_compressed);
gfx_sprite_t *imageTWO
imageTWO = gfx_MallocSprite(imageTWO_width, imageTWO_height);
zx0_Decompress(imageTWO, imageTWO_compressed);
etcetera
Any help is appreciated! Again, I apologize if the answer is an obvious one I'm not the best at this