https://github.com/liraymond04/olc-game-of-life
Implementation John Conway's Game of Life in the One Lone Coder game engine.
https://github.com/liraymond04/olc-game-of-life
c-plus-plus cpp game-development game-of-life john-conway olc olcpixelgameengine pge
Last synced: 7 months ago
JSON representation
Implementation John Conway's Game of Life in the One Lone Coder game engine.
- Host: GitHub
- URL: https://github.com/liraymond04/olc-game-of-life
- Owner: liraymond04
- License: other
- Created: 2022-02-14T02:35:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T03:06:40.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T17:19:06.704Z (8 months ago)
- Topics: c-plus-plus, cpp, game-development, game-of-life, john-conway, olc, olcpixelgameengine, pge
- Language: C++
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# olc-game-of-life
Implementation John Conway's Game of Life in the olcPixelGameEngine.
## Controls
| Button | Action |
| ----------- | ----------- |
| Escape | Quit |
| Left click | Draw |
| Right click | Erase |
| Backspace | Clear |
| Enter | Simulate start/stop |
| Space | Simulate step |
| P | Play |
| O | Reverse |
| - | Decrease speed |
| = | Increase speed |
| Left arrow | Step back |
| Right arrow | Step forward |
| Ctrl + Left arrow | Jump to front |
| Ctrl + Right arrow | Jump to end |## Building
Building is based on Moros1138's [pge-template-project](https://github.com/Moros1138/pge-template-project) CMake files
### Arch Linux
Install the required packages with the following command
`sudo pacman -Sy base-devel cmake git libpng mesa`
Generate project makefiles with CMake
`cmake .`
And build the project
`make`
### Windows
Install a C++ compiler like [MinGW](https://sourceforge.net/projects/mingw/)
Generate project makefiles with CMake
`cmake . -G "MinGW Makefiles"`
And build the project
`mingw32-make`