sorry if this is in the wrong place or just a stupid question =(. anyways ive read my way through several tutorials in the beginner section and i understand it but i dont get how to actually make the game. i have used gml (game maker language) in which i would take an object select an event and then add in the code which would be executed in order. for example ball>up arrow>move up etc.
what i dont get it how a game in c++ works, i think there are multiple files like one for ai one for graphics etc. (just a guess) and they are all run from a main file. im also not sure how those files are setup is it something like:
int main()
int ball
int key
int player
*an if statement*
*do something*
*an if statement*
*do something*
if someone can clarify this to me or can just point me in the direction of something that can that would be great because for the life of me i cant find anything