Archived

This topic is now archived and is closed to further replies.

BalAhan

GBA - Problems displaying a bitmap or sprite on screen

Recommended Posts

BalAhan    122
I''ve been following the tutorials on the Pern Project and the articles on this site. Both the tutorial for displaying a pre made bitmap image on the screen and the displaying of a sprite on the screen, will compile just fine. But when I go to run the .bin file in VisualBoy or BoyCottAdvance, nothing shows up on the screen. In the first tutorial, when we just plotted a red pixel everywhere on the screen, that worked and the screen showed up red. Does anyone know what the problem might be? Thanks!

Share this post


Link to post
Share on other sites
Aprosenf    372
If the image is 8bpp, are you also copying the palette? As long as you have the image data in an array, and you are copying it in the same way as you would copy in red into the entire buffer, the only reason that it wouldn''t show up would be that the image is all black or the palette is all black.

Share this post


Link to post
Share on other sites