Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.35 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.35 KB

MyoSwim

This is a game for demonstrating computer interface control through surface electromyography at the World Science Festival.

screenshot

It originally started as a fork of theplanethatcouldntflygood (which is itself a simple Flappy Bird clone written with libgdx, which is itself a ripoff of that helicopter Flash game...). It has slowly transitioned to a pretty different game altogether, where the user controls the vertical position of a fish who is trying to hit bubbles and avoid enemy fish. Almost none of the "tptcfg" code is still around and all of the original graphics were scrapped (the new graphics were made by me).

It uses the microphone as an input to the plane, allowing for myoelectric control if an EMG sensor is plugged in to the microphone port (you could blow or hum into the microphone for control otherwise). The RMS value is calculated and put through a moving average filter to get the input value. This input value is used to control the vertical speed of the player, working against gravity.

Because the AudioRecorder class is needed, this game doesn't have an html version (see here).