public override void Draw(SpriteBatch spriteBatch) { if (Collision != null) { LinePrimatives.DrawRectangle(spriteBatch, 3, Color.Red, Collision); } playerSprite.Draw(spriteBatch); }
public override void Draw(SpriteBatch spriteBatch) { asteroidSprite.position = Position; if (Collision != null) { LinePrimatives.DrawRectangle(spriteBatch, 3, Color.Red, Collision); } asteroidSprite.Draw(spriteBatch); }
public virtual void Draw(SpriteBatch spriteBatch) { if (sprite != null) { sprite.position = Position; sprite.rotation = Rotation; sprite.Draw(spriteBatch); } // Debug if (Collison != null) { LinePrimatives.DrawRectangle(spriteBatch, 5, Color.Red, Collison); } }