Book Image

HTML5 Game Development by Example: Beginner's Guide

By : Seng Hin Mak
Book Image

HTML5 Game Development by Example: Beginner's Guide

By: Seng Hin Mak

Overview of this book

Table of Contents (18 chapters)
HTML5 Game Development by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
9
Building a Physics Car Game with Box2D and Canvas
Index

Creating a keyboard-driven mini piano musical game


Now we can click on the Play button. The music game slides in and plays the song with music notes dropping down. Our next step is adding interaction to the music notes. Therefore, we will add keyboard events to control the three lines to hit the music notes.