Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COMP 1 0 0 6 2 : Assignment 1 Nicholas Moore, Mohawk College, 2 0 2 3 , with acknowledgements to Sam Scott The Assignment:

COMP10062: Assignment 1
Nicholas Moore, Mohawk College, 2023, with acknowledgements to Sam Scott
The Assignment: Arkanoid Screen
This assignment is about using variables, data types, loops, if statements, and FX Graphics to draw a
single screen from the game "Arkanoid" using parameters from the user.
Setup
Use the FXGraphicsTemplate for this assignment. Change the class name to something meaningful and
change the window title, and size of the stage to whatever you want.
The Arkanoid screen (see picture below) is divided into two regions.
The game region contains the bricks, ball and paddle.
The display region contains the player's score, what level they are on, and the high score.
You can decide where to put these two regions, but be sure there is a clear separation.
Input
When your program runs, you should start by having a dialog with the user using standard input (don't
show the JavaFX stage until after this dialog is over). Ask the user:
How many rows and columns of bricks they want.
What the current score is, what the high score is, and what level (or "wave") they are on.
The ball position
The paddle x position
Make sure the user enters values that will look good (e.g. between 1 and 10 for rows and columns). In
the case of the ball and paddle, ensure the user enters values that are inside the game region (as given
above). If the current score is greater than the high score that the user entered, make the high score
with the current score. Tell the user in each prompt what the range is and make them repeat each input
until they get it right.
Output
Now draw the game using the values entered by the user. You should have a grid of bricks, a ball, a
paddle, the current score, high score and level or "wave", as well as something separating the game and
display regions.
image text in transcribed

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions