Pyglet: Sprite.draw() And Batch.draw() Don't Work, But Image.blit Does
In pyglet, which I'm learning, Image.blit() works, but Sprite.draw() doesn't, nor Batch.draw(), even in this simple code: import pyglet win = pyglet.window.Window() img = pyglet.
Solution 1:
The third answer of this thread worked for me, even though I'm using Ubuntu and not Windows. It's actually a hardware problem. I replaced the "i" with the "f" at lines 368 and 372 in "v2i" in a file I found at /usr/lib/pymodules/python2.7/pyglet/sprite.py. Then I saved, ran my code, and everything was working.
Post a Comment for "Pyglet: Sprite.draw() And Batch.draw() Don't Work, But Image.blit Does"