Build an HTML5 Game, A Developers Guide with CSS and JavaScript, Bunyan K., 2015.
This book cannot demonstrate the full range of possible HTML5 games and therefore does not explore the capabilities of HTML5 and JavaScript to the fullest. Instead, I concentrate on creating a single casual game, like those many developers have produced for years with Adobe Flash. These games are generally two-dimensional and single player with relatively short game loops. Advances in 3D capabilities, such as WebGL, mean that large, complex, immersive multiplayer games are either possible now or just around the corner, but a casual game project is a more natural place for a game developer to start. Simple projects also make it easier to illustrate the fundamental principles involved in building a game.