O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—adding a transition to start the game

Your project manager does not want the game to start immediately. He wants you to add a button in order to allow the player to start the game by clicking on it. As you are using Balder, adding a button is not as simple as expected.

We are going to add a button to the main page, and we are going to change Balder's default game initialization:

  1. Stay in the 3DInvadersSilverlight project.
  2. Expand App.xaml in the Solution Explorer and open App.xaml.cs— the C# code for App.xaml.
  3. Comment the following line of code (we are not going to use Balder's services in this class):
    //using Balder.Silverlight.Services;
    
  4. Comment the following line of code in the event handler for the Application_Startup event, after ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required