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