BrainForm is an experimental Unity platform game designed to be controlled with Brain–Computer Interface (BCI) commands.
It integrates the Unicorn SDK to translate neural signals into action to control the player's avatar. The main purpose of BrainForm is to enable scalable and controlled data collection.

Main view of the game. Flashing targets allow the player to shot lasers and unlock doors.
BrainForm was designed to explore two main questions:
- How do users develop BCI control skills over repeated gameplay sessions?
- What are the perceptual and performance-related impacts of two different visual stimulation textures (with a focus on visual fatigue)?
- Within-subject design
- Multiple gameplay runs
- Two BCI tasks of varying complexity
- Post-session self-report questionnaires
- Real-time EEG input via the Unicorn SDK
- Designed for scalable collections of raw EEG and in-game performance metrics
- Neural command mapping to two game mechanics
- Tutorial and experimental level
- Extensible design
- Automatically save experiment logs in the
Experimentfolder
- Unity 2022.3
- Unicorn SDK (installed and configured)
- Unicorn Hybrid Black EEG device
- Windows platform
-
Clone or download this repository:
git clone https://github.com/BRomans/BrainForm.git
-
Open the project in Unity 2022.3.
-
Import the Unicorn EEG SDK:
- Download the SDK from the official g.tec Unicorn website
- In Unity, go to
Assets → Import Package → Custom Package - Select the
UnicornSDK.unitypackagefile and import all dependencies
-
Connect your EEG device:
- Power on your Unicorn Hybrid Black (or compatible hardware)
- Verify connection using the Unicorn Suite (optional)
- Ensure data streaming is enabled before starting the Unity scene
-
Run the scene:
- Open the main scene (
Scenes/Menu.unity) - First go to Setup BCI
- When ready hit Play!
- Open the main scene (
- Download or build the application
- Double click on the .exe file
- Go the the Setup BCI scene and follow the instructions
- Go back and hit Play, pick your character and enjoy
Team BrainForm
- Michele Romani – Lead Scientits / Unity Development / BCI Integration
- Devis Zanoni – Game Designer / Unity Development/ Data Collection
This project is released under the MIT License.
See LICENSE for more details.
All the participants that contributed to the data collection and all pilot testers for their precious feedback.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
- Fork the project.
- Create a new branch.
- Make your changes and commit them.
- Push to the branch and create a pull request.
This project is freely available to anyone and is not intended for commercial use. If you use this project for academic purposes, please cite the original authors.