Camera.Update: remove unused time parameter
GitOrigin-RevId: b3c427b9ccee9a2cfef1c8f24d1c653d975cb513
This commit is contained in:
parent
8752f53ac8
commit
938a38bd77
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user