Building caduma.dev: a shelf of cartridges you can actually play
Why our games website looks like a retro console on a wooden desk, and how a game goes from its source code to a cartridge on the shelf.
caduma.dev is where all of Caduma’s games can be played in a browser. We wanted it to feel like picking a game off a shelf rather than scrolling through a list of thumbnails, so the home page is a tray of game cartridges next to a small TV and console.
Cartridges, not thumbnails
Each game is a 3D cartridge drawn with WebGL, with its own label art on the front and the game’s name on the spine. Hover over one and it lifts out of the tray and tilts toward you. Select it and it travels to the console, the TV switches on, and the game starts loading in the background, so that by the time you press Play it is often already on screen.
The TV shows an illustrated scene from each game while it waits. When your device asks for reduced motion, the animations are skipped. If the browser runs out of graphics memory, the cartridges fall back to flat cover images instead of disappearing.
From source code to cartridge
Our games are built with Flutter and the Flame engine. Each one has its own folder, design documents, and history of changes. When we publish the website, the build compiles every game for the web from its source code, packs it next to the portal, and checks that each one has everything it needs before anything goes live. The website never runs a game that was built from different code than what is recorded in the release.
Every game also gets its own page with a description, instructions, and tips, so you can learn about a game before opening it, and so search engines can find it. You are reading one of the newer additions: this devlog.
Your progress stays with you
There are no accounts on caduma.dev. Games save progress in your browser’s local storage, which means nothing to sign up for, but also that clearing your browser data clears your progress. Some games, like Suspect Sketch, let you export your progress to a file.
What comes next
We will keep adding games and writing here about how they are made: new features, design decisions, and the occasional bug hunt. If something does not work on your device, write to contact@caduma.dev.