I know this might be a stupid question. I was trying to make a game with allegro for fun but it getting longer and longer after a while. Now I know I should divide my project to several files instead put all the code at main.cpp.
But how to do this?
Should I have two files for each? One .h and one .cpp ?
I try to find something about OOP and find about class, is class is the separate file I'm thinking?