infinite map
This commit is contained in:
parent
7213318838
commit
461a9139c2
1 changed files with 101 additions and 69 deletions
|
|
@ -20,4 +20,12 @@ internal sealed class TankManager(ILogger<TankManager> logger) : IEnumerable<Tan
|
|||
logger.LogInformation("Tank removed for player {}", tank.Owner.Id);
|
||||
_tanks.Remove(tank, out _);
|
||||
}
|
||||
}
|
||||
|
||||
public static (PixelPosition TopLeft, PixelPosition BottomRight) GetTankBounds(PixelPosition tankPosition)
|
||||
{
|
||||
return (tankPosition, new PixelPosition(
|
||||
(ushort)(tankPosition.X + MapService.TileSize - 1),
|
||||
(ushort)(tankPosition.Y + MapService.TileSize - 1)
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in a new issue