Preface

This book is for experienced JavaScript developers who want to implement 2D games with HTML5. In this book, I chronicle the development of a sophisticated side-scroller platform video game, named Snail Bait, from scratch. I do not use any third-party graphics or game frameworks, so that you can learn to implement everything from smooth animations and exploding sprites to developer backdoors and in-game metrics, entirely on your own. If you do use a game framework, this book provides valuable insights into how they work.

Because it’s meant for instructional purposes, Snail Bait has only a single level, but in all other respects it’s a full-fledged, arcade-style game. Snail Bait simultaneously manipulates dozens of animated objects, known ...

Get Core HTML5 2D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.