GBA - Problems displaying a bitmap or sprite on screen
1 reply to this topic
Members - Reputation: 122
Posted 17 March 2002 - 09:22 AM
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!
Members - Reputation: 372
Posted 17 March 2002 - 11:46 AM
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.