-
-
Save parzibyte/4de6683c19c6b986654d10d80b5308ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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