Mechanic Prototype: Skyrim Lock Picking

I have decided to start making copying mini-games and mechanics that I find interesting in some video games.

The first mini-game that I have chosen is the lockpicking found in the Elder Scrolls V: Skyrim, which is one of my favorite games to play.

gif of a Lockpicking mechanic

This mechanic seemed very trivial to implement at first as it in its simplest forms consists of simply matching a rotation however, that would make the mechanic very bland and hard to balance as it would be very hard to increase the difficulty.

To do to add more depth to the mechanic you can let the player succeed when they are close enough to the right rotation.

Next, you make the unlocking process take a certain amount of time, the progress is showed by the rotation of the lock itself.

Finally, you show the player how close they are to the right solution by letting the rotation of the lock go further towards the unlock position. To add feedback make the lock shake a little to show that it cannot unlocked .

This example is just a quick prototype there is a lot of polish that can be added for to make this complete, such as sounds and better visual feedback.

source code on Pastebin

Leave a reply if you have a good mechanic that you would like to see implemented.