This tutorial shows how I do screen shake in Godot Engine for my game Gravity Ace. I walk you through all of the code line by line. I also cover 3 different algorithms for implementing the actual screen shake and include a demo project that you can download from Github to use in your own games.
Tutorial video: https://youtu.be/kLqPr3eqAyo
The demo runs in Godot Engine but the concepts are universal.
Use this however you like but please do not send pull requests.
I'm John and I'm making a game called Gravity Ace. Make my day and go buy a copy!