整理代码
This commit is contained in:
@@ -64,7 +64,7 @@ back.aura={
|
|||||||
BG.resize(scr.w,scr.h)
|
BG.resize(scr.w,scr.h)
|
||||||
end,
|
end,
|
||||||
resize=function(w,h)
|
resize=function(w,h)
|
||||||
SHADER.aura:send("w",w*scr.dpi)
|
SHADER.aura:send("w",scr.W)
|
||||||
SHADER.aura:send("h",h*scr.dpi)
|
SHADER.aura:send("h",h*scr.dpi)
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
@@ -83,7 +83,7 @@ back.bg1={
|
|||||||
BG.resize(scr.w)
|
BG.resize(scr.w)
|
||||||
end,
|
end,
|
||||||
resize=function(w)
|
resize=function(w)
|
||||||
SHADER.gradient1:send("w",w*scr.dpi)
|
SHADER.gradient1:send("w",scr.W)
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
t=t+dt
|
t=t+dt
|
||||||
@@ -119,7 +119,7 @@ back.rainbow={
|
|||||||
BG.resize(scr.w,scr.h)
|
BG.resize(scr.w,scr.h)
|
||||||
end,
|
end,
|
||||||
resize=function(w,h)
|
resize=function(w,h)
|
||||||
SHADER.rgb1:send("w",w*scr.dpi)
|
SHADER.rgb1:send("w",scr.W)
|
||||||
SHADER.rgb1:send("h",h*scr.dpi)
|
SHADER.rgb1:send("h",h*scr.dpi)
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
@@ -138,7 +138,7 @@ back.rainbow2={
|
|||||||
BG.resize(scr.w,scr.h)
|
BG.resize(scr.w,scr.h)
|
||||||
end,
|
end,
|
||||||
resize=function(w,h)
|
resize=function(w,h)
|
||||||
SHADER.rgb2:send("w",w*scr.dpi)
|
SHADER.rgb2:send("w",scr.W)
|
||||||
SHADER.rgb2:send("h",h*scr.dpi)
|
SHADER.rgb2:send("h",h*scr.dpi)
|
||||||
end,
|
end,
|
||||||
update=function(dt)
|
update=function(dt)
|
||||||
@@ -251,7 +251,7 @@ back.space={
|
|||||||
gc.translate(10,10)
|
gc.translate(10,10)
|
||||||
end,
|
end,
|
||||||
discard=function()
|
discard=function()
|
||||||
stars={}
|
stars=nil
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user