Pro HTML5 Games

By Aditya Ravi Shankar

Pro HTML5 Games Cover Image

Pro HTML5 Games shows you the essentials of advanced game programming. You will learn to create a strategy puzzle game based on the Box2d physics engine, and a Real Time Strategy (RTS) game, including multiplayer support. The techniques here can be transferred to any area of HTML5 game dev and enable you to create your own HTML5 games as a pro.


Full Description

  • ISBN13: 978-1-4302-4710-4
  • 364 Pages
  • User Level: Intermediate
  • Publication Date: December 17, 2012
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

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

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
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

No errata are currently published