Fill the room with things that fight back. Build an EnemyBase state machine that chases, telegraphs and attacks with its own hitbox. Then build four archetypes that all reuse it: a Grunt, a fast Skitterling, a charging bruiser, and a boss. Everything runs on the combat pipeline you already built.
8
Lessons
740
XP Reward
Intermediate
Difficulty
No videos to zone out to. You write the code yourself in the browser, and Code Checks show what your code passed as you go.
Final result: The enemy AI you build in this course
This capstone assumes you've built these systems. New to them? Run these quests first.
Start the first 3 lessons free. Membership unlocks the other 5, plus every other quest and campaign.
Membership is US$25 per month or US$200 per year. Eligible new members start with 7 days free. Card required.
0 of 8 lessons completed
Member download: included with Guild Hall membership.
It is the finished project for the whole quest. Use it to compare your work or to recover a broken step.
Four enemy types and a three-pattern boss on one shared state machine, with attacks you can read. Free to download, MIT licensed, no account needed.
View the free open-source version on GitHub What is in the Enemy AI projectShort browser experiments on ideas this quest teaches. Free, no account, a few minutes each.
Fill the room with things that fight back. Build an EnemyBase state machine that chases, telegraphs and attacks with its own hitbox. Then build four archetypes that all reuse it: a Grunt, a fast Skitterling, a charging bruiser, and a boss. Everything runs on the combat pipeline you already built.
Finish it, then keep the momentum. Here's the logical next step.
Recommended
2D Roguelike: Rooms & Dungeon
Quest 4 of 7 in the 2D Roguelike campaign.
Turn your test arena into a real dungeon. Build a DungeonRoom that generates its own floor, border walls and interior layout from code on a TileMapLayer. Add doors that lock while a wave is alive and open the instant the room is cleared. Then chain rooms into a room-to-room descent that ends at a boss. Reuses the enemies and the clear signal from Course 3.
First 3 lessons free3-5 hours
State Machine AI for 3D Enemies
Optional. Not part of your current route. Needs: Code From Zero, or you can already read GDScript.
Build a full state machine AI for 3D enemies in Godot 4.x. They chase, attack, circle, back away, and react to damage with real knockback and combo tracking, the kind of enemy that actually feels alive.
First 4 lessons free10-14 hours
Advanced Inventory UI
Optional. Not part of your current route. Needs: Finish Inventory System first; Finish Stats & Leveling System first.
Turn your inventory backend into a real, playable UI: drag-and-drop, tooltips, an equipment doll, a hotbar, and save/load.
Guild Hall7-9 hours
Browse campaigns Submit a build to the Showcase Back to your dashboard