Work your way through the following skills to learn how to program using Scratch, By the end of these skills you should be able to:Â
Have input & output in your game
Sequence things correctly
Use Loops to repeat things
Selection using comparative operators (if statements)
Use variables to be able to remember things
Find bugs in your code and fix themÂ
Activity OneÂ
To start with you need to get set up with Scratch. This needs to be with your HVHS email address.Â
Go to the Scratch website. Sign upÂ
Make up a username - don't use your real name
Use your school email address
Check your email and verify your Scratch account
Create a basic program in Scratch by following the "Getting Started" tutorial. Name it "basics"
Share your project. Add a link to the Scratch project to the Google Classroom assignment and turn it in.
By the end of the activity you will:
Create a Scratch account
Verify your Scratch account
Complete the Getting Started tutorial
Share the Scratch project to classroom
Extension:
Learn some effects through the Scratch tutorials
1) Open your "basics" project
2) Use the tutorials below to help you a create animation that uses different sprites and background. Start with the animate a character tutorial, think carefully about the order you sequence the blocks. Try and use as many different movements as possible.Â
3) Share your project and add it to the assignment in Google Classroom
Activity Three:Â
The second game we will work on is Pong. Get started by working through the Pong Game tutorial.
Once you have completed this you will make some improvements...
Learn:
How to make a Pong game
Do:
Complete the Pong Game tutorial.
Extend:
Personalise it! Choose better graphics.
The basic Pong game is pretty... basic.
It needs a lot of improvement. One way to make it a lot better is to make it less predictable. The way to do this is to introduce some randomness to the game.
In the end it should look like this example.
Learn:
How to use variables
How Randomness is used in games
Extend:
Add more randomness, some ideas:
Bounce at a random speed
Change colour when it bounces
Start at a random place
Learn:
How to use selection statements (if)
How to use comparisons ( < = > )
Extend:
Hide the ball and paddle when game ends
Build a restart button
A game that just stops is pretty pants. It looks a lot better if you add an end screen.
Even better is if the end screen can tell you how well you did or give you some other feedback.
In the end it could look like this example.
Learn:
Make a flying game
Do:
Complete the Make It Fly tutorial.
Extend:
Personalise it! Choose better graphics.
The next game you will create is based on the Make It Fly tutorial.
Once you have completed it you will learn new concepts to improve the game.
Learn:
How to use layers, colour and speed to show depth.
Do:
Use at least one of the ideas in the slides to add depth to your game.
Extend:
Do all three!Â
Experiment.
You've got it going. But it looks pretty flat.
There are lots of tricks that animators use to give a scene a sense of depth. Have a look at these slides and bring some of the ideas into your project.
An example project
Do:
Complete the Movement Algorithms instructions in a new project.
Improve the movement in your flying game
Extend:
Some games will use both algorithms for different actions. Add this to your game
You've got it going. But the movement is very rough!
When you are programming computers there is usually more than one way to solve a problem. Different ways are good for different situations.
Your class might do an offline algorithms activity too.
Learn:
How to create gravity in Scratch
Extend:
Stop the sprite 'sticking' to the ceiling.
Modify it so you can only jump if you are in the ground.
This game has the cat flying like superman. Lets add some challenge by adding gravity! Doing this needs you to use variables in an interesting way.
Once you have gravity you have what you need to make a jumping platformer, flappy bird or a running game like geometry dash (or the "internet is broken" dinosaur).
Learn:
How to use Clones in Scratch
Extend:
Get points if you touch a clone
Use Clones to add effects when you hit something
Get it built today and we will improve on it in the next few lessons.
Learn:
How to use lists in Scratch
Extend:
What else can you find? What do they do?
Add more things to collect
Collect stuff while you are going around your maze. In the example you will pick up a key that you use to open a door.
This will use a list in Scratch.
Learn:
How to use Broadcasts to coordinate sprites
Do:
Follow the MazeRooms Instructions
Extend:
Add more rooms!
Add new rooms to your maze.
This will use the broadcast feature in Scratch.
Learn:
How to create and animate a sprite
Do:
Create a sprite in Piskel
Import it into Scratch
Extend:
Create your own custom animated sprite for your maze game.
A character that moves can really add to the feel of your game.
Today have a go at creating an animated character to explore your maze with Piskel