fix: better backgrounds

This commit is contained in:
Kazhnuz 2020-08-01 14:07:35 +02:00
parent cb5f9eec5a
commit efa7909f83
5 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -149,7 +149,7 @@ function ParallaxBackground:drawForeground(x, y, w, h)
local imax = math.ceil(w / w2) + 1 local imax = math.ceil(w / w2) + 1
for i=1, imax do for i=1, imax do
local x1 = (x / 2) % w2 local x1 = (x / 2) % w2
self.assets.images["back2"]:draw((i-1)*w2 - x1, -y, 0, 1, 1, 0, h2) self.assets.images["back2"]:draw((i-1)*w2 - x1, -y-10, 0, 1, 1, 0, h2)
end end
end end