Skip to content

A dual screen game in which you throw around cannon balls. Leverages Box2D and Socket.io to enable a touch interface for any browser.

Notifications You must be signed in to change notification settings

palf/cannon-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cannon Game

A dual screen game in which you throw around cannon balls. Leverages Box2D and Socket.io to enable a touch interface for any browser.

You can try it out here: http://palf-cannon.herokuapp.com/

Setup

This application requires node and npm

To install, run the following:

npm install
node app

You can then navigate to http://localhost:5000 to see the landing page.

As this app is intended to run on Heroku, if you have the command-line tools installed, you can run:

foreman start

Usage

Once you are up and running, you can open the landing page at http://your.ip.address:5000. It has links to the Remote and World pages, as well as supplementary information. I recommend opening the World page first.

  • Remote
    • this page has a large blue shape that expects drag events and gestures
    • drag your mouse or finger across the blue shape to send an event to the World
  • World
    • this page has a canvas area that contains some physical objects
    • on events from Remote, additional objects will be created, moving at the velocity and angle of the gesture

About

A dual screen game in which you throw around cannon balls. Leverages Box2D and Socket.io to enable a touch interface for any browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published