bitcraft / pyscroll

make scrolling games with animated maps in pygame
GNU General Public License v3.0
177 stars 28 forks source link

non-integer zoom has weird rendering #53

Open nopeless opened 2 years ago

nopeless commented 2 years ago

I haven't looked at the code but setting the zoom to something like 1.01 will create this weird black mask in empty tiles.

Also the scale of zoom 1 is vastly different from 1.01 and 0.99

nopeless commented 2 years ago

https://github.com/bitcraft/pyscroll/blob/6ddbface62a6aa90f3cc373416fdb9724a85056a/pyscroll/orthographic.py#L314-L329

Most likely caused because of this