Flappy birds with a different style of obstacle


I’m trying to do a flappybird-type game with the obstacle above,
how do I set up a collision for it?