Questions tagged [multiplayer]

The multiplayer tag typically refers to a feature of games software where more than one user can interact with the same instance of the software.

The multiplayer tag typically refers to a feature of games software where more than one user can interact with the same instance of the software, often to participate in the same play session or to co-exist in the same persistent world.

Although multiplayer scenarios sometimes include 'hotseat' games where players take turns to play, it is more common for multiplayer to imply simultaneous play by 2 or more people, which in turn often implies the same game being played on multiple machines. As such this is typically about networking, and often has solutions that derive from those found for concurrent and distributed systems generally.

1525 questions
57
votes
5 answers

Are WebSockets suitable for real-time multiplayer games?

I'm interested in building a small real-time multiplayer game, using HTML5/JavaScript for the client and probably Java for the server software. I looked into WebSockets a bit, but it appears I had misconceptions on what WebSockets actually are. I…
Josh1billion
  • 14,837
  • 8
  • 38
  • 48
42
votes
1 answer

Android Real Time Multiplayer - Room Creation is failing

I am using Android Play Games - Real Time Multiplayer for my app. When I create a new room, the callback onRoomCreated() returns STATUS_NETWORK_ERROR_NO_DATA 5% of the times. I do not know why I get this error sporadic. Some post recommends should…
skymedium
  • 767
  • 7
  • 26
37
votes
4 answers

Multiplayer game with JavaScript backend and frontend. What are the best practices?

I'm thinking of creating a web multiplayer game in Node.js. This means I'll be using the same language in the backend and in the frontend. It would be in realtime and about 20 people max in each 'room', so I have a few thoughts: How do I compensate…
stagas
  • 4,607
  • 3
  • 28
  • 28
34
votes
9 answers

What good ways are there to prevent cheating in JavaScript multiplayer games?

Imagine a space shooter with a scrolling level. What methods are there for preventing a malicious player from modifying the game to their benefit? Things he could do that are hard to limit server-side is auto-aiming, peeking outside the visible…
Blixt
  • 49,547
  • 13
  • 120
  • 153
30
votes
3 answers

how to make Multiplayer Game

I already knew the basic of android programming, especially the one at game. now I want to try multiplayer game. but I dont have any background about multiplayer game. so I want have a number of question : What is the basic of multiplayer…
Fugogugo
  • 4,460
  • 10
  • 36
  • 50
26
votes
5 answers

ARKit with multiple users

What is the best way, if any, to use Apple's new ARKit with multiple users/devices? It seems that each devices gets its own scene understanding individually. My best guess so far is to use raw features points positions and try to match them across…
Guig
  • 9,891
  • 7
  • 64
  • 126
24
votes
3 answers

Multiplayer Game - Client Interpolation Calculation?

I am creating a Multiplayer game using socket io in javascript. The game works perfectly at the moment aside from the client interpolation. Right now, when I get a packet from the server, I simply set the clients position to the position sent by the…
user3011902
24
votes
3 answers

How online-game clients are able to exchange data through internet so fast?

Let's imagine really simple game... We have a labirinth and two players trying to find out exit in real time through internet. On every move game client should send player's coordinates to server and accept current coordinates of another client.…
Kirzilla
  • 16,368
  • 26
  • 84
  • 129
16
votes
3 answers

Google Play Game Services multiplayer with Activity switching

In my Android game I have a turn-based multiplayer. Users wait for opponents in the lobby and whenever exactly 3 are matched, they go to a new game room together, which is another Activity than the lobby. The docs suggest to let the Activities…
caw
  • 30,999
  • 61
  • 181
  • 291
15
votes
5 answers

What kind of issues are there in implementing realtime multiplayer games

I have some experience making multiplayer turn-based games using sockets, but I've never attempted a realtime action game. What kind of extra issues would I have to deal with? Do I need to keep a history of player actions in case lagged players do…
Bemmu
  • 17,849
  • 16
  • 76
  • 93
15
votes
3 answers

How to use websockets for real-time gaming

I want to make a 2 player pong game that uses websockets and node.js server. socket.io is used on both client and server. So far, my only experience is creating a chat application. This is my first attempt at a multiplayer game so I'm not so…
Shawn Mclean
  • 56,733
  • 95
  • 279
  • 406
15
votes
3 answers

Server architecture for a multiplayer game?

I'm planning to build a small multiplayer game which could be run as a java applet or a flash file in the web browser. I haven't done any server programming before, so I'm wondering what sort of server architecture i should have. It'll be easy for…
Ali
  • 261,656
  • 265
  • 575
  • 769
14
votes
1 answer

Can I use the Unity networking HLAPI without paying for the Unity Multiplayer service?

I saw Unity's Multiplayer service page, and I'm completely confused: Can I use Unity's high-level networking API (NetworkManager / NetworkManagerHUD) in a published game without paying for Unity Matchmaker and the Relay servers (whatever those…
jenkins
  • 626
  • 1
  • 7
  • 19
14
votes
2 answers

HTML5 Multiplayer Game Security Solutions

Now that there are a couple of neat canvas demo's of both classic platform and even 3D fps games in HTML5, the next step might be to try developing a multiplayer HTML5 game. HTML5 socket support makes this relatively straight-forward, but with…
ina
  • 19,167
  • 39
  • 122
  • 201
13
votes
2 answers

How to sync physics in a multiplayer game?

I try to found the best method to do this, considering a turn by turn cross-plateform game on mobile (3G bandwidth) with projectile and falling blocks. I wonder if one device (the current player turn = server role) can run the physics and send some…
JD C4M
  • 151
  • 1
  • 1
  • 6
1
2 3
99 100