Skip to content

nwlasitz/openComp2019

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Competition 2019

Project Description

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

How to run...

Requirements

  • 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 type terminal and press enter

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

To run

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

Known Problems

"zlib not available" Error when installing python 3.6.5

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%