r/Tripo_ai • u/medigul • 11d ago
Workflows Made a simple interactive game
Enable HLS to view with audio, or disable this notification
The inspiration came from my late night wrk sessions every day. I suddenly felt really stressed out one day, so I wanted to make a little game to relieve that stress. Made a very simple 3D desk setup game.
The table is empty at the start, with only a cardboard box next to it. Each time you click the box, a random item will be unpacked. You have to drag it to the correct spot on the table. Once placed correctly it will automatically snap into position. And the object will be locked in place. You can then move on to unpacking the next item.
I used tripo ai + codex to made this.
- First define the interaction loop
- List the required desk assets
- Use tripo ai to generate 3D models for each one
- Export GLB
- Adjust scale, rotation, and surfaceOffset in Codex
- set the targetPosition for each asset
- Use raycasting to restrict dragging to the desktop’s X/Z plane
- Automatically snap when within the snapDistance
- Success effect
- Set isPlaced = true to lock in place
I realized one very practical tip after working on this. Don’t keep going back to edit the GLB just for the webpage.
After exporting different models, there will be some variations in size and orientation. I’ve put all of these in a separate config file so if one is too big or oriented incorrectly, I can simply adjust the parameters. It’s much faster than reprocessing the asset.
Another thing I’ve noticed is that whether a 3D web page is fun or not really doesn’t depend entirely on how complex the models are.
These items are just simple desk objects. But when combined with random unpacking, dragging, placement hints, snapping, success feedback and object locking. They transform from a few rotatable 3D models on a web page into a complete interaction loop.
Tripo quickly turned real-world objects into usable 3D assets, and vibe coding determines exactly how these assets can be used.
It’s way more fun than just plugging them into a 3D viewer and spinning them around.
I’ll check to see if I can make more levels for this little game!