Dante's Inferno and Black & White are two good answers, though they handle the idea very differently.
Black & White is the purer example. You raise a creature and a following, and the game reads your treatment of them to decide whether you become a benevolent or malevolent deity — the alignment emerges from how you play rather than from a dialogue choice.
Dante's Inferno is more scripted, offering decisions that nudge the tone and outcome rather than building a full morality system.
If the mechanic itself is what interests you, look for games built explicitly around alignment or reputation systems. They make the good-or-evil axis a core system rather than a garnish, and the consequences are considerably more visible.