Hello I would need help I would need to place a background image and some sound. possibly also sound effects after clicking on the button, I have taken over the menu, because I didn't know how to do it, I wanted to do it via the buttons, but somehow it didn't work. And to advise the game, I have somehow done it in another file, how to get to it using the play button. (I'm a complete beginner in python) Thanks for answer
import pygame
import pygame_menu
pygame.init()
background = pygame.image.load('qHyYvd.jpeg')
surface = pygame.display.set_mode((600, 400))
pygame.display.set_caption("Trade Ships")
icon = pygame.image.load('2022-03-15_15.28.55.png')
pygame.display.set_icon(icon)
def set_difficulty(value, difficulty):
pass
def start_the_game():
pass
menu = pygame_menu.Menu('Welcome', 400, 300,
theme=pygame_menu.themes.THEME_BLUE)
menu.add.text_input('Name :', default='Save1')
menu.add.selector('Difficulty :', [('Hard', 1), ('Easy', 2)], onchange=set_difficulty)
menu.add.button('Play', start_the_game)
menu.add.button('Quit', pygame_menu.events.EXIT)
menu.mainloop(surface)