Best resources for learning PyGame? [closed]
Just curious if anyone knows of good sites for learning and understanding PyGame. I've programmed a bunch in Python, so I'm well-equipped with that. Just curious if anyone knows a good site or more for learni开发者_StackOverflow中文版ng PyGame.
Thanks for any help!
I have several Pygame bookmarks on my delicious page that I think are worth a look. The links cover both tutorials and libraries to make your Pygame development easier. It would also be worth looking at a good, complete game written with Pygame to get an idea of how it should be structured. There are plenty of excellent ones on Ian Mallett's page, for instance. Good luck on your game writing!
Eli Bendersky writes well and has written a tutorial "not for beginners". It's certainly worth a look.
I really liked this tutorial: http://rene.f0o.com/mywiki/PythonGameProgramming. I found that it was an excellent way to get started with learning the basics of the library itself.
The whole of http://pygame.org is brilliant if you haven't found that already. The documentation section is great, as is the tutorial section.
Invent Your Own Computer Games with Python -ebook has some nice PyGame chapters.
http://inventwithpython.com/
Others pointed to good tutorials so I rather give an advice. Start to download some games listed on pygame.org and learn, examine their sources. Play around them, make changes and see how they behave. This is the best way to get practice. I am a pygame hobbyist too, so if you will have anything to release in the future, I could offer my page to do it (beside pygame.org of course): http://sites.google.com/site/sipygames/
I usually recommend the Line By Line Chimp tutorial since Ive found it to cover the most parts in the shortest time.
No one has mentioned this yet as a source of games written in pygame, but check out www.pyweek.org - it's a week-long programming competition featuring games built in python. In many cases they use pygame, though there are other libs such as pyglet and opengl that are used.
精彩评论