Storytelling Through Computer Animation
Assignment A17: looping
Objectives- Learn more about looping and learn to use different types of loops
In programming languages, looping makes it easy to do repetition.
We have actually already seen several types of loops.
Remember An Unwelcome Visitor:
Uses the following Infinite Loop type:

and uses the following Counted Loop type:

We have also learned to use the Counted Loop type with the random number for the count:

Inside of A Robot's Wish:
We used another kind of loop.
The While Loop type:

Your task: (which is to be completed individually, though consultations are encouraged...)
In this assignment, you will use both multiple loop types and random numbers.
- Your animation must tell a story.
- Your animation must use 2 of the following 3 different types of loop, and each of these loops must be used in some sensible way in your animation:
- Infinite Loop: Loop infinity times.
- Counted Loop: Loop x times, where x is a integer or a random number.
- While Loop: While (sentinal loop condition)
- Your animation must use either random numbers and/or random probabilities.
Create an artist's statement as
follows:
- Describe the basic plotline(s) of your story.
- Explain where you used the loops, and describe how they enhance your story.
- Explain where you used the random numbers, and describe how they enhance your story.
Submit two files: the Alice scene yourusername-A17 and the artist's statement yourusername-A17 to Moodle before class.