skelton

#include <Gamebuino.h>

#define appName "AppName" //change to Your Game's Name

Gamebuino gb;

void appSetup(){

//your game's initialize code here

}

void setup(){

gb.begin();

gb.titleScreen(F(appName));

gb.battery.show=false;

gb.pickRandomSeed();

appSetup();

}

void loop(){

if(gb.update()){

//your game's main code here

gb.display.persistence = false; // (*1


if(gb.buttons.pressed(BTN_A)){

}

if(gb.buttons.pressed(BTN_B)){

}

// need this! -- return top menu

if(gb.buttons.pressed(BTN_C)){

appSetup();

gb.titleScreen(F(appName));

}

}

}

*1) gamebuino erases every frame screen. If you do not want to do this, change it to "True" so you do not erase the screen.