SD3 4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

Coding

Ensino Fundamental
6° e 7° Anos

Coding Map SD3.4

Theme: Building a game – Pt 2 Tempo: 100 min

Learning Goals

● Build a game controller using the Scratch platform.

● Relate command and action blocks with Makey Makey.

● Specific vocabulary involving game controllers

Expectations for students at the end of this class

● Understand how to use the Makey Makey feature.

● Create a game using Scratch and controlling by Makey Makey

Let’s Start

Student’s material

Useful words
● Control – controlar

● Controllers – controladores

● Game – jogos

● Star Wars – Guerra nas Estrelas

● Makey Makey – kit extra presente no laboratório Maker

● Cross – atravessar

● Generations - gerações

● Resembles – se assemelha
Introduction
In recent meetings we have worked with mathematical operators and variables and we
have used the Makey Makey structure. Today, the goal is to recreate the Star Wars game,
but using Scratch to do so.
Objectives
1. Rewind: what have I learned?
2. Learning about creating backdrops in Scratch.
3. Update your Coding Documentation.
4. Build your scenario game.
5. Play “Star Wars”!

Instructor’s material

Welcome students and organize the learning environment.


Round 1: The students must complete the Let's Start section, read about the objectives of the
day and also complete the review activity there. During this time, walk among the tables,
answering possible questions from the students. If necessary, explain the “useful words” to
students.
Estimated time: 10 minutes

Learning Time

Student’s material

Introduction

Last time you played a little Star Wars, remember?


Today we are going to create our own Star Wars board, imitating some of last week's game.
To do this, some concepts are important. The first is the background, and how we change it.
Watch this video to understand the first step:

https://youtu.be/t-P_CrxtCOQ

To change backdrops, we can follow the steps in this tutorial:

https://www.youtube.com/watch?v=d-4ytqoFzOw

Remember there are two very important command blocks we need to use to move sprite on
screen. They are the “control” and “events” blocks:

Now, let’s create some things!

Instructor’s material

The objective is to show how some concepts already presented can be used to create
games and animations. This is a review moment, which can probably be ignored by more
advanced students.
Round 2:  while the students do the Learning Time activities, go around the tables helping
with possible questions. 
Estimated time: 20 minutes

Checkpoint

Student’s material

1. What is the purpose of the "backdrop" in Scratch?


a) To represent the stage or background of a project.
b) To store and display images in a project.
c) To change the font style of text in a project.
d) To control the volume of sounds in a project.
Answer: A

2. Which category in Scratch contains blocks for controlling the flow of a program?
a) Motion.
b) Looks.
c) Events.
d) Control.
Answer: D

3. How can you create a custom block in Scratch?


a) By importing a pre-made block from the Scratch library.
b) By changing the background color of the stage.
c) By stacking together existing blocks into a new shape.
d) By resizing a sprite on the stage.
Answer: C

4. What does the "glide" block in Scratch do?


a) Plays a sound effect.
b) Changes the direction of a sprite's motion.
c) Moves a sprite smoothly to a specified location.
d) Hides a sprite.
Answer: C

5. Which block in Scratch is used to store and retrieve data during program execution?
a) Variables.
b) Looks.
c) Pen.
d) Sensing.
Answer: A

Instructor’s material

Round 3: use this moment to go through the tables and verify that the students are doing
the activities.
Estimated time: 10 minutes

Training Time

Student’s material

Training #1: How Do You Make a Jumping Chick Game in Scratch?


First, access the project below:

https://scratch.mit.edu/projects/643437454/

You can see a character (Chick) in the game above that will jump on moving obstacles
(eggs). And after each successful jump, you will get a score, and if Chick touches the eggs,
the game will be over.
The steps to create this jumping game on Scratch are listed below:
● create a chick character in scratch for jumping game

● change backdrop of the stage in scratch for chick jumping game

● add code to make the chick jump in Scratch

● create a moving obstacle on Scratch

● make a game stop by touching an object in Scratch

● add multiple obstacles in chick jumping game on Scratch

