Help with c++ game

Hey everyone. I'm writing a c++ game for an assignment. We have to come with a simple game, and mine is where you play as a character and have to avoid certain things that would fall from the top of the screen. Gunna use a random number generator to spawn the objects at different x coordinates but fixed at a fixed y coordinate (aka top of the screen).

My problem is that I don't know how to make it so that whenever the objects that spawn touch the character, they lose points or the game itself. I'm using png's for images, and using openframeworks as well. It's required for the assignment.

Just know that my c++ knowledge is pretty basic. Any help would be greatly appreciated!
This isn't particularly a C++ question; it's an algorithms question, about the phenomenon known as "collision detection". If you do a search for that, you'll find many algorithms.
Topic archived. No new replies allowed.