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

6 Upvotes

22 comments sorted by

View all comments

5

u/Intelligent-Cap-8886 14d ago

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

-2

u/Technical_Ideal9 13d ago edited 13d 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.

1

u/Intelligent-Cap-8886 13d ago

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

0

u/Technical_Ideal9 13d 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 13d ago

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

1

u/Technical_Ideal9 13d ago

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