31
Graphics / Re: SFML Draw() won't draw sprite on Window
« on: October 15, 2020, 11:26:56 pm »I'm wondering why I had to add that line (ship = Ship() Is it the same as ship.Ship() ?). I'm pretty new to c++ so I still have a lot to learn.
Because at the moment when global variable get values (i.e. constructor is called) your texture is not yet loaded (it's loading from file inside main function). No, it's not the same (I'm not even sure that ship.Ship() compiled)
About your bullet sprite problem...
Did you try to add setUp method also for bullet?