Improved submarine movement (buoyancy & drag), engine and "navigation terminal", new map, optimized levels (less vertices and physics bodies)

This commit is contained in:
Regalis
2015-06-29 02:00:27 +03:00
parent 9237a9efe2
commit 004608acd8
43 changed files with 1199 additions and 527 deletions
+5 -8
View File
@@ -113,8 +113,7 @@ namespace Subsurface
public void StartShift(TimeSpan duration, Level level)
{
if (Submarine.Loaded != submarine) submarine.Load();
submarine.Load();
level.Generate(submarine==null ? 100.0f : Math.Max(Submarine.Borders.Width, Submarine.Borders.Height));
@@ -133,19 +132,17 @@ namespace Subsurface
if (level!=null)
{
submarine.Move(level.StartPosition - submarine.Center, 1.0f);
submarine.SetPosition(level.StartPosition);
}
//crewManager.StartShift();
taskManager.StartShift(scriptedEventCount);
}
public bool EndShift(GUIButton button, object obj)
public void EndShift(string endMessage)
{
if (Game1.Server!=null)
{
string endMessage = gameMode.EndMessage;
{
Game1.Server.EndGame(endMessage);
}
@@ -159,7 +156,7 @@ namespace Subsurface
taskManager.EndShift();
//gameMode.End();
return true;
//return true;
}