Scratch Programming Skills Scratch Snake Game Lesson A

  • Slides: 10
Download presentation
Scratch Programming Skills Scratch Snake Game Lesson “A programming language which can be used

Scratch Programming Skills Scratch Snake Game Lesson “A programming language which can be used to create interactive stories, animations and games” S

Lesson Objectives S Know that… S Scratch is a program that allows user interaction

Lesson Objectives S Know that… S Scratch is a program that allows user interaction and controls from the keyboard S Develop / be able to… S Control sprites using a mouse and therefore make it more responsive for the user S Understand how / why S The pen tools works, how to set it down and move it around S To use sensing code in scratch to make a game

Learning Outcomes S All will S Have created some sprites and been able to

Learning Outcomes S All will S Have created some sprites and been able to put in some of the coding S Most will S Have a snake moving around the screen S Have a game working that is fairly effect and well designed S Some will S Make the game to be able to have a win and a lose screen S Be able to keep score of how many times the mouse has been eaten

What is Scratch? S Scratch is a control program that enables you to create

What is Scratch? S Scratch is a control program that enables you to create your own interactive stories, animations, games, music, and art S The name Scratch comes from the scratching technique used by hip-hop disc jockeys, who spin vinyl records back and forth with their hands to mix music clips together in creative ways. You can do something similar with Scratch, mixing different types of media clips (graphics, photos, music, sounds) in creative ways.

Today’s Lesson S In today’s lesson you are going to creating a snake game.

Today’s Lesson S In today’s lesson you are going to creating a snake game. S In Scratch you can get something to sense when one colour is touching another. We will be using this code in the Snake game. S You will be drawing a snake which will eat a mouse. When the snake touches its own tail, it will die. There is a handout you will follow called “Scratch Snake Game Handout”. It can be downloaded from the VLE.

When you draw the snake sprite Make sure you include a yellow sensor What

When you draw the snake sprite Make sure you include a yellow sensor What do you think this script will do?

Will it still work now? Make sure you include a yellow sensor

Will it still work now? Make sure you include a yellow sensor

The Handout You can find this handout on the VLE. It has instructions on

The Handout You can find this handout on the VLE. It has instructions on how to complete the whole activity.

Extension Work Have you finished, well there is an extra handout. It is located

Extension Work Have you finished, well there is an extra handout. It is located on the VLE, take a look at, it’s called “Scratch Snake Game Higher Handout”

Plenary – Debug Task Sometimes programs have problems and don’t run properly. They have

Plenary – Debug Task Sometimes programs have problems and don’t run properly. They have to be tested and altered. Open the Scratch file and see if you can fix the problem! Karen wants to control the cat’s x-position with the keyboard: right arrow moves the cat right, left arrow moves the cat left. She also wants the cat to say if it’s on the right side or the left side depending on its x -position. The cat’s moving, but not saying its position correctly! What’s going on?