Sherlautten Posted February 17, 2016 Share Posted February 17, 2016 Hi, I have been developing during the last 9 months a multiplayer game with Phaser and socket.io, but I see it actually as an impossible mission. The game I have in mind needs physics, players have a determined speed and they can collide between them and also with neutral ball, which I can't find the way to make work properly because the game is running on the client and I send to the server players's position and velocity, and I don't know how to make their position work correctly, they have different positions in every client, even fixing the position through the server, and the ball of course is unaplayable. Maybe If I could make the game run on the server(Which I don't know how to do, because my programming skills are limited, and I haven't found any tutorial about how to make a Phaser game with those kind of needs running on the server. So, I still want to make this game, but I have though in changing to a different engine where I can make it. My needs are: Quote -Real time multiplayer game in 2D -Physics : speed and collisions between players and a neutral ball -Rooms -As easy to use as it's possible -Game running on the server(Or on the client but perfect response). I have seen engines such as Isogenic Engine, Turbulenz, YcheeJs, and I have though in Construct 2 and heard about Cocos2d, but I don't know any of these engines and I don't know if are enough easy touse, because their tutorials and examples are very limited. Thanks for all the help you can give me! Quote Link to comment Share on other sites More sharing options...
Gugis Posted February 24, 2016 Share Posted February 24, 2016 Install Box2D package for node.js and run physics loop in server. Then every ~50 ms send players positions to all connected users. On client side you need just to manipulate players position, rotation with data received from socket server. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.