From 683406da5c21bcc9f9fc501e29cdc767487dcbe6 Mon Sep 17 00:00:00 2001 From: Entarno54 Date: Thu, 29 May 2025 07:21:29 +0700 Subject: [PATCH] Added support for LOVE being put inside the game directory on windows. --- conf.lua | 3 +++ main.lua | 6 +++--- windows.bat | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 conf.lua diff --git a/conf.lua b/conf.lua new file mode 100644 index 0000000..e7b3dbe --- /dev/null +++ b/conf.lua @@ -0,0 +1,3 @@ +function love.conf(t) + t.window.title = "FNFLove2D" +end \ No newline at end of file diff --git a/main.lua b/main.lua index b49dc14..ff39c25 100644 --- a/main.lua +++ b/main.lua @@ -190,14 +190,14 @@ function love.draw() love.graphics.clear() + love.graphics.circle("fill", 960, 59, 50000) + myTypes.drawSprites() love.graphics.setCanvas() - love.graphics.circle("fill", 960, 59, 50000) - love.graphics.draw(mainCanvas, 0, 0, 0, (love.graphics:getHeight() / 1080) * (4/3), love.graphics:getHeight() / 1080) end -love.window.setMode(1280, 720, { fullscreen = true , resizable = true}) \ No newline at end of file +love.window.setMode(1280, 720, { fullscreen = false , resizable = true}) \ No newline at end of file diff --git a/windows.bat b/windows.bat index 9726413..45b9692 100644 --- a/windows.bat +++ b/windows.bat @@ -1,6 +1,8 @@ if exist "C:\Program Files\LOVE\love.exe" ( "C:\Program Files\LOVE\love.exe" ./ +) else if exist ".\love.exe" ( + ".\love.exe" ./ ) else ( - echo "LOVE not installed." + echo Love not installed pause ) \ No newline at end of file