Level wall generation bugfixes, moved level background drawing to LevelRenderer, more coordinate system bugfixes, better looking progress bars,

This commit is contained in:
Regalis
2015-12-14 18:59:59 +02:00
parent c74caadc42
commit 859be53d28
28 changed files with 318 additions and 232 deletions
+1 -28
View File
@@ -354,34 +354,7 @@ namespace Barotrauma
lastPickedFraction = closestFraction;
return closestBody;
}
//public static Body PickBody(Vector2 point)
//{
// Body foundBody = null;
// AABB aabb = new AABB(point, point);
// GameMain.World.QueryAABB(p =>
// {
// foundBody = p.Body;
// return true;
// }, ref aabb);
// return foundBody;
//}
//public static bool InsideWall(Vector2 point)
//{
// Body foundBody = PickBody(point);
// if (foundBody==null) return false;
// Structure wall = foundBody.UserData as Structure;
// if (wall == null || wall.IsPlatform) return false;
// return true;
//}
//movement ----------------------------------------------------