ahandrewh teaches IAT-165game design and development

E7: Repetition (due February 25)

This is old content

Andrew is not currently teaching IAT-165. This material is left online for reference only.

Instructions

This exercise has you working with iteration to generate elements.

Please complete the following:

  1. Continuing from the tutorial on iteration, please:
    • Add back the generation of clouds (done in an earlier exercise).
    • Use variables and loops to enable the generation of a series of clouds.
    • Ensure the clouds are able to move across the screen slowly.
  2. If interested — as a bonus challenge — use loops and random() to generate clouds of differing sizes and shapes.
  3. Run the sketch using the play symbol to ensure the output is as you expect.
  4. Save the sketch to your computer.

Submission

Once done please submit a ZIP of your exercise to Canvas before class on February 25.

You are allowed to use this exercise as part of your projects if useful.

Grading rubric

This code exercise is worth 1% (1 point) of your final grade for completing the exercise steps.

Exercise rules

Please note the rules for exercises in this course: