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

Adding additional features to the mini piano game


We have created basic interaction in the game. We can go further to make the game better by adding melody volume feedback. This will make the performance playing realistic and count the success rate of the performance.

Adjusting the music volume according to the player

Imagine that now we are in a performance playing the music. We hit the music dots to play the melody. If we miss any of them, then we fail to perform it well and the melody disappears.