someone gave me an example on how to make a start end screen put my code is long and I don't know how to apply or how to put my code in a game function
while True:
menu_result = start_menu()
if menu_result == "start":
game()
elif menu_result == "settings":
settings()
else: # this means it returned "quit"
pygame.quit()
exit()
my code is long so I put it on pastebin script