Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The language used is Java This lab is due in 2 days, and I am lost, please help. Creating a 2D array Maze In this

The language used is Java

This lab is due in 2 days, and I am lost, please help.

Creating a 2D array Maze

In this lab, you are going to create a graphical maze based on a file that is read in and stored in a 2D array. First, you must create at least two files that are at least 10x5 of ones and zeros. When your program first starts, it should randomly choose between the two files and then display the maze. Based on the ones and zeros, they should show a block or space. (You should use an image to show a block (e.g. trees, bricks, stones.. your choice!). Then, you should create a character that you can move through the maze. If they run into a block, they should not be able to move. If it is empty, they should be able to move freely.

Specifics: 1. Create a GUI program that has a background of your choice. 2. You should create a 10x5 maze on the background (by using a 2-dimensional array). 3. Generate the maze from a randomly chosen file (You need at least two files). 4. The blocks should be an image. 5. You are to create player image that can be moved based on the keyboard 6. Once they get to the end, they should see a message that says they won.

Extra Credit: Create items that can be collected and increment the score if the player gathers the item (i.e. collides with them). Do not forget to display their score.

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

3. Be able to identify five types of interpersonal conflict.

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago