Skip to content

mattegan/Love-GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Love2d Conway's Game of Life (GPU Accelerated)

Just a little experiment in using an OpenGL fragment shader to calculate the next generation in a game of life. Most of the work is done inside calculationShader.glsl. main.lua handles shuffling the textures around to the fragment shader.

View more screenshots and information here : abusing lovë2D pixel shaders.

Controls

  • space - stop/start the simulation
  • left click - bring alive the cell underneath the mouse
  • left click + g - spawn a glider underneath the mouse
  • right click - kill the cell underneath the mouse
  • s - "single step" the simulation (calculate the next generation)
  • up, down - increase/decrease the simulation rate
  • r - fill the screen with randomly alive or dead cells
  • c - kill all the cells
  • h - fill the entire screen with gliders (very fun to disturb)

About

An OpenGL accelerated game of life using Love2d

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published