1. thebob1's Avatar
    I just have a few simple questions regarding the development platforms of Windows Phone 7 and 8. It is true that xna development has been removed for 8 correct? I heard you can still run xna games on a WP8, it just goes into compatibility mode and doesnt have WP8's extras. Can you still use xna with VS Express though? I ask because personally I wish to learn using XNA and create windows phone games through XNA, but want to develop for the WP8. Would I need to make my game in WP7 version visual studio and then CONVERT it to WP8? Can anyone explain this to me in detail? Also, any developers out there, are you still using XNA to make your games, or are you using a different method now? What methods are most people using? I know very little about how all this works, but I wish to learn to use C# and develop; yes I realize coding is an ordeal and it wont take just a week, but I just want to know if there is still a way to use the relatively simple to use XNA and display one's games to the WP8 crowd.
    Cryio likes this.
    09-30-2013 09:13 PM
  2. Laura Knotek's Avatar
    Hi and welcome to WPCentral.

    I've moved your thread to the Developers Corner forum, since developers, rather than regular users, would be best suited to answer your questions.
    09-30-2013 09:20 PM
  3. TallAssRob's Avatar
    Windows Phone developer here! I have not made any XNA games, but I can say that you can still create an XNA project in Visual Studio 2012 express and the project can target both WP7 and WP8.
    Cryio likes this.
    09-30-2013 09:29 PM
  4. azcruz's Avatar
    09-30-2013 09:38 PM
  5. Bee Mon's Avatar
    I just have a few simple questions regarding the development platforms of Windows Phone 7 and 8. It is true that xna development has been removed for 8 correct? I heard you can still run xna games on a WP8, it just goes into compatibility mode and doesnt have WP8's extras. Can you still use xna with VS Express though? I ask because personally I wish to learn using XNA and create windows phone games through XNA, but want to develop for the WP8. Would I need to make my game in WP7 version visual studio and then CONVERT it to WP8? Can anyone explain this to me in detail? Also, any developers out there, are you still using XNA to make your games, or are you using a different method now? What methods are most people using? I know very little about how all this works, but I wish to learn to use C# and develop; yes I realize coding is an ordeal and it wont take just a week, but I just want to know if there is still a way to use the relatively simple to use XNA and display one's games to the WP8 crowd.
    Visual Studio Express 2012 for Windows Phone can be used to develop both WP7 and WP8 applications and games. WP8 can run WP7 Silverlight applications and XNA games but it is important that you test your program on a real WP8 device during development. Using VS2012, you can still use the WP7 Emulator or deploy to either a WP7 or a WP8 device to test and debug your WP7 projects. Any WP7 project that you have created using VS2010 can be directly opened in VS2012 so you can still use your current setup to start developing your games but you will not be able to test or debug them effectively on a WP8 device without VS2012. However VS2012 for Windows Phone can only run on a 64-bit Windows 8 machine. If you need to run the WP8 Emulator, your machine must be running the 64-bit Windows 8 Pro edition and supports virtualization.

    It is much easier to learn and write games using C# / XNA when compared to C++ / DirectX. C++ / DirectX just makes it easier for developers on other platforms to port their games over to Windows Phone and can take better advantage of the more advanced CPU/GPU to support higher resolutions and programmable shaders. These are features that are not available for XNA regardless of whether your XNA game is running on a WP7 or a WP8 device. XNA is still good enough for indie game development and I see no reason why you can't use it to develop most of the 2D (e.g. Angry Birds) and 3D (e.g. ilomino) games you find on the Windows Phone store today. However you can only achieve the high level of graphical fidelity in 3D games like Spartan Assault and Nova 3 using C++/DirectX on a WP8 device but those are not the type of games that you can develop on a tight budget with a small development team on your first foray.

    This does not mean that your XNA game cannot take advantage of any new features of a WP8 device. You can still use .NET reflection to detect and use WP8-only features. For example even though In-App-Purchase is only available for the WP8 OS, there is still a way that you can access this feature from your XNA game as long as it is running on a WP8 device. Some WP8 users using high-resolution devices may complain that the graphics in XNA games are blurry. XNA games only support WVGA and lower. To reduce blurriness on high resolution devices always use the maximum available resolution for XNA games (800 x 480) so even though it would still scale, it won't be as bad as scaling up lower resolution games like 600 x 360 or 400 x 240. Another issue is black bars will appear for HD720 devices like HTC 8X devices because WVGA scales perfectly to WXGA (scale factor 1.6) but not HD720 (scale factor 1.5). Through reflection, you can still detect the scale factor on the WP8 device and use a slightly lower resolution for your game that will scale better to HD720 and eliminate the black bars that HTC 8X owners complain about when playing WP7 games.

    Don't worry if all these differences are too much to take at once. One nice thing about the Windows Phone store is that you can publish a single version for all devices or you can publish separate versions for WP7 and WP8 devices. You can also publish separate versions for WVGA, WXGA and HD720. You should always start with a WP7 game using the WVGA resolution because this will target the largest Windows Phone audience. You can then publish it as a single version for WP7 and WP8 (WVGA and WXGA). You can then add a some extra code and make changes to your game to support 800 x 450 rather than 800 x 480 to eliminate black bars on HD720 devices. If it's too difficult for you to write code to support two resolutions at the same time in the game, you can build and publish a separate version. You can still use the same project and codebase but compile to two separate versions. You can create a symbol to compile different code for each version as shown below.

    #IF HD720_VERSION
    public const int SCREEN_WIDTH = 800;
    public const int SCREEN_HEIGHT = 450;
    #ELSE
    public const int SCREEN_WIDTH = 800;
    public const int SCREEN_HEIGHT = 480;
    #ENDIF

    That's all I can think of at the moment but feel free to ask if you need more information.

    Last edited by Bee Mon; 10-01-2013 at 02:54 PM. Reason: spelling correction
    azcruz, Cryio and thebob1 like this.
    09-30-2013 11:08 PM
  6. thebob1's Avatar
    Thanks a TON Bee Mon, that was all the info I needed, clarified to the last detail, with additional information as well. This was pretty simple to understand and has helped guide me along my way. Thanks!
    10-01-2013 08:02 PM
  7. 1101x10's Avatar
    You should also have a look at Monogame for the WP8 version.
    10-01-2013 08:10 PM
  8. Nitesh srivastava1's Avatar
    i m having problem in installing XNA game studio 3.1 setup on my window 8 PC..............can u help me please............
    05-14-2014 06:32 AM
  9. Nitesh srivastava1's Avatar
    please sir reply me as soon as possible.........................
    05-14-2014 06:34 AM
  10. Bee Mon's Avatar
    i m having problem in installing XNA game studio 3.1 setup on my window 8 PC..............can u help me please............
    What version of Visual Studio are you using? As far as I know, XNA Game Studio 3.1 is only compatible with Visual Studio 2005. And I'm not sure VS2005 can work well under Windows 8. For Visual Studio 2008 and onwards, you need to be using XNA Game Studio 4.0. Microsoft is no longer supporting XNA, so I suggest that you use MonoGame instead.

    MonoGame | Write Once, Play Everywhere
    05-18-2014 01:31 AM

Similar Threads

  1. It's possible to install another code firmware?
    By BrunoShady in forum Nokia Lumia 820
    Replies: 3
    Last Post: 10-02-2013, 11:32 AM
  2. Time to upgrade, but the fear rises
    By RaphaelChaia in forum Nokia Lumia 1020
    Replies: 3
    Last Post: 10-01-2013, 02:51 PM
  3. Replies: 1
    Last Post: 09-30-2013, 08:08 PM
  4. How to tell if you have latest update?
    By DallasXanadu in forum Windows Phone 8
    Replies: 5
    Last Post: 09-30-2013, 07:22 PM
  5. Windows calendar
    By mjke in forum Windows Phone 8
    Replies: 4
    Last Post: 09-30-2013, 03:02 PM
LINK TO POST COPIED TO CLIPBOARD