Sign in to follow this  
Pete Michaud

Working pygame projects, looking for critique

Recommended Posts

I've written two pygame projects in Python 3 over the last couple days because I want to learn Python and pygame. I've made them opensource and commented them SUPER HEAVILY, explaining pretty much everything in detail, so that other people can use it for future reference.

What I'd like is comments about how I could make things better / more "pythonic" / more efficient.

The first project is pyOrganism, and it just simulates a society of organisms that move around and make babies and the like. The source exists in one file that you can view here:

http://code.google.com/p/pyorganism/source/browse/trunk/organism.py


The second is called pyMaze and is a little more complex. It generates a maze from scratch using the DFS algorithm, and allows the player to push a cursor around the maze until they reach a goal. It also uses images for tiles instead of just colors like in pyOrganism

It's also a simple program but I split this one up into separate files for each class:

http://code.google.com/p/pymaze/source/browse/#svn%2Ftrunk


So again, what can be improved? I don't eally know the correct way to include a lot of files, or how to handle configuration values or anything, so any tips you have would be awesome.

Share this post


Link to post
Share on other sites
Don't everyone pile on at once!

Haha, no, actually I got some really good help over at reddit, so look if you want, but it's pretty close to "finished"--I know it's not 100% ideal, but I think it's helpful for people anyway.

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