I would love to write about how I made the game but I think its too early to release the source code.