Open juozaspo opened 5 years ago
I created a pull request that fixes this problem: https://github.com/fogleman/Minecraft/pull/109 It is not a perfect solution, because it uses window size, not viewport size, but it works for me.
I'll look into this later today. Your commit unfortunately reverts the commit I made 8 months ago to fix an issue that using window size causes on Mac. It shouldn't be to much trouble to implement a check and apply different solutions so that one package can work for both Mac and Linux.
I think you can check if method get_viewport_size exists and depending on the result of the check use this method or window size.
While trying to run the game in Ubuntu Linux 18.04 (64-bit) with system-provided pyglet package (
python-pyglet
), game fails with the following error:Pyglet and other package versions to be installed in ubuntu
After uninstalling system-provided pyglet package and installing pyglet through pip game works fine, also pip provides newer versions (
pyglet-1.4.1
andfuture-0.17.1
) instead.