Code Monkey home page Code Monkey logo

droistick's Introduction

This application consists of 2 parts.

1. Android client application ; This would be responsible for tapping into the phone's sensors to pick up data for movement of the paddles.
   A simple SensorListener implementation is provided to obtain raw sensor data and perform mathematical manipulation to determine
   the direction of movement of the phone. 
   Based on intensive testing we have the following results:
   a. The app works best if the phone is held along its longer edge i.e. in the landscape view and then flipped in a clockwise direction
      front and back.
   b. Best results were observed for the Nexus series of phones due to better accelerometer sensitivity. Not so great results were observed 
      for the Droid series. 
   c. Would require fast wifi. In order to refine this product we'd have to make a few architectural changes one of them being the dependency 
      on using internet for transfering real time motion control and also inducing another DB layer to save this data. (this is ongoing work).
   d. Can be imported into Palm devices as well. The sensors on the Palm Pre phones were found the respond better than any other android phone.

2. Server: 
   We used the facebook platform to provide a callback to our server enabling us to host the game in the facebook application page. 
   Our server is powered by php scripts taking care of adding and retrieving motion events from the DB. 

   We hacked a paddle game we found online which was primarily javascript. We stripped out the keyboard and mouse controls and provided
   an interface to our php scripts which would retrieve the data to determine the most recent motion event.

   

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.