I am creating a multiplayer HTML game which focuses on manipulating planet trajectories with gravity points. I am creating bunch of planets with random initial velocity and random direction and i am sharing info about this planets to a server. Though i am keeping track of every planets position on server, i am not sharing this values every second to each player. My idea is that if i only share planets position whenever a new player joins then from that point onward clients should be able to calculate new position of planet every second because directions and speed of the planets will be same for all players. This idea works for screens with same resolutions and aspect ratio but it fails for other cases.
can anyone suggest other idea for keeping track of planets position for screen with resolutions?
This game is multiplayer so i need something that will allow me to provide same scene to every player.