So for a school assignment, we had to create some kind of game with at least two self-defined classes while using object-oriented programming. However, I’m finding it quite hard to implement this OOP way of thinking. The game I created is just a complete copy of the Flappy Birds game.
The problem is, that i didn’t really find use for classes since i could just write all the code on the main page. I just got some feedback for the teacher and she said my code was very disorganized and that i needed an extra class to fulfill requirements.
Can anybody give me some tips or help me with how to organize my code and maybe come up with some ideas on what my two classes could be?
I uploadet the code at github above.