small fixes
This commit is contained in:
parent
0460c175cb
commit
b9aafa37d4
|
@ -140,7 +140,7 @@ void ram(void){
|
||||||
conrtols();
|
conrtols();
|
||||||
draw_game();
|
draw_game();
|
||||||
lcdDisplay();
|
lcdDisplay();
|
||||||
delayms(6);
|
delayms_queue_plus(12,0);
|
||||||
if(game.shot_delay > 0){
|
if(game.shot_delay > 0){
|
||||||
game.shot_delay--;
|
game.shot_delay--;
|
||||||
}
|
}
|
||||||
|
@ -217,8 +217,6 @@ static uint32_t highscore_get(char nick[]){
|
||||||
|
|
||||||
static void init_game(void) {
|
static void init_game(void) {
|
||||||
|
|
||||||
randomInit();
|
|
||||||
|
|
||||||
game.ticks = 0;
|
game.ticks = 0;
|
||||||
game.ships = 3;
|
game.ships = 3;
|
||||||
game.score = 0;
|
game.score = 0;
|
||||||
|
@ -488,4 +486,4 @@ static void conrtols(void){
|
||||||
} else if (gpioGetValue(RB_BTN4)==0) {
|
} else if (gpioGetValue(RB_BTN4)==0) {
|
||||||
shoot();
|
shoot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue