Tip of my tongue, certain I saw this within the last year. It's a video game, I think on the Playstation consoles (maybe PS2?), likely originally Japanese, which had multiple sequels (some of which may not have been translated and officially released in the United States. You play the caretaker of a mansion (castle?), I think serving some malevolent being, and the goal of the game is to set traps that will ensnare visitors (intruders?). Kind of like a Dungeon Core or Tower Defense game, except that it's a more discrete number of targets, and I think you play the game from a first-person perspective rather than a more omniscient setup.
I believe there were a wide variety of traps that could be placed in various places on the walls, ceilings, and floors, and that it was possibly to "chain" the traps by having the effects usher your target from one trap to the next. I don't remember exactly how old it was, although if it dates back to the PS2, that puts it back a decade or two.