You seem like someone who would like to read about my thought process on how I programmed the mechanics.
https://www.patreon.com/collection/676937?view=expanded