END WORM, fixed camera pos "twitching" when exiting/entering the sub, character scaling

This commit is contained in:
Regalis
2015-12-19 02:05:10 +02:00
parent eb0e08c8ee
commit 4234aa2094
16 changed files with 144 additions and 28 deletions
+5 -5
View File
@@ -74,7 +74,7 @@ namespace Barotrauma
if (PlayerInput.KeyDown(Keys.J)) targetMovement.X -= 1.0f;
if (PlayerInput.KeyDown(Keys.L)) targetMovement.X += 1.0f;
GameMain.GameSession.Submarine.ApplyForce(targetMovement * 1000000.0f);
GameMain.GameSession.Submarine.ApplyForce(targetMovement * 100000.0f);
}
#endif
@@ -134,10 +134,10 @@ namespace Barotrauma
public override void Draw(double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
{
if (Character.Controlled != null)
{
cam.TargetPos = Character.Controlled.WorldPosition;
}
//if (Character.Controlled != null)
//{
// cam.TargetPos = Character.Controlled.WorldPosition;
//}
cam.UpdateTransform();