I've only made one game but my structure is about this:
Everything in classes, and in seperate files, included in the main file, or included in their parents file.
Main loop contains this:
Delta time update
States (different states of the game, e.g. singleplayer, multiplayer, menu, login etc.) I just use a global variable called state and check it with a switch statement, and execute various functions such as startgame(), initeditor() etc.
Mouse update and of course flip and cls. That's it.
Everything in classes, and in seperate files, included in the main file, or included in their parents file.
Main loop contains this:
Delta time update
States (different states of the game, e.g. singleplayer, multiplayer, menu, login etc.) I just use a global variable called state and check it with a switch statement, and execute various functions such as startgame(), initeditor() etc.
Mouse update and of course flip and cls. That's it.