Camera.Update: remove unused time parameter

GitOrigin-RevId: b3c427b9ccee9a2cfef1c8f24d1c653d975cb513
This commit is contained in:
Colin McMillen 2020-01-18 09:32:16 -05:00
parent 8752f53ac8
commit 938a38bd77
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ namespace SemiColinGames {
public int Height { get => bbox.Height; } public int Height { get => bbox.Height; }
public int Left { get => bbox.Left; } 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; int diff = player.X - bbox.Center.X;
if (Math.Abs(diff) > 16) { if (Math.Abs(diff) > 16) {
bbox.Offset((int) (diff * 0.1), 0); bbox.Offset((int) (diff * 0.1), 0);

View File

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