Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

devicemotion + websockets + node.js proof of concept for iOS4.2

branch: master

Initial commit

latest commit 5d9cc86f76
Matteo Spinelli authored November 29, 2010
Octocat-spinner-32 .gitignore Initial commit November 29, 2010
Octocat-spinner-32 README Initial commit November 29, 2010
Octocat-spinner-32 client.js Initial commit November 29, 2010
Octocat-spinner-32 index.html Initial commit November 29, 2010
Octocat-spinner-32 sb.js Initial commit November 29, 2010
Octocat-spinner-32 server.js Initial commit November 29, 2010
Octocat-spinner-32 style.css Initial commit November 29, 2010
README
You need:

- an iPad >= 4.2.1
- node.js
- socket.io (server + client)

Test URL (sorry the socket server won't be online all the time): http://cubiq.org/dropbox/sb/
Lock the device rotation before trying. What you'll see is a red ball you can crontrol by tilting the iPad.
If other users are connected you'll see them as grey balls. Communication happens thanks to websockets.

*Not ready for production*, this is just a proof of concept.

To-do:
- would be nice to add collision detection between balls.
Something went wrong with that request. Please try again.