heroiclabs / nakama

Distributed server for social and realtime games and apps.
https://heroiclabs.com
Apache License 2.0
9.07k stars 1.1k forks source link

Need cocos2d-x client for Nakama server #180

Closed kienvn closed 5 years ago

kienvn commented 6 years ago

:)

AlimJaffer commented 6 years ago

Hi @kienvn - this is something we’re working on! Keep your eyes out for it 🙂

formatCvt commented 6 years ago

any news?

Dimon4eg commented 6 years ago

probably it's possible to use Unreal C++ client https://github.com/heroiclabs/nakama-unreal

raz0r007 commented 6 years ago

+1. Plz, consider it.

mofirouz commented 6 years ago

Just to give some updates on this issue: Nakama 2.0 uses gRPC as the non-realtime protocol and JSON over Websockets for the realtime socket (at the time of writing this comment).

We'll be working on updating the C++/Unreal/Cocos2dx client at some point soon. However in the meantime, you can code-generate the gRPC portion of a client using gRPC-C++. This is fairly trivial and you can use the Java client as inspiration for this.

A pull request from the community goes a very long way and we'd really appreciate all the help and effort :)

Dimon4eg commented 6 years ago

where is cocos2dx client repo to contribute to?

mofirouz commented 6 years ago

@Dimon4eg I've just created a new empty repo for you to contribute to :) Feel free to open PRs against it.

https://github.com/heroiclabs/nakama-cocos2d-x

Dimon4eg commented 6 years ago

thank you @mofirouz

Dimon4eg commented 6 years ago

@mofirouz Nakama SDK is 1.4.0 in unreal client. is this latest version?

mofirouz commented 6 years ago

@Dimon4eg Yes, the latest release of the Unreal client is compatible with Nakama 1.4.x.

The protocol is different in Nakama 2.x - Using gRPC (see link above) for non-realtime, and JSON over Websocket for realtime. There may be an option of using Protobuf over Websocket in the near future but that's not fully decided yet.

Dimon4eg commented 5 years ago

Hey guys! nakama-cocos2d-x is ready and works with nakama 1.4.

mofirouz commented 5 years ago

Just wanted to provide an update -

We've just released a client library for Generic C++ client, as well as a Cocos2d-x C++ client library.

Both these libraries are compatible with the latest version of the Nakama 2.x server. Please feel free to open issues in respective repositories.