Answered step by step
Verified Expert Solution
Link Copied!

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 ;

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

Advance warning and an explanation for the layoff.

Answered: 1 week ago