|
@ -16,9 +16,8 @@ |
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#include <stdint.h> |
|
|
|
|
|
#include "common.h" |
|
|
#include "common.h" |
|
|
void borg_breakout(); |
|
|
static void borg_breakout(); |
|
|
|
|
|
|
|
|
#ifdef MENU_SUPPORT |
|
|
#ifdef MENU_SUPPORT |
|
|
//static uint8_t breakout_icon[8] PROGMEM = {0x03, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00}; /* our Icon */
|
|
|
//static uint8_t breakout_icon[8] PROGMEM = {0x03, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00}; /* our Icon */
|
|
@ -33,7 +32,7 @@ game_descriptor_t breakout_game_descriptor __attribute__((section(".game_descrip |
|
|
|
|
|
|
|
|
void borg_breakout() |
|
|
void borg_breakout() |
|
|
{ |
|
|
{ |
|
|
uint8_t rungame = 1, num_balls = 1, level = 0; |
|
|
uint8_t level = 0; |
|
|
ball_t balls[1]; |
|
|
ball_t balls[1]; |
|
|
|
|
|
|
|
|
/* spawn a ball in the middle bottom of the field, let it move upwards with random speed & direction */ |
|
|
/* spawn a ball in the middle bottom of the field, let it move upwards with random speed & direction */ |
|
@ -57,7 +56,6 @@ void borg_breakout() |
|
|
|
|
|
|
|
|
if (!level_getscorediff()) |
|
|
if (!level_getscorediff()) |
|
|
{ |
|
|
{ |
|
|
printf("lvl done\n"); |
|
|
|
|
|
level++; |
|
|
level++; |
|
|
/* respawn ball at rebound position */ |
|
|
/* respawn ball at rebound position */ |
|
|
ball_spawn_default (&(balls[0])); |
|
|
ball_spawn_default (&(balls[0])); |
|
|