Plan for Christmas Card – Improvements.

For the final week we are going to convert the Christmas Card into a Christmas Game.

We will be starting with the Christmas Card that we made last week, if you weren’t there or want to start with the same one that I will be using, have a look at the bottom of this document, I have added instructions on how to get it.

The Plan for this week.

We will be adding some additional Sprites. We will be using Scratch Sprites rather than drawing our own to save time.

  • A sprite for Santa’s sleigh
    • This will move backwards and forward across the top of the screen
  • A sprite for the Presents
    • This will fall from Santa’s sleigh to the bottom of the screen, not directly down though.
    • This sprite will have many costumes.
  • As sprite for you
    • You will be able to move Left and Right across the bottom of the screen to try and catch the falling presents.

The Sleigh Sprite

Scratch does not have a sleigh sprite, so I used the reindeer.

He needs to start on the top left of the screen and move all the way to the top right of the screen and then turn around and go back to the top left, he will just keep doing this.

The code might look something like this:

The Present Sprite

We might have to draw this one.

The present Sprite will start from wherever the Sleigh Sprite is glide down to a random place at the bottom of the Screen, you can make the Present a random size as well to make it more interesting.

The is a Scratch block to put one Sprite in the same place as another Sprite So the code to move down the screen will look something like this:

There will also be code to count the number of presents caught. So, if the Present Sprite touches you, it will count as being caught, so you can increase your score.

When the present is caught you can change to a random costume to display the unwrapped present.

I’ll let you figure out this code as a little challenge (I haven’t done it yet 😊 )

You Sprite

This is the one that catches the presents. I used the Scratch cat, finally.

Not much code for this one, he just needs to move left or right using the left or right keys on the keyboard. So, something like this:

Getting the Christmas Card project.

https://scratch.mit.edu

Login with user name AthenryAdvancers and Password Advancers

Select My Stuff and then click the See Inside button for the ClassVersion-ChritmasCard

You will then have to save it to your device, select File – Save to your computer, so you can work on your version.

Now you will have to open Scratch 3 on your device and open the file you just saved.

This week’s challenge to create a Christmas Card.

This will be an interactive Christmas Card.

  1. A nice background with Snow, Christmas Trees, a house.
    1. We might use different Sprites for the Trees.
  2. Flashing lights on the House and the Tree.
  3. Falling snow.
  4. Snow building up on the ground.
  5. An animated Snowman.

Snowflakes

To make it even more interesting, we are going to make the snowflakes different sizes and fall at different rates depending on how big they are.

We will use the clone functionality to make the snowflakes.

Each clone will pick a random size and will glide to the bottom of the screen, how fast if glides will be related to how big or small it is.

The snowflake is going to be quite hard to draw as it will be a small white dot on a white background, so we will be careful.

The building up on the ground part, is quite easy, we just pick a random Y value to stop at, as long as it is close to the bottom of the screen we should be ok.

Flashing Lights or Tree Sprites

Again, these might be quite difficult to draw as we have to draw them over the background and get them to be over the Trees?

If we draw the complete Tree in the Sprite I think it is going to be a lot easier.

Snowflake code

Flashing light code