add brick breaking

This commit is contained in:
Quinn
2024-08-14 14:37:56 +02:00
parent c8baf5dcc3
commit 315eaf1636
4 changed files with 36 additions and 1 deletions

View File

@@ -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;
}