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 youll 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 youre interested in browser-based development, especially the development of mobile games, then Building JavaScript Games is the perfect choice.
Table of Contents
Part I1 - 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是全球使用最廣泛的十大編程語言之一,是可以在任何現代瀏覽器上運行的應用程序的基礎,無論是智能手機、平板還是個人電腦。特別強調觸控界面,但所有遊戲也可以使用常規鼠標和鍵盤設置運行。
閱讀本書後,您將開發四款遊戲,它們分別是:
- 繪畫師
- 寶石樂園
- 企鵝配對
- 滴答滴答
這四款遊戲是休閒的街機風格遊戲,代表了瞄準射擊、解謎、迷宮和平台遊戲風格。
《建構JavaScript遊戲》的方法遵循遊戲的基本結構,而不是語言的語法。從第一章開始,您就可以建立遊戲在手機或其他設備上運行並展示給朋友。接下來的項目將教授處理玩家輸入、操作遊戲對象、設計遊戲世界、管理關卡以及通過物理實現真實感。總而言之,您將開發四款設計精良的遊戲,使《建構JavaScript遊戲》成為學習瀏覽器遊戲編程最愉快的方式之一。
本書的最後幾章包含了一個非常好的額外福利。您將在其中找到兩位遊戲行業的知名人士的訪談摘錄:Mark Overmars,他是Tingly Games的首席技術官和GameMaker的創作者,以及Peter Vesterbacka,Rovio Entertainment的首席市場官,也是《憤怒的小鳥》系列的創作者。他們的見解和觀點使這本書更加有趣和有價值。
本書的最後幾章包含了一個非常好的額外福利。您將在其中找到兩位遊戲行業的知名人士的訪談摘錄:Mark Overmars,他是Tingly Games的首席技術官和GameMaker的創作者,以及Peter Vesterbacka,Rovio Entertainment的首席市場官,也是《憤怒的小鳥》系列的創作者。他們的見解和觀點使這本書更加有趣和有價值。
本書的最後幾章包含了一個非常好的額外福利。您將在其中找到兩位遊戲行業的知名人士的訪談摘錄:Mark Overmars,他是Tingly Games的首席技術官和GameMaker的創作者,以及Peter Vesterbacka,Rovio Entertainment的首席市場官,也是《憤怒的小鳥》系列的創作者。他們的見解和觀點使這本書更加有趣和有價值。
您將學到以下內容:
- 創建可在手機和平板電腦上運行的遊戲
- 管理精靈和其他遊戲對象
- 通過觸摸和按鈕操作對玩家輸入做出反應
- 允許遊戲玩家在不同關卡之間進行進度
- 通過應用物理實現逼真的運動
- 正確地為商業部署準備您的遊戲
本書適合對學習編程和尤其是在移動設備上進行遊戲編程感興趣的技術愛好者。對於其他語言的程序員想要使用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 - 部署您的遊戲