● set the score in scratch jumping game

Training #2: Pong Game!


Access the website https://www.youtube.com/watch?v=BlmBDrnhd2I and follow the step by
step to build a scratch pong game!
Instructor’s material

Remind students about the importance of completing the Coding Documentation.


Round 4:  encourage students to do activities. Use this moment to walk around the tables,
check if students are doing the activities and solve questions.
Estimated time: 30 minutes.
The training #1 answer can be found here https://www.youtube.com/watch?
v=HADQA9PD5iU. It’s a very simple tutorial showing how to create the game.
The training #2 answer is on the activity video.

Today’s Mission

Student’s material

How To Get the Mouse to Follow You on Scratch?

Let’s make a Mouse Trail game on Scratch today. In the above graphic, you can see sprites
(cat, ball) following your mouse pointer and creating Mouse Trails with various effects (color,
position, shape, transparency). The steps involved in making this Mouse Trail game on
Scratch are explained below:
1. Pick a sprite
2. Create a clone of the sprite
3. Add more effects to the mouse trail
4. Switch the object (sprite) 

Step 1: Pick a sprite (Cat)


● Let us choose the first object you wish to click.
● If you want to select a different sprite for this Mouse Trail, delete the cat sprite.
● Make the cat follow your mouse pointer.
● From the motion category drag & drop the “go-to” random position block.
● Click on the menu and choose “mouse-pointer”.

● Put the “go-to” block inside a forever loop and click on it. Here you can see the cat is
always going to your mouse pointer.
● Click on the green flag icon to begin the movement. As a result, the sprite follows your
mouse when you click the green flag. “When the green flag clicked” can be moved up
by dragging.

Step 2: Create a clone of the sprite


You now have one sprite, but not yet a mouse trail following your mouse. Now make several
Scratch cats follow your mouse pointer to create a trail. Here are the steps to achieve this:
● Drag “make a clone of myself” from the control box and then click on it.
● Anywhere you click “Make a clone of myself,” a new Scratch cat is created.
● These cat clones can also have multiple moves by using programming.
● Drag and drop the piece labeled “when I start as a clone.”
● You can place any code under there, and when clones are made, they will execute
that code,

● When creating a Scratch clone, change the color of the cat.


● Select the color and its value of 25 by dragging and dropping the “change effect by”
block.

● You can see changes in color when they’re created by clicking on the “create a clone
of” block.
● You might include a repeat loop and make a few color changes.
● The “repeat” block should be moved around as seen below.
● This clone can be added to or removed.
● Move the “remove this clone” block as indicated below.

● Put the “create a clone of myself” block inside the forever loop
● Click on it and move your mouse pointer over the screen.
● Here you can see that after their color is changed, they disappear off the screen.
● And now you can drag the cat around and wherever it goes, it creates a clone.

Note:  It is usually not recommended to have a “create a clone of myself” block inside of a
forever loop, because if a sprite creates too many clones, the computer will run really
slowly. The reason why it is okay here is that when a clone is created, it does a little
animation, but then it gets deleted. So, you can never get too many clones.
● Similarly, you can also add the change in the Y block.
● Drag & drop the “change y by 10” block as shown below.
● Click on 
● Now clone cats are changing their color and then they’re going upward.

Instructor’s material

Round 5: Use this moment to walk around the tables, check if students are doing the
activities and solve questions.
Estimated time: 20 minutes

Submit and Clean Up

Student’s material

<slide básico para o submit and clean up, contendo as instruções de inserção de link e de
arrumação do ambiente>

Instructor’s material

In the next section, Submit & Clean Up, if the student clicks on “iniciar tarefa”, this menu will
appear and they just have to paste the code on URL blank space:

The teacher, with the help of the monitors, must check if all the students posted their
Today’s Mission link in the Coding Documentation file. 
There is a unique slot in each encounter to be filled with this link.
This correction will not be part of the final grade, it will only be useful to help the teacher
understand which students are having more difficulties.
Estimated time: 10 minutes

You might also like