Merge tilesets into one

This commit is contained in:
2023-12-12 17:02:23 +01:00
parent 11832ec1cc
commit 72b32b1a26
48 changed files with 10442 additions and 4618 deletions

View File

@@ -48,7 +48,7 @@ BzTileset bzTilesetCreate(const BzTilesetDesc *desc) {
tileset.width = tileset.tiles.width / tileset.tileWidth;
tileset.height = tileset.tiles.height / tileset.tileHeight;
tileset.tileCount = tileset.width * tileset.tileHeight;
tileset.tileCount = tileset.width * tileset.height;
tileset.tileColliders = bzAlloc(tileset.tileCount * sizeof(*tileset.tileColliders));
for (i32 i = 0; i < tileset.tileCount; i++) {
tileset.tileColliders[i] = (BzTileShape) {BZ_TILE_SHAPE_NONE};