I came across a book called Design Patterns of Successful RPG. As far as I can tell it’s free to share which it says on page 2 of the PDF. Hope someone finds it interesting.
Just a side note, this was originally created for RPG games like D&D but can be adapted for computer RPGs as well.