I started learning pygame a couple of days ago, and I would like to make this code better.
import pygame
import pygame_menu
pygame.init()
surface = pygame.display.set_mode((600, 400))
font = pygame_menu.font.FONT_8BIT
menu = pygame_menu.Menu('Projecte MatZanfe', 600, 400,
theme=pygame_menu.themes.THEME_SOLARIZED)
menu.add.text_input('Usuari: ',pygame_menu.font.FONT_8BIT)
menu.add.button('Començar', start_the_game,font_color = 'green')
menu.add.button('Sortir', pygame_menu.events.EXIT, font_color = 'red)
I'm trying to make "Projecte MatZanfe" with the font pygame_menu.font.FONT_8BIT The "Començar" green, and the "Sortir" red. I just don't know how to make it happen. Any tips? This code is based from this page:https://pygame-menu.readthedocs.io/en/4.1.3/