Feature:Wall Clipping

From Post-Apocalyptic RPG wiki

Jump to: navigation, search

This article documents a requested feature of medium priority

The features or design guidelines described in this article are only a proposal made by one or some persons. It may not have been reviewed and ratified by the core development team yet.

This item has been marked as medium priority, meaning it would be welcome, but is not crucial. There might be more urgent things to attend to.


Wall "clipping" or that thing to make characters visible behind walls

Using this approach, each wall uses 2 different sprites. One sprite shows a normal version, while the other sprite shows a cut version of the wall.

In practice, these two versions are separate sprites

Now let's see how this works in practice. You have a simple room. When the agent is outside the room, all of the wall segments use their normal version. When the agent enters the room, the engine "sees" some of those wall objects are blocking the view. Instead of using the normal version, the wall segments which have been marked as blocking the view, now use the cut version of the sprite. This way, the player can see what would otherwise be hidden behind the walls.

Personal tools