Works fine on my end. >
Binary <
- Create a new and empty project.
- Add all the *.h, *.cpp and *.hpp files to the project.
- Create a ResourcePath.cpp and implement the function resourcePath() (e.g. return "./";).
- Add the paths and libs to the settings, as described in the official tutorial.
- Build and run.
Make sure that your SFML version matches your compiler version.
What SFML version do you use, i.e. from where did you get it?
Btw. you should always (!) process the
sf::Event::Closed event, it's quite annoying if one can't close the window. And I suggest you should use
sf::Keyboard for the input, rather than the events, so the paddle will instantly move and you won't have to wait, till the key repeat kicks in.