bullet hits tank, tank dies
This commit is contained in:
parent
190c0c3143
commit
dd33ec59ad
6 changed files with 45 additions and 9 deletions
|
@ -34,7 +34,7 @@ internal sealed class TankDrawer : IDrawStep
|
|||
foreach (var tank in _tanks)
|
||||
{
|
||||
var pos = tank.Position.ToPixelPosition();
|
||||
var rotationVariant = (int)Math.Floor(tank.Rotation);
|
||||
var rotationVariant = (int)Math.Round(tank.Rotation) % 16;
|
||||
for (var dy = 0; dy < MapService.TileSize; dy++)
|
||||
{
|
||||
var rowStartIndex = (pos.Y + dy) * MapService.PixelsPerRow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue