bullets collide with walls
This commit is contained in:
parent
b10ccf2da8
commit
898a9cedc1
1 changed files with 50 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue