15 lines. During my offline activities I made an entire RPG with the demo version of GM called Quest for the Silver Sword which, although text based, is more advanced than any other game I've ever made. I had intended to release the engine, but my computer broke before I had completed the readme.
Aaaanyways... My point is that the only thing you need to make good games is determination.