I'm currently making a top-down shooter game and it's my first time developing with SFML. I came across and issue and I want to know if there is a better way to solve it.
I need to get the "camera" to move around with the player. I can think of two ways to do this: 1) move the world around the player and keep the player in the same spot to keep the illusion that the player is moving. Or 2) actually make the player move and have the camera follow. The problem with the latter is that (as far as I'm aware) there isn't any way to move the SFML "camera" because there isn't one, it just draws stuff on the window according to where you tell it to, so I have to go with the first option. The reason I'm asking this on here is to see if anyone can recommend a better method because I'm fearful that by moving the world it will mess with the physics and drastically effect the performance of the game.