Jump to content
  • Advertisement
Sign in to follow this  
Pete Michaud

Working pygame projects, looking for critique

This topic is 2474 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 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!