From ec3a62f1268509f3930ad18dca92847cf89a2083 Mon Sep 17 00:00:00 2001 From: Clicxl <77313321+Clicxl@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:08:40 +0530 Subject: [PATCH] Update main.lua 1. Centred the Title Screen --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index e8e3371..7827f43 100644 --- a/main.lua +++ b/main.lua @@ -8,7 +8,8 @@ end function love.draw() love.graphics.setColor(1, 1, 1) - love.graphics.print("Welcome to Mooncrypt!", 400, 300) + width, height, flags = love.window.getMode() + love.graphics.print("Welcome to Mooncrypt!", (width/2)-30, (height/2)-30) love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10) end