1. Project goal
Build an original 3D phone browser game that measures how hard the player can strike their phone with one finger. The player holds the phone in one hand and hits it with the index finger of the other; the accelerometer peak is converted into a fake but consistent weight in grams, shown on an over-the-top arcade strength machine. In one sentence: one finger, one hit, how many grams, which rank.
2. Visual style
Dark underground arcade: a single spotlight cone, black walls and floor, an old strength-tester cabinet with a yellow sign, a red bullseye target, red 7-segment LED digits and a yellow-black hazard-striped base. Impacts are loud and comic: big manga sound-effect lettering, white flashes, chromatic-aberration rings, crack lines and orange sparks. UI is bold condensed type in white and yellow.
Reference: author video 00:00 title cabinet under the spotlight, 00:03 first hit flash, 00:05 peak impact with cracks, 00:06 low close camera with the rank ladder, 00:08 SSS and the broken sign, 00:11 result card.
3. World and scene
One scene with three states. Title: the cabinet under the spotlight with the personal best and a measure button. Measure: the camera moves in, an instruction to hold the phone and strike it, then the impact sequence and a counting LED readout. Result: the camera pulls back, the rank badge and a named title appear, then a result panel with share card, retry and back to title.
4. Asset list
Each item is a separate replaceable model in a named slot.
- strength_cabinet: arcade cabinet with an emissive sign, a target pad that can dent, an LED display and a rank ladder with eight lamps.
- sign_debris: breakable sign fragments for high scores.
- room_set: floor, walls, spotlight rig, a few crates or old arcade machines in the dark background.
- optional mascot: a finger or fist character for the share card.
Keep procedural: sparks, cracks, flashes, sound-effect lettering, numbers and UI.
5. Gameplay and feedback
Input: request motion-sensor permission on the first tap, then listen to devicemotion during a short window and take the peak acceleration of a single spike. Map it to grams with a fixed curve and clamp it; reject long shakes or dropping the phone. Ranks E, D, C, B, A, S, SS and SSS each have a title and a line of flavour text. Feedback scales with the score: bigger lettering, more sparks, a stronger camera shake, cracks, and at the top ranks the sign breaks. Keep a personal best and show new personal best. Result card image can be saved or shared to X. Offer a desktop fallback (click timing or keyboard) clearly marked as a demo.
6. Technical implementation
Use three.js with a single WebGL canvas and an HTML overlay for UI and lettering. Handle the iOS DeviceMotionEvent.requestPermission flow. Animate the LED counter separately from the real reading so the reveal has suspense. Render the share card to a canvas for long-press save. Save the best score and language locally; support several UI languages.
7. Completion criteria
Must work: sensor permission flow, single-hit detection with grams, eight ranks with titles, scaled impact effects including cracks and sign breakage, camera moves between title, measure and result, personal best, result card with save and share, retry and back to title, desktop fallback. Match the reference views listed above. Deliver editable source and a list of all replaceable model slots.