Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a cross platform multiplayer game. I'm using pixel graphics and starting at a small 256x144 16:9 aspect ratio That gets scaled up to larger 16:9 resolutions. The graphics look ok however the movement is off. I'm publishing the players x,y coordinates and having other clients subscribe and render the entity based on these. This works in the case of same resolution clients however if the client is at a different scale the movement is off. It does seem consistent though when moving to a 0,0 position.

I've tried taking the published coordinates and applying the scale of the local client to them which seems more accurate. How can I equalize the coordinates across many clients?

share|improve this question
There is not enough information in the question. We could only guess what might be wrong, which would not be very constructive. How are you scaling the coordinates and can you explain what do you mean when you say the movement is off (maybe with pictures)? – msell May 13 '13 at 5:51

Separate your screen coordinates from your world coordinates. Pick a coordinates system that will accurately represent your position with enough detail. For example, if you're using a 256x144 int coordinate system for your positions, you only have 144 different positions available to you, even when the screen size can display 1080.

You may want to use a floating point coordinate system for more accuracy across larger screens. Whatever coordinate system you use, you'll need to scale it appropriately to the screen size just like you do for your graphics.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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