improve structure of the game code and add a function to set the player position

handle the edge-case when a viewport vanishes

improve the conditional setting of flags

(0) -100 -30 -10 -3 +3 +10 +30 tip

mercurial