Ghost "seal" ai #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AI:
—
at its core, the ghost AI in the original Pac-Man is deceptively simple, especially when viewed from a grid-based movement perspective. The basic behavior you described — move forward until hitting a wall, then turn — is the foundation. But the magic comes from how each ghost chooses its direction at intersections.
🧠 Core Movement Logic
👻 Classic Ghost Behaviors (for flavor)
These behaviors are implemented by choosing a target tile, then selecting the direction that brings the ghost closest to it (using Manhattan distance).
🧩 For Your Seals in Penger
You can start with:
Then layer in personality:
Want help designing a tile-based movement system that supports these behaviors, or sketching out how to store ghost state and decision logic?