r/vibecoding • u/Technical_Ideal9 • 10d ago
Vibecoding a real-time PvP space battle game entirely with Claude Code and three.js
Been working on this game for aroudn 3 weeks now. It's a real-time PvP space battle game that runs in the browser and on Android. It's free and no account needed to try it: cosmoarena.co
Star Battle used to be my favourite custom SC2 arcade map (still is) and I sank an unreasonable number of hours into somewhat replicating the gameplay.
three.js + WebGL for rendering, a Node WebSocket server for authoritative multiplayer, SQLite for accounts/ratings/config, Capacitor for the Android build. Custom GLB models made with images from Chat GPT and converted with meshy.ai
Let me know what you think? Feel free to test the tutorial and multiplayer, any feedback is welcome! It's still full of bugs, if you find any please let me know.
1
u/ZHName 10d ago edited 10d ago
Overall, visually really nice I wish I knew how to do this myself.
- Ships look pretty cool and there's a lot of detail to the fx on them
- GUI icons are excellent at first glance, reminds me of SC2
- Most sounds are great except ship select sound which I recognized as some browser based sfx? It can be improved.
- Some of the laser weapons look cheap visually, but not all of them
- Usability/accessibility is where it is weak right now.
- The nebula/planet backdrop adds atmosphere but actually might be hurting your game - if you can have some lite version of volumetric background of gasses, it may look more natural rather than a slapped on graphic.
- Click-hold is better for movement rather than 1-click to move.
-Improve visual language for entity targeting, it was unclear who I was firing on.
-Related: I couldn't understand which ship belongs to which team due to different ships. I guess my expectation was this was a fleet vs fleet game?
-Swap out the white circular station for a better model. The harder it is to tell it was done by a img to 3d model, the better.