X hits on this document

216 views

0 shares

0 downloads

0 comments

101 / 102

   {

       // If user provided the requested info

       if (args.TaskResult == TaskResult.OK)

       {

           // Create, initialize and show SMS composer launcher

           SmsComposeTask smsComposeTask = new SmsComposeTask();

           smsComposeTask.To = args.PhoneNumber;

           smsComposeTask.Body =

               "Hello! Just discovered very good game called Catapult Wars. Try it by yourself and see!";

           smsComposeTask.Show();

       }

   };

   // Show the chooser

   phoneNumberChooserTask.Show();

}

This is the event handler for the new menu item. This handler launches the Phone Book application, gets back the chosen number and sends an SMS to this number.

This concludes the task and the exercise.

Now our game is enriched with tombstoning and state reloading features and allows share its score with a friend via SMS.

Summary

This lab introduced you to developing applications for the Windows Phone 7 platform using the XNA Framework. In the course of this lab you created an XNA Game Studio game for Windows Phone 7™, loaded the game’s resources, took care of the input, updated the game state and added game specific logic. Then we enriched the game with tombstoning and state reloading features and, after all added a possibility to share the game score with a friend via

Page | 101

Document info
Document views216
Page views216
Page last viewedSat Dec 03 10:59:33 UTC 2016
Pages102
Paragraphs3115
Words17333

Comments