Skip to content
master
Switch branches/tags
Code-Challenges/01-game-of-life/
Code-Challenges/01-game-of-life/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Game of Life

In which I create the Game of Life in ~30 minutes from scratch using Pico-8.

See the Code

In the video I had a problem with oscillating patterns: namely, they didn't work. After digging a little more I discovered that it was because Pico-8's update function isn't necessarily called once per frame, sometimes it's called multiple times per frame, and that's where the error was.

So I created my own update function, called updatecells, and called that from the draw function, so the cells are only changed once per frame. This fixed the issue. Here is the improved code:

Improved Code (changed post video)

Game of Life video on YouTube