This is a game that combines leapJS, nodeJS, and threeJS to create a multiplayer squash experience.
Steps to get up and running
-
node must be installed on your machine. You can get the node installer here: http://nodejs.org
-
Verify that Node Package Manager is installed and running by entering this on your command line "npm --version". You should get a version number
-
Download the leap_Squash_game directory
-
in terminal or command prompt, change the current working directory to your leap_Squash_game folder
-
Run the command "npm install" to install the dependencies for the game
-
If one does not already exist, create a folder called "node_modules" at the highest level of your main drive (windows) or your user directory (mac) and relocate socket.io and express there
-
Move the leapJS and three folders to the public folder in the leap Squash app
-
in the public folder, open groupLeap.js and change the following on line 2
var socket = io.connect('http://your_IP:3700');
Update "your_IP" to reflect the IP address on your network (this is the address assigned by your LOCAL network, NOT the external IP that your network is assigned by your ISP.
-
Once this is done, make sure your current working directory is leap_Squash_game
-
plug in your leap motion controllers and make sure the desktop indicator is green and it is tracking
-
Run "node index.js" to start the app
-
Navigate to http://localhost:3700/gamePlay.html to bring up the start screen
-
Your opponent should navigate to yourIP:3700/gamePlay.html to start
-
Once both players have clicked "Let's play", a 3 second countdown will begin and then the game will start
Lead Developer: Jeremy Moore Intro Screens: Michael Woloszuk Collision Detection: Anna Roginska