Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** retrobreak.c 2014-04-27 01:35:15.328782877 +0200
- --- retrobreak.fixed.c 2014-04-27 01:34:57.785449652 +0200
- ****************** 353,360 ****
- Game.difficult=1;
- Game.lives = 3;
- Game.status = 1;
- bricks = COLS * 6; // number of bricks
- !
- for (i = 0; i <6; i++)
- {
- for (j = 0; j <16; j++)
- --- 353,362 ----
- Game.difficult=1;
- Game.lives = 3;
- Game.status = 1;
- + Game.player_score = 0;
- bricks = COLS * 6; // number of bricks
- ! indexB = 0;
- ! k = 0;
- for (i = 0; i <6; i++)
- {
- for (j = 0; j <16; j++)
- ****************** 363,369 ****
- Brick[indexB].y=i*BRICK_HEIGHT;
- Brick[indexB].w=BRICK_WIDTH;
- Brick[indexB].h=BRICK_HEIGHT;
- ! Brick[indexB].color=k;
- indexB++;
- }
- k++;
- --- 365,372 ----
- Brick[indexB].y=i*BRICK_HEIGHT;
- Brick[indexB].w=BRICK_WIDTH;
- Brick[indexB].h=BRICK_HEIGHT;
- ! Brick[indexB].color=k;
- ! Brick[indexB].hit=0;
- indexB++;
- }
- k++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement