I made a small game called Tilth. It is a free garden puzzle game that you play in your browser. It is inspired by Topsoil, a 2017 iOS game by Nico Prins. My wife was a heavy Topsoil player and she was sad to find it is no longer available in the App Store.
The garden is a 4×4 board. You put plants from a queue on empty tiles.
Every few turns, you need to harvest a group of matching plants adjacent to each other on the same soil.
Harvested tiles turn into the next soil, so the board keeps changing.
Each plant in a group is worth more than the last one: 1, 2, 3, 4… times its value. Also, a bee adds +1 to every plant in its group.
There are seven plants. Clover, poppy and bluebell are worth 1 point. A puffball is worth 2, but it rots after 3 harvests. The sunflower, birch and redwood are worth 3, 6 and 15 points. They start as sprouts, and you cannot harvest them until they grow.
The game also has seasons with rising score goals, Easy, Normal and Hard modes, 21 achievements, one undo, and light and dark themes. It saves every move on your device. There are no ads, no account and no cookies. You can install it as an app, and then it works offline.
How I built it
I wanted to keep the stack minimal:
The game is plain ES modules. There is no build step and there are no dependencies.
It can be installed as a PWA and supports playing offline.
Art assets are SVGs.
Web Audio synthesizes the sound effects, so there are no audio files.
The unit tests use node:test, the test runner that comes with Node.
The whole game is about 120 KB.
It’s hosted on Cloudflare Pages.
Source code and release notes
The source code is public on GitHub. Issues and pull requests are welcome. To get started, read the Contributing section of the README.