Your project manager wants you to add four skill levels to the game:
Rookie
Beginner
Intermediate
Advanced
Each skill level has to define different parameters for the game. The player must be able to select the desired skill level and the game must consider its related parameter values.
Now, we are going to create an XML file to define some values for a few parameters:
1. Stay in the
3DInvadersSilverlight
project.2. Right-click on
3DInvadersSilverlight
(the main project) in the Solution Explorer and select Add | New item... from the context menu that appears. A dialog box will then appear.3. Select XML File from the list, enter the name
SkillLevels.xml
for this new file, and click on Add. A new item will be added to the3DInvadersSilverlight
project, namedSkillLevels.xml
, with the following line of XML code:<?xml version="1.0" encoding="utf-8" ?>
4. Add the following line to start defining
SkillLevels
:<skillLevels>
5. Add the following lines to...