Just a rant

I know I probably sound stupid coming on here with this, but it seems as if my boyfriend is just bored of me. We’ve been together 4 years. I try coming on to him randomly and he always just pushes me off. I tried to surprise him earlier, by walking in the room naked, and he just pushed me off and told me to move he’s “playing a game”. How can I fix this? Makes me feel sad.