bullets collide with walls

This commit is contained in:
Vinzenz Schroeter 2024-04-07 19:19:11 +02:00
parent b10ccf2da8
commit 898a9cedc1
6 changed files with 50 additions and 28 deletions

View file

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