Home Module 1
⚡ Module 01 · Intermediate

Physics & Collision

✨ PAN'S RULE: If it's not chaotic, it's not magic! ✨

What if you could make a block of ice super slippery and a mud pit super sticky? In this mission, you'll learn the secret code that makes game worlds feel real—gravity, collisions, and more. Let's make some (controlled) chaos! 💥

🛡️ SECRET AGENT BRIEFING: Your personal info—like your real name, school, or address—is a top-secret code. Never put it in your games or share it with online tools. Your mission is to protect your code at all times!
🍎

Simulating Gravity

Imagine your game character is a bouncy ball. If you do nothing, it just floats in space! Gravity is the secret rule we add that constantly pulls it down, just like on Earth. Every split second, we tell the game, "Hey, add a little more speed going down!" That's it!

Gravity: OFF

Gravity: ON

Which one feels more alive? 🤔

📺 Blackthornprod — "Making a 2D PLATFORMER In 10 MINUTES" — Watch a pro build a game fast and see how they make jumping and bouncing feel super fun!

🧐 Which Physics Feel Right?

Good game physics make a world feel believable. Bad physics make it feel broken. Which of these looks more fun to play? Why?

Weird Physics

Fun Physics

Gamers call this a 'janky hitbox.' Your mission as a builder is to make your hitboxes feel fair and fun, not frustrating!

🕵️ Knowledge Check

What happens if the "Hitbox" of your player is larger than their visual character model?

The player will take damage from attacks that looked like they missed, causing extreme frustration.
The game will run faster.
💻 Mission: Collision Detection

Bounding Boxes (AABB)

Let's teach the computer how to see if two boxes are touching! The simplest way is to check if their sides have crossed over each other. This is called an Axis-Aligned Bounding Box (AABB). Below, write a C# style `if` statement to check if `box1`'s right side is past `box2`'s left side.

[ENGINE LOG]: Waiting for collision logic...

🚀 Pro-Tip: The Full Check!
A real AABB check needs to test all four sides! It looks something like this in C#:
if (box1.right > box2.left && box1.left < box2.right && box1.bottom > box2.top && box1.top < box2.bottom)
Don't just memorize it—try to understand it! Think of it this way: you're checking for all the ways the boxes could be *missing* each other. If none of those are true, they *must* be colliding! See how a real engine like Godot handles this in their official documentation.

🚀 Pro Mission: A Better Collision

Circle vs. Circle

AABB is great for boxes, but what about round objects like fireballs or planets? For that, we use Circle Collision Detection!
Your Mission: Research how circle collision works. Then, write a C# style `if` statement for it below.
Hint: It involves checking the distance between the two circles' centers and comparing it to the sum of their radii (radius).

[ENGINE LOG]: Awaiting Pro Mission logic...

🗺️ Your Next Mission

Ready to keep building? These are your next steps, agent.

🛡️ Safety Check: Community Content
Tools like Godot and GDevelop sometimes have "asset stores" where people share things they've made. This is awesome, but it's an unmoderated space. Always browse these community areas with a parent to make sure the content is right for you.

👨‍👩‍👧 Parent Corner

Your child is learning about concepts like "hitboxes" and "game loops"—these are the fundamental building blocks of professional game development in engines like Unity and Unreal. This isn't just a game; it's computational thinking in disguise.

Conversation Starters:

← Previous