Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 5, 2020 23:55
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/cf61588c4921ccc6c3f1911d4aee57e8 to your computer and use it in GitHub Desktop.
Save parzibyte/cf61588c4921ccc6c3f1911d4aee57e8 to your computer and use it in GitHub Desktop.
# 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