Giter Site home page Giter Site logo

Comments (4)

ketoo avatar ketoo commented on May 21, 2024

I have a plugin named NFMatchPlugin in my own game project and it will be loaded by WorldServer.

Workflow:

  1. The player(client-side) who wants to start a match will send a network message to find a match and the game server will route this message to the world server.

  2. The match module(or the match plugin in the world server) will process the "start a match" requirement and put it into the matching pool.

  3. The match module(or the match plugin in the world server) will make a team for players with the close battle points by time.

  4. The match module(or the match plugin in the world server) will find an opponent for teams by time.

  5. The match module(or the match plugin in the world server) will starts the match if we found an opponent for teams and picks one game server as the battle game server (if you have multiple game server). After that, the world server will send a net message to all game servers to notice players who involved this match to switch to the battle game server(if you have multiple game servers).

  6. The battle game server creates a group for this match and swaps all players into the group that you created before.

from noahgameframe.

duong2179 avatar duong2179 commented on May 21, 2024

Thank you for your quick response!
Is there a way to integrate some open-sourced matchmakers like open-match into it?

from noahgameframe.

ketoo avatar ketoo commented on May 21, 2024

Sure thing, the only thing you need to do is to write a wrapper for the library which you want to integrate.

In terms of open-match, the duty of your wrapper is to "interpret" your match requirements between open-match and your game project.

from noahgameframe.

duong2179 avatar duong2179 commented on May 21, 2024

Thank you very much!

from noahgameframe.

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.