Skip to content

manuelpepe/gol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

Written with Ebitengine.

Check out my blog post about this.

Shaders

Two shader version are available as gol.NextGridShader and gil.NextGridShaderV2 at ./gol/shader.go, with a Keyboard input they can be swapped at runtime using the H key.

The first version encodes the grid by setting the Alpha value on each pixel of an image, the shader calculates the live neighbours to each pixel.

The second version encodes the grid in a smaller number of pixels by using the 4 channels of each pixel (RGBA).

Resources

Compiling: https://ebitengine.org/en/documents/webassembly.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published