Hey folks I built Outpost Racer, a web based psx style retro racing game.
You can play it online from here: https://outpostracer.com
What tech was used?
I used threejs for graphics, rapier3d for the physics, that's all. The UI is actually css but pre rendered in canvas before overlaying on the screen.
Since I vibecoded this game, the frameworks are not relevant, how I prompted is very relevant. Here are some things I learnt.
Level editor was the best choice I made
Early on, I got chatgippty to make a level editor, this is great as ai simply can't inject personality in the games(most of the personality is derivative)
Later, I also made a car editor for car specific tuning too.
Thinkings in terms of independent systems
Early on when i prompted, the game came out quickly, but later on it turned into a mess over time. This mainly had to do with differenty systems working in a haphazard way.
It would've been better if I built and tested systems independently from each other, eg built and test physics seperately, document it in agents.md, etc.
For instance, I'm working on multiplayer and physics and other stuff should work in harmony, but since I've changed physics, multiplayer code might not know the context and it breaks.
Know how things work
While this is vibe coded, I had a knowledge of game design by dabbling in it over the years and creating levels for games a long time ago. So I could give very specific prompts, like "implement backface culling, test fps before after on caldera track, test it on multiplayer and document it in agents.md", but for a lot of things I didn't have the specific knowledge.
So I would tell ai to do heaps of research and tell me how things worked, what are best practices, etc. Then I would drill deeper and ask specific questions, and also get a glossary of terms attached to it, then I would tell it to implement that thing in a very specific way. This yielded much better results, than just yolo prompting.
Another thing is that if you're not sure what exactly you're building, you'll waste a lot of iterative cycles. So this technique helps a lot.
Determinism
Ai is inheritly not deterministic. Meaning that if you tell it to create a 3d model of a car it might actually make a really nice 3d model, but if you try that prompt again, it will utterly fail.
Most of comes from changing ai providers, versions and effort levels.
So instead of yolo prompting, ask ai what specific prompts do you need to give it a more deterministic result. this is called meta prompting.
So instead of telling ai, "generate a 3d model of a 90s car psx style", you give it a design document(created by ai itself), and give your own directions over it, eg specific car category, look, etc.
This also extends to other things like assets, entities, etc.
Ps: if you're good at creating 3d assets or textures, don't rely on ai, its still pretty bad at it.
Conclusion
I hope that was insightful. Let me know how you like the game and if you have any other questions.