Apress

HTML5 Game Development Insights Cover Image

HTML5 Game Development Insights is a from-the-trenches collection of tips, hacks, and advice straight from professional game developers.

Full Description

  • ISBN13: 978-1-4302-6697-6
  • 476 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: April 22, 2014
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $49.99
  • eBook Price: $34.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

HTML5 Game Development Insights is a from-the-trenches collection of tips, tricks, hacks, and advice straight from professional HTML5 game developers. The 24 chapters here include unique, cutting edge, and essential techniques for creating and optimizing modern HTML5 games. You will learn things such as using the Gamepad API, real-time networking, getting 60fps full screen HTML5 games on mobile, using languages such as Dart and TypeScript, and tips for streamlining and automating your workflow. Game development is a complex topic, but you don't need to reinvent the wheel. HTML5 Game Development Insights will teach you how the pros do it.

The book is comprised of six main sections: Performance; Game Media: Sound and Rendering; Networking, Load Times, and Assets; Mobile Techniques and Advice; Cross-Language JavaScript; Tools and Useful Libraries. Within each of these sections, you will find tips that will help you work faster and more efficiently and achieve better results.

Presented as a series of short chapters from various professionals in the HTML5 gaming industry, all of the source code for each article is included and can be used by advanced programmers immediately. 

What you’ll learn


  • “From The Trenches” tips, hacks, and advice on HTML5 game development
  • Best practices for building Mobile HTML5 games
  • Actionable advice and code for both professional and novices

Who this book is for

HTML5 Game Development Insights is for the game developer looking to improve their development process at all stages of the game development pipeline; The nuggets of awesome in this book are applicable both to the hobbyist, trying to track down a performance bug in rendering, and the professional, who is looking to speed up loading time by re-packing their artist-generated images. With this book, it’s like looking over the shoulder of the top HTML5 game developers!

Table of Contents

Table of Contents

PART 1

1. JavaScript is Not the Language You Think it is

2. Optimal Asset Loading

3. Performance JavaScript

4. Efficient JavaScript Data Structures

PART 2

5. Faster Canvas Picking

6. Autotiles

7. Leveraging Flash for HTML5

8. Applying Performance Improvement Techniques Used in Old-School Videogames

9. Optimizing WebGL Usage

10. Playing Around with the Gamepad API

PART 3

11. Introduction to WebSockets

12. Multiplayer Real-time Networking

PART 4

13. Responsive Game Design: Letting Game Mechanics and Controller Inputs Flow with Your Layout

14. Making a Game That Works on Both Mobile and Desktop

15. Better Than Native: 60fps Fullscreen on Mobile

16. Creating Mobile Web Games with Canvas 2D API

17. Faster Map Rendering

PART 5

18. Writing C++ on the Web with Emscripten

19. Making HTML5 Games with TypeScript

20. Best Practices When Implementing the Main Loop

PART 6

21. Using Crunch for Super-compressed WebGL Textures

22. Building a 2D Map Editor in HTML5

23. Building Automated Workflows With NodeJS and Grunt

24. Build a Game with Cocos2d-html5 Library

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

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

No errata are currently published