I like the following quote by Addy Osmani.

You shouldn't feel bad if it took you 2 hours to code the game. At least you learned something from it. You'll slowly realize that it's all about practice. The more you practise, the better you get. So, don't worry - just keep going!