
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
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
- Please Java codearrow_forwardIn java Develop a menu-based shape-maker, using randomly generated sizes & characters: pyramid, inverted pyramid, diamond, and hourglass. Use functions to perform tasks, including separate functions for generating a random integer in a range and for generating a random character in a range. The four different shapes are made from a randomly generated printable character and a randomly generated maximum width between 4 and 12. Beneath the shape, print a descriptive caption stating the symbol and the maximum width. define the random integer and random character functions in a separate class in a separate source code file and call these functions from the shape maker.arrow_forwardI am a freshman and new to Java. I am making an Elevator Simulation as my project but don't know how it works. I tried to upload the code I had but I was having format problem. So on the bottom, I wrote some classes and wrote what I am planning to write inside. It would be helpful if any of you can tell me what I need to improve or add. Instructions: The goal is to create an elevator simulation using object-oriented programming and polymorphism. The simulation involves 8 elevators, each of which can be one of 4 types with different percentages of requests, and 4 types of passengers with different percentages of requests. The elevator types include Standard, Express, Freight, and Glass elevators, while the passenger types include Standard, VIP, Freight, and Glass passengers. The simulation starts with a specified number of passengers added to different floors of the building, and during the simulation, the elevators will move up and down the building, picking up and dropping off…arrow_forward
- Tic-Tac-Toe Game. Develop a Simple Java Application that demonstrates the functionality of a tic-tac-toe game Tic Tac Toe O X O X Xarrow_forwardPlease code in java! What you will have to do is make this simple game! if you can not make the game start off with the layout and try to make the starter code! Thank you!!!arrow_forwardPlease help me with thisarrow_forward
- An interesting GUI component in Java is the Slider. Indeed, sliders allow a user to specify a numeric value within a bounded range.Write a program in Java using sliders to simulate the measurement of the temperature in Celsius using a digital thermometer. The following must be achieved: Design the thermometer using an appropriate shape and include the slider inside the shape with tick marks. Use proper layout managers and containers. The thermometer will measure temperatures between -20 oC and 110 oC upon sliding the GUI slider component. The temperature will be displayed in a text field or label. Using another label, a message will be displayed when the temperature reaches a certain value. For example, at -20 oC, the message “It’s ice cold” is displayed, at +10 oC, the message “It’s quite cold” is displayed, at +35 oC, the message “It’s hot” is displayed, etc.arrow_forwardC. Create a "Magic 8 Ball" Java program with a GUI using JavaFX. Minimum requirements: Use at least one layout pane to organize and contain nodes (e.g. Pane, Stack Pane, Flow Pane, Grid Pane, Border Pane, HBox, VBox) Use at least two graphics elements (e.g. shapes or images). Make some of your shapes filled and others unfilled. Both shapes must be different. Use at least three JavaFX User Interface (UI) controls (e.g. Label, Button, Check Box, Test Field, Text Area, Combo Box, List View, Scroll Bar, Slider. At least two of the three must be different. Use at least two common “set” properties or methods for nodes (e.g. setTitle (for Stage), setFill or setFont (for Text), setValue (for ComboBox) Use at least two common “get” properties or methods for nodes (e.g. getValue (for ComboBox), getText (for TextField)) Handle at least one user generated event (e.g. button click, mouse click, etc.)arrow_forwardWrite a code using C# for the following images.arrow_forward
- Please make a java gui ( the program make a tic tac toe grid with black and red X’s and O’s and then there should also be a score board. Make it similar to the one belowarrow_forwardChapter 18 Problem 38.PE Textbook: Introduction to Java programming and datastructure. 11th Edition Y. Daniel Liang Publisher: PEARSON ISBN: 9780134670942 This code is taken from your website does not work. package e38; import javafx.application.Application;import javafx.event.ActionEvent;import javafx.event.EventHandler;import javafx.scene.Scene;import javafx.scene.control.Button; import javafx.stage.Stage;import javafx.geometry.Pos;import javafx.scene.control.Label;import javafx.scene.control.TextField;import javafx.scene.control.Textfield;import javafx.scene.layout.BorderPane;import javafx.scene.layout.HBox;import javafx.scene.layout.Pane;import javafx.scene.shape.Line;import javafx.stage.Stage; public class E38 extends Application { @Override public void start(Stage primaryStage) { // Create a pane TreePane tp = new TreePane(); // Create a textfield TextField tfOrder = new TextField(); // Set the Depth…arrow_forward#Testing Please test my code and see if it meet the follwing needs: The class should implement the Comparable interface. Circle one is less than Circle two if the radius of Circle one is less than the radius of Circle two. The two Circles are equal if they have the same radius. Circle one is larger than Circle two if its radius is larger. If circle One.compareTo circle Two <> 0 The Test Class displays a menu that allows the user to: Enter a Circle (the user only needs to enter the radius). Print all Circles (print the toString for each Circle in the ArrayList). Quit To adda a circle Cases: The ArrayList is empty The new circle is less than the first circle, add it at the beginning. The circle is greater than the last circle, add it at the end The new circle belongs somewhere in the middle. import java.lang.Math;public class Circle implements Comparable<Circle> {private double radius;public Circle(double radius) {this.radius = radius;}public double findArea()…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education