mirror of
https://github.com/thepigeongenerator/breakout_clone.git
synced 2025-12-19 15:15:46 +01:00
add brick breaking
This commit is contained in:
@@ -54,7 +54,7 @@ void renderer_update(RenderData* render_data) {
|
||||
for (int y = 0; y < BRICK_ROWS; y++) {
|
||||
Brick* brick = &level->bricks[x][y];
|
||||
|
||||
if (brick == NULL) {
|
||||
if (brick->destroyed == true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user