Make entity grid finer
This commit is contained in:
@@ -282,8 +282,8 @@ void loadMap(Game *game, const char *path, bool mainMenu) {
|
|||||||
game->entityGrid = bzSpatialGridCreate(&(BzSpatialGridDesc) {
|
game->entityGrid = bzSpatialGridCreate(&(BzSpatialGridDesc) {
|
||||||
.maxWidth=game->map.width * game->map.tileWidth,
|
.maxWidth=game->map.width * game->map.tileWidth,
|
||||||
.maxHeight=game->map.height * game->map.tileHeight,
|
.maxHeight=game->map.height * game->map.tileHeight,
|
||||||
.cellWidth=game->map.tileWidth * 4,
|
.cellWidth=game->map.tileWidth * 3,
|
||||||
.cellHeight=game->map.tileHeight * 4,
|
.cellHeight=game->map.tileHeight * 3,
|
||||||
.userDataSize=sizeof(ecs_entity_t)
|
.userDataSize=sizeof(ecs_entity_t)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user