on the way up it glanced against the wire from which the light bulb depended and the light began to swing back and forth , making the room 's hooded shadows rock monstrously against the floor and walls .