Emanuele Feronato published a tutorial series on creating a game like Teeter Up in Phaser. He writes: "During the past few days I’ve been watching a few Netflix video games on my iPhone, and I particularly liked Teeter (Up).
It’s a simple physics game with a ball, a platform, and a hole. What could possibly go wrong?
In this first part of the series, I am focusing on platform movement. There’s a ball, a dynamic body, on a platform, which is a static or a kinematic body.
When the player taps on the left side of the screen, the left side of the bar raises, and the same concept applies to the right side of the screen.
So I am rotating the platform accordingly, around its center, and moving it up using trigonometry."