Hello! I'm writing a game now (I use HTML / CSS / JS, without canvas). Now I need to make sure that all objects in the scene adjust to different window sizes. (I hope clearly explained).
My idea was the following: I have a viewport with the original resolution (480x800). When you start the game, we check what size the window. Regarding them, we proportionally resize the viewport. After we check how much the viewport has changed and make the ratio of the previous size to the current one. When this coefficient is found, we multiply by it all X'y, Y'i, the size of all objects. But as it turned out, this method is no good. Does anyone have any idea?
