Mikey of Legend

Week 5: Combat, Hitboxes, and Enemies (Part 1)

Learning objectives: Implement player attacks and first enemy combat loop.

Estimated time: 8-10 hours

Signed in as loading...

Checking purchase access...

Introduction

This week is split into short video parts so you focus on one concept at a time, complete the matching build task, and verify results before moving to the next part.

Lesson breakdown

  • Lesson 1: Combat Verb and Hitbox Design - Create hitbox/hurtbox architecture with Area2D
  • Lesson 2: Enemy Patrol and Damage Flow - Trigger damage via signals and groups
  • Lesson 3: Loop Testing and Encounter Balance - Build first patrol enemy with contact damage
  • Lesson 4: Integration and testing pass for this week scope.
  • Lesson 5: Final polish and handoff notes for next week.

Try this now

  • Complete one focused implementation pass before watching the next segment.
  • Capture a before and after snapshot for the system you changed.
  • Write one short note on what to tune in your next iteration.

How this week works

This week is split into short video parts so you focus on one concept at a time, complete the matching build task, and verify results before moving to the next part.

Video segment plan

Use one lesson segment per step for Week 5: Combat, Hitboxes, and Enemies (Part 1). Pause between segments and complete the hands-on task before continuing.

Image and diagram references

Capture setup screenshots, inspector states, and scene graphs as you work so each step has a visual checklist to validate progress.

Interactive lesson parts (6-10 min each)

Part 1: Combat Verb and Hitbox Design

Watch Build Check
7 min Part video
Video part 1: Combat Verb and Hitbox Design

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Create hitbox/hurtbox architecture with Area2D

Part 2: Enemy Patrol and Damage Flow

Watch Build Check
8 min Part video
Video part 2: Enemy Patrol and Damage Flow

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Trigger damage via signals and groups

Part 3: Loop Testing and Encounter Balance

Watch Build Check
9 min Part video
Video part 3: Loop Testing and Encounter Balance

Embed a short clip for this step and keep it under 10 minutes before moving to the build task.

Build first patrol enemy with contact damage

Code checkpoint

Add or adapt this snippet during your build pass, then run and verify behavior before moving to the next week.

Practice snippet GDScript
# Step checkpoint for Week 5: Combat, Hitboxes, and Enemies (Part 1)
func _ready() -> void:
    print("Checkpoint complete for this week")