Added a function to change the resolution in runtime

Also, in the example game, added buttons to choose from the various ratios