Before you start programming your own game ideas, its best to start off by making some simple game concepts, like:
rock paper scissors,
make a few basic games like that so you understand the processes involved, then try to make your game idea. Do it in really small baby steps though, and don't just dive in plan out what your going to do and how first.
If you don't know how to make a basic game like the ones listed above, then start off by just learning the basic building blocks of what language your learning. You can do this through books or internet tutorials (although if your serious about it then I would recommend a book). Then start making text-based games. You could do something where the user enters YES or NO into a console to give an outcome, this only involves "if" and "if else" statements or a "switch" statement, all of which are fairly simple. In addition, this method will be more satisfying as you can produce playable projects. Then start to work out how to make shapes appear on a screen, then how to control then with your keyboard, then collision. Just keep building your knowledge like this.