I am starting out with some game development using XNA and Silverlight, but cant figure out how to handle orientation. Ideally I would want the game to always run in Landscape mode, so I set the Supported Orientation to landscape. I have a Grid as my Layout Root, and I apply an image brush background to it which is the background of the game.
It looks okay in portrait, but if I switch to landscape, half of the background dissapears. I assume its because the phone is changing orientation but the background isnt. Does this mean I need to transform the background every time I change the orientation of the phone? Is it in no way handled by the phone or by silverlight automagically?
Also, I have added textures for the characters using XNA. When the phone changes orientation, so to they. They only "stand up straight" in portrait orientation. Otherwise they flip in the driection of the phone. Do I need to rotate every texture on screen in order to orient them properly? Is there a good tutorial for this anywhere?
Thanks!
It looks okay in portrait, but if I switch to landscape, half of the background dissapears. I assume its because the phone is changing orientation but the background isnt. Does this mean I need to transform the background every time I change the orientation of the phone? Is it in no way handled by the phone or by silverlight automagically?
Also, I have added textures for the characters using XNA. When the phone changes orientation, so to they. They only "stand up straight" in portrait orientation. Otherwise they flip in the driection of the phone. Do I need to rotate every texture on screen in order to orient them properly? Is there a good tutorial for this anywhere?
Thanks!
