Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.1 KB

File metadata and controls

63 lines (43 loc) · 1.1 KB

Game of Life

This is a high-performance implementation of Conway's Game of Life, written in C++ with OpenGL. The simulation is optimized using SIMD instructions and multithreading.

image

Controls

  • Space - pause/unpause the game
  • Enter - clear the board
  • = - increase brush size
  • - - decrease brush size
  • Left Mouse Button - draw cells
  • Right Mouse Button - erase cells
  • Scroll Wheel - zoom in/out
  • Middle Mouse Button - pan
  • Esc - exit the game

Running the game

Your CPU must support SSE4.1 to run the game.

The project assumes the compiler is clang.

Windows

Download GLEW, GLFW, and GLSL validator:

setup

Build the game:

mkdir build
cmake -B build -G Ninja
cmake --build build

Run the game:

.\build\game

Linux

Install development versions of GLEW and GLFW 3.

Build the game:

mkdir build
cmake -B build -G Ninja
cmake --build build

Run the game:

./build/game