设置添加超屏视野开关

This commit is contained in:
MrZ626
2020-09-12 01:43:05 +08:00
parent e57f99364f
commit d89a2f60a9
4 changed files with 22 additions and 11 deletions

View File

@@ -302,6 +302,7 @@ local langList={
frame="绘制帧率", frame="绘制帧率",
text="消行文本", text="消行文本",
warn="死亡预警", warn="死亡预警",
highCam="超屏视野",
fullscreen="全屏", fullscreen="全屏",
bg="背景", bg="背景",
power="电量显示", power="电量显示",
@@ -797,6 +798,7 @@ local langList={
frame="绘制帧率", frame="绘制帧率",
text="消行文本", text="消行文本",
warn="死亡预警", warn="死亡预警",
highCam="超屏视野",
fullscreen="全屏", fullscreen="全屏",
bg="背景", bg="背景",
power="电量显示", power="电量显示",
@@ -1282,6 +1284,7 @@ local langList={
frame="Render Frame Rate", frame="Render Frame Rate",
text="Action Text", text="Action Text",
warn="Death Alert", warn="Death Alert",
highCam="Superhigh view",
fullscreen="Full Screen", fullscreen="Full Screen",
bg="Background", bg="Background",
power="Power Info", power="Power Info",
@@ -1765,6 +1768,7 @@ local langList={
frame="|=|", frame="|=|",
text="ABC", text="ABC",
warn="!↑↑↑!", warn="!↑↑↑!",
highCam="↑__↑",
fullscreen="|←→|", fullscreen="|←→|",
bg="__?__", bg="__?__",
power="+.", power="+.",
@@ -2262,6 +2266,7 @@ local langList={
frame="绘制帧率", frame="绘制帧率",
text="消行文本", text="消行文本",
warn="死亡预警", warn="死亡预警",
highCam="超屏视野",
fullscreen="全屏", fullscreen="全屏",
bg="背景", bg="背景",
power="电量显示", power="电量显示",

View File

@@ -279,8 +279,9 @@ local Widgets={
setting.frameMul=i<5 and 5*i+20 or 10*i setting.frameMul=i<5 and 5*i+20 or 10*i
end}), end}),
newSwitch({name="text", x=1050, y=180,font=35,disp=SETval("text"),code=SETrev("text")}), newSwitch({name="text", x=1050, y=180,font=35,disp=SETval("text"),code=SETrev("text")}),
newSwitch({name="warn", x=1050, y=260,font=35,disp=SETval("warn"),code=SETrev("warn")}), newSwitch({name="warn", x=1050, y=240,font=35,disp=SETval("warn"),code=SETrev("warn")}),
newSwitch({name="fullscreen",x=1050,y=340,font=35,disp=SETval("fullscreen"), newSwitch({name="highCam", x=1050, y=300,font=35,disp=SETval("highCam"),code=SETrev("highCam")}),
newSwitch({name="fullscreen",x=1050,y=360,font=35,disp=SETval("fullscreen"),
code=function() code=function()
setting.fullscreen=not setting.fullscreen setting.fullscreen=not setting.fullscreen
love.window.setFullscreen(setting.fullscreen) love.window.setFullscreen(setting.fullscreen)
@@ -292,7 +293,7 @@ local Widgets={
setting.bg=not setting.bg setting.bg=not setting.bg
BG.set("space") BG.set("space")
end}), end}),
newSwitch({name="power", x=1050, y=500,font=35,disp=SETval("powerInfo"), newSwitch({name="power", x=1050, y=480,font=35,disp=SETval("powerInfo"),
code=function() code=function()
setting.powerInfo=not setting.powerInfo setting.powerInfo=not setting.powerInfo
end}), end}),

View File

@@ -30,6 +30,7 @@ setting={
text=true, text=true,
warn=true, warn=true,
highCam=false,
fullscreen=false, fullscreen=false,
bg=true, bg=true,
powerInfo=false, powerInfo=false,

View File

@@ -26,6 +26,8 @@ local gameEnv0={
clearFX=2, clearFX=2,
shakeFX=3, shakeFX=3,
highCam=false,
drop=60,lock=60, drop=60,lock=60,
wait=0,fall=0, wait=0,fall=0,
_20G=false,bone=false, _20G=false,bone=false,
@@ -184,14 +186,16 @@ local function updateLine(P,dt)
P.fieldBeneath=max(y-P.gameEnv.pushSpeed,0) P.fieldBeneath=max(y-P.gameEnv.pushSpeed,0)
end end
local f=P.fieldUp if P.gameEnv.highCam then
if not P.alive then local f=P.fieldUp
y=0 if not P.alive then
else y=0
y=30*max(min(#P.field-19.5-P.fieldBeneath/30,P.imgY-17),0) else
end y=30*max(min(#P.field-19.5-P.fieldBeneath/30,P.imgY-17),0)
if f~=y then end
P.fieldUp=f>y and max(f*.95+y*.05-2,y)or ceil(f*.97+y*.03+1,y) if f~=y then
P.fieldUp=f>y and max(f*.95+y*.05-2,y)or ceil(f*.97+y*.03+1,y)
end
end end
end end
local function updateFXs(P,dt) local function updateFXs(P,dt)