Sat Nov 22, 2014 1:08 am
Sat Nov 22, 2014 1:41 am
Sat Nov 22, 2014 1:58 am
Sat Nov 22, 2014 2:16 am
Sat Nov 22, 2014 2:50 am
Sat Nov 29, 2014 10:06 pm
Gamebunio gb;
static unsigned char PROGMEM logo []=
{
8,8,
B00000001,
B00010001,
B00000001,
B00000000,
B00000000,
B00000000,
B11111111,
B11111111,
};
void setup (){
gb.begin
gb.titlescreen(F"Get,Grab,&Go), logo);
}
void loop(){
if (gb.update()){
if (gb.buttons.pressed(BTN_A)){
gb.setFrameRate(20);
gb.menu;
MENULENTGTH 2
const char strPlay[] PROGMEM = "Play";
const char strPassword[] PROGMEM = "Password";
const char const menu[MENULENGTH] PROGMEM = {
strPlay,
strPassword,
};
void loop(){
switch(gb.menu(menu, MENULENGTH)){
case 0
gb.update
case 1 //Menu Selected
startLevelOne();
case 2 //Password Selected
displayPassword();
}
void strPassword(){
while(1){
if(gb.update()){
if (gb.buttons.pressed(BTN_C)) {
gb.sound.playCancel();
return;
}
gb.display.print(F("Enter Password"));
gb.display.print(F("0 1 2 3 4 5 6 7"));
gb.display.print(F("8 9 ! @ # $ % &"));
gb.display.print(F(" _ _ _ _ "));
Tue Feb 17, 2015 12:48 am
Gamebunio gb;
static unsigned char PROGMEM logo []=
{
8,8,
B00000001,
B00010001,
B00000001,
B00000000,
B00000000,
B00000000,
B11111111,
B11111111,
};
void setup (){
gb.begin
gb.titlescreen(F"Get,Grab,&Go), logo);
}
void loop(){
if (gb.update()){
if (gb.buttons.pressed(BTN_A)){
gb.setFrameRate(20);
gb.menu;
MENULENTGTH 2
const char strPlay[] PROGMEM = "Play";
const char strPassword[] PROGMEM = "Password";
const char const menu[MENULENGTH] PROGMEM = {
strPlay,
strPassword,
};
void loop(){
switch(gb.menu(menu, MENULENGTH)){
case 0
gb.update
case 1 //Menu Selected
startLevelOne();
case 2 //Password Selected
displayPassword();
}
void strPassword(){
while(1){
if(gb.update()){
if (gb.buttons.pressed(BTN_C)) {
gb.sound.playCancel();
return;
}
gb.display.print(F("Enter Password"));
gb.display.print(F("0 1 2 3 4 5 6 7"));
gb.display.print(F("8 9 ! @ # $ % &"));
gb.display.print(F(" _ _ _ _ "));
const byte WALL[0] PROGMEM = {3,3
B000000,
B001110,
B001110,
B001110,
B000000,
B000000,
gb.display.clear();
gb.display.fillScreen(WHITE);
void strPlay(){
void startLevelOne();
const byte PIXCHAR[] PROGMEM = {1,1
gb.display.drawPixel(11,5);
if (gb.buttons.repeat(BTN_RIGHT,3)){
player_x = player_x + 3;
}
if(gb.buttons.repeat(BTN_LEFT,3)){
player_x = player_x - 3;
}
if(gb.buttons.repeat(BTN_DOWN,3)){
player_y = player_y + 3;
}
if(gb.buttons.repeat(BTN_UP,3)){
player_y = player_y - 3;
}
Tue Feb 17, 2015 1:26 am