I've seen several games like that like Inevitability and Captain Forever. I have been working on another game like that called Asteroid Survival (Needs better name?) which is a sandbox game in which you survive in a group of random asteroids and build your ship. I'm having a little trouble with the build-your-ship part though...