public override void Draw(Graphics gfx) { foreach (GameObstacle obs in gameObstacles) { obs.Draw(gfx); } // Draw Player Sprite playerSprite.Draw(gfx); gameText.DrawText(gfx, score.ToString(), 32, Color.White, GameText.TextAlignment.TopCenter); }
public override void Draw(Graphics gfx) { foreach (GameObstacle obs in gameObstacles) { obs.Draw(gfx); } // Draw Player Sprite playerSprite.Draw(gfx); gameText.DrawText(gfx, score.ToString(), 32, Color.White, GameText.TextAlignment.TopCenter); }