Building JavaScript Games: for Phones, Tablets, and Desktop (Paperback)
暫譯: 建立 JavaScript 遊戲:適用於手機、平板電腦和桌面

Arjan Egges

  • 出版商: Apress
  • 出版日期: 2014-09-23
  • 售價: $2,400
  • 貴賓價: 9.5$2,280
  • 語言: 英文
  • 頁數: 444
  • 裝訂: Paperback
  • ISBN: 1430265388
  • ISBN-13: 9781430265382
  • 相關分類: JavaScript
  • 立即出貨 (庫存=1)

相關主題

商品描述

Building JavaScript Games teaches game programming through a series of engaging, arcade-style games that quickly expand your JavaScript and HTML5 skills. JavaScript is in the top ten most-used programming languages world wide, and is the basis for applications that can run in any modern browser, on any device from smart phone to tablet to PC. Especial emphasis is given to touch-based interface, but all games also run using a regular mouse and keyboard setup.

The four games you’ll develop from reading this book are:

  • Painter
  • Jewel Jam
  • Penguin Pairs
  • Tick Tick

These four games are casual, arcade-style games representing the aim-and-shoot, puzzle, maze, and platform styles of game play.

The approach in Building JavaScript Games follows the basic structure of a game rather than the syntax of a language. From almost the very first chapter you are building games to run on your phone or other device and show to your friends. Successive projects teach about handling player input, manipulating game objects, designing game worlds, managing levels, and realism through physics. All told, you’ll develop four well-designed games, making Building JavaScript Games one of the most enjoyable ways there is to learn about programming browser-based games.

The final chapters in the book contain a very nice bonus of sorts. In them you will find excerpts from interviews with two prominent people from the game industry: Mark Overmars, who is CTO of Tingly Games and creator of GameMaker, and Peter Vesterbacka, the CMO of Rovio Entertainment - the creators of the Angry Birds franchise. Their insight and perspective round off what is already a fun and valuable book.

What you’ll learn

  • Create games to run on phones and tablets
  • Manage sprites and other game objects
  • React to player input through touch and button presses
  • Allow game players to progress through different levels
  • Achieve realistic movement through applied physics
  • Prepare your games properly for commercial deployment

Who this book is for

Building JavaScript Games is for technology enthusiasts interested in learning about programming, and especially about game programming on their mobile devices. The book is also ideal for programmers in other languages wanting to make the move to mobile development using the cross-platform environment of JavaScript and HTML5. If you’re interested in browser-based development, especially the development of mobile games, then Building JavaScript Games is the perfect choice.

Table of Contents

Part I

1 - Programming

2 - Game Programming Basics

3 - Creating a Game World

4 - Game Assets

Part II

5 - Knowing What the Player is Doing

6 - Reacting to Player Input

7 - Basic Game Objects

8 - Game Object Types

9 - Colors and Collisions

10 - Limited Lives

11 - Organizing Game Objects

12 - Finishing the Game

Part III

13 - Adapting to Different Devices

14 - Game Objects in a Structure

15 - Gameplay Programming

16 - Game States

17 - Finishing the Game

Part IV

18 - Sprite Sheets

19 - Menus and Settings

20 - Game State Management

21 - Storing and Recalling Game Data

22 - Pairing the Penguins

23 - Finishing the Game

Part V

24 - The Main Game Structure

25 - Animation

26 - Game Physics

27 - Intelligent Enemies

28 - Adding Player Interaction

29 - Finishing the Game

Part VI

30 - Efficient and Readable Code

31 - Deploying your Game

商品描述(中文翻譯)

《建立 JavaScript 遊戲》透過一系列引人入勝的街機風格遊戲來教授遊戲程式設計,迅速提升您的 JavaScript 和 HTML5 技能。JavaScript 是全球使用最廣泛的前十種程式語言之一,並且是可以在任何現代瀏覽器上運行的應用程式的基礎,無論是智能手機、平板電腦還是 PC。特別強調觸控介面,但所有遊戲也可以使用常規的滑鼠和鍵盤設置運行。

您將從本書中開發的四款遊戲是:
- Painter
- Jewel Jam
- Penguin Pairs
- Tick Tick

這四款遊戲是休閒的街機風格遊戲,代表了瞄準射擊、益智、迷宮和平台風格的遊戲玩法。

《建立 JavaScript 遊戲》的方法遵循遊戲的基本結構,而不是語言的語法。從幾乎第一章開始,您就開始構建可以在手機或其他設備上運行並展示給朋友的遊戲。後續的專案教您如何處理玩家輸入、操作遊戲物件、設計遊戲世界、管理關卡以及通過物理實現真實感。總的來說,您將開發四款設計良好的遊戲,使《建立 JavaScript 遊戲》成為學習瀏覽器基礎遊戲程式設計最愉快的方式之一。

本書的最後幾章包含了一些非常好的附加內容。在這些章節中,您將找到來自遊戲產業兩位知名人士的訪談摘錄:Tingly Games 的首席技術官 Mark Overmars 和 Rovio Entertainment 的首席行銷官 Peter Vesterbacka - 他們是《憤怒的小鳥》系列的創作者。他們的見解和觀點為這本已經有趣且有價值的書籍增添了更多深度。

您將學到的內容:
- 創建可在手機和平板電腦上運行的遊戲
- 管理精靈和其他遊戲物件
- 通過觸控和按鈕按下反應玩家輸入
- 允許遊戲玩家在不同關卡中進行進展
- 通過應用物理實現真實的運動
- 正確準備您的遊戲以進行商業部署

本書適合對象:
《建立 JavaScript 遊戲》適合對學習程式設計感興趣的技術愛好者,特別是對在移動設備上進行遊戲程式設計感興趣的人。這本書也非常適合希望轉向使用 JavaScript 和 HTML5 跨平台環境進行移動開發的其他語言的程式設計師。如果您對基於瀏覽器的開發,特別是移動遊戲的開發感興趣,那麼《建立 JavaScript 遊戲》是完美的選擇。

目錄:
第一部分
1 - 程式設計
2 - 遊戲程式設計基礎
3 - 創建遊戲世界
4 - 遊戲資產
第二部分
5 - 知道玩家在做什麼
6 - 對玩家輸入的反應
7 - 基本遊戲物件
8 - 遊戲物件類型
9 - 顏色和碰撞
10 - 限制生命
11 - 組織遊戲物件
12 - 完成遊戲
第三部分
13 - 適應不同設備
14 - 結構中的遊戲物件
15 - 遊戲玩法程式設計
16 - 遊戲狀態
17 - 完成遊戲
第四部分
18 - 精靈圖
19 - 菜單和設置
20 - 遊戲狀態管理
21 - 儲存和回憶遊戲數據
22 - 配對企鵝
23 - 完成遊戲
第五部分
24 - 主要遊戲結構
25 - 動畫
26 - 遊戲物理
27 - 智能敵人
28 - 增加玩家互動
29 - 完成遊戲
第六部分
30 - 高效且可讀的代碼
31 - 部署您的遊戲