Online mobile game

Hi.
I am new to defold and haven’t had the time to fully explore what this engine can do. I am looking to make a game that requires at least 4 people connected in a lobby. I did my research and found that Defold is one of the best engines for 2D mobile games. I am new to networking as well, so is there an easy way to connect multiple players, using something like a peer-to-peer system?

Thank you

You have multiple options:

  • Use Colyseus or NoobHub. Both support Defold. Easy to get started with. You need to host the server yourself.
  • Use P2P discovery from DefNet to discover and connect multiple clients on the same Wi-Fi. Bare bones. You need to do quite a bit yourself.

Do you need an authoritative server or not? What kind of game is it? Turn based or realtime?

2 Likes

Its a game where each player places icons on a grid and a random coordinate is generated each round. So, it would be turn based game. I’m not sure if I need an authoritative server.

You could have one player act as host and the rest of the players connects to that client. No server needed.

But for something a bit more serious you probably want a server to handle the logic.

How would I do that? Can I do that inside Defold or do I need any other software?

Defold is primarily for creating game clients. You can create servers using Defold (@andreas.strangequest does this). You typically create your game server using some other tools and programming language, perhaps Java or Javascript (node.js).

If you’re new to game programming I suggest that you focus on learning to create single player games. Multi player games add a lot of complexity.

2 Likes