GithubHelp home page GithubHelp logo

wanderingstan / handybird Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 5.0 3.49 MB

Real hand gestures to play Flappy Bird, using doppler effect and microphone.

License: Apache License 2.0

CSS 24.52% HTML 14.48% JavaScript 61.00%

handybird's Introduction

Handy Bird

Play Flappy Bird by actually flapping your hands.

Play it now here: https://wanderingstan.github.io/handybird/

Notes

  • Does not work in Firefox. Works well in Chrome.
  • Sound must be on and maximized. You may hear the high-pitched tone it uses. Best to use built-in laptop speaker.
  • Microphone access must be allowed. It listens to the change in the tone to detect motion.
  • Flap your hand toward your microphone. On Macbook it is by top-left of the keyboard. You may have to Google where it is on your computer.
  • The speaker or microphone on some computers may not be able to handle the 20kHz tone used for the doppler detection.

History

I was totally amazed by Daniel Rapp's demo that its possible to detect hand movement using the doppler effect in javascript. Given that I must make everything into a game, Flappy Bird was the obvious choice. Nebez Briefkani had already created a great javascript version, Floppy Bird. Excellent code in both projects enabled this mash-up.

Local Development

The microphone is not permitted files served from the filesystem. To develop on a local machine, you'll have to start a webserver. This should work:

python -m SimpleHTTPServer 8000

handybird's People

Contributors

nebez avatar wanderingstan avatar kaiinui avatar zvedenyuk avatar joeybab3 avatar

Stargazers

Fedor Avilov avatar R. B. avatar Yuqian Zhou avatar  avatar Sean Stevens avatar Zach Sim avatar xijujie avatar suziwen avatar  avatar Cheese  avatar Bernhard Morgenstern avatar  avatar Karl Lindberg & Kilian Güntner avatar  avatar  avatar Samuel Hawksby-Robinson avatar H avatar Rémi Chanaud avatar chuzui avatar Leslie Owusu-Appiah avatar

Watchers

 avatar  avatar  avatar

handybird's Issues

Not accepting hand/sound motion

Hi Team,

Thanks for great project.
I tried it out but it is not accepting the sound effect. I'd enable the mic access.
Can you please help me out.

Regards,
GS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.