修复space背景在屏幕尺寸变化后显示不正确
This commit is contained in:
@@ -7,10 +7,10 @@ local stars
|
|||||||
local W,H
|
local W,H
|
||||||
function back.init()
|
function back.init()
|
||||||
stars={}
|
stars={}
|
||||||
W,H=SCR.w+20,SCR.h+20
|
|
||||||
BG.resize(SCR.w,SCR.h)
|
BG.resize(SCR.w,SCR.h)
|
||||||
end
|
end
|
||||||
function back.resize()
|
function back.resize(w,h)
|
||||||
|
W,H=w+20,h+20
|
||||||
local S=stars
|
local S=stars
|
||||||
for i=1,1260,5 do
|
for i=1,1260,5 do
|
||||||
local s=rnd(26,40)*.1
|
local s=rnd(26,40)*.1
|
||||||
|
|||||||
Reference in New Issue
Block a user