Skip to content

2D, 3D and 4D implementation of Conway's Game of Life in Unity

Notifications You must be signed in to change notification settings

wfowler1/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

An implementation of Conway's Game of Life in Unity engine, using cube mesh renderers.

By default, uses standard ruleset for the original Game of Life by John Conway (notated B3/S23). The user may also enter their own rulesets as well, or use one of many presets. Also capable of cellular automata simulations in three and four dimensions.

Controls

  • Right-click and drag to rotate board.
  • Middle-click and drag to move board.
  • Alt+Z to toggle the UI on/off.
  • Alt+Enter to toggle windowed mode.
  • Alt+F4 to exit program immediately.

Limitations

  • Currently there is no way to rewind the state of the board.
  • Rendering is by far the biggest performance issue. The algorithm itself runs fast enough on modern hardware, but Unity's renderer doesn't play well with millions of cubes on the screen.
  • There is no way to treat certain neighbors differently, for example by counting orthogonal neighbors differently from diagonal neighbors.

Credits