I’ve been interested in adding support for Defold to Nakama server for some time. It includes lots and lots of gameplay features for all kinds of different live games and you can extend the server with custom code written in Lua. I’m biased (as one of the lead developers on the server) but believe it’s a great fit for a Defold game developer.
The latest release of the game server on Monday next week adds compatibility changes to our client/server protocol (JSON support) as well as the current protobuf3 API. This should give me all I need to build a client for Defold . I’ll try to keep some development notes here as I progress.
Hi @AGulev So I’ve been delayed on a new Defold client again but in the meantime if you’re feeling adventurous you could use the HTTP functions provided in the Defold SDK to execute against Nakama server and create your own mini client.
The fastest way to start with the latest version of the server is to use this Docker compose file.
docker-compose -f ./docker-compose.yml start
Yes this is exactly what Gamesparks does for Defold. Works great.
Only problem we have had is that the socket solution isn’t fully IPv6 compatible and needs some extra lua-love when connecting to fully work.
Edit: Check this forum thread for more info: Colyseus - Multiplayer Game Client & Server
I use David Kolf’s JSON module for Lua 5.1/5.2. Haven’t had any problem with it.
I was hoping for some sample code integration with Defold using Nakama server.
I’m currently using Colyseus, it works fine with my mobile and web builds so far. However, eventually I need leaderboards etc so I’m looking for other alternatives that already have these built-in so I don’t have to reinvent the wheel. I’ll take a look at PlayFab and GameSparks. Thanks!
Hey @GreenArrow. Yet again I’ve fallen behind on the plans for an official Defold client. What I can say is that we have a REST API which is pretty straightforward to use. It’s got a Swagger spec here:
That gives you full access to all the game server APIs which aren’t on the socket.