
Whilst picking up a new language – Python, I decided to whip up a basic paint like tool using PyGame. As you can see above it looks basic, You can click and drag to draw, and right click to remove. If a key is pressed, the image is stored in a text file with ‘pixels’ represented with a specific symbol.
The grid cell size can be changed along with colours, the code is not too advanced however it is slightly messy, if your new to python or an existing user check it out and see what you can do with it.
Downloads
Source ( .tar.gz )
Source ( .zip )
Conway’s game of life was the original reason for making this project, thus the grid based layout
…
However I soon got busy and had no time to finish it so thought id play with pygames input methods and create a basic paint type application..
That’s funny.
Somewhere I saw a Conway’s Game of Life implementation in 100 lines of Python. I tried to find it to give you the link, but couldn’t find it again!
If I locate it I’ll post the link for you.
I think I found that a while back – maybe not.. When I get some free time I’m going to try and make a 3D version ( locked to x,z coords ) of the game using OpenGL and C++, Glut for graphics.
1:22 am
That looks like a great start to a Conway’s Game of Life implementation:
http://experimentgarden.blogspot.com/2009/07/conways-game-of-life.html
If you haven’t coded Conway’s Game of Life yet I highly recommend it. It is a fun application and a interesting thing to mess around with.