Android local multiplayer

| | August 18, 2015

I am working on a FPS game for Android and I want to make a support for local multiplayer with no additional devices or server required. One of the player’s devices would serve as a server, getting and distributing all the messages, OR every device broadcasts messages to everyone inside the group.
First I was thinking bluetooth or wifi direct, but I am running into many problems with both. The plan was to support up to 10 players, so I am not sure bluetooth can handle that (broadcast messages and similar). If it is possible, let me know.
Also, I heard of an option to make a wifi hotspot on one device, and connect all other devices to it that way, but I have no idea how that would work.
Does anyone have any real experience with this, or any advice on how to implement it?
Thanks in advance.

PS. yes, I’ve ran through everything on android developers site, but their wifi direct example is kinda bad and only supports 1-way data transfer.

One Response to “Android local multiplayer”

  1. Wifi communication via sockets would be the way to go. You will need to implement the higher-level stuff yourself, such that you won’t have network discovery out of the box.

Leave a Reply