Multiplayer Game Development with HTML5

Rodrigo Silveira

  • 出版商: Packt Publishing
  • 出版日期: 2015-05-30
  • 售價: $1,340
  • 貴賓價: 9.5$1,273
  • 語言: 英文
  • 頁數: 148
  • 裝訂: Paperback
  • ISBN: 1785283103
  • ISBN-13: 9781785283109
  • 相關分類: HTML
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build fully-featured, highly interactive multiplayer games with HTML5

About This Book

  • Design, develop, manage, debug, and release your multiplayer web-based HTML5 games
  • Allow players to go head to head against each other, or collaborate together in the same game world
  • A progressive, hands-on guide that builds on an existing single-player game, and adds more networking capabilities at each of the iterations

Who This Book Is For

If you are a HTML5 game developer who can make basic single-player games and you are now ready to incorporate multiplayer functionality in your games as quickly as possible, then this book is ideal for you.

What You Will Learn

  • Design games using various multiplayer models
  • Create authoritative game servers
  • Develop game clients that communicate and synchronize with other clients through WebSockets
  • Write responsive multiplayer games using client prediction
  • Upgrade an existing single-player game by adding multiplayer mechanics
  • Use state-of-the-art technologies to make the development process and its end product enjoyable to programmers and amazing to the player
  • Create peer-to-peer gaming using WebRTC

In Detail

Developing an online game can be just as much fun as playing it. However, orchestrating multiple clients and keeping everyone in sync with a game server, reducing and managing network latency (all the while preventing cheating), and making sure every player has an excellent experience can quickly become overwhelming.

This book will teach you how to develop games that support multiple players interacting in the same game world, and show you how to perform network programming operations in order to implement such systems. It covers the fundamentals of game networking by developing a real-time multiplayer game of Tic-tac-toe before moving on to convert an existing 2D single-player snake game to multiplayer, using a more scalable game design for online gaming.

Finally you will be tackling more advanced networking topics, allowing you to handle problems such as server queries from multiple users and making your multiplayer games more secure and less prone to cheating.

商品描述(中文翻譯)

使用HTML5建立功能完整、高度互動的多人遊戲

關於本書
- 設計、開發、管理、除錯和發布基於網頁的HTML5多人遊戲
- 讓玩家可以互相對戰,或在同一個遊戲世界中合作
- 這是一本逐步指導的手冊,從現有的單人遊戲開始,每個迭代階段都增加更多的網絡功能

本書適合對HTML5遊戲開發有基礎的開發者,並希望能夠盡快在遊戲中加入多人功能。

你將學到什麼
- 使用不同的多人模型設計遊戲
- 創建權威性遊戲伺服器
- 開發遊戲客戶端,通過WebSockets與其他客戶端進行通信和同步
- 使用客戶端預測寫出具有響應性的多人遊戲
- 通過添加多人機制來升級現有的單人遊戲
- 使用最先進的技術,使開發過程和最終產品對程序員有趣,對玩家令人驚嘆
- 使用WebRTC創建點對點遊戲

詳細內容
開發線上遊戲和玩遊戲一樣有趣。然而,協調多個客戶端並確保每個玩家都有出色的體驗,同時減少和管理網絡延遲(同時防止作弊),可能會讓人感到不知所措。

本書將教你如何開發支援多個玩家在同一個遊戲世界中互動的遊戲,並向你展示如何執行網絡編程操作以實現這些系統。它從開發即時多人遊戲井字遊戲的基礎知識開始,然後轉換現有的2D單人貪吃蛇遊戲為多人遊戲,使用更可擴展的遊戲設計進行在線遊戲。

最後,你將處理更高級的網絡主題,使你能夠處理來自多個用戶的伺服器查詢,並使你的多人遊戲更安全,更不容易受到作弊的影響。