pygame - tutorial part 2 - load images
Loading...
5,011
Loading...
Uploader Comments (metalx1000)
see all
All Comments (31)
-
@TheSpliceScreen import os and use the function os_exit(0) function instead of sys.exit()
-
Really great tutorials.
-
@TheSpliceScreen add a line pygame.quit() before sys.exit(). It will close but you'll get an error. It won't affect your program you create a variable done = False and when the user presses QUIT, you can change it to done = True. Then change the while 1 to while not none:
Hope this helps ^_^!
-
@TheSpliceScreen You should also enter in the if statement in the for loop 'pygame.quit()' but put it before sys.exit()
-
you should set tabstop = 4 (it seems 8?)
-
okay i fixed it. im glad i found this tut, cuz thenewboston showed the long and hard way to do it.
Loading...
please could you tell me how can i load an image in windows
warking2012 6 days ago
@warking2012: Same way.
metalx1000 5 days ago
Hey man, I am following your tutorials at the moment, and I am having a problem with pygame crashing.
I am using Python 2.5, and I am also using the Python shell for editing. everything works with the program, except when I go to exit, the pygame window seems to freeze? Any help would be much appreciated! :D
Cheers, Dan
TheSpliceScreen 9 months ago
@TheSpliceScreen: sure, zip up your script and any files it uses (images, sounds, etc...) and upload it someplace so I can download it. If you don't already have a site that you can upload files to, I give this one a try:
ompldr.org
metalx1000 9 months ago
Chris, filmsbychris(dot)com seems to be owned by a squatter, now.
ncdave4life 1 year ago
@ncdave4life: Yeah, I'm filmsbykris(dot)com
metalx1000 1 year ago