Develop for windows phone 7 on xp




















ApplicationSettings class for saving states and settings. This class implements the IDictionary interface, that's why it's quick easy to work with it. Let's summarize the current state of all the game world objects hopefully there are no many of them to this dictionary and call the IsolatedStorageSettings. Save function. Game will be saved at the moment when you exit it. To do so, let's override the OnExiting function in the game class:.

Game resume is done analogically. When the app is launched we receive the data from IsolatedStorageSettings. ApplicationSettings and resume all the game world objects. Our application won't always be in an active state. Sometimes it may be deactivated i. To track these events let's override the OnActivated and OnDeactivated functions in the game class. During application deactivation we will put the game in pause mode so the dialogue message about resuming the game will appear when user returns to it.

Besides, not to waste calculating resources of the phone in deactivated state, let's add the following code to the beginning of the Update function in the game class:. Our game to be precise, game content is loaded within several seconds and displays only black screen during this time period. We should show users that the application is working. To do so we should draw a nice splash-screen to show it at the game launch:. It will be shown automatically if you just to add the SplashScreenImage.

We'll have to re-make content load. At first we do texture for splash-screen and draw it during the first call of the Draw function. Then we load the rest content and launch the game. Till the rest content is loading, splash-screen is displayed. Plus let's put game name and description in the same file in the Title and Description attributes. Let's remove the unnecessary requirements section. In this section we will leave only for accelerometer support. We don't need the rest parts in this version of the game.

The first picture is needed for game display in the Games section and the second one is needed for start screen of the phone.

As our game will be for money, we need to add trial mode support. Trial check is already built to the platform and is done with the help of the Microsoft. LicenseInformation class:. As the function is rather slow, we won't call it each game cycle iteration.

Instead of this we will call it only when the application is activated in the OnActivated function of the game class and the result will be saved in variable. If the application is launched in the trial mode, then after several minutes, the window offering game purchase or starting a new game appears. Everything is almost ready and we send the application to Windows Phone Marketplace.

Before publication it is carefully tested by Microsoft and after several days it gives the verdict: declined. What is the reason? Hardware button "Back" should work must work in a certain manner, that is return users to the previous screen.

You can exit the application using the button if user is on the start screen of the application main game menu only. If you are in the pause mode then the button must return you back to the game. In our case, the button always called application exit. Let's remove this code and apply the correct work of the button and send it to Microsoft review again. Repeated review will take less time. Yes, the application is accepted! Now the game is in Windows Phone Marketplace.

All in all we spent about two weeks on the game development and two weeks on publishing to the marketplace. At the end we got a nice and attractive game:. In a week after submission, the game appeared in Top paid games in Windows Phone Marketplace. What can we conclude from our experience in this game development? The answer is: creation games for Windows Phone 7 is really very simple!

Want to benefit by our experience in mobile application development for Windows Phone? Start with your project estimation right now! Start a Project Live Chat. Introduction How quickly can you create a fully-featured game for modern phone working under Windows Phone 7? Game idea We won't clone other games. Everyone who's programmed for Microsoft Windows knows of Charles Petzold. He's a technical author for Windows applications and also a Microsoft Most Valuable Professional who's written numerous books on programming since his first one in , Programming Windows.

Now he wants to teach everyone about the newest mobile OS with his book, Programming Windows Phone 7. The best thing about his new book— it's FREE! If you're interested in writing software for Windows Phone 7, this is one manual you can't live without. I wouldn't bother with Vista personally as there's been a number of reported issues.

Add a comment. Active Oldest Votes. Noting the system requirements of the emulator Joel blogged his experiences doing just this with XP here. Improve this answer. Mick N Mick N Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Is there any workaround that has been made to overcome this? No, I don't see XP in that list. Clearly it is being verified by the installer, you simply won't get it installed. A workaround to the install constraint has been explored in a few posts over at msdn wp7 answers forum. There has been no definitive confirmation of ways around this or reasons confirmed why the restriction exists though an xna requirement has been noted in the linked thread.

One such post you can check out is here. I'd like to be able to workaround this myself even if the capability was limited just so I can do some testing across multiple pc's some of which still run xp. Edit: There is an update on this thread which might be worth trying. It just crashes on runtime. Or u could download something called VM Virtualbox which allows you to run a virtual machine of any kind. Once you have that you could make a new VM virtual machine and make the OS win 7 and install it there!

Well look for the baseline. Stack Overflow for Teams — Collaborate and share knowledge with a private group.



0コメント

  • 1000 / 1000