WebRTC and Nakama addon

An asset by dsnopek
The page banner background of a mountain and forest
WebRTC and Nakama addon hero image

Quick Information

0 ratings
WebRTC and Nakama addon icon image
dsnopek
WebRTC and Nakama addon

Godot's High-level Multiplayer API can operate over WebRTC, however, it requires a signaling server to establish the WebRTC connections between all peers.Nakama is an Open Source, scalable gameserver that provides many features, including user accounts, authentication, matchmaking, chat, and much more.This Godot add-on provides some utility code to allow easily setting up those WebRTC connections using Nakama as the signaling server.

Supported Engine Version
3.3
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Godot networking over WebRTC using Nakama as signaling server

Godot's High-level Multiplayer API can operate over WebRTC, however, it requires a signaling server to establish the WebRTC connections between all peers.

Nakama is an Open Source, scalable game server that provides many features, including user accounts, authentication, matchmaking, chat, and much more.

This Godot add-on provides some utility code to allow easily setting up those connections using Nakama as the signaling server.

Getting Started

Read the full tutorial on SnopekGames.com.

TL;DR

  1. Copy the addons/, webrtc/ and webrtc_debug/ directories into your project.

  2. Add the Nakama.gd singleton (in addons/com.heroiclabs.nakama/) as an autoload in Godot.

  3. Add the OnlineMatch.gd singleton (in addons/nakama-webrtc) as an autoload as well.

Demo and Template

This project is a full demo showing how to use this addon, and, in fact, makes a pretty good template project to start from.

Download the full source code and import into Godot 3.2.3 to run.

Run docker-compose up -d in the top-level directory of the code to start a Nakama instance with the default settings.

In both local and online mode, gamepads are supported, using the XBox A button to attack. The keyboard controls are WASD for movement and SPACE for attack.

In local mode, you can control player 2 using the arrow keys and ENTER to attack.

Credits

License

Aside from the pieces listed under Credits above (which each have their own licenses), everything else in this project is licensed under the MIT License.

Godot's High-level Multiplayer API can operate over WebRTC, however, it requires a signaling server to establish the WebRTC connections between all peers.

Nakama is an Open Source, scalable game
server that provides many features, including user accounts, authentication, matchmaking, chat, and much more.

This Godot add-on provides some utility code to allow easily setting up those WebRTC connections using Nakama as the signaling server.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
WebRTC and Nakama addon icon image
dsnopek
WebRTC and Nakama addon

Godot's High-level Multiplayer API can operate over WebRTC, however, it requires a signaling server to establish the WebRTC connections between all peers.Nakama is an Open Source, scalable gameserver that provides many features, including user accounts, authentication, matchmaking, chat, and much more.This Godot add-on provides some utility code to allow easily setting up those WebRTC connections using Nakama as the signaling server.

Supported Engine Version
3.3
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers