mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Renaming and moving some modules
This commit is contained in:
@@ -107,7 +107,7 @@ function table.lowest(table)
|
||||
return lowest
|
||||
end
|
||||
|
||||
function clamp(x, min, max)
|
||||
function math.clamp(x, min, max)
|
||||
if max < min then
|
||||
min, max = max, min
|
||||
end
|
||||
@@ -116,7 +116,7 @@ end
|
||||
|
||||
function drawText(text, x, y, size, orientation, color)
|
||||
if color == nil then color = {1, 1, 1, 1} end
|
||||
love.graphics.setFont(tromi_font)
|
||||
love.graphics.setFont(FONT_tromi)
|
||||
love.graphics.setColor(0, 0, 0, 0.8)
|
||||
love.graphics.printf(text, x+1, y+1, size*2, orientation, nil, 0.50)
|
||||
love.graphics.setColor(color)
|
||||
@@ -125,7 +125,7 @@ end
|
||||
|
||||
function drawBigText(text, x, y, size, orientation, color)
|
||||
if color == nil then color = {1, 1, 1, 1} end
|
||||
love.graphics.setFont(big_font)
|
||||
love.graphics.setFont(FONT_big)
|
||||
love.graphics.setColor(0, 0, 0, 0.8)
|
||||
love.graphics.printf(text, x+1, y+1, size*2, orientation, nil, 0.50)
|
||||
love.graphics.setColor(color)
|
||||
|
||||
Reference in New Issue
Block a user