2 ◾ HTML5 Game Development from the Ground Up
Despite these ambitious and exciting premises, though, aer an initial
announcement in 2008 by the W3C,
actual development started only in
2011, and support by the dierent browsers wasn’t as fast as many develop-
ers hoped. Indeed, performance across devices and browsers is not really
consistent yet, and several features are supported only by specic brows-
ers on specic platforms. Luckily, the situation is improving steadily on a
daily basis (see Figure1.1).
Today we can nally say that HTML5 is getting advanced enough to
oer the kind of capabilities needed by the game industry, thanks also
(WebGL) application programming interface (API) to provide two- and
three-dimensional graphics and eects.
As HTML5 matures, the reasons it could be a major revolution for
online games become more and more apparent: games can be shared
simply as links and can be run instantly without the need for any
installation. Players don’t need to download specic plugins, while
developers don’t have to wait for approval by the dierent app stores.
In addition, when there is a new version, users won’t need to explic-
itly update anything because the browser will automatically download
the latest version. Oine support is also possible, making HTML5 an
extremely exible, and potentially very successful, approach to casual
All that glitters is not gold, though, and actual game performance in
browsers is oen lacking, making complex HTML5 games in practice
much less feasible and appealing than native games on most devices.
Wouldn’t it be great, then, if we could have the exibility of HTML5,
the capability of converting our games to native apps when needed, and
a very user-friendly environment, suitable even for nontechnical people?
is is where Construct 2 by Scirra comes into the picture. Writing games
these can be circumvented by using Scirra’s tool, which adopts a very
visual approach to game development. In addition, third-party tools are
available to wrap the nal HTML5 game that Construct builds to turn it
into an iOS or Android game with performance close to that of a native
app, for example. is is what we are going to explore in the rest of this
book, so let’s get acquainted with our tool of choice.
e World Wide Web Consortium (W3C) is the main international standards organization for the
World Wide Web.