Download presentation
Presentation is loading. Please wait.
1
3D Game Programming All in One By Kenneth C. Finney
2
Chapter 23 The Game Client
3
The Game Client Continue to fulfill requirements Add client-side code to fulfill server additions Multiplayer support User interfaces
4
The Game Client Client Interfaces Clean up GUI behavior Add chat capability Add variation on server selection approach Add display of scores Add game hosting options
5
The Game Client MenuScreen interface View game info and credits Single-player play mode Game hosting Server connection
6
The Game Client SoloPlay interface Locate all local mission files Display missions in selection list Invoke missions from this interface
7
The Game Client Host interface Locate all local mission files Display missions in selection list Invoke game server with selected missions from this interface
8
The Game Client FindServer interface Contacts GG master server Displays selectable list of compatible servers Connects player to selected server
9
The Game Client ChatBox interface Display incoming chat messages Always visible
10
The Game Client MessageBox interface Accepts typing for outgoing messages Echoes typed characters in its edit box Normally not visible Pops up when the chat key is pressed
11
The Game Client Client Code Code that supports GUI interfaces mentioned Code modules have same name as interface, but with.cs extension
12
The Game Client Client Code An OnWake() method is usually defined for interface screens OnWake() is called when the screen is opened for display using popDialog() OnSleep() is called when interface screens are closed using pushDialog()
13
The Game Client Game Cycling Server and Client coordinate track game start & progress when time limit reached, end game for all clients display scores (and other messages if desired) and pause briefly, on all clients load next mission, on all clients
14
The Game Client Lab 2: Update Koob Client Add code to client to complete building up Koob Add or modify GUI interfaces to support requirements Add or modify interface code to support GUI changes
15
Summary Client side interfaces and code can be used to: –view game info, provide help and credits –select play mode and connect to servers –display scores and game progress –send, receive, and display chat messages Game cycling is a server function that can be used to total scores and send them to clients, then load a new mission
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.