I've built a small Asteroids-like game during the last few weeks. Mostly to learn how keyboard input works for both a Win32 and an X11 platform layer. Additionally I set myself the challenge to only draw lines and only use two colors for the main game; both of which I've achieved. It's not a full Asteroids clone, it's missing the enemy ships for example, but additional changes would only concern gameplay and not the platform layer.