wall collision

This commit is contained in:
Vinzenz Schroeter 2024-04-07 18:18:26 +02:00
commit dd6b0fffc1

View file

@ -1,3 +1,8 @@
using TanksServer.Services;
namespace TanksServer.Models;
internal record struct FloatPosition(double X, double Y);
internal readonly record struct FloatPosition(double X, double Y)
{
public PixelPosition ToPixelPosition() => new((int)X % MapService.PixelsPerRow, (int)Y % MapService.PixelsPerRow);
}