Level 6: Hit Box - IncrediCoders/Python1 GitHub Wiki
Queen Cobra added this page on June 6, 2025
Here is a bonus article that will tell you more about Hit Box!
In addition to this bonus article, you can find other bonus articles that teach you the topics I covered in Level 6: Collision & Audio.
Learn About Hit Box
A hit box is the invisible shape around an object that helps your program know where it can be touched or bumped into. It's often a rectangle, square, or circle that wraps around a character, item, or obstacle.
Why Hit Box Matters
Without a hit box, your game wouldn’t know exactly when or where two things collide. Hit boxes make collision detection more accurate and fair, especially in games where timing and movement matter.
Python Example
TBD
Comparing Programming Languages
TBD
Learn More
TBD
Next Steps
Next, you can take on the two extra challenges to chase the Creeper and learn more! When you're done, you can move on to Level 7, IncrediCards!
Take the Challenges!
-
Challenge 1: In this challenge, you are going to...
-
Challenge 2: In this second challenge, you are going to...
More Level 6 Resources
In addition to this Online Articles page and the instructions for our Level 6 challenges, we also have a Help Page, a Learning Quiz, an Unplugged Activity, and a Rewards article:
-
Level 6: Help - This page helps you complete the instructions in the book, in case you get stuck.
-
Level 6: Learning Quiz - I wrote some questions in case you want to quiz yourself about what you learned. Or you can teach others and quiz them!
-
Level 6: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game,
-
Level 6: Rewards - If you completed the Boss Battle program that we talked about, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the Mech Award digital download, to show off your accomplishment!
Level 7
After you're completely done with Level 6 (did you do the challenges?), then it's time to move on to Level 7! While you read through Level 7 in your book, you can check out the resources from Grafika & Syntax, as they teach you how to build the IncrediCards program:
I hope you had fun learning about the Boss Battle!
--Queen Cobra