1 / 15

Computing

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.

adina
Download Presentation

Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computing Learn to Scratch Lesson 3 Learning the Basics of Scratch

  2. 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).

  3. Starter Plenary The Teacher will now randomly choose students to feedback their findings on how racing games have a scoring system.

  4. 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

  5. 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?

  6. Script Categories Today we will learn to use some blocks of the ‘Variables’, ‘Control’ and ‘Sound’.

  7. 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

  8. 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?

  9. 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!!

  10. 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

  11. 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

  12. PEER ASSESSMENT TIME Hold up the relevant card according to what you believe your peer has achieved so far

  13. 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)

  14. SELF ASSESSMENT TIME Hold up the relevant card according to what you have achieved on this activity

  15. 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!

More Related