bullets collide with walls

This commit is contained in:
Vinzenz Schroeter 2024-04-07 19:19:11 +02:00
commit 898a9cedc1

View file

@ -8,6 +8,6 @@ internal sealed class BulletDrawer(BulletManager bullets): IDrawStep
public void Draw(DisplayPixelBuffer buffer)
{
foreach (var bullet in bullets.GetAll())
buffer.Pixels[bullet.Position.ToPixelPosition().GetPixelIndex()] = true;
buffer.Pixels[bullet.Position.ToPixelPosition().ToPixelIndex()] = true;
}
}