Code Monkey home page Code Monkey logo

Comments (8)

endel avatar endel commented on May 22, 2024 3

Our fellow @chunho32 implemented a Cpp/Cocos2d-x client! 🎉

I guess it would be possible to use it for Unreal projects as well? https://github.com/chunho32/colyseus-cocos2d-x

from colyseus.

endel avatar endel commented on May 22, 2024 2

@jesst3r wonderful. If you can give a starting point for this library maybe I could help. Cheers!

from colyseus.

endel avatar endel commented on May 22, 2024

Hi @HeadClot,

It would be great indeed! I'm not so experienced with C++ to implement that, though.
We'd need a plain WebSocket implementation (not socket.io), MsgPack, JSON Patching and the binary delta algorithm.

At this very moment, I'm still working on the Unity3D client to match the last server version (colyseus/colyseus-unity-sdk#2).

If someone has the interest to create the new client I'd be very glad :)

Thanks for your interest in the project,
Cheers!

from colyseus.

jesst3r avatar jesst3r commented on May 22, 2024

Endel, i'm planning to do the same, so i can share client Cpp static library for the colyseus, in the nearest future (WIP now)

from colyseus.

endel avatar endel commented on May 22, 2024

The most challenging task on the client side is the deep object diff algorithm. This is still missing in the Unity3d client. (colyseus/colyseus-unity-sdk#2)

I'll quote here just to make things clear (colyseus/colyseus-unity-sdk#2 (comment))

The server v0.3.x used to send the patch list directly as JSON patch format, which was then simply applied in the client-side. This has been changed in version v0.4.x - the patched state is now sent in a binary compressed format, which is faster to compute and has smaller throughput. This change made unnecessary to use JSON at all in the Unity client.

For the JavaScript client this is not a problem, since there's more than one implementation already available for evaluating the difference between objects.

For Unity3d, it requires an effort but it would be possible to implement the JSON-Patch comparison algorithm against the decoded msgpack result. The C++ approach could be similar.

Maybe there's a different way to approach this that I'm not aware of. I'd love to hear your thoughts about this.

from colyseus.

trollr avatar trollr commented on May 22, 2024

Any news here? We want to use the unreal engine with colyseus too. However before we start to develop our own colyseus plugin i want to ask if someone already started to develop one

from colyseus.

endel avatar endel commented on May 22, 2024

Hi @trollr, there's no Unreal Engine client available yet, the cocos2d client can be used for reference, but keep in mind it's a bit outdated.

I'd suggest using the JavaScript/HTML5 client as a major reference for implementing new clients since the community has been using it the most.

(It might be possible to use the CPP output from the Haxe client to use inside Unreal, I'm not sure if it's possible and neither if it's a good idea)

from colyseus.

endel avatar endel commented on May 22, 2024

Closing as this should be tracked on #217

from colyseus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.