Example #1
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     Toolbox.DrawSquare(spriteBatch, x, y,
                        ((SquareCollider)collider).width, ((SquareCollider)collider).height,
                        new Vector2(50, 25), c, depth);
 }
Example #2
0
 /// <summary>
 /// Draw player.
 /// </summary>
 /// <param name="gameTime">Game time.</param>
 /// <param name="spriteBatch">Sprite batch.</param>
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     Toolbox.DrawSquare(spriteBatch, x, y, COLLIDER_WIDTH, COLLIDER_HEIGTH,
                        new Vector2(COLLIDER_WIDTH / 2, COLLIDER_HEIGTH / 2), Color.Bisque);
     currentSprite.Draw(gameTime, spriteBatch, x, y, Color.White, depth: depth);
 }