Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillaume-gomez/noderace
A Network video game to learn basic NodeJs Skills
https://github.com/guillaume-gomez/noderace
Last synced: 22 days ago
JSON representation
A Network video game to learn basic NodeJs Skills
- Host: GitHub
- URL: https://github.com/guillaume-gomez/noderace
- Owner: guillaume-gomez
- Created: 2014-11-24T10:11:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T02:01:04.000Z (almost 8 years ago)
- Last Synced: 2024-10-10T21:11:01.871Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 2.34 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeRace
A Network video game to learn basic NodeJs Skills.This application is an example of what it is possible to do with html5 and websockets.
![Game](./preview.png "ScreenShot")
## Dependancies :
- We are using **Nodejs** to run the server : https://github.com/nodejs/node
- The module **Express**, as web framework : https://github.com/expressjs/express
- The module **socket.io** (a higher abstraction of websockets) : https://github.com/socketio/socket.ioTo install all those dependencies you need to have nodejs and npm installed.
Then you can go into `server` directory and run :
```
npm install
```
*this will install the module dependancies.*- The library **jqueryrotate**, (a plugin to rotate Dom elements) : http://jqueryrotate.com/
- At last for the 2D game Framework we are using **JawsJs** : https://github.com/ippa/jaws
*You don't need to do anything for these ones, they're included in the source code.*
### assets :
The cars were made by [bagera3005](http://bagera3005.deviantart.com/)
## Running the application :
In order to run the application go into `server` if you're not already in it and run :
```
node app.js
```
*You may need to run __nodejs__ instead of node depending on your configuration*Now you have the server running, a text in the terminal should indicate on which **port** it is listening, if you have a conflic you can modify this in [server/config.json](server/config.json)
Open a browser and go to 127.0.0.1:<**port**> (by default http://127.0.0.1:51510).
That's it ! now by default the server listens on all interfaces, so for example you can easily play on lan using your local ip address (for example 192.168.1.10)
## sublime-project
### packagesHere are the packages you may want to add to [sublime-text](https://www.sublimetext.com/) if you want to edit the files
- [HTML-CSS-JS Prettify](https://packagecontrol.io/packages/HTML-CSS-JS%20Prettify) **used to follow a clean coding style**
## Authors :
- [Gomez Guillaume](https://github.com/guillaume-gomez)
- [Jarretier Adrien](https://github.com/AdrienJarretier)