Exemplo n.º 1
0
        //Initialize game essentials
        private void SetupGame(SlideCategories category)
        {
            Slides   = new SlideCollectionViewModel();
            Timer    = new TimerViewModel(new TimeSpan(0, 0, 1));
            GameInfo = new GameInfoViewModel();

            //Set attempts to the maximum allowed
            GameInfo.ClearInfo();

            //Create slides from image folder then display to be memorized
            Slides.CreateSlides("Assets/" + category.ToString());
            Slides.Memorize();

            //Game has started, begin count.
            Timer.Start();

            //Slides have been updated
            OnPropertyChanged("Slides");
            OnPropertyChanged("Timer");
            OnPropertyChanged("GameInfo");
        }
Exemplo n.º 2
0
        private void SetupGame(SlideCategories category)
        {
            Slides   = new SlideCollectionViewModel();
            Timer    = new TimerViewModel(new TimeSpan(0, 0, 1));
            GameInfo = new GameInfoViewModel();

            //,ax allowed
            GameInfo.ClearInfo();

            //display
            Slides.CreateSlides("Assets/" + category.ToString());
            Slides.Memorize();


            Timer.Start();


            OnPropertyChanged("Slides");
            OnPropertyChanged("Timer");
            OnPropertyChanged("GameInfo");
        }
Exemplo n.º 3
0
        //Initialize game essentials
        private void SetupGame(SlideCategories category)
        {
            Slides   = new SlideCollectionViewModel();
            Timer    = new TimerViewModel(new TimeSpan(0, 0, 1));
            GameInfo = new GameInfoViewModel();
            string assetFolder = new ResourceManager().GetAssetsFolder(category.ToString());

            //Set attempts to the maximum allowed
            GameInfo.ResetInfo();

            //Create slides from image folder then display them
            Slides.CreateSlides(assetFolder);
            Slides.InitialPeek();

            //Game has started, begin count.
            Timer.Start();

            //Slides have been updated
            OnPropertyChanged("Slides");
            OnPropertyChanged("Timer");
            OnPropertyChanged("GameInfo");
        }