Jump to content
  • Advertisement
Sign in to follow this  
Alex Cassady

Pygame tutorials

This topic is 2153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been learning Python for some time now and finally learned enough to move on to PyGame. I learned from the tutorials provided by thenewboston and watched his Python Game Development videos as well. Though they were very helpful, they didn't provide me with enough knowledge to start developing my own game. I need a series of tutorials that will cover the basics (audio, fonts, animation, etc.) as well as teach me how to implement this in object-oriented programming, but I can't seem to find any. If anyone could help, it would be greatly appreciated. smile.png

Share this post


Link to post
Share on other sites
Advertisement

Unfortunately, I do not have ideal resources to point you to. Like almost anything worth doing in Computer Science, most of it has to be figured out through experimentation. Even if you learn something from a book or tutorial, you don't learn it in the way you need to if you want to be successful.

 

That said, having code to reverse engineer is imperative. As an experienced PyGame programmer myself, I humbly present my PyGame Base Code, which is a tiny, tried and true tested starting point that I myself use frequently. It won't get you audio/fonts/animation, but it will get you started if you aren't already.

 

Secondly, I suggest you look at the examples directory that comes with PyGame. The "chimp" example is probably best for your purposes. The "aliens" example is also pretty simple, and while I personally think it takes object orientation too far and makes gratuitously unnecessary use of sprites, it is a solid example that demonstrates both basic audio and font rendering.

 

Lastly, PyGame is a really easy library to use. It is small, fast, and pretty robust. You should try playing around with it. I myself learned with no tutorials whatsoever, simply trying different API calls until I got what I wanted. I recommend you do the same, at least some. The graphics, in particular, are quite intuitive.

Edited by Geometrian

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!