Tutorial: play with others

Games made from the battle-royale parts, like the Island sample, play online with up to 16 people, with bots in every place nobody takes.

1. On the same network

On the same network

2. Test on your own

Test on your own

Edit > Play Options can start several players from one editor, so you can host and join on the same machine.

3. Behind a router: a relay

A host behind a home router cannot be reached directly. A relay is a small program on a machine with one open UDP port: both sides connect out to it and it passes messages by room code.

neux relay --port 7777

The host gets a code like K7QX2M@relay.example:7777; friends type it in the address field and join. No relay is run for you: you need a machine of your own for it.

4. A server with no window

neux serve --project path/to/project --players 8

It starts a match when eight players have joined, and goes round again for as long as it runs.

Read Playing online for how it works and how cheating is stopped.

Next: build and share your game.