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 theApplyTransition
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
CreateTransition
function in the previously mentioned method with the following one. (We want to simplify the process used to change the effect.):Storyboard transitionSB = CreateTransition(transitionEffect, LayoutRoot, TimeSpan.FromSeconds...