The x button at the top of the window doesn't work. I would recommend learning how to fix that if you use RayLib again. The "basic window" example on the site shows a way to do it, though I don't know if there's any complications that would come up in an actual game.
For the game itself, the movement is good and the difference between obstacle and good thing is clear. I would recommend trying to have more contrast between background and obstacles though. Also, if you design a game that goes on forever, it's a good idea to include some quick mechanism for increasing difficulty. For example, in this case having the obstacles spawn more often if the player has a higher score would've worked.