I have a turn-based game that is built with HTML 5 gaming framework and runs completely fine in Landscape mode. What I am trying to figure out is how to make the game run fine in both portrait and landscape mode such that even when the game is running and player rotates the screen to landscape the game runs perfectly or the game transition between landscape and portrait mode smoothly.
I can capture the orientation change event which is fired, my question is how should I design the game for both orientations.
Currently, I am trying to create a common file which then calls my separate orientation layouts created for the game but is this the right way? Thanks