Game Development Reference
In-Depth Information
Audience
Audience is a non-playing avatar inside a game room. An audience can join in the
room at any time even when the game has already begun. Depending on the game,
the audience may simply observe or may encourage a certain player who is playing
the game. This feature is a great opportunity for novice players to learn from expert
players in a game of chess or Go, for example.
The audience game screen may look identical to that of the players actually playing
the game. For example, in a game of chess, an audience would view pretty much the
same screen as that of a player. But in a racing game, the screen may look completely
different. For example, the actual players may see the screen as though they were
driving the car, whereas the audience may see the game as a top-down view,
showing the current positions of all players on the track.
Room properties
In addition to room states and type, there are numerous other things that are needed
to keep track of for each instance of a room:
• Maximum players
• Current player count
• Member player names and summary
• Game host name
The above list is a generic list of properties that players browsing the rooms would
want to know before joining the room. But there's a lot of game-related information
that a game developer may expose to the players, giving them the choice to and
thereby maximizing the fun while playing the game.
The lobby screen implementation
In this section, we will learn how to implement the room display within the lobby.
Lobby screen in Hello World
Upon login, the first thing the player needs to do is enter the lobby. Once the player
has logged into the server successfully, the default behavior of the PulseGame in
PulseUI is to call enterLobby API.
 
Search WWH ::




Custom Search