I'm new to Player.IO but I find this system very good. I am currently developing a small 1vs1 2D game, you can think of blobby volley as an example.
But I have some questions.
First of all, for me, all the game physics need to be calculated by the server.
Let's take the example of the ball. Every move of the ball needs to be calculated server side because the ball is not "owned" by one of the two player. So the server calculate the position, rotation etc... and send the information to the clients who draw the result.
There are two clients, if they do the physic stuff how can they calculate the ball bounces etc...They will have always two value !!
If only one calculate the physic, it's a performance disadvantage.
The main problem is to use a physic library on the server (box2dx, farseer...), I saw different topics that say it's quite impossible...
I need some advices, how can I use a physic library on the server ? which one ? If not possible how can I do the physics (they are not advanced physics) ? Can I do them client side ? how (see example of the ball) ?
I hope you understood my problem.
Thanks for your help !
MaT