-
-
Save parzibyte/cf61588c4921ccc6c3f1911d4aee57e8 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
# La fuente que estará sobre el botón | |
tamanio_fuente = 20 | |
fuente = pygame.font.SysFont("Arial", tamanio_fuente) | |
xFuente = int((anchura_boton / 2) - (tamanio_fuente / 2)) | |
yFuente = int(altura_pantalla - altura_boton) | |
# El botón, que al final es un rectángulo | |
boton = pygame.Rect(0, altura_pantalla - altura_boton, | |
anchura_boton, altura_pantalla) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment