Please stop with these posts that contain no value, neither for you nor for anyone else.
Being a programmer is not something you get over night and having the expectation of reading a few pages on programming and then being able to write all the nice things other did, is thinking in a completely wrong way.
You first need to learn the language you want to use. In your case, I assume this would be C++. Since C++ is one of the most complex languages you can't really learn it with some tutorials on the internet, but instead you should get a
good book.
This StackOverflow list contains very good books.
But just because you bought a book you still won't be a C++ programmer. You have to read it and more importantly practice it by writing simple console applications which utilize different things of C++. Step by step over the time period of months or rather years, you'll get a solid ground on top you can build.
By that time one can only hope that your thinking has been affected as well, because the main job of a programmer is to solve problems. When you think like a programmer something like dynamic 2d lighting doesn't just drive to write a forum post, but instead you'd go and research the topic yourself and figure out on your own what you can use and how you can use it. As an example if you had searched just like a tiny bit, I'm 100% certain that you'd have found Let There Be Light which Jesper Juhl posted. The internet has so many answers and if something isn't enough detailed, you can be sure there's a book about it.
So please stop posting threads with "how do I do X" and start thinking and researching on your own.