Links

Play it (no install, guest mode works): https://emberix-world.vercel.app/ Backup URL: https://creatureworld.vercel.app/ Code (public repo): https://github.com/onad1ocrypto/emberix-world Demo video (2:24): https://www.youtube.com/watch?v=E-BTrSmcxiM

The problem

Virtual pets play like a spreadsheet: press "feed", a bar goes up, and nothing about it feels like it happens somewhere. Then the app closes and the pet is gone, so you can't put it in front of a friend.

We wanted a pet that occupies a place you can stand in, and that can physically leave the screen. Emberix World is a 3D island in the browser plus a card you print at home.

What it does

A 3D virtual pet that runs in the browser. You walk onto Solara Island and look after EMBER, a baby fire dragon: pet, feed, play, sleep, dance, surprise and selfie. Four needs (hunger, energy, happiness, bond) drift on real wall-clock time even while the tab is closed, capped at 4 hours. XP and care quests unlock Dragon Gear at Lv.1 to Lv.4, with 4 switchable dance tracks in the HUD. Progress saves in localStorage whether or not you register: you can play as a Guest Keeper, and a Keeper account (username, pet name, 4-character PIN, no email and no password) binds that same progress to a named profile plus a +50 XP bonus and lets you switch keepers on one device. One Keeper Code moves a save to another device. A printable AR card, PNG or A4 PDF, puts EMBER on your desk through a phone camera. UI in English, Indonesian and Chinese. Play it: https://emberix-world.vercel.app/

Who it's for

People who bounced off virtual pets because they felt like menus, and anyone who wants to hand someone a dragon instead of passing a phone over. Also first-time hackers and younger players: nothing to install, nothing to verify.

What's unique

  1. The world is the interface. Needs, care, gear and dance all happen at a place you stand in.
  2. A physical artefact from a web app: the card is generated in-app and printed at home.
  3. Card detection is written from scratch and runs in the browser, so there is no native app, no cloud call and no proprietary AR runtime.
  4. Zero backend. Accounts, saves and device transfer are localStorage plus a checksum code, and that constraint shaped the whole design.

How we built it

TypeScript and Vite, about 19,600 lines in src/. Three.js for the island, creatures and camera rig, XR Blocks for the spatial UI. Movement and camera collision are hand-written (PlayerController.ts 1,040 lines, IslandWorldEngine.ts 1,189). Card tracking is custom (MindARTracker.ts 741 lines, cardDetector.ts 209): each frame is downscaled to 64 by 64, a multi-scale window scan over sizes 14, 20, 28, 36 and 46 with step 3 finds the target, and a score of 74 percent grid similarity plus 26 percent colour similarity weighted by warmth must beat 0.66 to lock on. Rules and storage are pure functions with 26 node:test cases. Keeper Code is EMBERIX-tag-checksum8-payload, deflated through CompressionStream with a plain JSON fallback. Deployed on Vercel. Built with Google Gemini and audited with Claude; no AI runs in the product.

Challenges we ran into

The printed card was undetectable at first: tilt and lamp shadows beat a naive template match, so I wrote a calibration loop and set the threshold from measurements, 0.72 to 0.83 on the printed card against 0.00 on frames without one. The first AR library's precompiled WASM runtime would not fit Vite, so I replaced it with my own detector. Saving without any backend turned into a checksum problem. Offline decay was too cruel at first, so it is now capped and paired with an attention banner. An audit pass deleted claims the build could not show, including a "React" mention, and I rebuilt the demo video from the raw recordings so every narration line matches what is on screen.

Accomplishments we're proud of

It ships: a public URL a judge can open on a phone in ten seconds, a public repo, and a deployment that stayed live through the whole build. The hard part actually works: card detection went from losing the card on any tilt to a measured 0.72 to 0.83 against 0.00, tuned from data. 19,600 lines with no backend of any kind, and cross-device save transfer using only an 8-character checksum. 26 automated tests, 25 passing; the failing one is a stale assertion I documented instead of quietly deleting.

What we learned

Calibrate, do not tune by eye: the tracker only became reliable once positives and negatives were measured. A hard constraint is a design tool, because "no backend" produced Keeper Code, the feature people remember. Writing the boring layer yourself often beats fighting a library's build. And when AI writes most of the code, the scarce skill becomes verification: the audit pass caught more real defects than the generation pass caught bugs. Saying only what the product does improved the UI copy, the video and this write-up.

What's next

Per-keeper card patterns, so two dragons can share one desk instead of every account printing the same card. Real models, animations and care loops for AQUA, MOSS and VOLT, which are locked collection entries today. Optional cloud sync using the same code format, so a lost browser profile is not a lost dragon. A visit mode with two keepers on one island. A headset mode, since the XR Blocks layer is already in place. Plus repo cleanup: remove the leftover scaffold manifest and unused dependencies, and fix the stale email-login test.

Disclosure

  • AI tools: the project was built with Google Gemini for code generation, refactors and UI copy, and audited with Claude for claims checking and detector threshold analysis. Every generated change was reviewed, run and tested by us. All work happened inside the Nov 8 to 15 hacking period, and no pre-existing project was submitted.
  • No AI runs in the product. Nothing calls a model or a cloud API at runtime. package.json still lists a few SDKs from abandoned experiments, and only three, xrblocks and the Vite and TypeScript toolchain are imported by the shipped code.
  • The narration in the demo video is an AI-generated voice. The footage itself is two unedited screen recordings of the app with no montages, and the thumbnail crest is the game's own vector logo rendered from src/ui/GameUI.ts.
  • Music is copyright-free (CC0 or Public Domain, asserted by a test).
  • One honest leftover: metadata.json is a manifest from the starting scaffold and still mentions a server-side Gemini capability and MindAR tracking. Neither is in the shipped app. We ran out of time to remove it.

Known gaps

  • 25 of 26 tests pass; the failing case still asserts the email login we deliberately removed when registration became username-only.
  • Run the suite with: npx tsx --test src/game/rules.test.ts src/storage/keeperCode.test.ts src/ar/cardDetector.test.ts
  • AR detection needs decent light; glossy paper under a ceiling lamp is the worst case.
  • The save lives in localStorage, which is exactly why Keeper Code exists.

Built With

Share this project:

Updates

Submission history