Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanchuan/game-controller
Your mobile phone as a game controller
https://github.com/yuanchuan/game-controller
Last synced: about 1 month ago
JSON representation
Your mobile phone as a game controller
- Host: GitHub
- URL: https://github.com/yuanchuan/game-controller
- Owner: yuanchuan
- Created: 2013-02-19T03:19:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-21T05:44:23.000Z (almost 12 years ago)
- Last Synced: 2024-10-24T02:05:19.245Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 234 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# game-controller
Inspired by [controldeck.js](https://github.com/dfcb/controldeck.js). With the same idea, this repo shows how to turn a mobile phone into a game controller.
Our first game is Super Mario which is written by [@Diogenesthecynic](https://github.com/Diogenesthecynic/) in javascript.
### How to Play
1. First, make sure your have [node](http://nodejs.org/) installed, if not, follow the [installation guide](https://github.com/joyent/node/wiki/Installation).
2. Download this repo from github and get the submodules.
git clone git://github.com/yuanchuan/game-controller.git
cd game-controller
git submodule update --init3. Install required packages and run.
npm install
node app.js4. Open your browser and have fun!
- The game page: [http://localhost:3000/mario/index.html](http://localhost:3000/mario/)
- The controller page: [http://localhost:3000/mario/controller.html](http://localhost:3000/mario/controller.html)### Screenshot
![supermario](screenshot/mario.jpg)
###License
[Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/)