protected override void Draw(GameTime gameTime) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, camera.Transform); spriteBatch.DrawString(muestra, "X " + player.posicion.X, new Vector2(player.posicion.X, player.posicion.Y - 100), Color.White); switch (nivel) { case 1: nivelHuitzi.Draw(gameTime, spriteBatch); break; case 2: nivelMclan.Draw(gameTime, spriteBatch); break; case 3: break; } player.Draw(gameTime, spriteBatch); spriteBatch.End(); spriteBatch.Begin(); HUD.Draw(gameTime, spriteBatch); if (nivelGenerico.banderaJefe) { if (!HUD.getMuestraJefe()) { HUD.isMuestraJefe(true); } HUD.Update(); } spriteBatch.End(); base.Draw(gameTime); }