Sign in to follow this  

pygame and load image

Recommended Posts

when you use the function image.load() to get a image and then you assign to other values or classes. Does each variable it assign to get it own copy or a referance to the orginal? example ball = pygame.load.image("Ball.bmp") myBall = ball yourBall = ball Do I have 1, 2 or 3 copies of the image?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this