Add 8 layers to collisions
This commit is contained in:
@@ -78,7 +78,7 @@ ecs_entity_t placeBuilding(Game *game, BuildingType type,
|
||||
region.rec.height *= sizeY;
|
||||
ecs_set_ptr(ECS, building, TextureRegion, ®ion);
|
||||
|
||||
bzTileMapSetCollisions(&game->map, true, posX, posY, sizeX, sizeY);
|
||||
bzTileMapSetCollisions(&game->map, true, COLL_LAYER_BUILDINGS, posX, posY, sizeX, sizeY);
|
||||
|
||||
switch (type) {
|
||||
case BUILDING_KEEP:
|
||||
|
||||
Reference in New Issue
Block a user