Can't run love2d / lua

Hi everyone , hope you are doing okay!!
I have a probleme when i try to run a programme using love,

my programme:

function love.draw()
    love.graphics.print("Hello World", 350, 250)
end

i get an erro msg when i try to compile (love2d main.lua)

Error: [love "boot.lua"]:323: Cannot load game at path '/home/runner/ImprobableAggressiveRectangle/main.lua'.
Make sure a folder exists at the specified path.
stack traceback:
    [love "boot.lua"]:345: in function <[love "boot.lua"]:341>
    [C]: in function 'error'
    [love "boot.lua"]:323: in function <[love "boot.lua"]:126>
    [C]: in function 'xpcall'
    [love "boot.lua"]:355: in function <[love "boot.lua"]:348>
    [C]: in function 'xpcall'

and the programme keep hangling until i ctrl+C

:wave: Welcome @kido9odik!

Are you using the Love2D template? If you are, then you only need to press the run button at the top to run your program (assuming the file is called main.lua).

2 Likes