The first script fits the view in the room to the window size or screen size. It adapts your game to any device, at any resolution without distortion or black bars around the edges.
The second script allows you to move around the room using the mouse. As is usually the case in strategy games.
It works on all platforms.