My goal was not to create an addictive game (although I’m happy with the result); rather, I wanted to learn about how game frameworks work. Thus, I wrote the game from scratch, creating my own “game engine”. One of the most interesting parts of this project was implementing a collision detection algorithm. The code is available here if you’re interested. Keep in mind that I wrote this a long time ago when I was naive and didn’t comment my code very much.