How do I center text on the middle of the screen in sfml 2.5.0?
I have tried things like:
text.setOrigin(text.getLocalBounds().width / 2.0f, text.getLocalBounds().height / 2.0f);
text.setPosition(screenWidth / 2, screenHeight / 2);
But it is just slightly off.