protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); // TODO: Add your drawing code here base.Draw(gameTime); spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend); spriteBatch.Draw(background, new Vector2(0, 0), Color.White); spriteBatch.DrawString(font, "Puntaje: " + puntosS, new Vector2(500, 45), Color.Yellow); bola.dibujar(spriteBatch); j1.dibujar(spriteBatch); i++; if (cursor[i].vivo == false) { cursor[i].dibujarCursor(spriteBatch, bola.posicion); } for (int a = 1; a < 100; a++) { if (cursor[a].vivo == true) { cursor[a].dibujarCursor(spriteBatch, bola.posicion); } } spriteBatch.End(); }
protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); // TODO: Add your drawing code here base.Draw(gameTime); spriteBatch.Begin(); bola.dibujar(spriteBatch); j1.dibujar(spriteBatch); spriteBatch.End(); }