scoring bug in invaders
This commit is contained in:
parent
858429cd15
commit
dd4666b3d7
|
@ -77,6 +77,7 @@ void ram(void) {
|
||||||
screen_intro();
|
screen_intro();
|
||||||
game.rokets = 3;
|
game.rokets = 3;
|
||||||
game.level = 1;
|
game.level = 1;
|
||||||
|
game.score = 0;
|
||||||
init_game();
|
init_game();
|
||||||
screen_level();
|
screen_level();
|
||||||
while (game.rokets>=0) {
|
while (game.rokets>=0) {
|
||||||
|
@ -162,7 +163,6 @@ void init_game(void) {
|
||||||
game.killed = 0;
|
game.killed = 0;
|
||||||
game.step = false;
|
game.step = false;
|
||||||
game.ufo = DISABLED;
|
game.ufo = DISABLED;
|
||||||
game.score = 0;
|
|
||||||
init_enemy();
|
init_enemy();
|
||||||
|
|
||||||
for (int col=0; col<ENEMY_COLUMNS; col++){
|
for (int col=0; col<ENEMY_COLUMNS; col++){
|
||||||
|
|
Loading…
Reference in New Issue