I get dizzy when i play video games?

Today at school, my teacher let me have free time so i ate my subway sandwich, cookies and water. After that i went on the computer and play minecraft, i got dizzy and went to the bathroom, when i went to the bathroom i threw up