PythonLife
- 5 Devlogs
- 3 Total hours
Conway's game "Life" on Python.
Conway's game "Life" on Python.
The first version is officially ready! For the first time ever, I’ve created my own GitHub release and bundled the entire game into a 25MB .exe file.
Also upgrade README.
Shipping it in a bit! <3
Spent the last hour trying to port the project to web with pygbag, but no luck so far <3
On the bright side, I added time controls: you can now speed things up by 2x or 4x using numbers keys.
Also, moved everything to a config.py file, so you can easily tweak colors, base FPS, keybindings, and more.
Also fix some F11 bugs.
Finally, fully interactive drawing is now live.
You can left-click to spawn cells and right-click to wipe them out on the fly.
Added a proper pause state on Spacebar too, so you can stop time, comfortably sketch out gliders, spaceships, or any complex structures, and then let them loose.
Also made the window fully resizable, which means you can just hit the square icon to maximize it, or press F11 for a true borderless fullscreen. Had a bit of a nightmare with Windows loop-crashing the resolution scaling at first, but it is completely fixed now.
The grid dynamically auto-adjusts to whatever screen size you throw at it, keeping your current shapes intact while filling the new empty space with random chaos.
I just added a basic PyGame simulation and it looks cool!
With constants, I can easily change the grid size and colors.
Now I want to add the ability to pause the game and draw figures with a mouse click!
I decided to start this project to master NumPy, a useful library for matrix operations in Python.
I’m planning to use PyGame to visualize the game grid.
Also, the game board features wrapped boundaries, meaning cells seamlessly teleport to the opposite side when crossing the edges!