hyperque
v1.5.1
Published
HyperQue is a tool specifically aimed at roblox game developers to be able to make implementing cross-server matchmaking basically effortless, it requires almost 0 knowledge in backend development and all they have to do is focus on the luau scripting sid
Downloads
12
Maintainers
Readme
HyperQue.js
(This project is still in its early stages.)
hyperque is a lightweight tool used to effortlessly create a cross-server matchmaking systems BACKEND API HyperQue lets the developers focus only the LuaU scripting part of things, whilst letting hyperque handle all the requests, sorting all the teams and sending data back to their game which lets it know which queued players to teleport players to a different server.
Instillation
To get started: npm install hyperque
Or if your using yarn:
yarn add hyperque
USAGE
you must send a JSON formatted data of the player trying to queue into a match, so whilst sending a http request to the backend endpoint (from roblox) please makesure to include the following:
{
"playerId": "string",
"gameId": "string",
"queueType": "default",
"matchSize": number,
"color1": "red",
"color2": "blue"
}
^ you can change the values into the actual data, and just to clarify the queueType is ment for knowing which kind of game
the player is wanting to get queued into, by default its set to "default", but be sure to change it according to the players choice. The color1 and color2 are which colors team 1, and team 2 should have, you may change it according to your preferences, color1 is set to "red" by default and color2 is set to "blue" by default.
And this is how the response will look like:
{ "matchId": "random-uuid-string", "players": ["playerA", "playerB", "playerC", "playerD"], "teams": { "red": ["playerA", "playerB"], "blue": ["playerC", "playerD"] } }
^ for the matchId, the random-uuid-string is basically the unique match id that will be given to you after the match has been created.
