While working on my next game Don’t Feed the Trolls, I was looking for a “shake effect”. When the player feeds a troll, I want the whole screen to shake to improve visual feedback. A shake effect is very easy to implement, so I quickly hacked in my code to see if it was un… Continue reading How to create a shake action in Cocos2d-x (with source code)