Jump to content

Multiplayer TCG


Recommended Posts

Will Babylon handle two player games?   I am specifically looking to make a Trading Card Game similar to Magic the Gathering.  And if so… are there any plugins or templates that will be helpful in creating it?  The biggest thing I'm looking for though is any help/articles on creating a multi player game.

I've looked at Unreal Engine and Unity.  They both have some TCG templates/toolkits you can buy but since I am going to be developing this myself at first, it would be MUCH faster to work with an HTML 5 game engine for me.

Any help at all is greatly appreciated!  Thanks!

Link to comment
Share on other sites

Hi!

Well there is no limitation about the number of players as this is not really related to babylon.js. You can search the forum for multiplayer questions (This will probably involve server side developement with node.js)

Link to comment
Share on other sites

One good project to check out is this boilerplate project to get you started, it's using a node backend:
https://github.com/endel/babylonjs-multiplayer-boilerplate

It's using https://github.com/gamestdio/colyseus for all the multi-player logic and is game engine agnostic.  It takes care of matchmaking and state synchronization!

If you don't want to add any infrastructure, there is also cloud services like Azure SignalR now in public preview - not sure about pricing.  This is perhaps a good option for running on a static website.  I'd go this way, but I'm all about serverless!

The multi-player is not really related to babylon.js, but just wanted to let you know about that project to get you on your way.


 

Link to comment
Share on other sites

My 2 cents worth of tips:

The authors of those 2 games listed on the home page were kind enough to keep their code readable:

http://www.pixelcodr.com/games/shinobomb/index.html

^ local multi player with keyboard/gamepads

Maybe his official BabylonJS book covers the topic slightly as well?

And this racer works with your browser network (LAN):

http://www.babylonjs.com/scenes/minority-race/

The concept for internet multi player may be very similar to the latter example.

Q

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...