/ laser animation going above the effected and illustrated by bgs
This commit is contained in:
parent
9ae9201744
commit
21bf2d3fcc
|
@ -198,6 +198,7 @@ function drawBackground(deltaTime)
|
|||
gfx.BeginPath()
|
||||
gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0)
|
||||
|
||||
|
||||
-- If the score for song exists
|
||||
local song = songwheel.songs[selectedIndex];
|
||||
local diff = song.difficulties[selectedDifficulty];
|
||||
|
@ -218,6 +219,13 @@ function drawBackground(deltaTime)
|
|||
|
||||
gfx.ImageRect(0, 0, desw, desh, dataPanelImage, 1, 0)
|
||||
|
||||
local laserAnimTickRes = gfx.TickAnimation(laserAnimation, deltaTime);
|
||||
if laserAnimTickRes == 1 then
|
||||
gfx.BeginPath()
|
||||
gfx.ImageRect(0, 0, desw, desh, laserAnimation, 1, 0);
|
||||
gfx.GlobalAlpha(1);
|
||||
end
|
||||
|
||||
if song and diff then
|
||||
gfx.BeginPath()
|
||||
gfx.ImageRect(0, 0, desw, desh, dataGlowOverlayImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||
|
@ -233,12 +241,6 @@ function drawBackground(deltaTime)
|
|||
gfx.ImageRect(95, 1195, 433, 30, illustratedBgImage, transitionAfterscrollDataOverlayAlpha, 0)
|
||||
end
|
||||
|
||||
local laserAnimTickRes = gfx.TickAnimation(laserAnimation, deltaTime);
|
||||
if laserAnimTickRes == 1 then
|
||||
gfx.BeginPath()
|
||||
gfx.ImageRect(0, 0, desw, desh, laserAnimation, 1, 0);
|
||||
gfx.GlobalAlpha(1);
|
||||
end
|
||||
end
|
||||
|
||||
function drawSong(song, y)
|
||||
|
|
Loading…
Reference in New Issue