1
0
mirror of synced 2024-12-23 12:54:54 +01:00
OpenTaiko/Test/System/SimpleStyle (1080p)/Graphics/2_Config/Script.lua

41 lines
934 B
Lua
Raw Normal View History

2023-02-26 00:29:45 +01:00
--func:DrawText(x, y, text)
--func:DrawNum(x, y, num)
--func:AddGraph("filename")
--func:DrawGraph(x, y, filename)
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
--func:DrawGraphCenter(x, y, filename)
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
--func:SetOpacity(opacity, "filename")
--func:SetRotation(angle, "fileName")
--func:SetScale(xscale, yscale, "filename")
--func:SetColor(r, g, b, "filename")
local bg_width = 1920
local x = 0
local y = 0
function clearIn(player)
end
function clearOut(player)
end
function init()
func:AddGraph("Background.png")
func:AddGraph("Header.png")
end
function update()
x = x - (bg_width * deltaTime / 20.0)
if x < -bg_width then
x = 0
end
end
function draw()
for i = 0, 3 do
func:DrawGraph(x + i * bg_width, y, "Background.png")
end
func:DrawGraph(0, 0, "Header.png")
end