There is no particular tutorial unfortunately, but the code of addons (such as of the fps.js addon) is implemented external in regards to the core engine API. So you can freely copy/override any methods offered by them.