Review: Ghost Catcher
Expected Time: 45 - 60 mins.
Students will be able to apply these concepts:
- Color detection
- Actor touch detection
- Making Actors appear and disappear
- Create a ghost-catcher game where ghosts respond to touching certain colors.
- Review from Programming 101
New Tynker Code Blocks or Tools
- Review from Programming 101
Materials, Resources, and Prep
- One computer for each student to log on to tynker.com or one iPad for each student with the Tynker app installed.
- (Optional) Programming 101 course - Lessons 9 (Make a Birthday Card) and 17 (Color Sensing) - Concepts in this lesson were originally introduced in those lessons in case you find it helpful to refer students back to those.
Students can work through this whole lesson successfully on their own computers or iPads.
1. "Concepts" (concepts)
- Reviews concepts:
- Touching Actor - The blue conditional block - "Touching Actor?"- returns "true" or "false" depending on if it is touching the Actor.
- Touching Color - Another blue conditional block - "Touching Color?" - that returns "true" or "false".
- Show / Hide - Simple blocks that make Actors appear and disappear.
2-3. "Ghost Touch" (DIY project)
- Students program the Ghost to move from left to right, and program the Bat to disappear and make a sound when it touches the Ghost.
4-5. "Ghost Trap" (DIY project)
- Program the Bat to defend itself against the Ghost by drawing a line, and program the Ghost to bounce back when it touches the line.
- Note that on web, if the bat is dragged to the edge of the Stage, he stops drawing, and the mouse needs to be clicked again.
- The Bat will still disappear and scream if it touches the Ghost!
6. "Catch the Ghosts" (puzzle)
- Aside from the programming challenge, this game is fun but can be challenging to win! They need to trap one ghost at a time, and avoid both ghosts, so both are destroyed in 30 seconds.
- Students need to program the Bat, but the ghost and timer coding has already been done.
- Your students will figure out that they need to program the bat to always go to the mouse-pointer or touch location and to put the pen down when they are clicking the mouse or touching the tablet.
7-8. "Ghost Catcher Game" (DIY project)
- This is a more advanced ghost catching project that requires your students to use the skills they've learned in the previous modules.
- Students need to size the Actors they add correctly or else they'll always touch during gameplay.
- Help students realize that in Step 9, they get to choose which pen color that each actor bounces off. This is different than the ghost puzzle where each ghost bounced off the pen color that was the same as their color.
- Some students may need help understanding from the sample game that their Actors should draw, and their other Actors should bounce off. They should code each appropriately.
Ghost Trapper badge earned!
Wrap Up and Extend the Learning
- Invite student volunteers who are willing to have you share their Ghost Catcher Game with the whole class.
- As you display the Ghost Catcher project in action, ask the student sharing what coding challenges they faced with this project, and what they learned from them. You can also share other challenges you saw students dealing with, and how they handled them.
US Standards Addressed
- 3.RI.3, 3.RI.5, 3.RI.7, 3.RF.3 3.RF.4, 3.L.4
- 4.RI.3, 4.RI.7, 4.RF.3, 4.RF.4, 4.L.4
- L1:3.CT.1, L1:3.CT.4, L1:6.CT.1, L1:6.CPP.1, L1:6.CPP.5, L1:6.CPP.6, L1:6.CPP.8
UK Standards Addressed
UK equivalent grade/class - Year 4/Year 5/Year 6
National Curriculum of England (Computing)
understand what algorithms are, how they are implemented as programs on digital devices, and that programs execute by following precise and unambiguous instructions
create and debug simple programs
use logical reasoning to predict the behaviour of simple programs
use technology purposely to create, organise, store manipulate and retrieve digital content
design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
use sequence, selection, and repetition in programs, work with variables and various forms of input and output
use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content that accomplish given goals, including collecting, analysing, evaluating and presenting data and information
design use and evaluate computational abstractions that model the state and behaviour of real world problems and physical thinking (KS3)
- understand several key algorithms that reflect computational thinking (for example, ones for sorting and searching); use logical reasoning to compare the utility of alternative algorithms for the same problem (KS3)