Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

No advanced methods i am in intro to javaDeliverables .java files as requested below app.java myJFrame.java myJPanel.java As well as any additional needed XML files

No advanced methods i am in intro to javaDeliverables

.java files as requested below

app.java

myJFrame.java

myJPanel.java

As well as any additional needed

XML files

Basic Requirements

The final project game: The scenario is based on the Pennsylvania State University system. A character (a student, a football player, a famous Penn State icon, etc.,) will be walking around the state of Pennsylvania and will enter five campuses, one at a time. At each campus, the character will face challenges such as answering questions, solving a puzzle, or playing a game. The character will collect points in each location. After five visits, the game will end. Then, a final screen will be shown, displaying the character's rankings according to his/her performance.

Detailed RequirementsThe Map

The character will move on a map. It might be a sketch built with graphics (panels, buttons, etc.,) and a picture background.

The application has to have more than five campuses so the user has a choice of where to go. Find a creative way to also represent World Campus. It might be a special key or place for the character to enter World Campus. In order to enter the other campuses, the character has to be moved over the campus position on the screen.

The Campuses

As the character enters a campus, a new panel should show up. The panel will have one or more questions, or a challenge (a puzzle or a game). When the answer is given or the challenge is over, the character should be put back on the main map screen where he/she was last. You should keep score of the character's performance to use it in the final ranking.

The Character

The character has to be picked from a list of three choices. Each choice should make the character different; for instance, it might move faster, it might, more or less, be able to answer the questions, or have more or less speed or strength when he/she plays the games at each campus.

The Character's Movement

The character will be moved using the mouse. The mouse should have an icon representing the character.

The Theme

The user might choose from three different options for a game theme. For instance, the theme might be Penn State football and the questions and games will be themed around that. Also, the theme might be Math and the questions and puzzles will regard Math. The theme options are your choice.

Game Over

When the character has entered and interacted with five campuses, the game is over and a final screen with the character's ranking should be displayed.

XML

The text of the questions and of the final ranking should be kept in a file and read when needed. You have to use what you learned in the XML lesson to read and write the file. XML is the required format, and it should be used as explained in the lesson.

The Timer

The time (duration of game play) should be kept, displayed at all times (you might use a progress bar, for instance), and be part of the final ranking. You might choose to give a time limit and require players enter five campuses before the time limit is reached. A final screen and ranking should be shown anyway.

Class structure

All the projects:

have to start the basic class with the main method. It will construct a JFrame, specified below

will have their own JFrame extending from Java's JFrame. This JFrame will construct a JPanel specified below

will have their own JPanel extending from Java's JPanel

Java Code

It has to be based on the examples given in class and in the textbook. If you intend to use advanced code, clear it with the instructor first.

Suggestions

Use inheritance where appropriate. Use parameters to reuse code. For instance, the questions panel might use one panel class that receives different parameters (number of questions, name of the file with the questions, theme). Use the course examples and your own labs to get started. Start simple: start with something you might be more comfortable with. It might be the main screen, the character movement, or creating one questions/answers panel. Try to follow the lesson's examples and standards.

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_2

Step: 3

blur-text-image_3

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago