100 likes | 246 Views
Scratch Task. Learning Outcome & Objectives. Outcome. Objectives. Know the basics of the following computer programming concepts. Sequence (flow of control – steps of making a cup of tea ) Repetition (loops, iteration – putting out the cups)
E N D
Learning Outcome & Objectives Outcome Objectives • Know the basics of the following computer programming concepts. • Sequence (flow of control – steps of making a cup of tea ) • Repetition (loops, iteration – putting out the cups) • Selection (flow of control? If, when - when the kettle boils) • Variables (things that can change – how many coming for tea) • Know the basic idea of progression of these concepts. Create a simple game called “Catch Scratch!” Know the basics of how to write a simple program using Scratch.
Creating a program using Scratch. The output from your program when it executes/runs. Types of code blocks that you can use. Blocks of code that you can use to build your program. Sprite –characters. Your program. Blocks that accept input, process and create output. Stage –background.
Step 1: Moving a sprite • Add this code block to your cat sprite. What do you think will happen? control motion With pupils - On your whiteboard draw what you think will happen. Assessment – prediction.
Step 2: Moving Forever • Use the forever block to create a loop (repeat in KS2) What is different now? This forever block creates a loop (it happens lots of times)
Input? Process? Output? Step 3: Bounce! • You can bounceoff the edges… Why do I go upside-down? selection in KS2
Input? Process? Output? Step 4: Click to catch… • Add an IF block… What should I say when I get caught? This if block is called a selection (it only happens IF it is true) Selection in KS2 control
Input? Process? Output? Step 5: Count the catches How many times can you catch me? “catches” is a variable (a number that can vary) KS2
Some ‘game concepts’ • Can you make Scratch start in the same place every time you start the game? (Initialisation) • Can you make a win/loose end to the game? (Objective) • Can you make opponent sprites to make the game harder? (Obstacles) If you finish this why not try the scratch cards to add a drum,whirl, or glide, or change colour or costume? http://scratch.mit.edu/help/cards/