If you don't know about the game of life and how it work check : https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns

I used this to find all the patterns : https://conwaylife.com/wiki/Main_Page

The game of life that I made myself as a "fan" project in Unity using tilemap to render the grid, you can edit the grid and create Patterns (I might add more really cool patterns later) and randomise the grid. I've learned a lot about lambda expression during  the making of this project and other things, I plan on making other project using the game of life.

Controls :

 Left click : place cells/Patterns

Right Click(hold) : Scroll grid

Escape : Pause/PatternsPanel :  you can select with left click directly  one cell, Gosper Cannon Gun pattern, randomise the grid(30% chance to create a cell) and Still lifes/Oscillators/spaceships menus, and comeback on the menu.

A : nextTurn

MouseWheel : zoom

MouseWhell + Left ctrl : rotate current pattern

How To play :

You can instantly press start and play with the base settings of the grid,place few Patterns or randomise the grid and press auto run or A button, go to the menu and restart to clear the grid.

Notes :
rotating patterns can make pattern creation imprecise.

if you want to change time between turn in auto turn you must mark the number with a comma (ex : 0,2, its set to 0.1 when you start).

pattern preview is not perfectly accurate especially with the grid on.

Quit button doesn't work in web build.

Code :
I tried to optimise as much as possible the way to render the game and so it only render a part of the grid

this is an exemple of how I store a pattern in the code, I'm not sure this is the best way to do it but I tried to make somehting organized and clear even for patterns like the turtle:




Leave a comment

Log in with itch.io to leave a comment.