add explosive bullet power up
This commit is contained in:
parent
3f4a301993
commit
a2d46bda92
1 changed files with 407 additions and 253 deletions
|
|
@ -2,11 +2,11 @@ using TanksServer.GameLogic;
|
|||
|
||||
namespace TanksServer.Graphics;
|
||||
|
||||
internal sealed class DrawBulletsStep(BulletManager bullets) : IDrawStep
|
||||
internal sealed class DrawBulletsStep(MapEntityManager entityManager) : IDrawStep
|
||||
{
|
||||
public void Draw(GamePixelGrid pixels)
|
||||
{
|
||||
foreach (var bullet in bullets.GetAll())
|
||||
foreach (var bullet in entityManager.Bullets)
|
||||
{
|
||||
var position = bullet.Position.ToPixelPosition();
|
||||
pixels[position.X, position.Y].EntityType = GamePixelEntityType.Bullet;
|
||||
|
|
|
|||
Reference in a new issue