Skip to content

ixjlyons/myoswim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

A simple swimming game controlled by a 1-DOF EMG input

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 90.9%
  • CSS 6.2%
  • HTML 2.9%