最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What are the best tools to make an online card game? - Stack Overflow

programmeradmin1浏览0评论

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
 |  Show 2 more ments

2 Answers 2

Reset to default 4

You 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.

发布评论

评论列表(0)

  1. 暂无评论