Lesson 2 Game Basics

Similar documents
Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Creating Computer Games

Scratch for Beginners Workbook

Create a Simple Game in Scratch

Pong! The oldest commercially available game in history

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

In this project you ll learn how to code your own musical instruments!

Introduction to Turtle Art

Add in a new ghost sprite, and a suitable stage backdrop.

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

Let s start by making a pencil, that can be used to draw on the stage.

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Create a game in which you have to guide a parrot through scrolling pipes to score points.

You are going to learn how to create a game in which a helicopter scores points by watering flowers in the city.

Pong! The oldest commercially available game in history

Programming I (mblock)

Ghostbusters. Level. Introduction:

a. the costumes tab and costumes panel

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

04. Two Player Pong. 04.Two Player Pong

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

Clone Wars. Introduction. Scratch. In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

Computer with Scratch program.

Create Your Own World

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0.

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Brain Game. Introduction. Scratch

Flappy Parrot Level 2

STEP-BY-STEP THINGS TO TRY FINISHED? START HERE NEW TO SCRATCH? CREATE YOUR FIRST SCRATCH PROJECT!

Step 1 : Earth and Mars Orbit the Sun

GAME:IT Junior Bouncing Ball

Programming with Scratch

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

Overview. The Game Idea

Game Making Workshop on Scratch

Module. Introduction to Scratch

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

Creating a Maze Game in Tynker

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

Create Your Own World

Pong Game. Intermediate. LPo v1

CISC 1600, Lab 2.2: More games in Scratch

Lesson 1 Getting Started. 1. What are the different ways you interact with computers?

Let s start by making a pencil that can be used to draw on the stage.

Alright! I can feel my limbs again! Magic star web! The Dark Wizard? Who are you again? Nice work! You ve broken the Dark Wizard s spell!

Scratch Primary Lesson 5

The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives. Background (Pre-Lab Reading)

Tilt Sensor Maze Game

1. Make the robots exercise:

Module 2 Drawing Shapes and Repeating

GAME:IT Junior Bouncing Ball

Creating a Frame by Frame Animation for PhotoStory

COMPUTING CURRICULUM TOOLKIT

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

EXERCISE ONE: BEACH BUGGY.

Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

Copyright 2017 MakeUseOf. All Rights Reserved.

Photo Story Tutorial

GAME:IT Bouncing Ball

Quintic Software Tutorial 3

Game Design Curriculum Multimedia Fusion 2. Created by Rahul Khurana. Copyright, VisionTech Camps & Classes

Module 4 Build a Game

Scrolling Shooter 1945

Introduction to Parametric Modeling AEROPLANE. Design & Communication Graphics 1

Photo Story Instructions!

How to use Photo Story 3

Addendum 27: Personalized Meander

Quilt Pro 6 Lesson Quilt in a Quilt

Activities using Scratch

Unit 6.5 Text Adventures

A. creating clones. Skills Training 5

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

Learn how to. Link to Club Penguin. Link to Club Penguin. Link to Club Penguin. Movie Clip

Parallax Scrolling Tutorial Created in Drogheda by Seamus Minogue and updated for Clonakilty CoderDojo 15/06/2012 PARALLAX SCROLLING

Project 1: Game of Bricks

Module 1 Getting Started

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

In this lesson we are going to create cartoon eyes and parent them to the head bone.

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

The next time you choose Add New > Create Recording, CaptureSpace will open automatically.

2

UNIT TWO: Data for Simple Calculations. Enter and format a title Modify font style and size Enter column headings Move data Edit data

Scratching the Surface of Pong: Enriching Linear Equations with Computer Programming

Programming. covers Scratch 2.0 and Scratch 1.4. Foreword by Mitchel Resnick MIT Media Lab PLAIN ENGLISH EASY TO FOLLOW FULLY ILLUSTRATED

G54GAM Lab Session 1

Teach Yourself Adobe Photoshop Topic 9: Photo Retouching Part 2

2D Platform. Table of Contents

How to create a 24 Bit Bitmap Image for use with the Digital Light Wand in Photoshop (CS4)

Star Defender. Section 1

Creating Digital Stories for the Classroom

LESSON ACTIVITY TOOLKIT 2.0

Transcription:

