Game Development Reference
In-Depth Information
If everyone agrees, then the server forces the kicked-out player out of the room and
into the lobby. The host may also optionally give a reason as to why somebody is
being kicked out. The other players would usually have a dialog window that
comes up with a countdown timer. The player has a choice to say yes or no to kick
the player out, and if the player does not respond, then the default response is a yes
to the kick out. It is very rare that an implementation allows even for a host to be
kicked out.
Room types
Room types define the behavior of how the game is played within the room and
additional policies for players entering the room. The following are a few attributes
that define a room type and are not mutually exclusive:
• Password protected
• Turn-based
° Clockwise
• Open
Password protected is a very common implementation where the host creating the
room may set a simple password on the room. Only players knowing the password
can enter into it. The password is then given out to friends via private chat or even
an external instant messenger.
Turn-based, is where, in a game each player takes a turn to make their move. When
the game starts, the host or a player at random is chosen to play first. It could be
determined by last round's winner or loser. The turn then goes round the table
in the seating order, either in clockwise or counterclockwise direction. The turn
management is typically controlled by the server; it notifies the corresponding client
when it's their turn. The turn is usually controlled by a countdown clock, when it
goes to zero, either a default move must be implemented by the game developer
on behalf of the player, or if the game rules allow, the player's turn could also be
considered a pass. Some games may also allow any random player to call in when
it is not their turn. This means the player may request the server to skip all other
players, making it the players turn. If two player's call for a turn simultaneously,
the server arbitrarily chooses one.
An open room is rare but typically allows players to join the game room even after
the game has started. For example, in a game like multiplayer jigsaw, you could
allow new players to join no matter how much the game has progressed. Of course,
a maximum number of players would still be enforced.
 
Search WWH ::




Custom Search