Exemple #1
0
 public void Run()
 {
     State  = GameState.GAMERUN;
     Runner = new Task(runGame);
     Runner.Start();
     wallRunner = new Task(runWalls);
     wallRunner.Start();
     Pacman.Run();
     RedGhost.Run();
     BlueGhost.Run();
     YellowGhost.Run();
     PinkGhost.Run();
     RePaint();
 }
Exemple #2
0
        public void Run()
        {
            RePaint();
            State  = GameState.GAMERUN;
            Runner = new Task(runGame);
            Runner.Start();
            wallRunner = new Task(runWalls);
            wallRunner.Start();
            Clock = new Task(runClock);
            Clock.Start();

            RedGhost.Run();
            BlueGhost.Run();
            YellowGhost.Run();
            PinkGhost.Run();
            Pacman.Run();
            State = GameState.GAMEWAIT;
            parentForm.playSound(Properties.Resources.Pacman_Opening_Song);
            SetGameRun(4000);
        }