1 / 15

3D Game Programming All in One

3D Game Programming All in One. By Kenneth C. Finney. Chapter 22 The Game Server. The Game Server. Server-side code to support the requirements Completes some game concepts from other chapters Check off fulfilled requirements. The Game Server. Player Character

hieu
Download Presentation

3D Game Programming All in One

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3D Game Programming All in One • By Kenneth C. Finney

  2. Chapter 22The Game Server

  3. The Game Server • Server-side code to support the requirements • Completes some game concepts from other chapters • Check off fulfilled requirements

  4. The Game Server • Player Character • Spawning using markers in mission files • Code will randomly select a marker from those available

  5. The Game Server • Vehicle Mounting for Players • Player model needs to be scale-adjusted • Create a sitting pose • Add collision code for mount • Add mount & dismount code • Decides where to put player after detaching from vehicle

  6. The Game Server • Vehicle • Add mount nodes to vehicle model • Driver is mount0 node • Passenger is mount1 • Add mount support to vehicle datablock

  7. The Game Server • Vehicle • WheeledVehicleTire and WheeledVehicleSpring datablocks are needed to define tire and suspension

  8. The Game Server • Triggering Events • Needed for scoring • Trigger events are generated when player enters, leaves, or remains in, a defined area

  9. The Game Server • Scoring • Track player accomplishments • Maintain scores on server • Server transmits score info to all players according to game rules • Scoring can be based on anything measurable, like money, enemies killed, etc.

  10. The Game Server • Money • 'Easter Egg' hunt for money in Koob • Coins are placed around game world at random • Coin count is based on face value

  11. The Game Server • Money • Coin placement algorithm: • Pick random location • Determine height of terrain (or structure) surface at location • Place coin just above surface • Repeat for each coin type

  12. The Game Server • Deaths • Each client is tracked on the server • Each death increments a counter • Each death invokes a death animation • Each Death invokes a death cry sound effect

  13. The Game Server • Kills • Kills are detected by the client code on the server • Client code notifies the shooter of the kill • Shooter client increments a kill counter

  14. The Game Server • Lab 1: Update Koob Server • Add code to server to continue building up Koob • Update art resources (models) to support requirements • Add scoring event triggers

  15. Summary • Player characters can be programmed to spawn wherever you like, such as the location of marker • Player characters can be programmed to mount, dismount, and control vehicles • Events can be triggered when a player enters a defined area • Scoring: based on triggers, collecting items, or interacting with other players—but not limited to these activities.

More Related