Jump to content

Multiplayer TCG


Recommended Posts

Will Panda 2 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

For a good multiplayer game you need a game server. You can build one with nodejs for example. I am currently making a card game for which I have made a server in .NET Core C#.

Panda is created for use on the client side so I don't think it will include such a plugin soon, the only way I could see this is maybe with something like Google Firebase.

Link to comment
Share on other sites

Yeah, pretty much what mise said. Panda (and most other engines) are just the graphics, 'UI' side. The server should be the one that handles your game logic.

I don't think you need a plugin, though. It's all javascript, so you can just open a websocket, and just read and write messages from the server.

So generally speaking, a game would look like this: Server holds the game logic(but doesn't have any graphics). Your game has a websocket, which connects and asks the server for the game state, the server response, your websocket reads the message, then passes that info to your 'Panda Graphics' code. (Cue, animations, and soundfx, and explosions). You then select a move, and you can tricker your message to be sent via the websocket to the server. Server reads the message, updates the game state, and then let's the other players know what happened. 

In Summary, yes, Panda can do what you want (but no better.. or worse, than other HTML5 engines).


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.

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.


  • Recently Browsing   0 members

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