Did you try using a linear equation? You keep bumping this without actually trying to solve it yourself, it seems.
actually I don't know about linear equation, I am just googling about linear equation and trying it
but currently i am also asking about
invert screen
random obstacles, distance
birds position up, down, mid randomly