Assignment 1 - Programming in Java

The assignment needs JavaFx software

Get Help With a similar task to - Assignment 1 - Programming in Java

Login to view and/or buy answers.. or post an answer
Additional Instructions:

COMP10062: Assignment 1 © Sam Scott, Mohawk College, 2021 The Assignment: An Asteroids Screen This assignment is about using variables, data types, loops, if statements, and FX Graphics to draw a single screen from the classic video game Asteroids, configured according to user input. (Don’t worry, it’s just a still screen – nothing has to move in this assignment.) 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 makes sense. Input When your program runs, it should have a dialog with the user (don’t show the JavaFX stage until after this dialog is over). 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, as shown below. Score and lives Asteroids Alien Spaceship Player’s Spaceship Copyright (Your name, 2021) NOTE: Your output does not have to look like the image shown above. For example, you could use circles for aliens, and squares for houses. And feel free to make the game as colorful as you like! But try to use at least two Java FX shapes to make the alien ship look like a flying saucer or something recognizable. You’re not going to be graded on your artistic skills! Documentation Standards Don’t forget to follow the Documentation Standards for the course (i.e. Javadoc commenting, meaningful variable and class names, consistent indenting). See Documentation Standards on Canvas. Handing In You have approximately 1 week to complete this assignment. See the due date and time in the Assignments area on Canvas. Hand in by attaching a zipped version of your .java (not .class) file to the drop box. (If you used images or sounds – see the extra challenges above – you must also include these files in the zip file.) Evaluation Your assignment will be evaluated for performance (40%), structure (40%) and documentation (20%) using the rubric in the Assignments area on Canvas. Extra challenge 3: Use the FXAnimationTemplate instead and add some animation effects such as a moving alien spaceship bullets. Maybe you could even figure out a way to add sound effects… Extra challenge 1: Find some authentic videogame images on line and use those instead of squares and rectangles. Image img = new Image("imagename.jpg"); gc.drawImage(img, x, y); Extra challenge 2: Add a “random” option that generates all the inputs randomly and displays the result (Math.random()*RANGE+MIN) generates a random double between MIN and MIN+RANGE-1.

Related Questions

Similar orders to Assignment 1 - Programming in Java
3
Views
0
Answers
Comp Sci: Python Caesar Cipher Script
here is the full assignment description: Project 1 Assignment Overview The Caesar cipher is named after Julius Caesar who used this type of encryption to keep his military communications secret. A Caesar cipher replaces each plaintext letter with one ...
11
Views
0
Answers
Assignment 1: The “Meepo is You” Game
- Starter Code is included Assignment 1: The “Meepo is You” Game Ms. Meepo, a high school teacher, likes the game “Baba is You” a lot. In this game, rules are blocks you can interact with. By manipulating these blocks, you can...
12
Views
0
Answers
Data Structures and Algorithm
needs to follow rubric...
28
Views
0
Answers
Python Project containing 4 tasks
2 Python files. Everything is in the pdf in detail...