Using Java, create a Pac-Man game with graphical interface implemented in Java FX. The minimum rules of the game are described below. You must comment all code.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Using Java, create a Pac-Man game with graphical interface
implemented in Java FX. The minimum rules of the game are
described below. You must comment all code.
Control: The game requires only a directional control or joystick, as it
involves just moving Pac-Man in any of the four main directions, i.e. up,
down, left, and right, in a single maze-like room that MUST BE as the
image given below:
1UP
70
HIGH SCORE
10000
O
C
Objective: Eat all 240 Pac-dots and four energy pills inside the
maze. The Pac-dots are worth 10 points each and the energy pills are
worth 50. When all are consumed, the game advances to the next level, which
takes place in the same room/labyrinth.
Fruits: A bonus fruit appears after you eat 70 Pac-dots and again after
another 100 Pac-dots. Level 1 has a cherry worth 100 points, level 2 has a
strawberry worth 300 points, and level 3 has an orange worth points500
points. Points are cumulative i.e. keep increasing with each level.
Ghosts: Blinky (red) and Pinky (pink) will chase you, while Inky
(green) and Clyde (orange) move around randomly. Blinky increases in
speed as you eat more points.
Power Pills: Power Pills turn ghosts temporarily blue, and you can
eat them for a while. The first ghost eaten gives you 200 points, and this
doubles each time until the last ghost is eaten which gives you 1.600 points.
The amount of time the ghosts remain blue gets shorter with each level.
Lives: The game gives you three lives, and you lose one every time you
touch a ghost. You gain an extra life during the game when you reach
10.000 points. If you lose all lives, the game is over.
Transcribed Image Text:Using Java, create a Pac-Man game with graphical interface implemented in Java FX. The minimum rules of the game are described below. You must comment all code. Control: The game requires only a directional control or joystick, as it involves just moving Pac-Man in any of the four main directions, i.e. up, down, left, and right, in a single maze-like room that MUST BE as the image given below: 1UP 70 HIGH SCORE 10000 O C Objective: Eat all 240 Pac-dots and four energy pills inside the maze. The Pac-dots are worth 10 points each and the energy pills are worth 50. When all are consumed, the game advances to the next level, which takes place in the same room/labyrinth. Fruits: A bonus fruit appears after you eat 70 Pac-dots and again after another 100 Pac-dots. Level 1 has a cherry worth 100 points, level 2 has a strawberry worth 300 points, and level 3 has an orange worth points500 points. Points are cumulative i.e. keep increasing with each level. Ghosts: Blinky (red) and Pinky (pink) will chase you, while Inky (green) and Clyde (orange) move around randomly. Blinky increases in speed as you eat more points. Power Pills: Power Pills turn ghosts temporarily blue, and you can eat them for a while. The first ghost eaten gives you 200 points, and this doubles each time until the last ghost is eaten which gives you 1.600 points. The amount of time the ghosts remain blue gets shorter with each level. Lives: The game gives you three lives, and you lose one every time you touch a ghost. You gain an extra life during the game when you reach 10.000 points. If you lose all lives, the game is over.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education