Original Post
Hello! I already know C++ (well, at least the most important parts of it, up to classes and such), and now I'd like to start making simple games to learn the basic concepts of game programming. The problem is I can't find a place to learn how a game is broken down into several source files, how to organise classes amongst the several source files, the logic of header/source file, how to implement the game loop... What I mean is I need guidance on the most pragmatic side of game programming. C++ books/tutorials tend to focus on singlefile coding for pedagogical reasons, so I'm a bit unfamiliar with those multifile techniques...
I've tried to look at open source games to find a "pattern", but it seems each programmer uses his own method and I end up even more confused.
I read somewhere (can't remember the site) that a good checklist of games to make is:
Tetris - basic input/output, game loop, collision detection
Breakout - some physic primers
Pacman - AI implementation
Mario - Level creation, storage and reading
But I can't find a good Tetris tutorial to begin with. I need to know the common method and logistics to program any game!
Can anybody help me?
I've tried to look at open source games to find a "pattern", but it seems each programmer uses his own method and I end up even more confused.
I read somewhere (can't remember the site) that a good checklist of games to make is:
Tetris - basic input/output, game loop, collision detection
Breakout - some physic primers
Pacman - AI implementation
Mario - Level creation, storage and reading
But I can't find a good Tetris tutorial to begin with. I need to know the common method and logistics to program any game!
Can anybody help me?