GithubHelp home page GithubHelp logo

imclab / multi-screen-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from estherjk/multi-screen-demo

0.0 1.0 0.0 434 KB

A multi-screen demo using socket.io (WebSockets)

Home Page: http://multi-screen-demo.herokuapp.com/

License: MIT License

JavaScript 61.88% Shell 3.53% CSS 9.92% HTML 24.67%

multi-screen-demo's Introduction

multi-screen-demo

multi-screen-demo is a node.js app that uses socket.io (WebSockets) to pair a mobile and a PC, allowing seamless and responsive two-way interaction between paired devices. The goal of the app is to illustrate the use of WebSockets and hopefully give people some inspiration to create compelling multi-screen scenarios.

Link

You can check out the app in action here.

Overview

The app contains two demos:

  • Gestures
    • Use gestures on a mobile and show the detected events on a paired PC
    • The demo uses hammer.js, a JavaScript library for multi-touch gestures, and angular-hammer, an AngularJS directive that adds hammer.js support
  • D-pad
    • A simple D-pad controller for a mobile, which moves a target around on a paired PC
    • The demo uses the touch and release events in hammer.js; also uses angular-hammer
    • At the moment, the demo is a bit of a hack, where jQuery's animate() function is used to move the target (using jQuery is not very Angular); this was the fastest (and simplest) path to illustrate the use of a D-pad controller without using intervals, worrying about things like collision detection, and so on; since animate() requires a duration, the animation will just end after 20s (an arbitrary value I picked), even if one of the D-pad buttons is still pressed

Also, this app was tested in Chrome. If you experience any issues using socket.io or hammer.js with another browser, please try using Chrome.

multi-screen-demo's People

Contributors

estherjk avatar

Watchers

 avatar

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.