public void Draw(SpriteBatch spriteBatch) { #if VISUAL_DEBUG VisualDebugging.DrawRectangle(spriteBatch, Bounds, Color.White); #endif frames[currentFrame].Draw(spriteBatch, Position, color, 0, origin, 2, spriteEffects, 1); }
/// <summary> /// Draws the player sprite /// </summary> /// <param name="spriteBatch"></param> public void Draw(SpriteBatch spriteBatch, GameTime gameTime) { // Render the santa #if VISUAL_DEBUG VisualDebugging.DrawRectangle(spriteBatch, Bounds, Color.Red); #endif spriteBatch.Draw(spritesheet[frameNumber], Position, sourceRect, Color.White, angle, origin, 0.3f, effects, 0.7f); }
/// <summary> /// Draws the platform /// </summary> /// <param name="spriteBatch">The spriteBatch to render to</param> public void Draw(SpriteBatch spriteBatch) { #if VISUAL_DEBUG VisualDebugging.DrawRectangle(spriteBatch, bounds, Color.Green); #endif for (int i = 0; i < tileCount; i++) { sprite.Draw(spriteBatch, new Vector2(bounds.X + i * sprite.GetWidth(), bounds.Y), Color.White); } }