1
General / Choppy camera.
« on: August 05, 2013, 05:28:54 pm »
I'm reading through the "SFML Game Development" book. And there's something I cannot figure out. I understood how the game loop's supposed to work, but when I put it together in a small test project, I ended up having a choppy camera.
Here's the source code. The "player" sometimes wraps back and forth.
It doesn't happen without a camera (=sf::View).
I compiled the final version of the seventh chapter and it doesn't seem to happen there.
PS: Never mind the strange usage of the vector.
Here's the source code. The "player" sometimes wraps back and forth.
It doesn't happen without a camera (=sf::View).
I compiled the final version of the seventh chapter and it doesn't seem to happen there.
PS: Never mind the strange usage of the vector.