Scratch – Simple Programming

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Create a Simple Game in Scratch
Scratch is a Visual Programming Language
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
A Scratch tutorial. Description: You have 6 bullets to shoot at 2 targets. Every time you hit any of them you get two extra bullets but the targets get.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Scratch – Simple Programming
Scratch Programming Lesson 2 First glance to programming logic.
Scratch Programming Lesson 4 Question asking and answering.
Geometry. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions are.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
WHAT IN THE WORLD IS SCRATCH??? AN INTRODUCTION TO COMPUTER PROGRAMMING By MD Showman.
By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
Programming a Shooter Game Design.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Scratch – Simple Programming
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Programming Simple Programming If and Nested Statements.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Programming Simple Programming Variables.
Scratch Programming Cards
Scratch Helicopter Game
Movement Game Design (Scratch).
Create a Halloween Computer Game in Scratch
Broadcasting (Adding a new level)
Module 1: Investigation 2 Repeating and Alternating Patterns
Games Programming in Scratch
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
TODAY’s LESSON IS ABOUT:
Scratch 7B IT1.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
How to work with your sprite
© A+ Computer Science -
Scratch – Simple Programming
Exploring Computer Science Lesson 4-14
Scratch – Simple Programming
Scratch: iteration / repetition / loops
Loopy Motion Control.
The One Where You Scratch
Intro to Programming With Snap PII.
Scratch – Simple Programming
Areas of the SCRATCH 2 Screen
Go to =>
Recap the basics Lesson 1.
Lesson Objectives To understand how to make sprites interact
Moving Sprites in Scratch
Go to =>
Code to Enhance Learning
Game Over Module 4 Lesson 2.
Recap the basics Lesson 1.
Exploring Computer Science Lesson 4-14
Creating a Simple Game in Scratch
Scratch 7B IT1.
CSC 221: Introduction to Programming Fall 2018
Scratch – Game Testing My Game Creation.
Scratch 7B IT 1.
Scratch 7B IT 1.
Scratch – Simple Programming
Presentation transcript:

Scratch – Simple Programming Simple Game

Unit Overview Objectives Outcomes Time Task 1 Task 2 Task 3 Task 4 Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the script required to build simple games. Outcomes Time Task 1 Using Repeat Command for Movement Task 2 Variables and Forever If Task 3 Keyboard Controls Task 4 Maze (Keyboard) Task 5 Maze (Keyboard) Extension Task 6 Maze (Mouse)

Starter 1 - Discuss this piece of code What will happen to the cat (sprite) when the script is run? What does next costume mean? What does go to x:-200 y:0 mean?

Starter 2 - Discuss this piece of code What will happen to points variable if the cat touches the orange ball. What will happen to points variable if the cat touches the red ball.

Starter 3 - Discuss this piece of code 1 What is the difference between the 1st and 2nd part of the code? 2

Starter 4 - Discuss this piece of code End What is the purpose of this game. Describe two ways in which the game could end. The red and orange balls equal 10 points

Task 1 – Using Repeat Command for Movement Create a simple script to move the sprite across the stage using a repeat command. The sprite needs to change costume every 10 steps. The sprite will repeat the following steps 40 times Move 40 Next costume The sprite will move across the stage changing costume every ten steps Go to x: -200 y: 0 – this will move the sprite back to the start point.

Task 2 – Variables and Forever If Create a points variable. Click on the stage and set the points to 0 every time the start flag is clicked. Create two new sprites (orange and red balls) When Sprite 1 (cat) touches the balls the points counter will go up. (Orange – 1 points, Red – 3 points) The sprite will stop moving once the repeat command has finished. +1pt +3pt Sprite1 Balls will hide once they have made contact with sprite 1 (Cat).

Task 3 – Keyboard Controls Create a game where the sprite will collect all the balls using simple keyboard commands. The sprite can be made smaller. The sprite will keep moving until it has collected each ball and has scored the maximum score of 10. The sprite will keep moving and changing costume if it is touching the white stage. The sprite will change direction when the cursor keys are pressed. 180 degrees Stage: Script will end once the sprite has touched all the balls and collected the maximum score of 10. 360 degrees -90 degrees 90 degrees

Task 4 – Maze (Keyboard) You need to create two black barriers if touched by the sprite would end the game. The code below will stop the game if the sprite 1 (cat) touches any of the black barriers.

Task 5 – Maze (Keyboard) Extension Create a new maze sprite. Using the cursors you have to move the sprite 1 (cat) around the stage collecting all the balls without hitting the black walls.

Task 6 – Maze (Mouse) Create a new maze sprite. Using the mouse you have to move the sprite 1 (cat) around the stage collecting all the balls without hitting the black walls. After the game is complete or finished the sprite 1 (cat) will have to move back the start point. Start End This code will move the sprite 1 (cat) back to the starting point.

Plenary – Refer to the Lesson Objectives Understand why computer programming scripts are used. Understand the use of Variables as place holders for information. Understand the script required to build simple games. Plenary Task (Q&A) Peer assess each other scripts. Based on the skills you have learnt think about creating your own game. What type of scripts would you use.