Пример #1
0
 public virtual void Draw(GameTime gameTime)
 {
     if (Config.DisplayCollisionBoxes)
     {
         CollisionBoxes.Draw(GameRef.SpriteBatch);
     }
 }
Пример #2
0
        public override void Draw(GameTime gameTime)
        {
            GameRef.SpriteBatch.Draw(Sprite, Position, null, Color.White, Direction, Origin, 1f, SpriteEffects.None, 0f);
            GameRef.SpriteBatch.Draw(_trail, Position, null, Color.White, Direction + (float)(Math.PI / 2f), Vector2.Zero, 1f, SpriteEffects.None, 0f);

            if (Config.DisplayCollisionBoxes)
            {
                CollisionBoxes.Draw(GameRef.SpriteBatch);
            }

            base.Draw(gameTime);
        }