Skip to Content
Pro HTML5 Games
book

Pro HTML5 Games

by Aditya Ravi Shankar
December 2012
Intermediate to advanced
357 pages
9h 35m
English
Apress

Overview

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.

    Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.

    Read now

    Unlock full access

    More than 5,000 organizations count on O’Reilly

    AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

    QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
    Julian F.
    Head of Cybersecurity
    QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
    Addison B.
    Field Engineer
    QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
    Amir M.
    Data Platform Tech Lead
    QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
    Mark W.
    Embedded Software Engineer

    You might also like

    HTML5 Games Most Wanted: Build the Best HTML5 Games

    HTML5 Games Most Wanted: Build the Best HTML5 Games

    Seb Lee-Delisle, Gaëtan Renaudeau, Jonathan Bergknoff, Egor Kuryanovich, Mathias Paumgarten, Russell Goldenberg, David Strauß, Rob Hawkes, Brian Danchilla, Jonas Wagner, Shy Shalom
    HTML5 Game Development Insights

    HTML5 Game Development Insights

    Colt McAnlis, Petter Lubbers, Brandon Jones, Duncan Tebbs, Andrzej Manzur, Sean Bennett, Florian d'Erfurth, Bruno Garcia, Shun Lin, Ivan Popelyshev, Jason Gauci, Jon Howard, Ian Ballantyne, Jesse Freeman, Takuo Kihira, Tyler Smith, Don Olmstead, John McCutchan, Chad Austin, Andres Pagella

    Publisher Resources

    ISBN: 9781430247104Purchase book