Multiscreen game state

Hello 

I have a problem with conception of multiplayer with different resolution 

ie. 320 x 480 and 960 x 640

And we have a multiplayer game where user can hit the ball with 5 round pawns. something like simple soccer game. 

And the question is: How to translate two different resolution and have the same game state on different screens ??

Thank you for andy advice.

Design for  a single resolution and allow auto-scaling to do the heavy lifting.  

If you were to set up config.lua like this:

application = { content = { width = 640, height = 960, scale = "letterbox", fps = 30 }, }

Then, you played on an iPad, the app (at the level your code sees) would still think the device was 640 x 960.  Visually it would upscale to fit the screen, but internally a one-pixel move is still seen as a one pixel move, even it it translates to 2 pixels on the screen.

This ensures consistency of behavior across devices.  Yes, the images will look larger on the iPad, but they will behave the same.

Design for  a single resolution and allow auto-scaling to do the heavy lifting.  

If you were to set up config.lua like this:

application = { content = { width = 640, height = 960, scale = "letterbox", fps = 30 }, }

Then, you played on an iPad, the app (at the level your code sees) would still think the device was 640 x 960.  Visually it would upscale to fit the screen, but internally a one-pixel move is still seen as a one pixel move, even it it translates to 2 pixels on the screen.

This ensures consistency of behavior across devices.  Yes, the images will look larger on the iPad, but they will behave the same.