modeData地位提升,模式环境变量target移入其中,大规模整理代码,可读性增强

This commit is contained in:
MrZ626
2021-03-23 19:11:05 +08:00
parent ac8a41004b
commit 374f2ab779
76 changed files with 356 additions and 373 deletions

View File

@@ -1,6 +1,5 @@
local gc=love.graphics
local kb=love.keyboard
local int=math.floor
local ins,rem=table.insert,table.remove
local C=COLOR
@@ -256,7 +255,7 @@ do--commands.help(arg)
--help or help [page]
local page=arg==""and 1 or tonumber(arg)
if page then
if page==int(page)and page>=1 and page<=maxPage then
if page==math.floor(page)and page>=1 and page<=maxPage then
log"Use help [page] to view more commands,"
log"or help [command_name] for details of a command."
log""
@@ -366,7 +365,7 @@ commands.bye=backScene
--Game commands
function commands.fn(n)
if tonumber(n)then
n=int(tonumber(n))
n=math.floor(tonumber(n))
if n>=1 and n<=12 then
love.keypressed("f"..n)
return