示例#1
0
        //Restart after losing life. Перезапуск гри після втрати спроби гравцем
        public void Restart()
        {
            tmr_movement.Stop();
            pacman.ResetPosition();
            blinky.ResetPosition();
            pinky.ResetPosition();
            inky.ResetPosition();
            clyde.ResetPosition();
            Ghost.ResetChaseScatter();
            Ghost.travellingGhosts = 0;

            ShowReadyText();

            wmp_game_start.Stop();
            wmp_game_start.Open(new Uri("Sounds/game_start.wav", UriKind.Relative));
            //wmp_game_start.Position = new TimeSpan(0);
            //wmp_game_start.Position = new TimeSpan(0, 0, 0, 3, 935);
            wmp_game_start.Play();
            //textTimer.Start();
        }