Пример #1
0
        public void StartNewRound()
        {
            _score.Reset();

            CurrentScoreChanged?.Invoke(0);

            _roundPhotos = GetRoundPhotos();

            RunNextPhoto();
        }
Пример #2
0
        public void ProcessTick(double msSinceLastTick)
        {
            _runningPhoto.Move(msSinceLastTick * _settings.VelocityInPxPerMs);

            if (_game.Board.PhotoIsOutside(_runningPhoto))
            {
                if (_chosenBucket != null)
                {
                    _score.ChangeScore(_chosenBucket.Matches(_runningPhoto));

                    CurrentScoreChanged?.Invoke(_score.TotalScore);
                }

                RunNextPhoto();
            }

            TickProcessed?.Invoke();
        }