Make entity grid finer

This commit is contained in:
2024-02-13 13:25:50 +01:00
parent 2c0ceb026b
commit 8d7a32d941

View File

@@ -282,8 +282,8 @@ void loadMap(Game *game, const char *path, bool mainMenu) {
game->entityGrid = bzSpatialGridCreate(&(BzSpatialGridDesc) {
.maxWidth=game->map.width * game->map.tileWidth,
.maxHeight=game->map.height * game->map.tileHeight,
.cellWidth=game->map.tileWidth * 4,
.cellHeight=game->map.tileHeight * 4,
.cellWidth=game->map.tileWidth * 3,
.cellHeight=game->map.tileHeight * 3,
.userDataSize=sizeof(ecs_entity_t)
});