Hi, I am kinda new in Nakama, And I use the Godot engine
Is there any way to implement GDScript support for the Nakama server? I tried Lua but it’s not the best language for me, I’m looking for an OOP language
What does it take to implement GDScript in Nakama? what are the steps?
Hello @DexterFstone,
GDScript is supported by the Godot engine, and cannot be used directly into Nakama, you’d need to write your scripts in Godot and have it communicate with Nakama using the SDK via its existing APIs or extending it with your own.
This is likely what you’re looking for if you’d like to use Nakama to drive the social aspects of your game but using Godot for the actual game implementation to run in the clients.
If you’re using Nakama’s relayed mode, then you won’t need to extend the server with custom code, but if you’re planning on using Server Authoritative multiplayer then you’ll have to - if you’d like to use an OOP language have a look at the JS runtime.
We have an example implementation of tic-tac-toe here.
Hope this helps.
Can I use the Nakama server for the middle? The Godot server for game logic connects to the Nakama server for login, matchmaking, and authorization, and the Godot client connects to the Nakama server.
[Godot Server] ↔ [Nakama Server] ↔ [Godot Client]
Yes, although strictly speaking, I don’t think that you’d have Nakama acting as a middleware, but instead act as the orchestrator. You can have your game loop running in Godot server and have it communicate any needed updates (e.g. who is the winner of a match) to Nakama via a server-to-server RPC.