const int seed_count = 9;//sqrt(grid_size.x) * 2;
const int width = 12 * (grid_size.x/128);
const int height = width * 1;
+ const float small_room_radius = 16.0f;
float phase = ((rand() % 360)/(float)360) * (M_PI*2);
for (int n = 0; n < seed_count; n++)
{
for (int y = seed_y-(height/2); y < seed_y+(height/2); y++)
{
- if (y >= grid_size.y || x >= grid_size.x || y < 0 || x < 0)
- continue;
- // Third parameter for permanent presence of B chemicals (black)
- grid[x][y].c = 1.0f;
+ if ((sqrtf(((x-seed_x)*(x-seed_x))+((y-seed_y)*(y-seed_y))) < small_room_radius))
+ // Third parameter for permanent presence of B chemicals (black)
+ grid[x][y].c = 1.0f;
}
}
}