**This is programming with Java. Im a bit confused.. When answering if you could be kind enough to explain as well** Input When your program runs, it should have a dialog with the user. Ask the user: 1) the x and y location of the center of each asteroid as well as its size (allow the user to decide how many asteroids), 2) the current score, 3) the number of lives remaining, 4)the x and y location of the player’s spaceship, 5) the x and y location of at least 1 alien spaceship, and 6)the color of the player’s spaceship and the alien spaceship (use integers, e.g. 1=red, 2=blue, 3=green). Make sure the user enters values that will look good (e.g. each asteroid should display fully on the screen). Give the user a range of acceptable values in each prompt and make them repeat each input until they get it right. Important Tip: Instead of storing the asteroid locations and sizes, draw each asteroid as soon as the user has entered its x, y, and size values. Output When the stage appears, it should look a bit like a scene from an Asteroids game.
**This is programming with Java. Im a bit confused.. When answering if you could be kind enough to explain as well**
Input
When your program runs, it should have a dialog with the user.
Ask the user:
1) the x and y location of the center of each asteroid as well as its size
(allow the user to decide how many asteroids),
2) the current score,
3) the number of lives remaining,
4)the x and y location of the player’s spaceship,
5) the x and y location of at least 1 alien spaceship, and
6)the color of the player’s spaceship and the alien spaceship (use integers, e.g. 1=red, 2=blue, 3=green).
Make sure the user enters values that will look good (e.g. each asteroid should display fully on the screen).
Give the user a range of acceptable values in each prompt and make them repeat each input
until they get it right.
Important Tip: Instead of storing the asteroid locations and sizes, draw each asteroid as soon as the user has entered its x, y, and size values.
Output
When the stage appears, it should look a bit like a scene from an Asteroids game.
Step by step
Solved in 5 steps with 2 images