Skip to content
A simple swimming game controlled by a 1-DOF EMG input
Java CSS HTML
Branch: master
Clone or download
Pull request Compare This branch is 12 commits ahead, 13 commits behind badlogic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
core
desktop
gradle/wrapper
html
img
ios
.gitignore
CREDITS
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

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

You can’t perform that action at this time.