Pro HTML5 Games (Paperback)
暫譯: 專業 HTML5 遊戲開發 (平裝本)

Aditya Ravi Shankar

  • 出版商: Apress
  • 出版日期: 2012-12-11
  • 售價: $1,620
  • 貴賓價: 9.5$1,539
  • 語言: 英文
  • 頁數: 364
  • 裝訂: Paperback
  • ISBN: 143024710X
  • ISBN-13: 9781430247104
  • 相關分類: HTML
  • 已過版

買這商品的人也買了...

商品描述

Build your next game on a bigger scale with Pro HTML5 Games. This book teaches you the essentials of advanced game programming in HTML5. You’ll learn techniques that you can transfer to any area of HTML5 game development to make your own professional HTML5 games!  

Led by an expert game programmer, you’ll build two complete games in HTML5: a strategy puzzle game based on the Box2d physics engine and in the style of Angry Birds and a real-time strategy (RTS) game complete with units, buildings, path-finding, artificial intelligence, and multiplayer support. In the process, you’ll learn how to do the following:  

  • Create realistic physics in your game by incorporating the Box2d physics engine
  • Design large worlds with lots of characters and let users interact with them
  • Use sprite sheets, panning, parallax scrolling, and sound effects to build a more polished game
  • Incorporate pathfinding and steering to help characters navigate through your world
  • Create challenging levels with intelligent enemies by using decision trees, state machines, and scripted events
  • Add multiplayer in your games using Node.js and the WebSocket API  

This book will help you take your HTML5/JavaScript programming experience to the next level. It gives you the knowledge and skills you need to develop more complex, bolder games and become an HTML5 games pro.

What you’ll learn

  • Creating realistic physics in your game by incorporating the Box2d physics engine
  • Designing large worlds with lots of characters and let users interact with them
  • Using sprite sheets, panning, parallax scrolling, and sound effects to build a more polished game
  • Incorporating pathfinding and steering to help characters navigate through your world
  • Creating challenging levels with intelligent enemies by using decision trees, state machines, and scripted events
  • Adding multiplayer in your games using Node.js and the WebSocket API

Who this book is for

Pro HTML5 Games is meant for programmers who already have some HTML and JavaScript programming experience and who now want to learn to harness the power of HTML5 to build amazing-looking games but don’t know where to begin. 
   
Readers who have experience making games in other languages such as Flash and would like to move to HTML5 will also find a lot of useful information in this book.

If you do not feel confident about your game programming skills, don’t worry. This book covers all the essentials needed to build these games so you can follow along and learn to design large, professional games in HTML5. The book will also point to resources and reference material for supplemental learning in case you are having trouble keeping up.

With dedicated chapters on HTML5 basics, the Box2D engine, pathfinding and steering, combat and effective enemy AI, and multiplayer using Node.JS with WebSockets, you should get a lot from this book no matter how much game programming experience you have.

Table of Contents

  1. HTML5 and JavaScript Essentials
  2. Creating a Basic Game World
  3. Physics Engine Basics
  4. Integrating the Physics Engine
  5. Creating the RTS Game World 
  6. Adding Entities to Our World
  7. Intelligent Unit Movement
  8. Adding More Game Elements
  9. CreaAdding Weapons and Combat
  10. Wrapping Up the Single-Player Campaign 
  11. Multiplayer with WebSockets
  12. Multiplayer Gameplay

商品描述(中文翻譯)

建立您下一款遊戲的更大規模,使用《Pro HTML5 Games》。本書教您 HTML5 高級遊戲編程的基本要素。您將學習可以轉移到任何 HTML5 遊戲開發領域的技術,讓您能夠製作自己的專業 HTML5 遊戲!

在一位專業遊戲程序員的指導下,您將在 HTML5 中構建兩款完整的遊戲:一款基於 Box2d 物理引擎的策略益智遊戲,風格類似於《憤怒的小鳥》,以及一款完整具備單位、建築、路徑尋找、人工智慧和多人遊戲支持的即時戰略 (RTS) 遊戲。在這個過程中,您將學會以下內容:

- 通過整合 Box2d 物理引擎,在您的遊戲中創建真實的物理效果
- 設計擁有大量角色的大型世界,並讓用戶與之互動
- 使用精靈圖、平移、視差滾動和音效來構建更精緻的遊戲
- 整合路徑尋找和引導,幫助角色在您的世界中導航
- 通過使用決策樹、狀態機和腳本事件創建具有挑戰性的關卡,並設計智能敵人
- 使用 Node.js 和 WebSocket API 在您的遊戲中添加多人遊玩功能

本書將幫助您將 HTML5/JavaScript 編程經驗提升到一個新水平。它提供了您開發更複雜、更大膽遊戲所需的知識和技能,讓您成為 HTML5 遊戲專家。

您將學到的內容:

- 通過整合 Box2d 物理引擎,在您的遊戲中創建真實的物理效果
- 設計擁有大量角色的大型世界,並讓用戶與之互動
- 使用精靈圖、平移、視差滾動和音效來構建更精緻的遊戲
- 整合路徑尋找和引導,幫助角色在您的世界中導航
- 通過使用決策樹、狀態機和腳本事件創建具有挑戰性的關卡,並設計智能敵人
- 使用 Node.js 和 WebSocket API 在您的遊戲中添加多人遊玩功能

本書適合對象:

《Pro HTML5 Games》適合已經具備一定 HTML 和 JavaScript 編程經驗的程序員,並希望學習如何利用 HTML5 的力量來構建驚豔的遊戲,但不知從何開始。

有其他語言(如 Flash)製作遊戲經驗的讀者,也會在本書中找到許多有用的信息。

如果您對自己的遊戲編程技能不夠自信,請不要擔心。本書涵蓋了構建這些遊戲所需的所有基本知識,讓您可以跟隨學習,設計大型專業的 HTML5 遊戲。本書還會指向資源和參考資料,以便您在跟不上進度時進行補充學習。

本書專門設有 HTML5 基礎、Box2D 引擎、路徑尋找和引導、戰鬥和有效的敵人 AI 以及使用 Node.js 和 WebSockets 的多人遊戲等章節,無論您有多少遊戲編程經驗,都能從中獲益良多。

目錄:

1. HTML5 和 JavaScript 基礎
2. 創建基本遊戲世界
3. 物理引擎基礎
4. 整合物理引擎
5. 創建 RTS 遊戲世界
6. 向我們的世界添加實體
7. 智能單位移動
8. 添加更多遊戲元素
9. 添加武器和戰鬥
10. 完成單人戰役
11. 使用 WebSockets 的多人遊戲
12. 多人遊戲玩法