Map generation tweaking: some biomes are placed at the center of the map, some at the center and some randomly.

This commit is contained in:
Joonas Rikkonen
2017-08-20 13:20:23 +03:00
parent 8e71b4b828
commit a6689b894d
5 changed files with 110 additions and 16 deletions
@@ -114,13 +114,11 @@ namespace Barotrauma
new Rectangle((int)start.X, (int)start.Y, (int)dist + 2, width),
new Rectangle(0, 0, iceCrack.Width, 60), crackColor, MathUtils.VectorToAngle(end - start),
new Vector2(0, 30), SpriteEffects.None, 0.01f);
if (i == 0)
{
GUI.DrawString(spriteBatch, start, connection.Biome.Name, Color.White);
}
}
//TODO: remove
Vector2 center = rectCenter + (connection.CenterPos + offset) * scale;
GUI.DrawString(spriteBatch, center, connection.Biome.Name, Color.White);
}
rect.Inflate(8, 8);