Jump to content

Multiplayer game tutorial with Phaser, and Node.js part 1


JSON
 Share

Recommended Posts

I wrote my very first blog post. It's a tutorial on how to create a multiplayer game with phaser in the client, and Node.js in the server:

The server uses Socket.io and Express.js.

Part 1:  http://gojasonyang.com/post/phaserMultiplayerGamePart1.html

It's for complete beginners who aren't familiar with Node.js and Phaser. I hope someone finds it useful if it's their first time working with Phaser and Node.js !!

 

multiplayerpart1.png

Link to comment
Share on other sites

  • 3 weeks later...

Some changes in my TypeScript version of code from this tutorial.

I solved my problem with background offset of a remote player.

I moved server scripts in src_server folder.

I changed build commands: 

Quote

 

For installation: npm install

For building the client: gulp client

For building the server: gulp server

For building the client and the server together: gulp

For running the server and the client: press "Server/Clint" button in Debug mode in VSCode

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...