Jump to content

Node.JS + Phaser


tips4design
 Share

Recommended Posts

I want to run my multiplayer game on the server, in order to check for cheaters and keep everything in sync.

 

My game will be a 1v1 game (think of pong), so I will have to run an instance of the game for each match between two players. I was thinking about running each match in a separate thread (worker). Is that the correct approach? Should I otherwise instantiate a new Node.js instance for each match?

 

And, as a side question, how can I run Phaser on the server (no rendering, maximum performance, fixed time steps) ?

Link to comment
Share on other sites

You might be able to get away with trying to build a native app for the server using node-webkit project however as i understand phaser MUST be running inside of a browser so plain ol node build would not work.  If all you need to do is verify collisions i would suggest trying to only run physics on the server (which would save lots of resources)  by using a physics engine such as p4.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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