Books/resources for PyGame?

Books/resources for PyGame?

Postby Slip » Thu Jun 27, 2013 11:50 pm

I was wondering if anyone could give me any recommendations for some beginner PyGame materials.

Thanks.
Slip
 
Posts: 7
Joined: Mon Feb 11, 2013 4:25 am

Re: Books/resources for PyGame?

Postby metulburr » Fri Jun 28, 2013 12:09 am

the way i did it was googling tutorials for it. But to be honest most pygame tuts out there have horrible programming practice habits. So getting a good foundation in programming in general and programming in python first would make you better. For example a lot of tuts show this:
Code: Select all
from pygame.locals import *

but it floods the namepace. Dont do that. The tutorials work, but some of the ways they show need to be avoided.
But there hasnt been any really good tuts for pygame that i can think of right now. I mostly googled how to do something, and used this forum to ask questions.

Some starting points:
http://www.pygame.org/docs/tut/chimp/Ch ... yLine.html
http://www.youtube.com/watch?v=nnuEqzAAkHw
http://inventwithpython.com/pygame/chapters/
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1385
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: Books/resources for PyGame?

Postby Mekire » Fri Jun 28, 2013 3:20 am

I advise you to avoid the "invent with python" books, at least with regards to pygame. They are horrid.

It is actually, as Metul said, extremely hard to sift through all the bad advice out there to find good advice (especially if you can't personally tell the difference). My advice would be to make sure they use no * imports, then make sure they aren't coding in the global namespace. Any pygame resource that doesn't have you start using classes (or at the very least functions) almost immediately, is not worth reading.


I obviously (and shamelessly) think you should take a look at my sample code :D
http://code.google.com/p/my-pygame-samples/downloads/list
http://code.google.com/p/my-pygame-samples/source/browse/

-Mek
User avatar
Mekire
 
Posts: 986
Joined: Thu Feb 07, 2013 11:33 pm
Location: Amakusa, Japan

Re: Books/resources for PyGame?

Postby metulburr » Fri Jun 28, 2013 2:04 pm

I had to get others bad code, remove global namespace uses, remove * imports, fix the rest of the code to suit those needs, convert them to classes, then i finally got a good example of pygame. Makes you think, maybe we should make pygame tutorials that are good in programming practice, eh?
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1385
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: Books/resources for PyGame?

Postby Slip » Fri Jun 28, 2013 10:20 pm

Thanks guys.

Yeah, there seems to be a serious lack of good Pygame material (even on the Pygame website1).

I agree that it's probably best to get a good understanding of programming in general before trying to develop something with Pygame. I've read and gone through a number of different books and even take a few classes. I'll just keep practicing, though.

Also, if anyone is looking for a good tutorial, I've found this one, so far, to be the best...

http://programarcadegames.com/index.php?lang=en
Slip
 
Posts: 7
Joined: Mon Feb 11, 2013 4:25 am


Return to Game Development

Who is online

Users browsing this forum: No registered users and 0 guests