Exemple #1
0
 public void PlayStation(int id)
 {
     current_id = id;
     audioService.PlayAudio(Stations320[id]);
     isPlaying   = audioService.IsPlaying();
     play.Source = new FileImageSource {
         File = "pause.png"
     };
     ChangeImage(id);
 }
Exemple #2
0
        //Oyun başlangıcı için konfigürasyon işlemi yapıldı.
        private async void StartGame(object obj)
        {
            _audio.PlayAudio((int)SoundEnum.WinSound);
            Game game       = _gameService.StartNewGame();
            var  width      = Application.Current.MainPage.Width;
            var  storyboard = new Animation();
            var  animation  = new Animation(callback: d => _button.Rotation = d,
                                            start: _button.Rotation,
                                            end: _button.Rotation + 360,
                                            easing: Easing.SpringOut);

            _button.Animate("Loop", animation, 1, 250, Easing.SpringOut);

            await _button.ScaleTo(2, 1000, Easing.SpringIn);

            await _button.ScaleTo(1, 1000, Easing.SpringOut);

            app.ChangePage(new GamePage(game, app)
            {
                BackgroundColor = App.CokKoyuTonRenk
            });
        }