Giter VIP home page Giter VIP logo

jetpets's Introduction

Jetpets

Modern pong remake, using your mobile phone as the controller.

Demoed at the ThoughtWorks booth at Agile Australia 2013.

Tech stack: HTML5 / Node.js / Socket.io / Pixi.js / Box2D / Grunt

screenshot

Or see it in action here: http://www.youtube.com/watch?v=GSAISCejU9s

Local setup

Install Node.js version 0.10.x (homebrew is recommended for OSX), then run

npm install -g grunt-cli
npm install

We use grunt for building

grunt		# builds all assets into ./build and watches for changes
grunt test  # runs the unit tests

Players are stored in a JSON file on S3, so you will need to include an aws.json file with S3 credentials in the root of the project. (ThoughtWorkers - there is one you can use on the jetpets myTW page).

And finally

npm start

This starts the server, and restarts it

  • if something goes wrong
  • when any server-side code changes

Playing the game

With the server running, open:

Deploying to an external server (ex: Raspberry PI)

The game needs to be built locally first, and the server will just:

  • run the server code (/src)
  • serve static assets & files (/builtAssets)

Just run make deploy [HOST=<IP address>] to build & copy all the required files over SSH.

The server will need to run npm install --production to get all the runtime dependencies.

Deploying to Heroku

You'll need to have the Heroku Toolbelt installed and a Heroku account. (ThoughtWorkers - see the myTW jetpets page for Heroku credentials)

If you need to create a new Heroku app for jetpets, use 'grunt app:<new-app-name>'; if there is already an app, add it as a git remote ('git remote add heroku [email protected]:<existing-app-name>'). Once the app is set up, be sure to generate the build assets first ('grunt build'), before deploying ('git push heroku master').

Attribution

Thanks to http://www.freesfx.co.uk for the free sound effects

jetpets's People

Contributors

rprieto avatar jagregory avatar tosinaji avatar gga avatar asuriel avatar jill-tw avatar

Watchers

Kent McNeill 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.