hi guys
im working on bitmap images for gamebuino. Using their library I can make a bitmap image like this..............
//imports the SPI library (needed to communicate with Gamebuino's screen)
#include <SPI.h>
//imports the Gamebuino library
#include <Gamebuino.h>
//creates a Gamebuino object named gb
Gamebuino gb;
const byte PROGMEM turtle_rock[] =
{
16,16,
B00011110,B00000000,
B00101001,B10000000,
B01010000,B11111000,
B01010000,B10101100,
B10010000,B10100110,
B10000001,B01000011,
B10000001,B01010011,
B10000001,B01010011,
B01000001,B01010011,
B01000001,B01011011,
B01000001,B00001011,
B10000001,B00000101,
B10000000,B00000101,
B10000000,B11101100,
B01000001,B00111111,
B11111111,B11111000,
};
// the setup routine runs once when Gamebuino starts up
void setup(){
// initialize the Gamebuino object
gb.begin();
}
// the loop routine runs over and over again forever
void loop(){
//updates the gamebuino (the display, the sound, the auto backlight... everything)
//returns true when it's time to render a new frame (20 times/second)
if(gb.update()){
gb.display.drawBitmap(10,10,turtle_rock);
}
}
In order to be able to use it for making a sprite (game image) I need to be able to convert it too.jpg.
When the compiled the code above exports a .hex file so I think I need some kind of converterbut to be honest im comepletely lost as to what to do with it
Heres a link to the library reference for gamebuino.....