Add gold ore, fix bug with collision layer

This commit is contained in:
2024-01-23 17:24:43 +01:00
parent b6e54a7fcb
commit 547a1ca583
8 changed files with 172 additions and 97 deletions

View File

@@ -247,7 +247,9 @@ void bzSpatialGridDrawDebugGrid(const BzSpatialGrid *grid) {
for (i32 y = 0; y < grid->height; y++) {
for (i32 x = 0; x < grid->width; x++) {
BzSpatialGridID **cell = getCell(grid, x, y);
i32 numEntries = bzArraySize(*cell);
i32 numEntries = 0;
if (*cell)
numEntries = bzArraySize(*cell);
Color color = WHITE;
i32 tint = numEntries;
if (tint > 10) tint = 10;