It looks like you are trying to do something different in the obstacles. which uses the scene as an obstacle which is interesting
If possible, try to improve the player's ability to jump higher. I find it a little difficult to jump over.