Skip to content
/ planet Public

Online in-browser multiplayer game project using WebGL (Three.js) and WebSocket (Node.js)

Notifications You must be signed in to change notification settings

Neptilo/planet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Presentation videos for each version

Installation

Server

Install nodejs and npm:

  • On Linux, run sudo apt install nodejs npm
  • On Windows, download NPM online and install it.

Install modules required to run the server apps: Run this command from the repository folder: npm install express ws express-ws

Or install it globally and create a local link to the global installation:

sudo npm install -g express ws express-ws
sudo npm link express
sudo npm link ws
sudo npm link express-ws

Install node-canvas:

On Linux, you must install dependencies first: sudo apt install libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev

Run this command from the repository folder: npm install canvas

Or install it globally and create a local link to the global installation:

sudo npm install -g canvas
sudo npm link canvas

To run the game

Run the game on the server: sudo node server/js/main.js

Open the game from a client: type the server's IP in the address bar of a browser.

About

Online in-browser multiplayer game project using WebGL (Three.js) and WebSocket (Node.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published