AlphaBlaster is a small 2D shooter game that utalizes the users attentivness towards the game to control the player. We do this by analizing the users alpha waves using a Muse headset to determine whether or not the player is shooting the incoming waves of enemies. For a more detailed description read through https://github.com/neuralbertatech/openComp2019/wiki
-
A muse headset
-
A bluegiga bled112 bluetooth dongle
-
A MacOS machine (should also work on linux, but it has not been tested)
-
Requires python 3.6.5
-
open terminal with
command + space
and typeterminal
and pressenter
install homebrew with
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then install venv and pyenv with
brew install venv
and
brew install pyenv
download files using git in root directory
cd ~
git clone https://github.com/neuralbertatech/openComp2019
move to project folder
cd ~/openComp2019
Configure a virtual environment to contain dependencies
pyenv install 3.6.5
pyenv local 3.6.5
python3 -m venv venv
Activate the environment
source venv/bin/activate
Update Pip installer
pip install --upgrade pip
To install the required software run
pip install -r requirements.txt
move to project folder
cd ~/openComp2019
Activate the environment
pyenv local 3.6.5
and
source venv/bin/activate
Run python3 src/Stream/muse-lsl.py
from the root of the repository, you should see
Found device Muse-XXXX : XX:XX:XX:XX:XX:XX
Connected
Streaming
If it doesn't work, try running again.
Then, with the muse on your head, open a new terminal Command + t
Activate the environment
pyenv local 3.6.5
eval "$(pyenv init -)"
source venv/bin/activate
and run:
cd src
python3 main.py
This problem is caused by the Xcode toolchain not including all needed headers in /include, so to fix it run
CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
pyenv install -v 3.6.5