Browse Source

Camera.Update: remove unused time parameter

GitOrigin-RevId: b3c427b9cc
master
Colin McMillen 4 years ago
parent
commit
938a38bd77
  1. 2
      Shared/Camera.cs
  2. 2
      Shared/SneakGame.cs

2
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);

2
Shared/SneakGame.cs

@ -83,7 +83,7 @@ namespace SemiColinGames {
List<Rectangle> collisionTargets = world.CollisionTargets();
player.Update(gameTime, input, collisionTargets);
camera.Update(gameTime, player.Position);
camera.Update(player.Position);
base.Update(gameTime);
}

Loading…
Cancel
Save