Portfolio

Line

Pacman


Program Description

poker client

An application written in java to emulate the classic namco video game pacman. The player controls Pac-Man through a maze, eating pac-dots. When all dots are eaten, Pac-Man is taken to the next stage. Four enemies (Blinky, Pinky, Inky and Clyde) roam the maze, trying to catch Pac-Man. If an enemy touches Pac-Man, a life is lost. When all lives have been lost, the game ends.
This program stores the top scores in a MYSQL database.
It outputs report scores in xml file.


Features



Code Snippet

 

    private PacmanImg pacmanImages;

    public int viewdx, viewdy, pacmanx, pacmany, reqdx, reqdy;
    public int pacmananimpos = 0;

    public Pacman()
    { setPacmanImages(new PacmanImg());

    }
    
      public void DrawPacMan(Graphics2D g2d) {
        if (viewdx == -1)
            DrawPacManLeft(g2d);
        else if (viewdx == 1)
            DrawPacManRight(g2d);
        else if (viewdy == -1)
            DrawPacManUp(g2d);
        else
            DrawPacManDown(g2d);
    }




Screenshots

First level in pacman. Second level in pacman Game Over Screen



« Back to the desktop applications