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 and improving the environments according to the skill level

Now, we have to make some changes to the main game class to configure many behaviors according to the selected skill level.

  1. Stay in the project, 3DInvadersSilverlight.
  2. Click on 3DInvadersSilverlight in the Solution Explorer.
  3. Select Project | Add Reference... and select System.Xml.Linq. Then, click on OK.
  4. Open InvadersGame.cs.
  5. Add the following lines of code at the beginning. We are going to use LINQ (Language-Integrated Query) to XML:
    using System.Linq;
    using System.Xml.Linq;
    

    Note

    C# 3.0 (Visual C# 2008) introduced LINQ. It is very useful for processing queries for many different data sources. The features of LINQ and its usage in real-life scenarios are described in-depth ...

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