I have a game which has different game types, i.e Time Trial, Infinite Game etc.
Each game type has different timing rules and potentially collision rules. Obviously in the Time Trial the game ends when the time runs out.
I am currently adding game types by 'hardcoding' them into the program, therefore each time I want to add a new game type I have to recompile the whole program.
Basically to make adding game types easier I don't want to have to recompile everything. So potentially new game types could be downloadable content and would work simply by putting the new type in the game folder.
How would one go about doing this? I assume it is with the use of libs or dlls or something (I have very little knowledge about that so I might be completely incorrect).
I hope that all makes sense and I hope you guys can help me out or atleast point me in the direction of a book or article that explains this methodology.
Thanks in advance.