I'm programming a tower defence game in pygame. I want to split my code into 3 different python files and run them as modules.
I want one file to contain the code needed for the menu screen, another for the main game loop and another file to contain the code for generating a map and blitting it onto the screen.
Is it possible to blit from one file to a pygame display created in another python file? If so how?
Also, any other advice on the most appropriate way to modulate my code would be very helpful.