M
Mr Anonymous
Guest
2) Now this may sound like total movie stupidity but it could be possible I could have created him with my mind. With the lack of sleep my mind could have tried to create an alternative figure based off my id.
... Or, alternative three, you simply had a touch of Monster-At-The-Foot-Of-My-Bed. No id, no particularly deep analysis necessary, nothing actually you haven't experienced on and off before, as a child, just as each and every one of us has at some point or other in our lives - just plain, simple straight forward giving your self a nasty shock whist half awake. And that will be the all of it.
Go back through your description - you saw the shadow on the floor first - a shadow you're eyes interpreted as being that of a human figure. You look and, surprise, there a human shadow man is - exactly, and impeccably literally what you're half awake mind expected to be there from first seeing what it takes to be have been a human shadow on the floor.
Half wakefulness - mis-recognition of form - conscious expectation formed upon that wrongly interpreted visual stimuli - fulfilment.
Congratulations - you're a text book human being.
Stop freaking yourself out and worrying about, literally, nothing. Happens to everyone on occasion. Y'don't want to let a simple visually stimulated glitch put you off going to sleep ever again or worrying about whatever. That really will give you nightmares.