Add entity map
This commit is contained in:
@@ -93,6 +93,12 @@ bool init(void *userData) {
|
||||
.objectGroups[OBJECTS_GAME]=(BzTileObjectsDesc) {"Game"},
|
||||
.objectGroups[OBJECTS_ENTITIES]=(BzTileObjectsDesc ) {"Entities"}
|
||||
});
|
||||
game->entityMap = entityMapCreate(&(EntityMapDesc) {
|
||||
.maxWidth=game->map.width * game->map.tileWidth,
|
||||
.maxHeight=game->map.height * game->map.tileHeight,
|
||||
.cellResolution=game->map.tileWidth,
|
||||
.cellDepth=10
|
||||
});
|
||||
|
||||
bzTileMapOverrideLayer(&game->map, LAYER_BUILDING_OWNER, initBuildingsLayer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user