0% found this document useful (0 votes)
71 views9 pages

SD3 2

Here are the steps to create a math maze game in Scratch: 1. Open a new Scratch project and select/create a character sprite. 2. Use the paint editor to draw maze walls. 3. Add keyboard controls to move the character through the maze. 4. Create math questions using text and variables to store answers. 5. Use conditional blocks to check if answers are correct and move character accordingly. 6. Optionally add extras like scoring, multiple levels, animations and sounds. Have fun creating your math maze game! Let me know if you need any help along the way.

Uploaded by

lucas alencar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views9 pages

SD3 2

Here are the steps to create a math maze game in Scratch: 1. Open a new Scratch project and select/create a character sprite. 2. Use the paint editor to draw maze walls. 3. Add keyboard controls to move the character through the maze. 4. Create math questions using text and variables to store answers. 5. Use conditional blocks to check if answers are correct and move character accordingly. 6. Optionally add extras like scoring, multiple levels, animations and sounds. Have fun creating your math maze game! Let me know if you need any help along the way.

Uploaded by

lucas alencar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Coding

Ensino Fundamental
6° e 7° Anos

Coding Map SD3.2

Theme: Tempo: 100 min

Learning Goals

● Specific English vocabulary for basic math operations.


● Specific commands for basic math operations.
● Specific commands for variables.

Expectations for students at the end of this class

Students are expected to understand how to do calculations in Scratch.

Let’s Start

Student’s material

Useful words
 Maze – labirinto
 Variables - variáveis

Introduction
Hello students, welcome back to the Coding meeting!
In last meeting, we will learn about the four basic mathematical operations - addition, subtraction, multiplication
and division. Today we will create a Mathematical Maze in Scratch!
Let's check the objectives of the day by clicking on the topics below:

Objectives
1. Rewind: what have I learned? Take a look at your Coding Documentation.
2. Understand how the mathematical operators work in a Scratch Maze.
3. Train and apply mathematics in Scratch. 
4. Create a maze!

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: 15 minutes

Learning Time

Student’s material
Introduction
In the last meeting we created a calculator. And now, how about we create a game with mathematics?
To accomplish this, we need to understand the concept of variables. It comes from math, but it's very useful in
coding!

https://youtu.be/Faq61vWOr1Q

To use variables, look at variable menu. There are a lot of new commands!
With the variables we can, for example, "understand" things that the player types during the game.

Useful words
 understand - entender
 variable - variável
 types - escrever
 hide - esconder
 set - atribuir, dar valor
 show - mostrar
 change - mudar

https://youtu.be/wS1QETPfgGE
Move on to the next page to checkpoint task!
Do it with attention because it will count on your grade.

Instructor’s material

Today's Learning Time will continue with math commands, introducing the “variable” structure.
Round 2:  while the students do the Learning Time activities, go around the tables helping with possible
questions. 
Estimated time: 30 minutes
Checkpoint

Student’s material

1. What is the final value of the variable "counter" after running the following code in Scratch?
set counter to 0
repeat 4 times
change counter by 3
a) 0
b) 3
c) 9
d) 12
The correct answer is d).

2. What is the function of the "pick random" block in Scratch?


a) It generates a random number between 0 and 1.
b) It generates a random number between two specified values.
c) It rounds a number to the nearest integer.
d) It converts a number from degrees to radians.
The correct answer is b).

3. What is the result of the mathematical operation between the variables "x" and "y" in the following code in
Scratch?
set x to 9
set y to 4
set result to x / y
a) 0.25
b) 2.25
c) 2.5
d) 3
The correct answer is b).

4. What is the name of the control structure that allows a block of code to be executed only if a condition is true in
Scratch?
a) repeat
b) forever
c) if...else
d) wait until
The correct answer is c).

5. What is the purpose of the variable "score" in a game developed in Scratch?


a) To store the player's name.
b) To store the player's number of lives.
c) To store the player's points in a game.
d) To store the player's speed.
The correct answer is c).

Instructor’s material

At the end of learning time, use the quiz to check students' understanding of the topics studied during today's
meeting. This checkpoint also picks up on some conditional and math commands from the previous encounters.
Round 3: use this moment to go through the tables and verify that the students are doing the activities.
Estimated time: 15 minutes

Training Time

Student’s material

How to create a score variable? 


To create the score variable in scratch, follow the steps below. 
Step 1: Select the “Variables” block from the “Block Palette” of the scratch user interface. Then click on “Make a
variable”. 
Step 2: Type score as a variable name in the New variable name section and then click
ok. 

