I'm a beginner programmer and would like to prepare for creating a game. I have few ideas, but they don't matter.
What matter now is that I need some help with theory of creating a game. The games I will create in closest future will be simple so that I won't plan in upgrading/fixing them, and I don't have to worry about its composition that much(since it won't be changed at all) but sooner or later I will have to.
This said, my question is:
How to create a game structure so that I don't hardcode it too much and I can add new features/upgrade it in future? (Some small source code with explanation would be appreciated, I would also appreciate links to tutorials)
(PS. I mean that I know that I should make something like XML files with data in it, but I have completly no idea how they should look like, what they should contain and how game should read these)
Also, any advices regarding creating game or game engine would be appreciated as well.
And if it matters to anyone, I will be using SDL(and maybe OpenGL, after I get to that).
Umm, I already know basics of C++. I would like to create game in this language(and I mentioned I will use SDL for my first projects). Thanks for reply, but your answer covers none of my questions. I can create simple game like tic tac toe or duck shooter, but I would like to make something better then that, and learn new things.