So i’ve been pondering how I would go about implementing a viewport big room small screen kind of concept, and came up with a litte ‘theory’.
So everything in the game will have 2 x/y variables, a “render X/Y” position, and a “real X/Y” position. When receiving input (key strokes), the object the viewport is following will be affected by having the realX/Y position changed. The renderX/Y will stay the same to keep the player in the center of the screen. It is vice versa for the ‘static’ objects, whose real position stays the same, but and input is received, its render position is kept.
In theory (maybe) this means that the screen will look like the player is moving around a world, when really the world is moving according to the input, but in the background, with the realX/Y coordinates, the physics is being run.
So i hope that makes sense.