The first in a series of Game Coding guides, with emphasis on code, are available online on the GameCore3d.com website. Those guides will help you, step by step, to create classic gameplay games. You can find the guides and sample projects here:
Tutorial