Skip to content

Corentin-Mzr/GameOfLife-SFML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML Conway's Game Of Life

Description

Implementation of Conway's Game Of Life using C++, SFML and Sparse Encoding.

Based on Game Of Life Implementation by Javidx9.

Example

Example

Controls

  • WASD - ZQSD - Arrows: Move Camera
  • P: Toggle Pause
  • R: Cleanup Scene
  • O: Toggle Optimization
  • LMB: Spawn one cell
  • RMB: Spawn multiple cells
  • Mouse Wheel: Zoom
  • ESC: Close window

Table of contents

Installation

Prerequisites

  • C++ compiler (gcc, g++, cl, clang)
  • CMake 3.28 or newer
  • OpenMP

For Linux/Ubuntu, you also need to install the following dependencies:

sudo apt-get update
sudo apt-get install -y libx11-dev \
                        libxcursor-dev \
                        libxi-dev \
                        libxrandr-dev \
                        libudev-dev \
                        libgl1-mesa-dev \
                        libfreetype6-dev \
                        libjpeg-dev \
                        libopenal-dev \
                        libflac-dev \
                        libvorbis-dev \
                        libxcb1-dev \
                        libxcb-image0-dev \
                        libxcb-randr0-dev \
                        libxcb-xtest0-dev

Clone the repository

git clone https://github.com/Corentin-Mzr/GameOfLife-SFML.git

Build the project

From the root folder, execute the following commands:

cmake -B build
cmake --build build

Run the program

To run the program, launch it from the build/bin folder:

cd build/bin
./SFML-Conway.exe

Libraries

The following libraries have been used for this program:

License

This program is under the MIT License

About

Implementation of Conway's Game Of Life using C++ and SFML

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published