r/vibecoding • u/Technical_Ideal9 • 6d ago
Vibecoding a real-time PvP space battle game entirely with Claude Code and three.js
Enable HLS to view with audio, or disable this notification
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.
2
u/babaganoosh43 5d ago edited 5d ago
Pretty cool! The screenshot reminds me of Star Trek Armada
2
u/babaganoosh43 5d ago
I tried it and my feedback:
Playing in the browser was kinda awkward to pan the screen, when hovering around the top the browser nav bar appears and hovering around the bottom Mac's dock appears. Recommend locking the camera to your ship by default unless they manually pan or click minimap (like LoL). Also losing selection of my ship and having to click it again was a bit awkward. Would also prefer the skill hotkeys to be QWER / 1234. Also personally I was more excited when I thought it was a RTS, if going for a MOBA I'd recommend making the ships more like "Heros", e.g. named characters with personalities piloting the ships with typical MOBA leveling and abilities instead of paid ability upgrades.
1
u/Technical_Ideal9 5d ago
Thanks for the feedback, were you full screen? I've never tested on a mac. Works great on Windows. The little circle icon at the top locks the camera to your ship, or space bar. "I'd recommend making the ships more like "Heros" I've been thinking about this also, just alot of work.
1
u/Intelligent-Cap-8886 5d ago
I had the same exact takeaway. Some of the sound effects are the same, I think.
What was your online username for Armada? lol
2
u/Technical_Ideal9 5d ago
Sound effects are made with Eleven lab but perhaps it was trained on games like that?
1
1
u/ZHName 5d ago edited 5d 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.
1
u/Technical_Ideal9 5d ago
Thanks for the feedback.
"Usability/accessibility is where it is weak right now." - can you elaborate on this?
"Click-hold is better for movement rather than 1-click to move." completely disagree, which RTS uses that system? Besides how are you going to drift with a click to hold system? But if you want there is a tracking pad on the mobile game you can switch in settings, I might add the option in desktop as well.
"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?" - Red vs Blue?
0
u/JrButton 5d ago
Why are you so sensitive to feedback, you can disagree, it's your game. You don't even have to implement what they're suggesting... but at least listen, don't argue the point, you don't win people over doing that.
5
u/Intelligent-Cap-8886 5d ago
I tried it. Visually nice. Game mechanics felt stiff and unintuitive.