Inspiration

Most of us lose hours every day to short-form video, and standard screen-time limits usually just make us feel guilty before we hit "ignore limit." So we tried building the opposite: a phone app that actually gives you a reason to put your phone down.

The Last Voyage is a co-op pirate adventure where your real friends are your crew and you all share one ship. The ship only sails when you go live your life.

What it does

Everything you do in real life becomes Moves, and you spend Moves exploring islands and fighting bosses with your crew.

  • Steps (Android Health Connect): 1 Move per 1,000 steps, up to 10 a day.
  • Quests: Walks, workouts, reading, time with friends, hobbies, and more. Up to 6 Moves a day, on the honor system with hard caps.
  • Free Moves: 2 every day, so nobody is ever locked out.
  • Calm Seas streak: Stay under your short-form limit (60 swipes and 20 minutes by default) and your Moves multiplier grows by 10% per day, up to 2x at 10 days. If you don't open TikTok, Instagram, or YouTube at all, Shore Leave adds an extra +25% bonus on top.

Today's Moves formula:

Moves = floor( (2 + min(10, floor(steps / 1000)) + questMoves) × (1 + 0.1 × min(streakDays, 10) + 0.25 × shoreLeave) )

For example, walking 6,200 steps, logging a walk and a workout (3 quest Moves), and keeping a 5-day streak gives floor((2 + 6 + 3) × 1.5) = 16 Moves.

If you break a streak, you just lose the bonus multiplier. You never lose your Moves, items, or island progress.

On the island

  • Each island is a seeded hex board of radius 5 (91 hexes) with fog of war, terrain costs, hazards, and loot.
  • Tap a hex and the cheapest path is automatically calculated and paid in Moves.
  • At the center is a boss whose HP is shared and persists, so your crew chips away at it across multiple days.

Your fighting stats come from your real-life skills:

  • HP: 25 + (Grit / 2)
  • ATK: 4 + (Grit + Craft) / 20
  • Crit Chance: min(50%, 5% + Charm / 300)

Reading, working out, and spending time with friends literally make your pirate stronger.

The crew's companions

  • The Tidekeeper: A voiced AI narrator. Hold to talk and ask "how many Moves do I have?" or shout "strike!". He can also summon real-world events onto the island, grounded in live web search with source links.
  • The Shipwright: Shows your daily ship speed (your Moves) and suggests one easy real-life task to go faster, without guilt-tripping you.
  • A theme song for every player: Composed by ElevenLabs Music based on your top skill, your current island, and your streak.

How we built it

  • App: React Native + Expo SDK 58, Expo Router, and strict TypeScript. One codebase builds both the Android app and an installable web app for iPhone and desktop.
  • Scroll tracking: A Kotlin Expo module running an Android Accessibility Service plus Usage Access. It counts YouTube Shorts swipes and minutes on the device itself. It reads only screen-layout IDs, never text or content, and only daily totals ever leave the phone.
  • Game rules: A pure TypeScript package shared by the app and the server, covered by Vitest tests for Moves, streaks, island generation, combat, and the Shipwright.
  • Server: Node + Hono + MongoDB Atlas, with JWT sessions and Zod validation. Voice replies and theme songs are cached in Mongo with TTL expiry.
  • Auth: SSOJet (OIDC + PKCE).
  • AI and voice: OpenAI gives the Tidekeeper structured JSON actions and runs the Game Master events with web search, while ElevenLabs handles text-to-speech, speech-to-text, and music generation.
  • Deploy: Vercel serves the static web build plus a serverless API function.

The Tidekeeper never decides game outcomes. The model proposes an action as structured JSON, and our deterministic game code validates and applies it:

// questions never spend Moves; only game code applies actions
if (intent.kind === 'question') action = 'none';

Challenges we ran into

  • Counting Shorts swipes: YouTube fires almost no usable scroll events. We solved this by detecting a swipe whenever the settled video in the Shorts pager changes, checked every 400 ms using layout IDs only.
  • Keeping the AI honest: Early versions accidentally spent Moves when a player only asked a question. We moved every game rule into strict TypeScript code so the AI only narrates.
  • SSOJet callbacks: SSOJet only accepts http(s) callbacks, so we built a lightweight server bridge page that hands the sign-in session back to the Android app.
  • iPhone without a Mac or Apple Developer account: We shipped a responsive web build from the exact same codebase that installs on iOS from Safari via Add to Home Screen.

Accomplishments that we're proud of

  • Getting from a simple step count to a full co-op loop where real walks and workouts let our crew explore a map and take down a shared boss.
  • Privacy-first tracking that never reads what is actually on your screen.
  • A fully voiced, context-aware narrator, plus a custom-generated theme song for every player.
  • Never punishing players for having a busy day: zero lost progress, ever.

What we learned

  • Positive streak multipliers kept us off Shorts way better than phone screen-time popups ever did.
  • Letting code handle the rules while the AI only handles the narration kept the game fair without making the Tidekeeper boring.
  • Android accessibility APIs are super useful, though they break easily whenever YouTube updates its screen layout IDs.

What's next for The Last Voyage

  • Instagram Reels and TikTok swipe tracking.
  • Life-event story cards, turning journal entries into personality traits, and ship rooms that upgrade your hull.
  • Crew heading votes, rival crews, and a voiced morning recap.
  • Monthly themed islands, plus the Lodestar: at year-end, the top Legend pirate earns a crown, a legendary ship for their crew, and gets to name an island in next year's sea.

Built With

Share this project:

Updates

Submission history