hey everyone i am pretty new to programming and i need a little help
with a code that i am writting it is a pacMan and i need it to open and close its mouth but i am not sure how to do that i started an array with the degrees needed to open and close that mouth but i dont know how to put it into a code that will make it work well this is what i hava so far if any one can help i would appreciate it a lot
thanks for your time
import acm.graphics.*;
import acm.program.*;
import java.awt.*;
public class pacMan extends GraphicsProgram
{
int startpoints []={0,15,30,45,30,15};
int sweeppoints []={0,330,300,270,300,330};
public void run()
{
PacManMouth();
setSize(800,600);
GArc pac = new GArc( 10,50,100,100,30,300);
add(pac,0,400);
pac.setFilled(true);
pac.setFillColor(Color.yellow);
while(true)
{
int postion=0;
pac.move(1,0);
pause(20);
}
}///end run
public void PacManMouth()
{
}
}///end class