Sun Apr 26, 2015 4:34 pm
Sun Apr 26, 2015 4:54 pm
Sun Apr 26, 2015 5:13 pm
Sun Apr 26, 2015 6:13 pm
Marcus wrote:Which should I send you? As a sprite sheet or single files? Or binary array?
Sun Apr 26, 2015 6:24 pm
Skyrunner65 wrote:Hey, if it helps you can take a look at my Title Screen Code, near the bottom of the sketch.
This allows to show a logo, which can be 84*48 pixels big.
Might not be much, but it would certainly allow anyone making a logo to have a bit more room.
Also, it has some controls built-in.
Sun Apr 26, 2015 7:21 pm
Sun Apr 26, 2015 8:13 pm
Sun Apr 26, 2015 8:59 pm
Mon Apr 27, 2015 11:48 am
void titlescreen(){ //This is a separate function, like loop() or setup()
while(1){
if (gb.update()){
gb.display.drawBitmap(0, 0, logo);
if (gb.buttons.pressed(BTN_A)) { //plays a noise and breaks out of the title screen when A is pressed
gb.sound.playOK();
gb.battery.show = false;
break;
break;
}
if (gb.buttons.pressed(BTN_C)) {
gb.changeGame(); //change game when C is pressed
}
}
}
}
//example:
void setup(){
//A bunch of other stuff...
titlescreen(); //calls on the title screen code
}
Mon Apr 27, 2015 5:22 pm