• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Very basic multiplayer online game example made with Phaser, Node.js and Socket.io

basic-mmo-phaser

Very basic multiplayer online game example made with Phaser, Node.js and Socket.io.

The tutorial corresponding to this game can be found here.

πŸ”₯ If you are interested in this project, you may also be interested in Westward, an open source Javascript MMORPG that I am working on! πŸš€

Installing and running the game

For the client, Phaser is included in the code (js/phaser.js). You will need npm to install the Node.js packages required for the server. To run the server, you'll need to have Node.js installed.

Clone the repository. Inside the newly created directory, run npm install to install the Node.js packages listed in package.json. Then run node server.js to start the server. The server will listen to connections on port 8081; you can change that behaviour by editing the code. You can access the app by navigating to http://localhost:8081/.

Donate

If you want to support me to make more open-source code and tutorials like this one, consider having a look at my donation page. In particular, take a minute to have a look at my Patreon page, where you can find a listing of rewards for various levels of recurring contributions!