150 likes | 302 Views
Computing. Learn to Scratch Lesson 3 Learning the Basics of Scratch. Starter Activity. Using the internet, do some research on car racing games. Find out all the different ways racing games generate a score while someone is playing.
E N D
Computing Learn to Scratch Lesson 3 Learning the Basics of Scratch
Starter Activity Using the internet, do some research on car racing games. Find out all the different ways racing games generate a score while someone is playing. Make a note of all the different ways scoring is done (you may get asked in the starter plenary).
Starter Plenary The Teacher will now randomly choose students to feedback their findings on how racing games have a scoring system.
Learning Journey Lesson Objectives Lesson Outcomes ALL MUST Create a variable for scoring Add sound MOST SHOULD Code the changes score in game Add sound that suits the game SOME MIGHT Scoring system is very effective Make game competitive and fun Import sound from external source Know how to create a variable and add sound Learn the different ways racing games score Make a scoring system in the racing game Literacy: entering information accurately E-safety: are DLC online payments safe? Numeracy: variables SMSC: do car racing games encourage people to break the law? Keywords: SCRIPTS, PLAYABILITY, VARIABLES, SCORING, RESEARCH
Scoring Question 1:what is game score? Question 2: can you think of a way an actual car racing game scores? Question 3:what type of scoring would make most sense in a car racing game and would not?
Script Categories Today we will learn to use some blocks of the ‘Variables’, ‘Control’ and ‘Sound’.
Scoring Simple On the scripts for each carcreate a variable for the score Then set the score to zero outside of the ‘forever’ blocks so it only happens once
Scoring Simple It was to allow us to add some scoring to our racing game (which is why we have also just created the scoring variable). REFLECTION TIME: In Lesson 1 we created a thin line on the car with a unique colour when designing the car sprite In Lesson 2 when were designing our track, we made that thin line of a unique colour next to the finishing line Can you remember why we did that?
Scoring Simple We will now add the scripts that allows the game to increase the score every time the car crosses the finishing line. The script simply senses when the unique colour of the line on the car touches the unique colour next to the finish line and adds one to the score when it senses it This moves the car forward too to avoid multiple scoring in one go SIMPLES!!
Sensing Tip When selecting the colours for sensing when the car has crossed the line, you may find it very difficult to actually pick the colour from the screen as the lines on both the car and finish lines are very thin and difficult to point the colour picker exactly on. Here are some tips to help you: • Make sure the viewing area is large • Duplicate the car and finish line sprites and grow them to a reasonable size so you can pick the colours more easily
Scoring Advanced For those who feel more confident on scratch, see if you can: Add a variable for lap for both cars Add a variable for lap time for both cars Script that prevents the cars from going the wrong way around the track and still registering a new lap
PEER ASSESSMENT TIME Hold up the relevant card according to what you believe your peer has achieved so far
Adding Sound • EXTENSION: • Add sound for both cars, but instead of using the scratch sounds, download suitable sounds from an external source (e.g. internet). • If you managed to add script that stops the cars hitting each other, add different sounds for when that happens too. • Add sounds where you feel it will enhance the game To make the game more fun, you will need to add sound. Add script that plays a sound when the car goes off the track. You could add a constant motor sound too (beware, it can be annoying)
SELF ASSESSMENT TIME Hold up the relevant card according to what you have achieved on this activity
Plenary Now lets check what you have learnt today And how much progress you have made You may be asked to come to the front to demonstrate your use of variables and adding sound BE PREPARED!