Skip to content

mbeavitt/gofl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Game of Life

This is a simple implementation of Conway's "The Game of Life" in the C programming language. It is written for installation and execution on mac os operating systems. It uses Raylib for graphics.

Controls:

  • 1 - 9: choose a colour
  • r: randomise
  • b: blank (clear the screen)
  • up/down arrow: speed up/slow down the evolution rate, respectively
  • - and = keys: zoom out/in, respectively
  • spacebar: pause the simulation
  • left mouse click: draw new cells
  • alt + enter: fullscreen mode (warning, weird behaviour if you alt-tab to another window.)
  • ESC: exit

the game running

Currently installation is only supported on apple silicon macs. Prebuilt executables will be added to the app directory at a later date.

Installation from source:

git clone https://github.com/mbeavitt/gofl/

clang -framework IOKit -framework Cocoa -I./src ./src/libraylib.a main.c -o main

About

an attempt at coding the game of life :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages