
CSD Unit 3 Lesson 18 Velocity Overview
Presentation
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Easy
Patrick Trejo
Used 2+ times
FREE Resource
15 Slides • 24 Questions
1
Interactive Animations and Games
Lesson 18
Velocity
2
3
Volunteers?
I will need a couple of volunteers to act as my
“sprites” at the beginning of this lesson.
Interactive Animations and Games Lesson 18 - Warm Up
4
Journal Prompt:
I was just giving instructions to my "sprite", but
they seemed to get pretty repetitive.
How could I have simplified my instructions?
Interactive Animations and Games Lesson 18 - Warm Up
5
Open Ended
I was just giving instructions to my "sprite", but they seemed to get pretty repetitive.
How could I have simplified my instructions?
6
Question of the Day
How can programming languages hide
complicated patterns so that it is easier to
program?
Interactive Animations and Games Lesson 18 - Warm Up
7
Open Ended
How can programming languages hide complicated patterns so that it is easier to program?
8
9
Code Studio, Level 1
Code Exploration
● Try out the velocityX block with your partner.
● Don’t forgot to use the block outside the draw loop, right after
you create your sprite.
● Check out the "Help & Tips" section if you get stuck
Interactive Animations and Games Lesson 18 - Activity
10
Multiple Choice
When you drag a sprite.velocityX block directly below where your sprite is created.
Write the name of your sprite in the block.
Assign the velocityX property a value of 2.
The fish sprite will move to the right when you run the program.
True
False
11
Why might you want to use a velocity block instead of the counter
pattern?
Give an example of a counter pattern and how you could use a
velocity block instead.
Interactive Animations and Games Lesson 18 - Activity
12
Open Ended
Why might you want to use a velocity block instead of the counter pattern?
Give an example of a counter pattern and how you could use a velocity block instead.
13
Code Studio, Level 3-7
Interactive Animations and Games Lesson 18 - Activity
Do This
● Follow the instructions on each level
● If you get stuck, try…
○ Help and Tips Tab
○ Code Documentation
● If you make a big mistake…
○ Use version history to go back
14
Multiple Choice
In Clever|Code.org, Level 3-7, follow the instructions on each level
If you get stuck, try…
Help and Tips Tab
Code Documentation
If you make a big mistake…
Use version history to go back
True
False
15
Multiple Choice
The feather.velocityY = 1 is below the feather sprite and outside the draw loop.
True
False
16
Multiple Choice
The sun.rotationSpeed = 3 is below the sun sprite and outside the draw loop.
True
False
17
Multiple Choice
What property needs to be added inside the draw loop for the wheel to start spinning when the user presses the space bar?
wheel.rotationSpeed = 3
wheel.velocityX = 3
wheel.velocityY = 3
18
Open Ended
18.6 The code in the image uses if statements to make a fish sprite move in different directions.
Look at if statements that check the sprite's position and set its velocity.
With your partner, discuss what you think the code will do, and write your answer below.
19
Multiple Choice
The conditional with a less than, ball.y < 20 than ball.VelocityY = 5 will bounce the ball up in the game lab.
True
Fall
20
Code Studio, Level 8
Practice Level
Do This
●
Do all of the practice levels
●
Follow the instructions in Code Studio
●
Check out the Help & Tips tab if you need help
Interactive Animations and Games Lesson 18 - Activity
21
Multiple Choice
Code Studio, Level 8
Practice Level
Do This
Do all of the practice levels
Follow the instructions in Code Studio
Check out the Help & Tips tab if you need help
True
False
22
Multiple Choice
In order for the flyBot to move when the space bar is pressed, you need to add:
if statement
keyWentDown "space"
velocityY = -2 inside the draw loop.
True
False
23
Multiple Choice
In order for the brush to move when the down arrow is pressed and to bounce up, you need to add:
if statement
keyWentDown "down"
brush.velocityY = 2, and
if statement
brush.y > 330
brush.velocityY = -3
inside the draw loop.
True
False
24
Code Studio, Level 9
Assessment Level
Do This
●
Follow the instructions in Code Studio
●
The "Rubric" tab describes how to demonstrate your understanding
●
Check out the Help & Tips tab if you need help
Interactive Animations and Games Lesson 18 - Activity
25
Multiple Choice
Code Studio, Level 9
Assessment Level
Do This
Follow the instructions in Code Studio
The "Rubric" tab describes how to demonstrate your understanding
Check out the Help & Tips tab if you need help
True
False
26
Multiple Choice
In order to code the fish to move to the right add:
if statement
keyWentDown "right"
fish.velocityX = 4.
True
False
27
Multiple Choice
If the fish gets to the right-hand side of the screen, move the fish to the left, add:
if statement
fish.x > 400
fish.setAnimation fishL
fish.velocityX = -4.
True
False
28
Multiple Choice
If the fish gets to the right-hand side of the screen, move the fish to the left, add:
if statement
fish.x < 0
fish.setAnimation fishR
fish.velocityX = 4.
True
False
29
Code Studio, Level 10
Challenge Level
Do This
●
Do any or all of the challenge levels
●
Follow the instructions in Code Studio
●
Check out the Help & Tips tab if you need help
Interactive Animations and Games Lesson 18 - Activity
30
Multiple Choice
Code Studio, Level 10
Challenge Level
Do This
Do any or all of the challenge levels
Follow the instructions in Code Studio
Check out the Help & Tips tab if you need help
True
False
31
Multiple Choice
To move the alien up and to the right, add:
alien.velocityX = 3
alien.velocityY = 0
to the if alien.y < 50.
True
Fales
32
Multiple Choice
To move the alien down, add:
alien.velocityX = 0
alien.velocityY = 3
to the if alien.y > 350.
True
Fales
33
Multiple Choice
To move the alien left, add:
alien.velocityX = -3
alien.velocityY = 0
to the if alien.y > 350.
True
Fales
34
Multiple Choice
To strart the alien in the bottom left corner, add:
alien.velocityX = 0
alien.velocityY = 0
to the if alien.y < 50.
True
Fales
35
36
Interactive Animations and Games Lesson 18 - Wrap
Up
Journal Prompt:
As you went through the puzzles, though, you started doing some
interesting movements that we hadn't been able to do before.
● Describe one of those movements, and how you made it.
● Describe another block that you'd like to have.
○ What would you name it?
○ What would it do?
○ What code would it hide inside?
○ How would it help you?
37
Open Ended
Journal Prompt:
As you went through the quizizz, though, you started doing some interesting movements that we hadn't been able to do before.
Describe one of those movements, and how you made it.
Describe another block that you'd like to have.
What would you name it?
What would it do?
What code would it hide inside?
How would it help you?
38
Open Ended
Question of the Day
What are more ways that the computer can react to user input?
39
Interactive Animations and Games Lesson 18 - Wrap
Up
Question of the Day
What are more ways that the computer
can react to user input?
Interactive Animations and Games
Lesson 18
Velocity
Show answer
Auto Play
Slide 1 / 39
SLIDE
Similar Resources on Wayground
36 questions
Relationships in the Universe
Presentation
•
6th - 8th Grade
32 questions
2023 TCi Adaptations Lesson 4: Observing Natural Selection...
Presentation
•
6th - 8th Grade
28 questions
Computer Basics Review
Presentation
•
6th - 8th Grade
34 questions
Vocabulary Test Weeks 5-8
Presentation
•
6th - 8th Grade
35 questions
🐛History of Rock and Roll - 1
Presentation
•
6th - 8th Grade
34 questions
Solving and Graphing Inequalities
Presentation
•
6th - 8th Grade
34 questions
Calculating Density
Presentation
•
6th - 8th Grade
35 questions
PSSA 6th Grade ELA Review
Presentation
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade