This commit is contained in:
Simon Kellet
2024-08-02 17:26:14 +01:00
parent 7252c3cd2c
commit 88faf2538b
4 changed files with 32 additions and 18 deletions
+3 -3
View File
@@ -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)