fix: better backgrounds
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 5.6 KiB |
|
@ -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
|
||||||
|
|
||||||
|
|