整理代码,只在代码中使用的字符串由双引号改为单引号
This commit is contained in:
@@ -2,8 +2,8 @@ local gc=love.graphics
|
||||
local newFont=gc.setNewFont
|
||||
local setNewFont=gc.setFont
|
||||
local fontCache,currentFontSize={}
|
||||
if love.filesystem.getInfo("font.ttf")then
|
||||
local fontData=love.filesystem.newFile("font.ttf")
|
||||
if love.filesystem.getInfo('font.ttf')then
|
||||
local fontData=love.filesystem.newFile('font.ttf')
|
||||
function setFont(s)
|
||||
if s~=currentFontSize then
|
||||
if not fontCache[s]then
|
||||
|
||||
Reference in New Issue
Block a user