scaling
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
local function title()
|
||||
local height = love.graphics.getHeight()
|
||||
local width = love.graphics.getWidth()
|
||||
local height = love.graphics.getHeight() / _G.Y_SCALE
|
||||
local width = love.graphics.getWidth() / _G.X_SCALE
|
||||
love.graphics.setFont(GameFont)
|
||||
love.graphics.setColor(0.5, 1, 1)
|
||||
love.graphics.rectangle("fill", 0, 0, width, height)
|
||||
@@ -9,7 +9,7 @@ local function title()
|
||||
end
|
||||
|
||||
function DrawMenu()
|
||||
local bwidth, bheight = 300, 140
|
||||
local bwidth, bheight = 300 * _G.X_SCALE, 140 * _G.Y_SCALE
|
||||
title()
|
||||
GUI:newButton(100, 200, bwidth, bheight, "Play", MENU_POS == 0 and true or false)
|
||||
GUI:newButton(100, 350, bwidth, bheight, "???", MENU_POS == 1 and true or false)
|
||||
|
||||
Reference in New Issue
Block a user