File "sf.pyx", line 1773, in sf.Sprite.__cinit__ (sf.cpp:19704)
TypeError: Argument 'texture' has incorrect type (expected sf.Texture, got sf.Image)
Now getting this error with the updated bindings, both Linux and Windows.
Edit: I see this is an intentional change. Might want to update the docs.
I tried replacing:
self.sprite.set_image(image, True)
with:
self.sprite.texture = texture
self.sprite.resize(texture.width, texture.height)
But the resize does not appear to work.
(Just as I finish my Ludum Dare entry >.>)
Also, if you didn't see my last edit, I found it wasn't the order, but rather that the sprite doesn't act as a reference to the image. So you can't do sf.Sprite(sf.Image.load_from_file("blah.jpg")) as the image will not be kept in memory, which you could do in the 1.6 bindings.
Not a bug, but as I say, worth noting as it might catch people out.