Book Description
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 I: Getting Started
Chapter 1: Programming
Chapter 2: Game Programming Basics
Chapter 3: Creating a Game World
Chapter 4: Game Assets
Part II: Creating Colorful Games
Chapter 5: Knowing What the Player Is Doing
Chapter 6: Reacting to Player Input
Chapter 7: Basic Game Objects
Chapter 8: Game Object Types
Chapter 9: Colors and Collisions
Chapter 10: Limited Lives
Chapter 11: Organizing Game Objects
Chapter 12: Finishing the Painter Game
Part III: Jewel Jam
Chapter 13: Adapting to Different Devices
Chapter 14: Game Objects in a Structure
Chapter 15: Gameplay Programming
Chapter 16: Game States
Chapter 17: Finishing the Jewel Jam Game
Part IV: Penguin Pairs
Chapter 18: Sprite Sheets
Chapter 19: Menus and Settings
Chapter 20: Game State Management
Chapter 21: Storing and Recalling Game Data
Chapter 22: Pairing the Penguins
Chapter 23: Finishing the Penguin Pairs Game
Part V: Tick Tick
Chapter 24: The Main Game Structure
Chapter 25: Animation
Chapter 26: Game Physics
Chapter 27: Intelligent Enemies
Chapter 28: Adding Player Interaction
Chapter 29: Finishing the Tick Tick Game
Part VI: Into the Great Wide Open
Chapter 30: Producing Games
Chapter 31: Publishing Games
中文:
书名:构建JavaScript游戏:适用于手机、平板电脑和台式机
Building JavaScript Games 通过一系列引人入胜的街机风格的游戏教授游戏编程,这些游戏可以快速扩展您的JavaScript和HTML5技能。JavaScript是全球十大最常用的编程语言之一,是可以在任何现代浏览器上运行的应用程序的基础,从智能手机到平板电脑到PC,任何设备上都可以运行。特别强调基于触摸的界面,但所有游戏也使用常规的鼠标和键盘设置运行。
你将通过阅读这本书开发出四个游戏,它们是:
- 画家
- 宝石果酱
- Penguin Pairs
- 滴答滴答
这四款游戏是休闲的、街机风格的游戏,代表了瞄准和射击、拼图、迷宫和平台游戏的游戏风格。
The approach in Building JavaScript Games 遵循游戏的基本结构,而不是语言的语法。几乎从第一章开始,你就在构建在你的手机或其他设备上运行的游戏,并向你的朋友展示。连续的项目教授如何处理玩家输入、操纵游戏对象、设计游戏世界、管理关卡以及通过物理实现真实感。总之,你将开发四款设计精良的游戏, Building JavaScript Games 学习基于浏览器的游戏编程是最有趣的方式之一。
这本书的最后几章包含了一种非常好的额外奖励。在这些文章中,你可以找到对两位游戏行业知名人士的采访摘录:Tling Games的首席技术官、GameMaker的创建者马克·奥维马斯,以及Rovio Entertainment的首席营销官彼得·维斯特巴卡,他们都是《愤怒的小鸟》系列的创建者。他们的洞察力和观点完善了这本已经是一本有趣而有价值的书。
What youll learn
- 创建可在手机和平板电脑上运行的游戏
- 管理精灵和其他游戏对象
- 通过触摸和按下按钮对玩家输入做出反应
- 允许游戏玩家通过不同的级别进行升级
- Achieve realistic movement through applied physics
- 为商业部署做好适当的游戏准备
Who this book is for
Building JavaScript Games它面向对学习编程感兴趣的技术爱好者,特别是移动设备上的游戏编程。这本书也是其他语言程序员的理想之选,他们希望使用Java和HTML5的跨平台环境进行移动开发。如果您对基于浏览器的开发,特别是手机游戏的开发感兴趣,那么 Building JavaScript Games is the perfect choice.
Table of Contents
第一部分:入门
第1章:编程
第2章:游戏编程基础
Chapter 3: Creating a Game World
第4章:游戏资产
Part II: Creating Colorful Games
第5章:知道玩家在做什么
第6章:对玩家的输入做出反应
第七章:基本游戏对象
第八章:游戏对象类型
Chapter 9: Colors and Collisions
Chapter 10: Limited Lives
第11章:组织游戏对象
第12章:完成画师游戏
Part III: 宝石果酱
第13章:适应不同的设备
第14章:结构中的游戏对象
Chapter 15: Gameplay Programming
Chapter 16: Game States
第17章:完成宝石果酱游戏
第四部分:企鹅配对
Chapter 18: Sprite Sheets
第19章:菜单和设置
第20章:游戏状态管理
第21章:存储和调用游戏数据
Chapter 22: Pairing the Penguins
第23章:完成企鹅双人游戏
Part V: 滴答滴答
Chapter 24: The Main Game Structure
第25章:动画
Chapter 26: Game Physics
第二十七章:聪明的敌人
Chapter 28: Adding Player Interaction
第29章:完成滴答游戏
第六部分:走进大开放
Chapter 30: Producing Games
第三十一章:出版游戏
评论前必须登录!
注册