Exemple #1
0
 private void Yes(IUICommand command)
 {
     myCanvas.Children.Clear();
     Game = new GameBoard(myCanvas);
     GameObjectHelper.InitGameBoard(myCanvas, Level, TextBlockTime, Score, TextBlockLives);
     _mpBgr.Play();
     StartGameTimer();
 }
Exemple #2
0
 public MainPage()
 {
     this.InitializeComponent();
     NavigationCacheMode = NavigationCacheMode.Enabled;
     CreateCanvas();
     Game = new GameBoard(myCanvas);
     GameObjectHelper.InitGameBoard(myCanvas, Level, TextBlockTime, Score, TextBlockLives);
     _mpBgr.Source = Windows.Media.Core.MediaSource.CreateFromUri(new Uri(@"ms-appx:///Assets/sound.mp3", UriKind.RelativeOrAbsolute));
     _mpBgr.Play();
     StartGameTimer();
 }