Lesson What you will learn: how to edit the stage using the Paint Editor facility within Scratch how to make the sprite react to different colours how to import a new sprite from the ones available within Scratch how to create new costumes for the sprite how to create and use variables how to set the sprite to start in a certain position You will practise: animating the sprite creating random movement for the sprite Contents Exercise 1 Making the Sprite Interact with the Background... 2 Exercise 2 Importing a New Sprite and New Costumes... 5 Exercise 3 Making the Countdown... 8 Exercise 4 Scoring the Game... 9 Exercise 5 Choosing Start Positions for the Sprites... 10 Exercise 6 Finishing the Game... 10 Introduction to Scratch Programming (2 nd Edition) Page 1 of 10 ZigZag Education, 2013

Exercise 1 Making the Sprite Interact with the Background In this section, you will edit the background of the stage. 1. Double-click the stage symbol to the left of the sprite area. 2. Select the Backgrounds tab. 3. Click on Edit. Introduction to Scratch Programming (2 nd Edition) Page 2 of 10 ZigZag Education, 2013

4. Working in Paint Editor, draw a simple maze (hint: students often make this too complicated keep it simple). 5. Click OK in the Paint Editor to return to the main programming view. 6. Using the Shrink sprite option, resize the sprite so that it can fit in all parts of the maze. Introduction to Scratch Programming (2 nd Edition) Page 3 of 10 ZigZag Education, 2013

We want the sprite to interact with the maze we have drawn and so we need to make a script that will make the sprite bounce off the maze. 7. Double-click the sprite at the bottom of the screen (not the sprite on the stage). 8. Choose the Switch to small stage option in order to make room for some more scripts. 9. Create the script as shown: a) Select if from the Control instruction set. b) Select touching colour from the Sensing instruction set (use pipette to set colour to black). c) Select move -15 steps from the Motion instruction set. 10. Combine this script with the list of others that are to do with motion. 11. Click the green flag again. 12. Test the game by trying to drive the sprite over the black areas (it should bounce off). Introduction to Scratch Programming (2 nd Edition) Page 4 of 10 ZigZag Education, 2013

Exercise 2 Importing a New Sprite and New Costumes 1. Start a new Scratch project and delete the cat. 2. Click the centre button below the stage. This allows you to import a new sprite onto the stage. 3. Browse the Things folder and select beachball1. The ball comes with only one costume and we need four to make it seem to roll about. 4. With the ball sprite selected, click the Costumes tab and click Copy. Clicking copy creates a new costume. Introduction to Scratch Programming (2 nd Edition) Page 5 of 10 ZigZag Education, 2013

5. Working with the copied costume (the bottom one), click on Edit to go into the Paint Editor. 6. Rotate the costume by clicking the Rotate clock-wise button three times. Click OK. 7. Repeat this process until you have created four costumes for different rotations of the ball. Introduction to Scratch Programming (2 nd Edition) Page 6 of 10 ZigZag Education, 2013

8. With the ball sprite clicked, create this script (animation of the ball rotation). 9. With the ball sprite clicked, create this script. (This will give automatic movement of the ball round the screen at the same time as avoiding the maze, the edge and the cat.) This section creates the automatic movement of the ball. This section causes the ball to bounce off the maze (or anything that is black). This section causes the ball to bounce off the cat. This section causes the ball to bounce off the sides. Introduction to Scratch Programming (2 nd Edition) Page 7 of 10 ZigZag Education, 2013

Exercise 3 Making the Countdown 1. Click the red Variables tab and click Make a variable. These options will appear. 2. Create the script shown below. There are three parts to this: Firstly, the countdown is set to 20. Secondly, the countdown is reduced by one every second. Thirdly, when the countdown reaches zero, the action stops. Introduction to Scratch Programming (2 nd Edition) Page 8 of 10 ZigZag Education, 2013

Exercise 4 Scoring the Game 1. Select Make a variable and call it Score. 2. Create this script for Sprite1 (the cat). Every time the cat touches the ball, the score will go up by one. The cat should bounce off the ball straight away (otherwise the score would just go up and up). Introduction to Scratch Programming (2 nd Edition) Page 9 of 10 ZigZag Education, 2013

Exercise 5 Choosing Start Positions for the Sprites 1. Click on Sprite1. 2. Position Sprite1 in your chosen start position. 3. From the movement instruction set, drag the go to instruction and place it as shown. 4. (The sprite will remember this position in future every time the game starts.) 5. Repeat for the other sprite. Exercise 6 Finishing the Game 1. Position the countdown and score displays inside the maze so that they do not get in the way of the ball or the cat. You have made a game! Introduction to Scratch Programming (2 nd Edition) Page 10 of 10 ZigZag Education, 2013