I have a lot of images i need to load into a Pygame program. Can I load all these from a separate script which I load into my main program as a module and be used from within the main program? Any help much appreciated. Thanks in advance.
After considering both answers above what I simply did was write a script where I loaded all images and created a dictionary called image_dict with the image names as the keys and saved the program as "load_images.py"
Then from the second program I did a "from load_images.py import image_dict".
now the keys gave me the images.
Thank you.
Loading pygame images as a module