2D racing game written in JavaScript with a html/canvas frontend and Node.js backend.
- Make sure you have node.js installed and that these commands work.
node -v
npm -v
- Clone this repository
- In the main folder run
npm install
- Start the web and multiplayer game server
./start.sh
or directly run these two commands
http-server -p 9000 -s
node server/server.js
- Go to http://localhost:9000 to play.
- /race.js holds all of client side game logic
- /client.js holds all of the multiplayer client code
- The /server folder contains code related to the multiplayer game engine
- /server/server.js is the starting point.
These are some things that will be implemented next.
- Show names and appropriate vehicle for remote cars
- Synchronized start of game
- Synchronized end of game (1st, 2nd, 3rd place)
- Position all cars at start
- Improved Lobby
- Create a game
- Join a game from a list or code 3. Enter Name, Pick Vehicle
- Improved networking
- Look at switching from json to a binary implementation
You can see the latest version in action here. Or you can try v1.0.