1. Project goal
Build an original 3D browser guessing game that works out the player's birthday without ever asking for the date. The player answers a series of everyday questions about the season and life around their birthday, for example what they wear, whether it is still light at 6 pm, or whether school was in session. Each answer narrows the remaining candidate days and adds a part to a 3D birthday cake. At the end the player enters their birth year and age, candles go on the cake, and the game reveals its guess on a chocolate plaque. In one sentence: answer harmless questions, build a cake, and see if it knows your birthday.
2. Visual style
Sweet and cosy: a pink and white gingham tablecloth receding in perspective, a soft peach gradient background, a white round plate. The cake is built from simple, softly shaded shapes: sponge discs, cream layers, strawberries, frosting, candles and a chocolate plaque. Ingredients drop in with small particles. UI is a cream rounded card with pink labels and white rounded answer buttons, and a pill showing the remaining candidate days.
Reference: author video 00:00 sponge disc with 365 days, 00:02 cream and strawberries, 00:05 second tier dropping, 00:06 two layers from the side, 00:08 fully frosted, 00:09 candle and year step.
3. World and scene
One table scene with a camera that moves closer and around the cake as it grows. Flow: language and region choice, intro, around ten questions, the candle step (birth year and age), the reveal with the guessed date on a plaque, and an are-you-right check with a retry and share. Home and start-over buttons and a back-one-question button stay available.
4. Asset list
Each item is a separate replaceable model in a named slot.
- cake_parts: sponge disc, cream layer, frosting shell, strawberries, piped cream, fruit and chocolate decorations.
- candle_set: number candles 0 to 9 and plain candles.
- zodiac_decorations: twelve small zodiac animal toppers chosen from the birth year.
- plaque: chocolate plate with an area for text.
- table_set: plate, cake stand, gingham tablecloth, cutlery.
Keep procedural: the order of decorations, particles, camera moves, candidate counter and UI.
5. Gameplay and feedback
Keep all 366 dates as candidates with weights. Each question has answer options with a likelihood per date, based on seasons, sunset times, school calendars and similar facts for the chosen region; update weights after each answer and show the remaining plausible days. Always offer don't know. Allow going back one question. After the last question, ask birth year and current age, which narrows dates around the year boundary, then reveal the highest-weight date. If wrong, offer the next guesses. Feedback: a new cake part drops in after every answer, the counter animates, and the final reveal lights the candles.
6. Technical implementation
Use three.js with a single WebGL canvas and an HTML overlay for questions. Store questions and per-date likelihood tables as JSON per region and language. Run the inference locally; do not save or send birth data, and say so on the input screen. Stack cake parts with simple drop animations and tween the camera. Support several UI languages and a mute toggle.
7. Completion criteria
Must work: region and language choice, at least ten questions with don't know and back, a weighted candidate model with a visible remaining-days counter, a cake that gains a part per answer, the candle and zodiac step, the reveal plaque with a correct or wrong check and alternative guesses, start over, share, privacy note, touch and mouse. Match the reference views listed above. Deliver editable source and a list of all replaceable model slots.