McHacks 2018
Winner of "Best Retro Hack" at McHacks 2018 (McGill University).
https://devpost.com/software/neon-s2grn1
-
Clone the repo:
git clone https://github.com/kevenv/mchacks2018.git
-
If you want the complete game expereince, you will need Myo arm. Install and set up Myo Connect and make sure it works on your machine, i.e. diagnostics show your device as connected and responding to forearm movements.
There are two ways to run the application: complete game experience and demo mode.
- Make the following changes to
onAfterLoad()
insrc/main.js
:
function onAfterLoad() {
//onRender(); // uncomment this if want to use without Myo; comment if want to use with Myo
initMyo(); // comment this if want to use without Myo; uncomment if want to use with Myo
}
-
Start a HTTP server from the app's top directory. I.e.
python -m http.server
if using Python 3 orpython -m SimpleHTTPServer
if using Python 2. -
Open
http://localhost:8000/main.html
in your browser. -
Make sure Myo armband is connected connected and synced with your computer. Hold your hand perpendicularly to the screen.
-
To start the game, unlock the Myo armband and make Myo "finger spread" gesture. You are playing the game now if anything went smoothly!
-
Moving sideways: move the forearm wearing Myo armband in the corresponding direction horizontally.
-
Shooting: move the forearm wearing Myo armband upwards and bring it back down. You can shoot only one bullet at a time.
- Make the following changes to
onAfterLoad()
insrc/main.js
:
function onAfterLoad() {
onRender(); // uncomment this if want to use without Myo; comment if want to use with Myo
//initMyo(); // comment this if want to use without Myo; uncomment if want to use with Myo
}
-
Start a HTTP server from the app's top directory. I.e.
python -m http.server
if using Python 3 orpython -m SimpleHTTPServer
if using Python 2. -
Open
http://localhost:8000/main.html
in your browser. The game starts automatically.
-
Moving sideways: you can't control the movement in demo mode. The player's position is following the sine function.
-
Shooting: press
Space