Inspiration
Sky Hopper started as my own web game about threading a tiny plane through mines and gems. The original is live here:
- Original web game: https://html5.gamemonetize.com/9ncu8puxzsjrc14127g0vcmgsomye6dx/ This entry targets Best Ported Daily Game: I built and own the original, and this is a port of it. Reddit's Game of the Day asked for something else: a game the whole subreddit plays together, on the same day, in the same sky. The port keeps the flight model players already know and turns it into a daily ritual: one sky a day, one named condition, three chances to fly it, and a leaderboard that ranks the community's best flights throughout the UTC day.
What it does
Every UTC day brings one seeded sky plus a named daily condition: Storm Day, Fuel Day, Cargo Day, Tailwind Day or Fog Day. Each condition changes what the flight tests, so the day has a name worth complaining about. Storm Day pushes the plane sideways with strong crosswinds; Fuel Day drains fuel 60% faster; Cargo Day adds a fragile parcel that cracks on near-misses and ends the run if it is lost; Tailwind Day adds a 25% speed bonus with everything coming at you faster; Fog Day more than doubles fog density. "Storm Day wrecked me" is a sentence a player can actually say, and that is the point. You get three scored flight starts per UTC day, each capped at 60 seconds. Your best submitted score counts. A run ends early if fuel hits zero or mine hits drain the plane's energy to zero. Score is floor(distance in metres) + 25 per gem. A server-side leaderboard ranks players who submit scored flights in the subreddit (top 10 shown, ties broken deterministically by user ID under Redis sorted-set ordering), streaks count consecutive UTC days, and a result card shows your rank with a copyable score line and a prompt to join the subreddit. Practice flights run on a fresh random sky and never touch your scored runs. Logged out, you can still practice; scored flights need a Reddit login. A new sky opens every day at midnight UTC (05:30 IST). A community distance counter tracks every scored flight submitted that day. The target bar appears once 100,000 metres are flown in a day, with a 1,000,000-metre goal. Daily posts currently require a moderator to trigger the creation menu manually once per UTC day. Automatic scheduled posting is not implemented. The demo post is live here:
- Live demo post: https://www.reddit.com/r/sky_hopper_daily_dev/comments/1y0yxya/sky_hopper_daily_20261120/
- App page: https://developers.reddit.com/apps/sky-hopper-daily The demo post is published under the app's Reddit account, u/sky-hopper-daily; the individual entrant is u/Ok_Log_1176.
How we built it
The game is a Devvit Web app: React shell, TypeScript, Node.js server, Redis. The original Sky Hopper engine was ported to TypeScript (1,070 lines, generated by a re-runnable port script that fails loudly on source drift) and mounted in the React shell through a canvas ref, with WebGL2 rendering. The port added determinism hardening: start resets time, speed and plane position, and gem/mine bob phases moved into the seeded layout stream. Layout is seeded and visual effects are not, so two runs with the same seed and no input produce identical stats and layout. The daily layer is a shared core with no Devvit imports: cyrb53 plus mulberry32 turn the UTC date into a seed, five conditions rotate by date, and one constant sets the gem value at 25. The server is the source of truth: it issues the seed and a run ID, allows at most three run starts per user per day, validates telemetry against plausibility bounds (duration 5 to 75 seconds, the 60-second gameplay cap with timing slack to 75, bounded distance, gems and level), accepts exactly one submit per run ID through an atomic Redis claim, enforces a 10-minute submit window and a two-hour run lifetime, and stores the best of three. A submit the server rejects shows a score-not-saved state with a Retry button, and the flight still counts locally. Runs that cross midnight submit under the day they started, because the submit date comes from the run record, never the client. The server is a plain Node request listener, not a framework adapter. Daily posts come from a moderator-only menu item, "Create Sky Hopper Daily post", backed by a server endpoint that creates one post per UTC day and returns the recorded post on repeat calls, so a second click never duplicates it. The app is playtest only and remains unpublished for the hackathon, as the rules ask. Verified so far: 37 unit tests passing (16 shared, 21 server, including 2 menu-post), a clean TypeScript compile, 20 of 20 headless Playwright checks on the engine harness and 8 of 8 on the built client, including a real run ending on the result card. One verified run in the headless engine harness, capped at 60 seconds, scored 2231: 1,706 metres plus 21 gems at 25 points each.
Challenges we ran into
The first playtest installed the app but created no post. The CLI does not auto-create one, and the app had no post path at all: a pure API server with no moderator menu item or post-creation endpoint. I added a moderator menu item backed by a server endpoint, and then the endpoint failed with no server log at all, across three deployed versions before isolating the root cause. One theory died before the real cause: switching the server bundle from CommonJS to ESM changed nothing. The real cause was one missing line. createServer returns a server object and never listens on its own, so the platform had nothing to connect to. Adding server.listen(getServerPort()) fixed it, and the next click created the post, though the click still showed a "Something went wrong" toast.
Two response layers hid behind that toast. An explicit Content-Length (v0.0.5) fixed the platform's response-parsing error and exposed the real cause: menu handlers must answer with a UiResponse, so the endpoint now replies with a toast instead of JSON (v0.0.6).
A later race needed three layers of its own: a submit in flight blocks new starts, every start bumps an epoch guard so a late submit from an old run cannot touch the UI, and Retry is bound to the captured run ID and telemetry, never shared refs. Note on the demo post: Reddit currently marks the playtest post as Stickied, Locked, and Archived. The game renders and the state API serves. A live scored submit on the post was exercised on 2026-11-20: a scored flight (824 m, 2 gems, score 874) submitted automatically, ranked #1 on the leaderboard, and the result card showed the rank with a copyable score line. Whether a judge can comment a score on the post is not yet verified; the score line is copyable from the result card.
Accomplishments that we're proud of
A complete v1 daily game, live as a playtest post on Reddit: seeded daily skies, five rotating conditions, server-validated score submissions with telemetry plausibility checks, daily attempt limits and one-time run submission, streaks, a community distance counter, a leaderboard, practice flights kept separate from scored runs, and idempotent daily post creation. The demo post went live on the first working click after the listen fix, and a repeat click now answers with the correct toast and never creates a duplicate post. Determinism verified: same-session run two matches run one exactly. Scope note: automated unit and Playwright suites cover the engine and built client, while multi-player live browser testing of the server-mode flows is still next up.
What we learned
On Devvit, the platform contract is the product. A server that never listens fails silently, a menu handler that returns the wrong response shape looks like a crash even when the work succeeded, and a toast that says something went wrong can be lying, so I learned to reload and check the real state. Verifying against the installed packages, not from memory, caught the real contract each time: the installed Devvit packages exposed no Devvit-specific state or async helpers; the React client uses React's own useState. The server context carries no reddit property, and Journeys has no emit API in the installed package, so streaks are verified server-side from Redis only. A daily game is not a timer on a normal game: the seed, the named condition and the shared leaderboard are what make it daily. One balance fact worth stating plainly: with no input a run dies on fuel or mines around 25 seconds, so the 60-second cap is a ceiling, not the norm.
What's next for the submission
Daily post automation through the scheduler, so the moderator menu click is no longer needed; it is not built yet. Then a five-player real-browser playtest, including the server-mode flows that have no browser coverage yet, only unit-test coverage, and score calibration from real play: the gem value, the three-flight allowance and the community goal threshold all tune from observed traffic. Longer term, a full server-side replay check for the top of the leaderboard. No demo video is included with this submission.
Built With
- css
- devvit
- esbuild
- html5
- javascript
- node.js
- playwright
- react
- redis
- typescript
- vite
- webgl2