I'm looking for some event/reactive online tools to make a card game in a browser. I think JS is most appropriate here but I'm open to all propositions.
I already tried VueJS / Node with Socket.IO but I think it's very messy and not organized enough to make a project like this. So I was wondering if you guys knew some frameworks to make the job.
The projects is to make an online card game like poker.
Thanks !
I'm looking for some event/reactive online tools to make a card game in a browser. I think JS is most appropriate here but I'm open to all propositions.
I already tried VueJS / Node with Socket.IO but I think it's very messy and not organized enough to make a project like this. So I was wondering if you guys knew some frameworks to make the job.
The projects is to make an online card game like poker.
Thanks !
Share Improve this question asked Jul 14, 2020 at 10:12 PlibouxPliboux 1091 gold badge2 silver badges9 bronze badges 7- If you want to make a game that is playable in a browser. You could try Unity. – John Commented Jul 14, 2020 at 10:16
- Thanks for the answer. Can we really do some lightweighted online card game with Unity ? I'm afraid that it requires too much resources and slow down the game :/ – Pliboux Commented Jul 14, 2020 at 10:18
- 1 You can play some unity based games on itch.io to see the performance. – John Commented Jul 14, 2020 at 10:18
- Apparently, I need the Unity Web Player to play this kind of games and it's not available on Google Chrome... Which is important because Chrome is the most popular browser... – Pliboux Commented Jul 14, 2020 at 10:23
- Unity doesn't require the web player addon anymore since it piles to HTML5 and JavaScript – John Commented Jul 14, 2020 at 10:32
2 Answers
Reset to default 4You could try pixi.js or phaser 3+. Also I've wright one of my card-games only using html+css+javascript. For back-end you could use whatever you want. NodeJS + websockets is good choice!
If the main matter is the realtime database connection (for which you are looking for websockets), you could create the game and store it's data to firebase firestore
, this way you could get everything synced in real time with a less pain than a node server setup, (for this purpose), if you need some backend functionality you could also work with firebase functions
in order to achieve some backend stuff, also you could even store your project on firebase hosting
, have an authentication ready platform with firebase auth
and depending on your needs you would not even pay a penny (this really depends on the usage)
Hope this could at least be an option to consider.
Check the firebase documentation: FIREBASE
Even if you wish to work with Unity
instead of VueJS
you can also use firebase for all this matters.