Read the manual, follow the examples, understand the syntax of the language. Eventually, you have to get to the point where you can visualize a small problem and solve it using the language. All programs are just a collection of small solutions.
How do I print to the screen? How do I make a plain(plane)? How do I load an image file? Studying the language will give you the knowledge to answer these questions. That's what programming is all about, in any language.
When you get to that point, you can then start thinking: How will I load and display these resources? How will I organize them? What input do I need to capture from the user and how will I write logic that will affect the game components?
Is that two months full time or two months part time after work/school? If the latter, you're not going to make it. It takes time to learn a language and mentally organize the syntax to create logical solutions. It's not impossible, but it is a skill that must be learned.
--
TAZ
Culture tip: When you see someone type "gimmie da codez" what they are really saying is that there is no cheat code for learning to program.
Programming is like capentry, you have to make the parts and then assemble the parts to make a chair. You then have to spend a lot of time sanding and varnishing to make a nice chair. Programs start as small parts: a menu function, a main loop, file loading, etc. These parts are put together to make a program. After it is up and running, you frequently have to go back and fine tune it to make the program run smoother, add new features, or fix flaws in the design that you did not catch the first time.