Capsule
A small present every day, from your past self.
You can't surprise yourself, unless you forget. Capsule is a capsule vending machine you fill with little presents for future days: a song from childhood, a pastry from that bakery, the cinema alone, a note saying "you're doing fine". A day later your words are sealed; one coin a day, a full turn of the crank, and a capsule rolls into the tray. Free, no ads, no account, no internet.
English · Русский · Changelog
How it works
- Fill the machine. Put in presents for yourself: a small joy (five free minutes), a thing to buy, an outing, a rare golden one you save up for, or just a note. Tag when it would rather fall: morning, evening, Friday, the weekend, sun, rain, grey sky, snow.
- Forget. For a day you can still read and take back what you put in; then the words are sealed and the capsule lies in the dome among the others. Only the colour of its shell tells the kind.
- One coin a day. Tap the slot, turn the crank a full round clockwise (the ratchet clicks, the capsules jump) and a capsule drops into the tray. The purse keeps up to three coins for days you miss.
- Twist it open. Drag the lid sideways until it pops; the paper unrolls with the present, and a line on when you put it in and what the weather was like.
- The machine reads the day. Look out of the window and mark the weather: capsules tagged for today fall more often, your own more often than the factory's, and gold rarely. Things to buy keep to a monthly limit you set.
- Hiding places. Buy a little something, hide it at home, leave a riddle and a photo of the place. Weeks later the riddle falls out of the machine; the photo opens only if you haven't found it in three days.
- Hard day. Capsules tagged "hard day" are kept back from the crank. The dark button under the machine gives one of them, once a day, without a coin.
- It falls by itself. Now and then a capsule drops on its own at a random moment of the day, with one quiet notification.
- Swaps. Not today? Two swaps a week put a capsule back into the dome, lost among the rest.
- Figures and the album. Each capsule holds a little figure. Do the present, close it with one word, and the figure stands on the shelf: four series of eight (kitchen garden, forest, sea, sky), gold from golden capsules. The papers go into an album by month.
- The factory batch. 165 ready-made capsules in Russian and English top the dome up when it runs low, so there's a surprise even before you fill it. You can switch them off.
Build
./gradlew testDebugUnitTest assembleDebug
./gradlew -Pdemo assembleDebug # app.capsule.demo with six weeks of capsules opened
./gradlew testDebugUnitTest -Prender --tests '*RenderArt*' # the machine, the figures and every screen to app/build/art
python tools/shots.py app/build/art # README screenshots from the renders
Everything is drawn in code: the machine and its physics in ui/art/Machine.kt and ui/machine/Dome.kt, the 32 figures as layered paths in ui/art/Figs.kt. Sounds are synthesised on first launch. The factory batch is app/src/main/assets/gifts.tsv.
Fonts: Rubik and Caveat, SIL Open Font License.