Viewing entries in
Computer Science

Create a Santa game for Christmas using Scratch

Create a Santa game for Christmas using Scratch

Screenshot from the completed activity

Christmas is near, and before we know it, we'll be into 2014. Next year the new National Curriculum becomes statutory, including the new Computing curriculum. As you will probably know, the new curriculum places a far greater emphasis on computer programming. Why not launch into 2014 with a Christmas-themed computer programming activity with your learners?

Santa is in training for Christmas Eve, and needs to ride around his 'cloud track', keeping his trail within the track. As he laps the track he will get quicker and quicker. How many laps can you do before his trail leaves the track?

This activity should be accessible to learners from Year 3 upwards. (During the past week, I have used it successfully with Year 3, 4 and 5 classes at Parkfield Primary in Wolverhampton). Older children can extend the activity - see the 'Possible extensions' section at the end of the post.


Creating 'The Santa Race' game

In this activity, your learners will create a simple Santa-themed game using ScratchScratch is a free piece of software from MIT in the US, and will be one of the most popular software choices for working with learners on the computing aspects of the new curriculum. If you work in a Wolverhampton primary school, you may well find that Scratch is already installed on your network. If not, request its install from your IT support technician, and download it now for yourself to try out the activity:

Here are the files you will need for the activity

Both images are from Openclipart.org.

Before working with students on the task, make sure you've had a run through it yourself first. As you work with your class try to highlight at least some of the following key ideas:

  • An algorithm is a sequence of instructions, organised in the correct order to achieve a particular goal. If you open the 'completed game' file linked to above, you will see two main algorithms in the scripts - these have been commented to highlight what each does.
  • Debugging is the identification of problems with your algorithms - i.e. they don't achieve what you intended them to - and then modifying or adding to your program to solve these problems. (In the Santa Race activity, the main example of this is when the algorithm to increase the 'lap number' is originally added .. and doesn't work as intended).
  • Repetition is the use of loops - e.g. 'forever' or 'repeat' commands 
  • Selection is the use of 'forever ... if' or 'if ... then' commands - i.e. commands in which something happens based on some criteria.

(These ideas are some of key pieces of terminology in the new Computing programmes of study for 2014)

Here are the two main algorithms from the completed game (click onto the images to open at full-size)

Possible extensions

Here are some possible extension activities that learners might make to the game:

  • Can you use the 'add comment' function in Scratch (right-click on the background behind the scripts) to describe, in detail, what each of the scripts does?
  • Can you make Santa 'countdown' before starting to move? e.g. say (in speech bubbles) "3 ... 2 ... 1 ... Ho! Ho! Ho!". Use 'say ... for x seconds' commands.
  • Can you record the countdown using the microphone on your laptop / a headset, and make it play as Santa counts down?
  • Can you make Santa shout out in delight every time he begins a new lap?
  • Can you reset Santa's starting position every time the game begins?
  • Can you add additional obstacles to the track, and make the game end if Santa crashes into them?
  • Can you use alternative 'costumes' for Santa's sleigh and change the costume to a 'crashed' version if he hits an obstacle?

I hope you and your class enjoy creating a Santa Race! As always, if your school requires support in implementing aspects of the new computing curriculum for 2014, please contact us.

Story-writing in Scratch 2

Comment

Story-writing in Scratch 2

If you're looking to get started with programming in using Scratch with students, and don't want to be predictable by focussing on game creation, an alternative approach is to use Scratch as an animation or story-telling tool. In the screencast below, I show you how this approach can work by creating a simple narrative featuring two characters.

You can download the Scratch template file used in the screencast here:

Note that the new version of Scratch is now an online tool, rather than a piece of software that you download and install. Visit scratch.mit.edu to get started.

For a variety of other ideas for using Scratch, I heartily recommend visiting The Digital Schoolhouse.

Comment

Story-writing using Scratch - a quick intro

Comment

Story-writing using Scratch - a quick intro

When we think about teaching computer programming to school-age learners, the tendency is to focus on games programming. I spent this morning, however, working with Key Stage 3 students at Penn Fields School using Scratch MIT to create stories instead. The students used Scratch to create their own version of the first meeting between Michael and Kensuke in Michael Morpurgo's book 'Kensuke's Kingdom'.

Megan's fantastic Scratch program; Michael is scared of monkeys ...

We used photographs of two of the students in a variety of poses - they played the roles of Michael and Kensuke - the backgrounds had been deleted from these images in photo-editing software (Fireworks). I had also done some additional preparatory work by scripting some short routines (called by the 'broadcast' command in Scratch) to make the characters move: walk, sit, stand and so on. The students had to sequence these instructions, add speech and thought commands, and then create their own 'broadcast' commands to bring the whole narrative into a single, linear sequence; you can see this in the image above. They then recorded their voices speaking the lines, and added sound effects to add atmosphere to their stories.

I was really impressed by the focus shown by many of the children, their ability to thoughtfully sequence their programs, and by the way they were able to troubleshoot timing problems to make their narratives as slick and realistic as possible. Well done, folks!

The Learning Technologies Team will be working on a number of computer science related projects with schools over the coming months, as we seek to support schools in preparing for the changes to the National Curriculum that will come into force for 2014.

Related link:

Comment