There are multiple ways to become a full-time game programmer, but Lukas Donkers essentially did it by… programming a game. A very successful one, for the Ludum Dare game jam. “We made a physics puzzle game […] we called it String Theory, because your only interaction was moving lines around.”
This was something he made with fellow students during his computer science degree. It did very well in the jam,