COSC 3550 - Computer Games
Assignment #1

Due Date: Friday, Jan 24, 2020

GOAL: Write a JavaFX application that displays a picture. The image should be about 600 pixels wide by 500 pixels high. Your picture should involve at least two types of shapes (lines, rectangles, ovals, etc.) and at least two colors. Remember, you can find details of what types of shapes, colors, etc. are available by reading the JavaFX API for the GraphicsContext class. I would suggest starting with the City.java demo from class and just modifying the render() method.

You should use for-loops to draw multiple copies of the shapes, not just a lot of separate draw statements. For instance, you might draw six red squares in a row across the top and 8 blue circles along a diagonal line across the image (using two for-loops), giving something like:

EXTRA: As explained in the course syllabus, completing the bare minimum program will earn you a B+ on this assignment. To get a higher grade, you should do something extra to show off. What you do is up to you, but it should demonstrate that you have thought more about your program.

For this assignment, possibilities might include changing the sizes of the shapes across the screen, drawing some fancier pattern, alternating colors, etc.

I'm happy to answer questions about whether some proposed extra work would be worth an A-, A, etc.

HAND-IN: You should submit a copy of your .java file using the D2L dropbox for Assignment #1. Your program should be submitted before 11:59PM on Friday. Be sure that your program includes comments saying who wrote it and why.