XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Doubt about project selection. Windows -> Xbox

Last post 4/28/2009 8:47 PM by Iar. 2 replies.
  • 4/28/2009 6:15 PM

    Doubt about project selection. Windows -> Xbox

    Greetigns.

    Sorry for asking this, as i'm sure this question has been submited a lot of times, but i'm unable to find it.

    Currently i'm starting to take a look to the framework, and i see that you must choose the project to be a Windows or Xbox360 project. Currently, i only want to test this on Windows, but lately, if all goes ok, i would like to finish the project to run on Xbox360. The question is... All the code that i create for Windows game should work if i take it later to an Xbox project? (aside from movement programing regarding the keyborad/Pad). Is there anything i should take in consideration while developing for windows when my final goal is Xbox360?

    Regards.
  • 4/28/2009 6:21 PM In reply to

    Re: Doubt about project selection. Windows -> Xbox

    Make sure to use the StorageDevice and StorageContainer stuff for saving files.
    Make sure to use the GamePad at least as an alternative input in Windows so that code will be there (and hey, it works on Windows, too, so why not).
    Don't rely on any of the .FromFile static methods for loading content.
    If you're doing particle effects, use GPU particles (or at least be ready to on Xbox). There are some great samples on this site for how to do that. The particles in my game Bloc are implemented using them, so they definitely do work pretty well.

    Those are probably the big ones. Follow or be aware of those and you should be fine. You only choose the project type to start. At any time you can right click on the project and choose Create Copy of Project for Xbox 360 and it will clone that project into an Xbox 360 project. XNA Game Studio will then keep them in sync so if you add to or change one, the other sees those changes as well. That's probably the best route since you can then compile against Xbox 360 the whole time to make sure you didn't use something that's not in the .NET Compact Framework.
  • 4/28/2009 8:47 PM In reply to

    Re: Doubt about project selection. Windows -> Xbox

    Thanks a lot for the answer. I'll keep on mind those tips.

    Regards.
Page 1 of 1 (3 items) Previous Next