Unity Multiplayer Games

Alan R. Stagner

  • 出版商: Packt Publishing
  • 出版日期: 2013-11-25
  • 售價: $1,920
  • 貴賓價: 9.5$1,824
  • 語言: 英文
  • 頁數: 242
  • 裝訂: Paperback
  • ISBN: 1849692327
  • ISBN-13: 9781849692328
  • 相關分類: 遊戲引擎 Game-engine
  • 海外代購書籍(需單獨結帳)
    無現貨庫存(No stock available)


Take your gaming development skills into the online multiplayer arena by harnessing the power of Unity 4 or 3. This is not a dry tutorial - it uses exciting examples and an enthusiastic approach to bring it all to life.


  • Create a variety of multiplayer games and apps in the Unity 4 game engine, still maintaining compatibility with Unity 3.
  • Employ the most popular networking middleware options for Unity games
  • Packed with ideas, inspiration, and advice for your own game design and development

In Detail

Unity is a game development engine that is fully integrated with a complete set of intuitive tools and rapid workflows used to create interactive 3D content. Multiplayer games have long been a staple of video games, and online multiplayer games have seen an explosion in popularity in recent years. Unity provides a unique platform for independent developers to create the most in-demand multiplayer experiences, from relaxing social MMOs to adrenaline-pumping competitive shooters.

A practical guide to writing a variety of online multiplayer games with the Unity game engine, using a multitude of networking middleware from player-hosted games to standalone dedicated servers to cloud multiplayer technology. You can create a wide variety of online games with the Unity 4 as well as Unity 3 Engine.

You will learn all the skills needed to make any multiplayer game you can think of using this practical guide. We break down complex multiplayer games into basic components, for different kinds of games, whether they be large multi-user environments or small 8-player action games. You will get started by learning networking technologies for a variety of situations with a Pong game, and also host a game server and learn to connect to it.Then, we will show you how to structure your game logic to work in a multiplayer environment. We will cover how to implement client-side game logic for player-hosted games and server-side game logic for MMO-style games, as well as how to deal with network latency, unreliability, and security.

You will then gain an understanding of the Photon Server while creating a star collector game; and later, the Player.IO by creating a multiplayer RTS prototype game. You will also learn using PubNub with Unity by creating a chatbox application. Unity Multiplayer Games will help you learn how to use the most popular networking middleware available for Unity, from peer-oriented setups to dedicated server technology.

What you will learn from this book

  • Use Unity networking for in-game player-hosted servers
  • Create cloud-based games with Photon Cloud
  • Employ dedicated servers for massive multiuser environments
  • Make game logic server-authoritative
  • Deal with latency and unreliable networks
  • Use PubNub for HTTP-based push messaging
  • Employ Player.IO to persist game data to the cloud
  • Use various forms of networked entity interpolation


An easy-to-follow, tutorial manner that uses the learning-by-example approach.

Who this book is written for

If you are a developer who wants to start making multiplayer games with the Unity game engine, this book is for you. This book assumes you have some basic experience with programming. No prior knowledge of the Unity IDE is required.


將您的遊戲開發技能帶入線上多人遊戲領域,利用Unity 4或3的強大功能。這不是一本枯燥的教學書籍,它使用令人興奮的例子和熱情的方式將所有內容活靈活現地呈現出來。

- 在Unity 4遊戲引擎中創建各種多人遊戲和應用程式,同時保持與Unity 3的兼容性。
- 使用Unity遊戲最受歡迎的網絡中間件選項。
- 提供遊戲設計和開發的想法、靈感和建議。



接著,您將在創建星星收集遊戲時了解Photon Server,並通過創建多人即時戰略遊戲來了解Player.IO。您還將通過創建聊天應用程式使用PubNub與Unity一起學習。《Unity多人遊戲》將幫助您學習如何使用Unity提供的最受歡迎的網絡中間件,從面向對等設置到專用服務器技術。

- 使用以學習通過實例的方式的易於遵循的教學方法。

本書適合對使用Unity遊戲引擎開始製作多人遊戲的開發人員。本書假設您具有一些基本的編程經驗,不需要事先了解Unity IDE。