修复窗口比例非默认时staff场景弹幕范围不对
This commit is contained in:
@@ -77,6 +77,8 @@ function scene.update(dt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function scene.draw()
|
function scene.draw()
|
||||||
|
gc.push("transform")
|
||||||
|
gc.origin()
|
||||||
for i=1,#names do
|
for i=1,#names do
|
||||||
local N=names[i]
|
local N=names[i]
|
||||||
if type(N.color)=="table"then
|
if type(N.color)=="table"then
|
||||||
@@ -86,6 +88,7 @@ function scene.draw()
|
|||||||
end
|
end
|
||||||
gc.draw(N.text,N.x,N.y)
|
gc.draw(N.text,N.x,N.y)
|
||||||
end
|
end
|
||||||
|
gc.pop()
|
||||||
|
|
||||||
gc.setColor(1,1,1)
|
gc.setColor(1,1,1)
|
||||||
local T=40*math.min(time,45)
|
local T=40*math.min(time,45)
|
||||||
|
|||||||
Reference in New Issue
Block a user