Tip: Naming the variable accurately and descriptively is recommended so that it is easy to understand what type
of information it will be storing. 
Note: Select For all sprites if you want to create 
If you choose For this sprite alone, the variable becomes local, meaning you may alter or modify it from the sprite
on which it was generated. Global variables, on the other hand, can be accessible from any sprite or background in
your project.
Tip: Select the score, to display it on your game.

Different variable blocks can be used throughout the code scripts: 


 set variable to 0: It is used to set a particular value to a variable (here, 0). 
 change a variable by 1: This block changes the value of a variable by any value that you provide (here,
1). 
 show variable: Using this block a variable can be displayed whenever required. 
 hide variable: With this block, one can hide a variable.

Setting the score to 0 when the new game begins is recommended. To accomplish this, add set my variable to 0 at
the start of the script.
Script Area Stage

Depending on the condition, the score can be increased or decreased using a change variable by one block.

For example, if we want that whenever our sprite touches the green color the score should increase by 10, and it

should decrease by 5 when it feels the red color.

The script would look like the one should below: 

Tip: Using forever here is important to keep checking the conditions again and again!

Conclusion 

Congratulations! You just discovered a simple method for setting up a score variable in your game.

Instructor’s material

Training Time activities involve a mix of activities to train all Scratch’s commands, including variables. This will
be useful to understand the mission.
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: 20 minutes

Today’s Mission

Student’s material

Objective: go to the editor and create the a code with the rules below.
1. Open Scratch and create a new project. Select a character for your game or create a new one.
2. Use the sketch pads to create the maze. To do this, click on the "Draw" icon at the bottom of the screen. You can
draw the maze walls using straight and curved lines.
3. Add keyboard arrows to allow the character to move through the maze. To do so, click on the "Events" icon and
select the "When the [ ] key is pressed" block. Add a movement block to move the character in a specific direction
when the corresponding key is pressed.
4. Create math questions using text and variable blocks. You can create a variable to store the correct answer and
generate a question using blocks of text. For example, "What is the result of 10 + 5?". To do so, click on the
"Variables" icon and select "Create variable". Then drag and drop the "Set [variable] to [ ]" and "Ask [] and wait"
blocks. Under "Ask [] and wait" type the question.
5. Use the conditional blocks to check if the player's answer is correct. To do this, click on the "Control" icon and
select the "If [ ] then" block. Inside the block, check if the player's answer is equal to the correct answer. If the
answer is correct, move the character to the next intersection in the maze. If the answer is incorrect, the player
must answer another question.

Extras!
6. Add a scoring system to track player progress. To do this, create a variable to store the score and increase the
player's score by one point each time he answers a question correctly.
7. Create multiple levels with mazes and more difficult math questions. To do this, create new mazes and questions
using the same steps as above. Each level must have a minimum number of questions that the player needs to
answer correctly to advance to the next level.
8. Add animations and sound effects to make the game more fun. To do this, click on the "Sound" icon and select a
sound you want to add to the game. Click the "Events" icon and select the "When [sound] is played" block to make
the character jump or do some other type of animation.

Don't forget to save your project and show to the teacher!


Good Coding!

Instructor’s material

Today’s mission is to create a Mathematical Maze.


Round 5: Use this moment to walk around the tables, check if students are doing the activities and solve
questions.
Estimated time: 30 minutes
Solution:
1. Use the sketch pads to create the maze. To do this, click on the "Draw" icon at the bottom of the screen. You can
draw the maze walls using straight and curved lines.
2. Add keyboard arrows to allow the character to move around the maze. To do so, click on the "Events" icon and
select the "When the [ ] key is pressed" block. Add a movement block to move the character in a specific direction
when the corresponding key is pressed.
3. Create math questions using text and variable blocks. You can create a variable to store the correct answer and
generate a question using blocks of text. For example, "What is the result of 10 + 5?". To do so, click on the
"Variables" icon and select "Create variable". Then drag and drop the "Set [variable] to [ ]" and "Ask [ ] and wait"
blocks. Under "Ask [ ] and wait" type the question.
4. Use the conditional blocks to check if the player's answer is correct. To do this, click on the "Control" icon and
select the "If [ ] then" block. Inside the block, check if the player's answer is equal to the correct answer. If the
answer is correct, move the character to the next intersection in the maze. If the answer is incorrect, the player
must answer another question.
5. Add a scoring system to track player progress. To do this, create a variable to store the score and increase the
player's score by one point every time he answers a question correctly. This video can help!

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 it’s just
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: 15 minutes

You might also like