This is a small part of the code for a game I am working on (the skillbar GUI element):
http://pastebin.com/m2af596b2
If you don't understand anything of this, I don't recommend you to look into creating any complex game.
You could start out with Game Maker, which will allow you to create small 2D games without any programming knowledge.