Код: Выделить всё
void createPlayer() {
Texture cannonTexture;
if (!cannonTexture.loadFromFile("assets/cannon.png")) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79035620/why-is-there-an-error-when-i-try-to-draw-the-sprite[/url]