Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I override the room's location ? #71

Open
ODHG1 opened this issue Jul 23, 2023 · 1 comment
Open

How can I override the room's location ? #71

ODHG1 opened this issue Jul 23, 2023 · 1 comment

Comments

@ODHG1
Copy link

ODHG1 commented Jul 23, 2023

No description provided.

@ale-lelex
Copy link

ale-lelex commented Oct 5, 2024

just add the geo code @ODHG1

const roomName = 'Room Name';
const maxPlayers = 12;
const roomPublic = true;
const token = ""; // Insert token here
const geo = [
    { code: '(flag code, like CA or US)', lat: (latitude of the location), lon: (longtitude of the location) },
    // example: { code: 'CA', lat: 42, lon: -79 },
    // you can add multiple, but just know, you will have to change the geo setting to [1], [2], etc. if you want to alternate the geo locations
]

// middle code

var gameConfig = {
    roomName: roomName,
    maxPlayers: maxPlayers,
    geo: geo[0],
    public: roomPublic,
    noPlayer: true,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants