Game Development Reference
In-Depth Information
Figure 9-7. In the package.appxmanifest we can change the start page and supported orientations.
All I did here was change the start page to index.html and lock the supported rotations to
landscape and landscape-flipped. This is a good technique to simply test that the game will
run on Windows 8. When I am done testing this I would eventually integrate the WinJS lib-
rary back into the game.
Now you are ready to compile the game and give it a try by clicking on the Build button
( Figure 9-8 ).
Figure 9-8. When you are ready, simply click the run button to test the game out locally.
The game runs great and is already perfectly optimized for touchscreens, so there is nothing
else you need to do to support Windows 8 tablets. There is one issue, however, and it's one I
Search WWH ::




Custom Search