ExperimentalGear/scripts/songselect/background.lua

20 lines
514 B
Lua

local backgroundImage = gfx.CreateSkinImage("song_select/bg.png", 1)
render = function(deltaTime)
-- gfx.ResetTransform()
-- local resx, resy = game.GetResolution()
-- local desw = 1080
-- local desh = 1920
-- local scale = resy / desh
-- local xshift = (resx - desw * scale) / 2
-- local yshift = (resy - desh * scale) / 2
-- gfx.Translate(xshift, yshift)
-- gfx.Scale(scale, scale)
-- gfx.BeginPath()
-- gfx.ImageRect(0, 0, desw, desh, backgroundImage, 1, 0)
end