Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Multiplayer Websocket and Colyseus client - Gideros Forum

Multiplayer Websocket and Colyseus client

jdbcjdbc Member
edited October 2019 in Game & application design
Hi all.

I have uploaded a Gideros project in https://github.com/jdbcdev/beatemup.git which contains my implementation of Colyseus client(https://colyseus.io/).

It is based on Defold Lua client (https://docs.colyseus.io/getting-started/defold-client/), and I have tested with colyseus example (https://github.com/colyseus/colyseus-examples) trying to create a real time multiplayer game with Gideros.

Give it a chance, although this is just a prototype, I am working on it.

+1 -1 (+7 / -0 ) Share on Facebook

Comments

  • I tried the project but I don't know nothing about tcp/ip port, localhost opening port,... Sorry I can't give you my feedback :(
  • jdbcjdbc Member
    edited October 2019
    You have to start the server https://github.com/colyseus/colyseus-examples first.

    When the Gideros app runs on Gideros Player, it connects to 'chat' room using websockets and colyseus client (not only for HTML target)

    If the colyseus client is connected to 'chat' room, it receives a roomid and the client calls to loop function on every frame update to receive events from server, I am not sure if this is the best way (Defold uses it in that way).
  • no, no, I am not into this at all I installed git but then I have to learn a lot of things... I am not into this kind of stuff! Sorry.
    But that looks cool!
  • It should be added to giderospedia

    Likes: SinisterSoft

    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
    +1 -1 (+1 / -0 ) Share on Facebook
  • Had some fun with this today. I attempted to install it but because my windows username has a space in it... colyseus doesn't make the new server correctly.

    renaming your user on the pc does not work because of course windows keeps the old folder names with spaces in tem... and just changes the username LOL

    I created a new user on my pc called colyseus and that worked until I discovered that if your username is the same as a module, that module never installs LOL

    I suppose I have learned a couple of new things today but the end result was nothing worked hehehe

    Likes: Apollo14

    +1 -1 (+1 / -0 ) Share on Facebook
  • jdbcjdbc Member
    edited November 2019
    I used Ubuntu to start colyseus server and wine with Gideros Studio.

    Colyseus server is listening on port 2567 for websocket connections, Gideros project only creates a room using websocket, the room id is shown in console:


    Captura de pantalla de 2019-11-02 09-53-32.png
    1299 x 692 - 122K
  • jdbcjdbc Member
    edited November 2019
    antix said:

    Had some fun with this today. I attempted to install it but because my windows username has a space in it... colyseus doesn't make the new server correctly.

    renaming your user on the pc does not work because of course windows keeps the old folder names with spaces in tem... and just changes the username LOL

    I created a new user on my pc called colyseus and that worked until I discovered that if your username is the same as a module, that module never installs LOL

    I suppose I have learned a couple of new things today but the end result was nothing worked hehehe

    Attached below is is my colyseus server running on Ubuntu Desktop, it is listening on port 2567
  • jdbcjdbc Member
    edited November 2019
    The colyseus server is compressed with 7z because the zip format is not allowed to upload as attach file.

    It provides a start.sh to start server, if you use Windows should create the equivalent .bat file or just execute npm start from root directory.
    7z
    7z
    colyseus-examples.7z
    0B
  • thanks @jdbc but I'm not going to persist with colyseus, it's really overly complex for me personally. There doesn't seem to be very good support and the documentation is sparse to say the least.

    Likes: n360

    +1 -1 (+1 / -0 ) Share on Facebook
Sign In or Register to comment.