It sounds like you're referring to the classic adventure game (originally released by Lucasfilm Games in 1989).