Could do with a guide or tutorial.
Also I've seen this concept done back in the 80's as well as some flash games from waybackwhen