Skip to content

Commit

Permalink
Fixed first brick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kliao2016 committed Nov 14, 2017
1 parent 4dceff8 commit 3997f72
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 1 deletion.
Binary file removed BrickBreaker.elf
Binary file not shown.
Binary file removed BrickBreaker.gba
Binary file not shown.
Binary file removed font.o
Binary file not shown.
3 changes: 3 additions & 0 deletions game.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ void handleBrickCollisions(Brick *brptr, Ball *ballptr, int *numBricks, int bric

for (int i = 0; i < bricksSize; i++) {
Brick *cur = brptr + i;
if (cur->row == 0 || cur->col == 0) {
continue;
}
if (cur->isHit) {
drawRect(cur->row, cur->col, BRICKHEIGHT, BRICKWIDTH, BGCOLOR);
for (int j = i; j < bricksSize; j++) {
Expand Down
Binary file removed game.o
Binary file not shown.
Binary file removed graphics.o
Binary file not shown.
Binary file removed main.o
Binary file not shown.
Binary file removed myLib.o
Binary file not shown.
Binary file removed res/crt0.o
Binary file not shown.
1 change: 0 additions & 1 deletion res/libc_sbrk.d

This file was deleted.

Binary file removed res/libc_sbrk.o
Binary file not shown.

0 comments on commit 3997f72

Please sign in to comment.