
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
35 questions
EDPM Revision
Presentation
•
6th - 8th Grade
34 questions
WED Notes
Presentation
•
6th - 8th Grade
34 questions
RACE Strategy
Presentation
•
6th - 8th Grade
35 questions
Plate Tectonics
Presentation
•
6th - 8th Grade
35 questions
Using Commas
Presentation
•
6th - 8th Grade
36 questions
Layers of the Earth
Presentation
•
6th - 8th Grade
34 questions
Layers of the Atmosphere Doodle Notes
Presentation
•
6th - 8th Grade
33 questions
H11 Grammar: Roots and Root Words
Presentation
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
17 questions
guess the logo
Quiz
•
8th Grade
10 questions
Candy
Quiz
•
4th - 8th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
22 questions
Dot Plots and Histograms
Quiz
•
6th Grade
10 questions
Memorial Day History and Traditions
Interactive video
•
5th - 8th Grade