Context
Gawi is Tagalog for “habit”. Habit apps often rely on checkboxes and streak counters. Once a streak breaks, opening the app can feel like a reminder of what you missed.
Gawii tracks habits and their history. A creature grows as you complete them, and your team climbs an island over roughly the time it takes to form a habit.
Problem
One missed day resets a streak, even after twenty days of progress.
I wanted steady progress to count even after a missed day. The game also needed to stay simple enough that it didn’t become another chore.
What it does
Habits
Daily habits on chosen weekdays, or “N times per week”, each with a streak, consistency stats and an activity graph. Yesterday can still be logged until noon.
A creature partner
Up to 50 XP a day, split across the day’s habits, goes to your partner. At Lv 5 it evolves.
45 original creatures
Code-drawn pixel art, no image model. Rarity shows in the art itself: commons are small with 2-frame idles, legendaries are twice the size with 8 frames.
Card pulls
Streaks and daily quests pay gems for pulls, with a pity counter and a guaranteed Rare in every ×5.
The island
The island has five summits over about 66 days, the time used here for forming a habit. Daily habits move the team along the path. Each climb ends with a guardian fight based on your progress.
Engineering
Days in your timezone
Completions are stored as local yyyy-MM-dd day keys, so a late-night check-in never lands on the wrong day.
Progress comes from habit records
Quest progress and streaks are computed from habit records, so there are no counters to drift when a habit is unchecked.
A transaction record for gems
The balance is the sum of transactions. Every reward has a key that is unique per user, so it can only be claimed once, even under two requests at the same moment.
Scoped by owner
Every habit query and mutation is scoped by user id.
Major decisions
How long the climb is
- Chose
- Five summits of 5, 8, 12, 17 and 24 days, about 66 in all.
- Over
- An open-ended streak.
- Because
- 66 days is the average time to form a habit in Lally et al. (2009). The climb ends when the habit should have formed.
Where the balance lives
- Chose
- An append-only gem ledger with unique reward keys.
- Over
- A gems column on the user.
- Because
- A retried request can add to a counter twice. Unique keys prevent that in the ledger, which also records where each gem came from.
Where the art comes from
- Chose
- Sprites written as code, one generator per creature.
- Over
- Generated or traced images.
- Because
- Every creature is original and can be redrawn by changing its spec.
Try it
The live demo and the source code.