■ CONTENTS
xvi
Gestures ............................................................................................................................................. 454
Accelerometer .................................................................................................................................... 456
Game in Focus: Diamond Lines, Part I ........................................................................ 457
Sprite Configuration ........................................................................................................................... 458
Game Flow ......................................................................................................................................... 459
Input Processing ................................................................................................................................ 460
Sprite Animation ................................................................................................................................ 461
Using Silverlight for Game Development .................................................................... 462
■Chapter 14: Enhancing Your Silverlight Games ................................................ 463
Game Navigation ......................................................................................................... 463
Defining the Navigation Flow ............................................................................................................. 464
Redirecting Navigation ....................................................................................................................... 465
Implementing the Navigation Flow .................................................................................................... 466
Navigating Between Pages ................................................................................................................ 469
Maintaining Game State ..................................................................................................................... 470
Game Settings ............................................................................................................. 472
Creating a High Score Table ....................................................................................... 474
The High Score Table Classes ............................................................................................................ 474
Instantiating the HighScores Object ................................................................................................... 476
Adding New Score Entries ................................................................................................................. 477
Displaying the Scores ........................................................................................................................ 478
Playing Music and Sound Effects ................................................................................ 479
Accessing the XNA Audio Library ....................................................................................................... 480
Initializing the XNA Dispatch Timer .................................................................................................... 480
Playing Sound Effects ........................................................................................................................ 481
Playing Music ..................................................................................................................................... 484
Application Life Cycle .................................................................................................. 485
Exploring Tombstoning Behavior in Silverlight .................................................................................. 486
Storing and Restoring State ............................................................................................................... 486
Game in Focus: Diamond Lines, Part II ....................................................................... 488