This repository provides the unity files for EMG Quest: an 2d cooperative game controlled via EMG signals using Cometa Wireless EMG Devices. This project was developed by students from the Yoshimura Lab at the Institute of Science Tokyo.
- Plugins from the Cometa SDK for receiving EMG data.
- Scripts for signal processing, calibration, and mapping EMG signals to gameplay actions.
- Full source code and assets for the game itself.
EMG Quest is just a short concept game created to test the use of EMG in unity for game control. It is a 2D cooperative platformer with 4 levels in which each player controls a square. With two sensors in the forearm per player, they can trigger 3 different actions. Considering the right arm is used:
- Flexing the wrist to the left: Move left
- Extending the wrist to the right: Move right
- Activating both flexor and extensor muscles simultaneously: Jump
To advance to the next level, both characters must be in the door with the same color as them at the same time. Some mechanics include using the other player like a platform and colored tiles only solid for the player with the same color.
The sensors are placed in the lower part of the forearm corresponding to the muscles involved in wrist flexion for Channel 1 and wrist extension for Channel 2. The EMG data is directly sent into a script in unity that calculates the average power for each channel in an interval of 100ms. The power in each electrode can be observed while executing the game through a toggle menu that also offers the option to change the power threshold for action activation.
If you have any questions, encounter issues, or would like to know more about the project, please feel free to open an issue or reach out. We're happy to help!


