Added support for LOVE being put inside the game directory on windows.

This commit is contained in:
Entarno54 2025-05-29 07:21:29 +07:00
parent 7df6c1ce7b
commit 683406da5c
3 changed files with 9 additions and 4 deletions

3
conf.lua Normal file
View File

@ -0,0 +1,3 @@
function love.conf(t)
t.window.title = "FNFLove2D"
end

View File

@ -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})
love.window.setMode(1280, 720, { fullscreen = false , resizable = true})

View File

@ -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
)