Add page support to object pool

This commit is contained in:
2023-12-13 09:31:08 +01:00
parent 72b32b1a26
commit a2c19cf65d
5 changed files with 129 additions and 48 deletions

View File

@@ -107,7 +107,7 @@ bool initTreesLayer(BzTileMap *map, BzTileLayer *layer) {
f32 posX = layer->offsetX + x * sizeX;
f32 posY = layer->offsetY + y * sizeY;
ecs_entity_t e = ecs_new_id(ECS);
//bzSpatialGridInsert(game->entityGrid, &e, posX, posY, sizeX, sizeY);;
bzSpatialGridInsert(game->entityGrid, &e, posX, posY, sizeX, sizeY);
posX += sizeX * 0.5f;
posY += sizeY * 0.5f;
ecs_add(ECS, e, TextureTerrain);