Creating Game Sessions for a Maximum of Two players.

Go down

Creating Game Sessions for a Maximum of Two players. Empty Creating Game Sessions for a Maximum of Two players.

Post by rodman2016 Sun Aug 21, 2016 12:32 am

Hi,

How do you modify or add to code so that Only a maximum of two players only connect to one Game session or one map, and that the first player takes the position of Player 1 and that the second player takes the position of Player 2. When any player leaves the session the next player that joins takes the player position of availability, e.g, if player 1 leaves, the next player that joins takes the position of Player1, if player 3 leaves, the next player that joins takes the position of Player 3, etc.

If more players join then, player 3, for example will join the second session and player 4 will join the second session, player 5 will join the 3rd session and so on.

How do you program this in the JS and HTML scripts.

Thank you in advance,
Rod.


rodman2016

Posts : 1
Reputation : 0
Join date : 2016-08-21

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum