WEEK: 14

Homework

In this homework, you are going to use your project from last time to implement and use arrays.

Homework 14 Walkthrough

Homework 14 Example

Specifications

  1. Place multiple obstacles (at least 5) of different sizes and colors on the screen.
  2. Use arrays to create the shapes.
  3. Move the obstacles randomly around the screen. If they leave the screen, have them come back on the other side.
  4. Click the mouse to add a non-moving obstacle to the screen.
  5. Create an exit
  6. If the player gets to the exit, display a message on the screen that says you win.
  7. Ignore all collisions.
  8. Take the Kahoot Quiz and screenshot your results.
  9. Upload everything to GitHub and turn in your link.

Looking for more to do? (extra credit)

  1. Keep adding objects to the screen whenever the mouse is clicked.
  2. Move the objects that are added whenever the mouse is clicked.

Previous section: