+ background component to songwheel and result screen

This commit is contained in:
FajsiEx 2021-08-21 13:52:40 +02:00
parent ae90c2e86e
commit 8c5a022df0
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,5 @@
local Easing = require('common.easings'); local Easing = require('common.easings');
local Background = require('components.background');
local Footer = require('components.footer'); local Footer = require('components.footer');
local VolforceWindow = require('components.volforceWindow') local VolforceWindow = require('components.volforceWindow')
@ -591,7 +592,7 @@ render = function(deltaTime, showStats)
gfx.BeginPath() gfx.BeginPath()
gfx.Scale(scale, scale) gfx.Scale(scale, scale)
gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0); Background.draw(deltaTime)
drawIdol(deltaTime) drawIdol(deltaTime)

View File

@ -1,5 +1,6 @@
require('common') require('common')
local Easing = require('common.easings'); local Easing = require('common.easings')
local Background = require('components.background');
local VolforceCalc = require('components.volforceCalc'); local VolforceCalc = require('components.volforceCalc');
@ -228,9 +229,7 @@ function drawLaserAnim()
end end
function drawBackground(deltaTime) function drawBackground(deltaTime)
gfx.BeginPath() Background.draw(deltaTime)
gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0)
-- If the score for song exists -- If the score for song exists
local song = songwheel.songs[selectedIndex]; local song = songwheel.songs[selectedIndex];