Comments (8)
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.
@jesst3r wonderful. If you can give a starting point for this library maybe I could help. Cheers!
from colyseus.
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.
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.
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.
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.
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.
Closing as this should be tracked on #217
from colyseus.
Related Issues (20)
- [Bug]: Stats reports negative player count HOT 2
- TypeError: roomHistory.clients is not iterable HOT 7
- [Bug]: Uncaught Error: ChangeTree: missing index for field "undefined"
- [Bug]: Map Schema Removing value creates issue HOT 2
- [Bug]: tsx must be loaded with --import instead of --loader HOT 4
- [Feature]: need Request in static onAuth HOT 6
- [Bug]: Cannot use Matchmaker w/o Server HOT 1
- [Bug]: Error code lost when throwing ServerError in onCreate HOT 2
- [Bug]: Cant join rooms from react typescript Application HOT 2
- [Feature]: UDP HOT 3
- [Bug]: States are not triggered in the expected order HOT 4
- [Bug]: clients and server both get stuck if the server threw an exception HOT 3
- [Bug]: When TypeScript target is "es2022", Server breaks HOT 3
- [Bug]: Module '"net"' has no exported member 'ServerOpts'. HOT 3
- Scalability and Content Security Policies inside Discord Activities (Discord Embedded SDK) HOT 1
- Server doesn't restart after 0.15 upgrade HOT 3
- Roadmap for @colyseus/schema 3.0 HOT 4
- [Feature]: Make Room have generic parameters for the UserData and AuthData (defaulting to any) HOT 1
- [Bug]: Matchmaker Player Stats can be inaccurate HOT 1
- [Bug]: Playground not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colyseus.