/// <summary> /// The constructor for the Demo Page. /// </summary> public DemoPage() { InitializeComponent(); game = new DemoGame(myCanvas); game.GameOver += Game_GameOver; InitializeKinect(); }
/// <summary> /// The constructor for a GamePage. /// </summary> public GamePage(List<Player> gamePlayers, KinectSensor passedSensor) { InitializeComponent(); game = new Game(myCanvas, gamePlayers); skeletonsInFrame = gamePlayers; sensor = passedSensor; InitializeKinect(); game.GameOver += Game_GameOver; }