Chapter 10Fields of View
In the darkness ahead, the hero sees an orc. Hoping to sneak past, our hero skirts the room—but the orc turns to give chase. Sprinting down the hall with the orc hot on their heels, the hero turns into a side passage and hides. The hero was lucky this time—the orc broke off pursuit.
This scene requires that neither the hero nor the monsters know each other’s position until they can see each other. Monsters still chase the player, but only when they can see their intended target. The player is able to maneuver to break line of sight and escape from the monster. In previous chapters, entities are effectively omniscient—able to see the entire map at once. The new features require that entities know what they can see—and ...
Get Hands-on Rust now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.