Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started