I think for this reason, there aren't really many books on programming games... well I mean, I could suggest some, but all of them are on an intermediate - advanced level in terms of code.
So my suggestion is to just learn the basics, but have fun with them - what I mean is, be creative and start to make small games as you can - maybe start with a text-based game and then gradually move up from there. I find then when learning any skill, it's good to put what you've learnt into practice sooner rather than later so you don't get caught in the technicalities. It's also just nice to experience some application for yourself outside of textbook examples.
Oh, and have fun.

Find content
Male