Tag lua

Lightning bolt effect in PICO-8

There are several methods to creating a lightning bolt effect, such as using fractals or midpoint displacement. The method I’ll be using is dividing a line into segments, offseting each vertex, and drawing several of these segmented lines on top…

Snow digging mechanic

In the “Snow Game” project I’m working on, you can dig through snow tiles, each action removing “half” a tile of snow. I set up everything like this: First, I made a 2d array to store the game’s tiles. Each…