Mirroring levels. Mirroring the wall geometry works, but ruins and background sprites are not placed at the correct positions yet.

This commit is contained in:
Joonas Rikkonen
2018-07-27 10:36:52 +03:00
parent ce18309a78
commit aa5b2a973e
4 changed files with 144 additions and 30 deletions
@@ -27,10 +27,17 @@ namespace Barotrauma
{
color = Color.LightGray;
}
GUI.DrawRectangle(spriteBatch, new Vector2(pos.Position.X - 15.0f, -pos.Position.Y - 15.0f), new Vector2(30.0f, 30.0f), color, true);
}
foreach (RuinGeneration.Ruin ruin in ruins)
{
Rectangle ruinArea = ruin.Area;
ruinArea.Y = -ruinArea.Y - ruinArea.Height;
GUI.DrawRectangle(spriteBatch, ruinArea, Color.DarkSlateBlue, false, 0, 5);
}
}
}