GithubHelp home page GithubHelp logo

nodejs-pong's Introduction

Node.js Pong

This is a Node.js driven Pong game that a friend and I are using for a Hack and Tell demo. The idea came around when we wired up Wii-mote controllers to and Arduino, and wanted a visual game to connect their output to.

All Pong logic is calculated server-side and published to clients via WebSockets. Event emitters on the server manage data publishing/subscribing.

You can use the subscriber module to wire up any sort of controller you want.

Demo

Setup

Install the latest Node.js (I like to use NVM for version management):

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

Set the active version of Node.js:

nvm use

Install Node packages:

npm install

Start the server:

npm start

In another window, build and watch the development assets:

grunt

Grunt.js is used for development builds, so make sure to have that installed.

Todo

There are a few todo's in the code, as well as anything else that might be cool or fun.

Credit

Eli and I built this stuff. We found the SkyBox CubeMaps from this guy. The board images were found on Google Images, if we ever make this something bigger, I'll switch them out for some OS content. Everything else is pretty much hacked together JAYSCRIPT YO!

nodejs-pong's People

Contributors

nicovalencia avatar

Stargazers

 avatar  avatar  avatar  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.