Question: how long does it take to learn how to make a video game?
Answer: Being able to significantly add to or change example code: a few months, to a few years, depending on the complexity of code being altered, or the size of the change being made. Being able to write a crummy game from scratch: a few months. Being able to make a decent game: 1-3 years of practice.