Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

alternative multiplayer using WebRTC

A topic by cardgameai created 91 days ago Views: 55 Replies: 1
Viewing posts 1 to 2
(2 edits)

I was setting up multiplayer and realized it can be quite difficult for non-technical users. For my games, I use cloudflare tunnel to create a sharable URL for the other players to join.

I started to look into it a bit more and realized that WebRTC might be able to do the trick. It allows one browser instance to communicate with another one via direct connection if possible.

Some relevant packages to use WebRTC for multiplayer https://github.com/dmotz/trystero, https://peerjs.com/ Example of a game using WebRTC for multiplayer https://github.com/arcomage/arcomage-hd

Developer

Hi @cardgameai,

Thank you for introducing us to WebRTC technology. We’re learning about it for the first time and it will take some time to research. We appreciate your suggestion and will consider using it to make the game more convenient for players. Right now, our focus is on gameplay improvements, such as adding new cards and optimizing operations. We value your support and understanding as we continue developing the game.