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.

Get HTML5 Game Development by Example : Beginner's Guide - Second Edition 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.