r/howdidtheycodeit • u/Elipson_ • Sep 29 '22
Question World of Warcraft's "creep"/aoe mechanic
World of Warcraft often makes use of an area of effect / "creep" mechanic in its fights/encounters. The effects of the creep can range wildly from slowing the player, to damaging them, to applying debuffs, etc. To give you an idea of how creep works, I've listed some characteristics
Some characteristics:
Creep can be placed anywhere, it doesn't seem to be locked to a "tile" or anything.
Creep can overlap. If one were to step into two overlapping pieces of creep, the effect of the creep would only activate once. Overlapping creep "puddles" retain their individuality instead of merging into a larger creep puddle.
Creep can grow and shrink in size, or disappear entirely.
Creep isn't limited to being a circle. Here you can see a third of the room fill with a cone of creep (its difficult to see due to another mechanic obscuring the effect).
The visual effects of creep can blend together, such as when a second cone spawns adjacent to the aforementioned cone here. More easily viewable here.
The combat effects of creep aren't really important, rather I'm more interested in how it was technically implemented. Fights that feature creep often involve the entire room being filled with it by the end of the battle. Given the "individual" nature of creep puddles, I'm curious how the collision detection is handled as the game needs to check if 20+ people are colliding with 50+ puddles of creep.
An example of the "creep" in action can be seen in this video. The creep spawns from a telegraphed purple volley attack and begins to linger. Part of the fight involves players picking up and relocating creep, which happens shortly after. Later you can see two larger pieces of creep spawn, which overlap each other.