This is phase 1 of a chromecast game that allows to play some basic Supermaio game.
The control of the game is done using a dedicated Android application.
The application uses the phone accelerators to detect the movement and communicate the movementes (Right/Left/Up/Down) to the chromecast who input these movements to the game.
The game itself runs as JavaScript on the ChromeCast device. It has some limited performance but could work for simple games.
One other interesting enhancement is to use the phone camera to capture body movements.
Phase 2 of the game allows to run any Scratch game on cromecast and control it with the same app.