Stacking Challenge

How high can you go? Stack sliding blocks with pixel-perfect precision. Any overhang is sliced off!

What this code does

- Dynamic Slicing: Implements geometry splitting logic where blocks are trimmed based on their alignment with the block below.
- Physics-ish Motion: Blocks slide back and forth, speeding up as the tower grows taller.
- Color Palette: Automatically generates a vibrant gradient of colors as new blocks are added.
- Perspective Lag: The camera smoothly follows the top of the tower, creating a sense of height.
- Controls: Click or press Space to drop the block.