How many Defold users are utilizing Nakama?

A couple years ago, Nakama began supporting Defold apps. Since then, I haven’t noticed any Defold games coming out or forum threads that mention Nakama. It requires more knowledge to set up and interface with than your average indie developer has: understanding nuances of multiplayer development, Docker, Postgres or Cockroach, etc.

This is just a discussion post. Would like to hear your thoughts on it.

1 Like

I agree that the self-hosted set up is more complicated than say PlayFab, but it is not that hard to be honest. The setup for an instance of Nakama running on Digital Ocean is a fairly simple three step process:

What I really really like with Nakama is the clean API, the structured and easy to understand documentation with plenty of code samples and how you can build your own tailor made backend services from the (low-level) building blocks which are provided by Nakama.

Nakama has also created Hiro GDK which is a higher level SDK on top of Nakama to streamline development of your game’s online services. Currently only available for Unity, but I think you can expect to see something similar for other engines later this year.

6 Likes

I agree, sadly a clean API and examples are not as common as they should be. Personally I like how the Nakama SDK is fully up-to-date for Defold. Seems like most other backend services are falling behind, abandoned, or buggy (PlayFab, Steamworks, etc.)

The setup really isn’t difficult, but I do believe that it is probably the #1 blocker for new users. But to be fair, someone who is not willing to learn is probably not a candidate to be making a multiplayer game anyway.

2 Likes

I’m not up-to-speed on the Colyseus integration but I believe it to is kept updated. @endel might be able to answer if he is around. Also @COCO has been working with Colyseus.

As long as there are simple and structured API definitions for a REST or RPC API it is relatively trivial to generate the Lua code. This is what is done with Nakama. (Also for PlayFab, but I’m not sure if it is kept updated).

1 Like

yep nakama is not to easy for newbies, but network on whole is not to easy. I am not perfect programmist and its was a challenge when i try to setup Nakama. But in the end of the end i figured it out. Not well, but enough for my simple game :slight_smile:

3 Likes

What were the things you struggled the most with?

1 Like

The hardest part was figuring out the synchronization. I immediately wanted to make a real-time game, something like Bomberman online, and I couldn’t do it. So I made a simpler game. This is an online quiz.)

1 Like

In addition to @britzl’s Nakama-based Tic Tac Toe example, I found this walkthrough on Nakama’s website for building the networking parts of an Among Us clone.

This library offers a lot more than I thought. Very impressive.

5 Likes

I will also note for future readers that Heroic Labs has a Discourse forum similar to this one, which can be found here: https://forum.heroiclabs.com/

I asked a question about the .yml file configuration and they seem to be somewhat active.

2 Likes

I set up a web game withNakama a while back, and it worked great.

I’ve now started a new project for mobile, and I’m currently stuck on mobile device authentication.

Has anyone here managed to use Nakama on iOS or Android?

If you are unable to get it to work then please open a ticket in the GitHub repo and we’ll investigate it.

1 Like

Ok, thanks!

Update: This has now been solved, and as expected it was an issue with my own code. :thinking:

Another resource drop, this playlist for Godot integration would be very similar to Defold: https://www.youtube.com/playlist?list=PLOAExZcDNj9sxBjoa3w-Pal0focEV2fU2

The server itself is even written in Lua. Great mini series to get an idea of how things work!

5 Likes