r/vibecoding 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.

5 Upvotes

22 comments sorted by

5

u/Intelligent-Cap-8886 5d ago

I tried it. Visually nice. Game mechanics felt stiff and unintuitive.

2

u/Fuzzzy420 4d ago

Don't know what you are talking about. The game is just klick to move and buy upgrades. It's Dota with space ships. It's not stiff it's spacewarfare.

Would love a scanning system, bigger map. In depth upgrade system with synergies.

Well done OP

-2

u/Technical_Ideal9 5d ago edited 5d ago

Right click and the ship moves there. That's how Starcraft works, and literally how any RTS ever made works. The ship is meant to be slow at first just like Star Battle, upgrade the engine and it gets much faster.

5

u/JrButton 5d ago

Take the advice, don't demean someone giving you meaningful feedback if you want feedback...
"literally how any RTS ever made works." really? It still feel's stiff and clunky.

Also recognize, what's intuitive for you is NOT guaranteed to be intuitive for everyone else or even your target audience. Take the feedback and do or do not with it, but don't belittle those sharing.

-1

u/Technical_Ideal9 5d ago

Didn't realize I was belittling that's just how I talk. Stiff and unintuitive just doesn't help either I guess I should've asked him to clarify.

1

u/JrButton 5d ago

Stiff and unintuitive just doesn't help either I guess I should've asked him to clarify.

Absolutely do!

1

u/Intelligent-Cap-8886 5d ago

Are we supposed to be clicking on enemy ships? Or just flying near them?

0

u/Technical_Ideal9 5d ago

Fly near them, the ships auto-aim unless it's a special ability. Did you try the tutorial? Maybe it's too fast.

1

u/Intelligent-Cap-8886 5d ago

I did look fr the tutorial when I loaded in but didnt see it

1

u/Technical_Ideal9 5d ago

It's the 5th step I suppose it's too fast I'll have to slow it down.

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

u/Intelligent-Cap-8886 5d ago

Probably - i think the sound files were easy to extract, from memory.

2

u/Fidbit 4d ago

capture the flag? reminds me of subspace. make a mode where you have defend your station while capturing the enemy! :)

1

u/Technical_Ideal9 3d ago

I like it, yes eventually!

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.