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—changing the transition effect

Your project manager liked the transition effect. However, he has been watching the demo application included with the library and he wants you to test other effects. As he is going to ask you to test dozens of effects, you want to prepare the code to make it simple to change a transition effect.

Now, we are going to use different transition effects before the game starts:

  1. Stay in the 3DInvadersSilverlight project.
  2. Open MainPage.xaml.cs.
  3. Replace the line that creates the BloodTransitionEffect instance in the ApplyTransition method with the following one. (We want to apply a swirl transition effect.):
    var transitionEffect = new
    TransitionEffects.WaterTransitionEffect();
    
  4. Replace the line that calls the ...

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