O game The Drums utiliza a biblioteca Javascript webcam easy para fazer a detecção de movimentos. É um script muito simples de se implementar e o código fonte está no meu Github logo abaixo.
Veja o game em funcionamento no Youtube:
Download do código fonte:
GitHub - jaccon/the-drums-game: The Javascript game using motion detection to active the drums on screen
The Javascript game using motion detection to active the drums on screen - GitHub - jaccon/the-drums-game: The Javascript game using motion detection to active the drums on screen