spawn bullet closer to tank
This commit is contained in:
parent
e16d4b1c1f
commit
786c974a23
3 changed files with 21 additions and 5 deletions
|
@ -8,7 +8,7 @@ internal static class PositionHelpers
|
|||
=> new(position.X + subX, position.Y + subY);
|
||||
|
||||
public static PixelPosition ToPixelPosition(this FloatPosition position)
|
||||
=> new((int)position.X, (int)position.Y);
|
||||
=> new((int)Math.Round(position.X), (int)Math.Round(position.Y));
|
||||
|
||||
public static PixelPosition ToPixelPosition(this TilePosition position) => new(
|
||||
(ushort)(position.X * MapService.TileSize),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue