Ejemplo n.º 1
0
        //Heare is the logic for gaming
        private void render()
        {
            PacMan pacMan = new PacMan(0, 0, this.graphics, this);

            while (true)
            {
                pacMan.move(this.graphics, this, moveDirection);

                game.updateScore(pacMan.getScore());
                updateLeftSores(pacMan.getScore());
            }
        }
Ejemplo n.º 2
0
        //Heare is the logic for gaming
        private void render()
        {
            PacMan pacMan     = new PacMan(0, 0, this.graphics, this);
            Label  scoreLabel = new Label();

            scoreLabel.Width  = 250;
            scoreLabel.Height = 50;
            scoreLabel.Left   = 3;
            scoreLabel.Top    = 802;
            scoreLabel.BringToFront();
            while (run)
            {
                pacMan.move(this.graphics, this, moveDirection);

                game.UpdateScores(pacMan.getScore());
                UpdateLeftSores(pacMan.getScore());
            }
        }