tips4design Posted February 5, 2015 Share Posted February 5, 2015 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 More sharing options...
djmittens Posted February 6, 2015 Share Posted February 6, 2015 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. tips4design 1 Link to comment Share on other sites More sharing options...
Recommended Posts