Creating Game Sessions for a Maximum of Two players.
Page 1 of 1
Creating Game Sessions for a Maximum of Two players.
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.
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
Similar topics
» Advice on using mouse pointer in game
» We should promote this game!
» Create a game first / Follow the NODE.JS multiplayer videos first?
» Custom Game Cursor
» Learning Javascript game programming
» We should promote this game!
» Create a game first / Follow the NODE.JS multiplayer videos first?
» Custom Game Cursor
» Learning Javascript game programming
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|