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.
Working pygame projects, looking for critique
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement