That's what happens when you stay up all night. Happens to me all the time.
I stayed up all night, went to sleep for an hour. Woke up, felt weird, etc. Didn't stop until after 1st period at school. I couldn't walk well, laughed at stupid things, etc.