Chapter 8. Saving the World with Game Development

In this chapter, we will cover:

  • Creating sprite sheets for the hero and enemies
  • Creating level images and boundary maps
  • Creating an Actor class for the hero and enemies
  • Creating a Level class
  • Creating a Health Bar class
  • Creating a Controller class
  • Creating a Model class
  • Creating a View class
  • Setting up the HTML document and starting the game

Introduction

I wouldn't be surprised if some of you bought this book solely for this chapter—after all, what fun is it to master the HTML5 canvas without being able to create your own video games? Of all the chapters in this book, this chapter was by far my favorite (with the next chapter being a close second). We might not actually be able to save the world with game ...

Get HTML5 Canvas Cookbook 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.