ahandrewh teaches IAT-165game design and development

E2: Mapping variables (due January 21)

Instructions

This exercise will help you practice working with variables in code.

Please complete the following:

  1. Continuing from the file built in the code tutorial on variables, add a sun to the background of the scene. For this sun:
    • Make sure its positioning and size are adjustable using variables.
    • Ensure the sun is yellow.
    • If portions of the sun are lower than the horizon make sure they are not visible.
  2. Run the sketch using the play symbol to ensure the output is as you expect.
  3. Save the sketch to your computer.

Submission

Once done please submit a ZIP of your exercise to Canvas before class on January 21.

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: