计算器添加两个影响画面的的彩蛋

This commit is contained in:
MrZ626
2020-12-10 12:00:05 +08:00
parent c7a813e8d5
commit 7ed0248032
2 changed files with 6 additions and 3 deletions

View File

@@ -177,9 +177,6 @@ function love.keypressed(i)
LOG.print("luaVer:".._VERSION)
LOG.print("jitVer:"..jit.version)
LOG.print("jitVerNum:"..jit.version_num)
local r=rnd()<.5
love._setGammaCorrect(r)
LOG.print("GammaCorrect: "..(r and"on"or"off"),"warn")
elseif i=="f3"then
for _=1,8 do
local P=PLAYERS.alive[rnd(#PLAYERS.alive)]

View File

@@ -89,6 +89,12 @@ function scene.keyDown(k)
SFX.play("clear_2")
elseif v%1==0 and v>=8001 and v<=8012 then
love.keypressed("f"..(v-8000))
elseif v==123456 then
gc.setWireframe(not gc.isWireframe())
LOG.print("Wireframe: "..(gc.isWireframe()and"on"or"off"),"warn")
elseif v==654321 then
love._setGammaCorrect(not gc.isGammaCorrect())
LOG.print("GammaCorrect: "..(gc.isGammaCorrect()and"on"or"off"),"warn")
elseif v==670 then
LOG.print("Screen Info:")
LOG.print("x y: "..SCR.x.." "..SCR.y)