I don't know how that can be done, the iPhone is a single app at a time. Any app that is not running, can only do alerts or Pushes. To make an app that 'sleeps' and records then you run a game app, just don't think it'll work.
Great idea thou...
If there were true multi-tasking that might work, Apple is kinda strick about what an app can and can't do.