0
\$\begingroup\$

I am making a classic ping pong 2D multiplayer and its run on full screen, but i have a problem that the ball touch the limits of screen to one player and other no. Any idea how to solve this ?

\$\endgroup\$
0
\$\begingroup\$

Don't use screen pixels as a unit of length for your game.
You could use an abstract scene in arbitrary units, compute the ball position in this scene (independently of the players' screen resolution) and then transform the scene coordinates into screen coordinates depending on the screen resolution.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.