Scratch – Simple Programming

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Scratch is a Visual Programming Language
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
How to make an educational Snakes and Ladders game in Scratch
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.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
An intro to programming concepts with Scratch Session 7 of 10 sessions Working with sounds and sprite communication.
Racing Car Game Using the keys to control a sprite.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
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.
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
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.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
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.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
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 1 Creating movement Year 11 DTG 2012.
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.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
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.
Scratch Programming Cards
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Broadcasting (Adding a new level)
Module 1: Investigation 2 Repeating and Alternating Patterns
Dancing on Green Light.
Games Programming in Scratch
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
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 -
Exploring Computer Science Lesson 4-14
Understanding the Geometric Shape Code
Scratch: iteration / repetition / loops
Intro to Programming with Scratch
Scratch – Simple Programming
Loopy Motion Control.
The One Where You Scratch
Intro to Programming With Snap PII.
Lesson 1 Introduction to Scratch Basic blocks
Areas of the SCRATCH 2 Screen
Go to =>
Lesson Objectives To understand how to make sprites interact
Moving Sprites in Scratch
Go to =>
Game Over Module 4 Lesson 2.
Exploring Computer Science Lesson 4-14
Creating a Simple Game in Scratch
Scratch 7B IT1.
CSC 221: Introduction to Programming Fall 2018
Scratch 7B IT 1.
Scratch – Simple Programming
Presentation transcript:

Scratch – Simple Programming Simple Game

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). http://www.yahmad.co.uk/

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.