Overview
The class learns about collision detection on the computer. Pairs explore how a computer could use sprite location and size properties and math to detect whether two sprites are touching. The class then uses the isTouching() block to create different effects when sprites collide, including playing sounds. Last, they use their new skills to improve the sidescroller game that they started in the last lesson.Vocab
- Abstraction - a simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
- Debugging - Finding and fixing problems in an algorithm or program.
- If-Statement - The common programming structure that implements "conditional statements".
New Code
Resources
-
Collision Detection (Version B) - Activity Guide (copy as MS Word, Google Doc)
-
Collision Detection (Version A) - Activity Guide (copy as MS Word, Google Doc)