Does the parallax library cause any sort of slowdown for others?
Posted: Thu Sep 01, 2016 1:13 pm
I'm asking this because I'm running Linux, using Wine to run SMBX with lunalua, I'm not sure if it's a situation with wine or just the engine not handling 3/4 paralaxing backgrounds.
Any way I could optimize?
Code: Select all
function onStart ()
walljumps.slideSpeed = 2.5;
walljumps.jumpIntensityX = 4.0
bg0 = paralX.create ({image=bgwater, y=80, priority=-96, repeatY=false, parallaxX=0.4, parallaxY=0.2})
bg1 = paralX.create ({image=bgbackhills, y=50, priority=-97, repeatY=false, parallaxX=0.2, parallaxY=0.19})
bg2 = paralX.create ({image=bgsky, y=-400, priority=-98, repeatY=false, parallaxX=0.1, parallaxY=0.1})
end
function onLoop()
bg0.y = 80 + 4*math.sin (os.clock())
bg0.x = 0 + 8*math.cos (os.clock())
end