Topological Asteroids

The classic arcade game asteroids is played on a torus. The top and the bottom of the screen are connected, as are the left and the right sides of the screen. This helps facilitate continuous game play by eliminating edges. If we think about the surface as a 2D manifold, then it is also possible to imagine other variations on this theme. Klein bottles, projective planes, etc...

Initially I had hoped that these variations might help people develop an intuition for strange topologies. Sadly I don't think that these variations did not end up being very educational, but some of them are pretty entertaining. You can play the games through the links below. The bulk of the code was lifted from Doug McInnes - I just tweaked the boundary conditions. If you want to make further tweaks, source code is available on (github).