XNA - Problems with windows phone

Monkey Forums/Monkey Programming/XNA - Problems with windows phone

Lugato(Posted 2012) [#1]
Hi to all,

I'm testing all libs that I wrote to IOS/Android in Windows Phone and have some problemns that I can't solve:

1- Orientation: My app use landscape mode, I tried change the values in the config.txt:

Original:
XNA_WINDOW_WIDTH_PHONE=480
XNA_WINDOW_HEIGHT_PHONE=800
XNA_WINDOW_FULLSCREEN_PHONE=true

To:
XNA_WINDOW_WIDTH_PHONE=800
XNA_WINDOW_HEIGHT_PHONE=480
XNA_WINDOW_FULLSCREEN_PHONE=true


In the visual studio, when I build, the windows version show the app corretly (landscape mode), without I change the windows value, but in the emulator the app only appear in portrait mode..


2- Save state: Other problem is save state, I have created a class to save game informations and this work fine in IOS and Android, but in Windows Phone when I saved a game status, exit the app, and enter in it again, the save state are lost..

3- Music files: which the correct format to use mp3 files in Windows mobile ??

4- I know that enableKeyboard is only for IOS and Android platform .. my question .. exist a chance of this feature will be impemented to windows phone too ???

Any help will be apreciated

thank's


Rone(Posted 2012) [#2]
1- Orientation

Works automatically on device, maybe only an issue with the simulator?


3. Music files:

wav -> sounds
mp3 -> music

http://blitz-wiki.appspot.com/mojo.audio


Also very recommendable:

http://channel9.msdn.com/events/PDC/PDC10/CD04

http://blogs.msdn.com/b/shawnhar/archive/2010/07/12/resolution-and-scaling-on-windows-phone.aspx