diff --git a/Shared/Camera.cs b/Shared/Camera.cs index 65fdbe6..557209d 100644 --- a/Shared/Camera.cs +++ b/Shared/Camera.cs @@ -11,7 +11,7 @@ namespace SemiColinGames { public int Height { get => bbox.Height; } public int Left { get => bbox.Left; } - public void Update(GameTime time, Point player) { + public void Update(Point player) { int diff = player.X - bbox.Center.X; if (Math.Abs(diff) > 16) { bbox.Offset((int) (diff * 0.1), 0); diff --git a/Shared/SneakGame.cs b/Shared/SneakGame.cs index 3ba42cd..646b85b 100644 --- a/Shared/SneakGame.cs +++ b/Shared/SneakGame.cs @@ -83,7 +83,7 @@ namespace SemiColinGames { List collisionTargets = world.CollisionTargets(); player.Update(gameTime, input, collisionTargets); - camera.Update(gameTime, player.Position); + camera.Update(player.Position); base.Update(gameTime); }