3
A story in two pages
Computing 2: Unit 10, pp. 134–148
GoalPlan a story with a beginning, a middle and an end, and test each page.
New words
page · one picture or scene of a storystoryboard · pictures that show the parts of a story in orderplan · to decide what to do before you do it
Explanation
A story can have more than one page. Each page is one scene with its own characters. A story has a beginning, a middle and an end. First draw a storyboard to plan the pages. Then write an algorithm for each character. A block at the end of a page can send the story on to the next page. Test one page at a time.
Worked examples
| Page | What happens | Characters |
|---|---|---|
| 1 | the kitten wanders away | kitten |
| 2 | the girl finds the kitten | girl, kitten |
The algorithm for the kitten on page 1 is: start on green flag, move right 4, say “Mew!”, stop. The program matches it.
On page 2 the girl starts on tap. She moves left 3, says “Here!” and hops 2. We test page 2 on its own before we run the whole story.
Class activity
Story fold: fold a sheet of paper in half to make two pages. Draw page 1 on the left and page 2 on the right. Write one sentence under each. Then tell the story to a grown-up and say which characters need a script on each page. Act out page 1, check it, and then act out page 2.
Practice
1
A story has a beginning, a middle and an end. Put these in order: A the flower is given to Grandma, B a seed is planted, C a flower grows.
B, C, A.
2
Why is it a good idea to test page 1 before you make page 2?
If there are bugs on page 1, we find them early and page 2 starts from a correct page.
3
Write the algorithm for the Boat character on page 2.
1 Start on tap. 2 Move right 3. 3 Shrink 2. 4 Say “Land!”. 5 Stop.
4
Draw a storyboard with two pages for a story about a boat. What happens on each page?
Any sensible story with a different scene on each page, for example page 1 the boat leaves the harbour and page 2 the boat reaches an island.