Skip to content
This repository
branch: master

Push backdoor code

Change-Id: Ied3bfa6955d771b629abb2310beced0c458cf50d
latest commit 8eaf091204
Tim Caswell creationix authored December 14, 2010
..
Octocat-spinner-32 resources Collapse the directory a bit December 06, 2010
Octocat-spinner-32 web Push backdoor code December 14, 2010
Octocat-spinner-32 README.markdown [hexes] Show npm commands in README December 13, 2010
Octocat-spinner-32 console.js Push backdoor code December 14, 2010
Octocat-spinner-32 launch.sh Move exploder's sprite engine into itself December 06, 2010
Octocat-spinner-32 package.json [hexes package.json] better description December 13, 2010
Octocat-spinner-32 server.js Push backdoor code December 14, 2010
README.markdown

Hexes

This is a simple game that uses a remote nodejs server to sync up piece movements between all players.

Before you can run this, you need connect, and socket.io libraries installed.

Install node + npm, and then install the deps with:

npm install connect socket.io

To start the server simply type the following in this folder:

node server.js

You can also use npm to do both steps:

npm link # or `npm install` for non-link install
npm start hexes

Then go to http://localhost:8080/ in a webkit browser (chrome, safari, etc..) to see the game served from your local laptop.

To play, simply click (or tap) on a piece, and then click where you want it to go. Open the same url in a couple browser windows to see them stay synced.

iOS Install

Go to the url in Safari and add to desktop as an icon. Then when you launch this icon, it will appear as a local native app, but really load from your server/laptop.

webOS Experiments

To test on the device, you need to modify the url in web/client.js to point to your server from the phone's point of view.

Then you plug up the phone via USB (assuming you have the Palm SDK installed) and run the local launch script:

./launch.sh

Also you can run the node server on the phone. To do this, install the nodeFor145 package on the phone or emulator (unless you have webOS 2.0 already)

Then just wget this entire repo from github using the download link, untar it, and run node server.js from the this folder on the phone.

Something went wrong with that request. Please try again.