Tutorial fixes

This commit is contained in:
Regalis
2015-10-09 17:18:25 +03:00
parent 4120cabd6e
commit 0a96254696
9 changed files with 42 additions and 24 deletions
+3 -1
View File
@@ -67,7 +67,8 @@ namespace Subsurface
AmbientSoundManager.Update();
if (GameMain.GameSession != null && GameMain.GameSession.Level != null)
#if DEBUG
if (GameMain.GameSession != null && GameMain.GameSession.Level != null && GameMain.GameSession.Submarine != null)
{
Vector2 targetMovement = Vector2.Zero;
if (PlayerInput.KeyDown(Keys.I)) targetMovement.Y += 1.0f;
@@ -77,6 +78,7 @@ namespace Subsurface
GameMain.GameSession.Submarine.ApplyForce(targetMovement * 100000.0f);
}
#endif
if (GameMain.GameSession!=null) GameMain.GameSession.Update((float)deltaTime);
//EventManager.Update(gameTime);