Controller Game
2 J
Objectives
Resources
Materials
Students will make a controller game where a sprite moves when a button sprite it clicked. Other sprites are coded to do an action when the controlled sprite bumps into it.
Scratch Jr
Book about Space
Slide Deck
SLIDESMANIA.COM
SLIDESMANIA.COM
Videos
Vocabulary
Activities
Sample Project
Lesson Title
Event
Message block
Vocabulary
2
Introduce: Discuss Events. Show sample project. Explain that this project uses a Message event to make the astronaut move when arrows are clicked. Have students move the correct direction when you tap the arrows on the screen (Slide 6)
Engage: Read a book about space. Suggested title - Fly Guy Presents: Space by Tom Arnold. Discuss some things students might put in a space scene.
1
4
3
Create: Have students build their project. They could choose to recreate the model program or choose their own scene and sprites.
5
Debrief: Do a gallery walk.
6
Model: Add space background and astronaut sprite. Open sprite editor and create a triangle shape to be a controller arrow. Open the new sprite again and then the editor. Rotate and paint a new color. Make 4 arrows and organize them on the scene
Model: Code each arrow to send a unique colored message when it is tapped. Code the astronaut to move the correct direction when it receives each message. Add additional sprites. Code them to move/respond when bumped.
SLIDESMANIA.COM
Videos
Vocabulary
Activities
Sample Project
Book - Fly Guy Presents: Space
SLIDESMANIA.COM
Videos
Vocabulary
Activities
Sample Project
Sample Project
SLIDESMANIA.COM
An action that causes something to happen.
Event
Move when the arrow is tapped
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Build the Scene
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Resize the Sprite
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Create Arrow Controllers
2
1
4
5
3
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Create Arrow Controllers
2
1
3
4
5
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Broadcast Block
HINT: click the arrow to choose from 6 different colored messages
Send Message
Receive Message
Use these blocks together to cause an algorithm in one sprite to trigger an algorithm in a different sprite.
Use this block in Sprite#1
Use this block in Sprite#2
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Code Arrows
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Code Astronaut
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Test Code
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Add things in Space
1
2
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Code sprites with When Bumped Block
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Sample Code
SLIDESMANIA.COM
Vocabulary
Instructional
Videos
Code
Activities
Sample Project
Credits
Thank you!
SLIDESMANIA.COM
Videos
Vocabulary
Activities
Sample Project