Question: I need a java code for just that conditions ; [dont need a code for pacman move or timer etc..] I'm writing Pacman code but
I need a java code for just that conditions ; [dont need a code for pacman move or timer etc..] I'm writing Pacman code but need those things ;
- I need a GHOST AI code i will give one of my wall code at the end of question , i need ghost move like AI and if there are a wall go another side ( I couldn't write that code)
- I need a bait producing code ; ( every line except walls have to bait and rarely %6 chance different type of bait is coming (could be big just its size) and every bait needs give point to pacman)
One of my wall code is ;

public void paint(Graphics g) { super.paintComponent(g); this.setBackground(Color.BLACK); Graphics2D g2D = (Graphics2D) g; GradientPaint paint = new GradientPaint(0,100, Color.GREEN, 0,300, Color.BLUE); GradientPaint paint1 = new GradientPaint(100,400, Color.GREEN,300,600, Color.BLUE); g2D.setPaint(paint); g2D. fillRect(50,50, 200, 10); g2D.setPaint(paint); g2D.fillRect(50,50,10,200)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
