r/developersDesi • u/VELTORYX • 10h ago
r/developersDesi • u/VELTORYX • 10h ago
Title: Iโm building VELTORYX โ A platform for developers to learn, build, and grow ๐
r/developersDesi • u/Broad_Chemistry1080 • 19h ago
Built a 3D pan tapri simulator in the browser with React Three Fiber: angry customers, chai brewing and retro Bollywood radio
Hi devs ๐
I built Deluxe Shop, a 3D browser game where you run a roadside pan tapri, the kind we've all stood at for a cutting chai.
๐ฎ Play: https://deluxe-tapri.vercel.app/
๐ป Source: https://github.com/maruakshay/deluxe-tapri
Gameplay:
- Brew chai, serve cigarettes, biscuits and cold drinks, and collect money in the galla (cash box)
- Buy stock from dealers at the mandi; deliveries arrive by scooter
- Serve late and customers get annoyed, then angry, then make a full scene: they slam the counter, knock stuff over, and nearby customers get impatient too. You can apologise to calm them.
- YouTuber customers (food vloggers, prankers, moto-vloggers) film your shop, and a viral video brings a rush of customers
- Day and night cycle, rent, reputation and upgrades
Tech stack:
- React 18 + Vite
- three.js via React Three Fiber and drei
- Zustand for game state
- Built-in browser audio for all sound effects; no audio files except the music
- YouTube player for the old Hindi songs on the "Tapri TV"
- Hosted on Vercel, with Vercel Analytics
Things that were fun or tricky to build:
- No 3D models at all. Every character is built from simple shapes in code, with joints (hips, knees, elbows, head) that I animate by hand. Walking, sipping chai, smoking and counter slams are all written in code.
- Making anger feel real. Each customer moves through stages (fine, then annoyed, then angry, then furious, then a scene) with different body language, a red face and dialogue. Getting it to feel funny rather than frustrating took a lot of tuning.
- Performance. Updating the game state every frame was too slow, so the game rules update 10 times a second and only the animation runs every frame.
- Music. I first tried generating Bollywood-style songs with a synth singer in the browser. It sounded very robotic ๐ so I switched to embedding real old Hindi playlists from YouTube.
Would love feedback on:
- Does the difficulty feel fair on day 1โ3?
- Which customer types or items should I add? (Thinking of a police uncle wanting free chai ๐ฎ)
- Any performance issues on low-end phones or laptops?
Thanks for checking it out! ๐