Spellbound is a video game that was designed and programmed by David Jones with music by Rob Hubbard and released in 1985 for the ZX Spectrum and Amstrad CPC (also with Ed Hickman) home computers.
Magic Knight is transported to a castle with a collection of other characters and must rescue his friend Gimbal the wizard.
Magic Knight must rescue Gimbal from his self-inflicted imprisonment and then ensure both he and the castle's other inhabitants are all returned to their correct time and place.
Like Magic Knight, these characters move around (albeit off-screen, they are always static when on-screen) and can fall asleep and grow hungry.
A game called Crime Busters featuring a detective in a mansion, was released by IJK Software in 1986, and found to use significant portions of the Spellbound code.