Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 5, 2020 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4de6683c19c6b986654d10d80b5308ac to your computer and use it in GitHub Desktop.
Save parzibyte/4de6683c19c6b986654d10d80b5308ac to your computer and use it in GitHub Desktop.
# También dibujamos el botón
if juego_iniciado:
# Si está iniciado, entonces botón blanco con fuente gris para que parezca deshabilitado
pygame.draw.rect(pantalla_juego, color_blanco, boton)
pantalla_juego.blit(fuente.render(
"Iniciar juego", True, color_gris), (xFuente, yFuente))
else:
pygame.draw.rect(pantalla_juego, color_azul, boton)
pantalla_juego.blit(fuente.render(
"Iniciar juego", True, color_blanco), (xFuente, yFuente))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment