This is Chapter 1 from the book HTML5 Games: Novice to Ninja

Chapter 1