Becoming a video game programmer typically takes about four years of college, often in computer science or a dedicated game development program. That said, some schools offer accelerated degree paths that let you finish sooner if you're motivated.
Beyond the degree, hands-on skills matter enormously. Familiarity with programming languages such as C or C++ is frequently expected, and a strong portfolio of projects can open doors just as effectively as a diploma. Many successful programmers blend formal education with plenty of self-directed practice.