title: drawing pacman in Java
body: <p>Hello for a school exercise i need to create a game and i decided to create Pacman. Everything goes well but one thing i can't accomplish is to draw a pacman dude and his ghosts.. i made and oval but what now? i want the pacman mouth also to open and close as it moves. can someone help drawing this? </p>
  
  <p>below what i have till now: </p>
  
  <pre><code>package h04PacMan;
  
  import java.awt.*;
  
  public class DrawPacMan {
  
  public void drawPacMan(Graphics g, int x, int y, Color color) {
  
      g.setColor(color); // set color
      g.fillOval(x, y, 50, 50); // paint
      g.setColor(Color.black);
      g.drawOval(x, y, 50, 50); // outline
      // mouth?
  
  }
  
  public void drawGhost(Graphics g, int x, int y, Color color) {
  
      g.setColor(color); // color
      // here goes shape
  
  }
  
  }
  </code></pre>