bullets collide with walls
This commit is contained in:
parent
b10ccf2da8
commit
898a9cedc1
1 changed files with 50 additions and 28 deletions
|
|
@ -18,7 +18,7 @@ internal sealed class MapDrawer(MapService map) : IDrawStep
|
|||
for (byte pixelInTileY = 0; pixelInTileY < MapService.TileSize; pixelInTileY++)
|
||||
for (byte pixelInTileX = 0; pixelInTileX < MapService.TileSize; pixelInTileX++)
|
||||
{
|
||||
var index = tile.GetPixel(pixelInTileX, pixelInTileY).GetPixelIndex();
|
||||
var index = tile.GetPixelRelative(pixelInTileX, pixelInTileY).ToPixelIndex();
|
||||
buffer.Pixels[index] = pixelInTileX % 2 == pixelInTileY % 2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue