Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

`NoBarrierOSC` is a Node.js server (using a a set of projects mangled together) that allows all users on pageto send OSC messages to any listening application, and each other via any webkit basedbrowser via a `Node.js` webserver.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 images
Octocat-spinner-32 js
Octocat-spinner-32 node_modules
Octocat-spinner-32 .gitignore
Octocat-spinner-32 DemoBox2D.html
Octocat-spinner-32 NoBarrierOSC.iml
Octocat-spinner-32 README.md
Octocat-spinner-32 index.html
README.md

NoBarrierOSC

Everyone interact!

NoBarrierOSC is a Node.js / Websocket server (using a a set of projects mangled together) that allows all users on arbitrary webpage send OSC messages to any listening application, and each other via any modern browser including iOS/iPhone.

Demo

http://vimeo.com/17356351

Usage

Starting the server

node js/demo/server.js

Communication via browser

Although the current system seems convoluted and overly complex - it's designed so that users also stay in sync between one another:
    ///// Implement these functions in your delegate, or look at the demo and steal from those
    netChannelDidConnect: function() {},
    netChannelDidReceiveMessage: function( aMessage ) {},
    netChannelDidDisconnect: function() {},
    parseEntityDescriptionArray: function(){},
    log: function() {},
    getGameClock: function() {}


    ///// Initialize the ClientNetChannel which will communicate with the Node.js server on your behalf
    this.netChannel = new RealtimeMultiplayerGame.ClientNetChannel( this );

    ///// Send it messages whenever you want
    this.netChannel.addMessageToQueue( false, RealtimeMultiplayerGame.Constants.CMDS.PLAYER_UPDATE, {
                        x: Math.round(this._mousePosition.x*100), y:  Math.round(this._mousePositionNormalized.y*100) } );

Credits

Mario Gonzalez <mariogonzalez@gmail.com>

License

Whatever license any of the technologies used is carried over. This project itself is released under Creative Commons Attribution 2.0 license

Something went wrong with that request. Please try again.