Games seem to help with dreaming. I have had a dream about something close to Resident Evil as well. It got into a loop where these zombies would keep coming into this room I was in. I would shoot them then it would start over again. After a few times it made me think of Resident Evil which made me think of my physical life and brought the dream close to lucidity. The rest of the dream was very vivid and somewhat lucid.