0

Can anyone explain to me what should i do to solve the problem ?

function love.load()
      love.window.setTitle(TITLE) -- Change le titre de la fenêtre
      local imgIcon = love.graphics.newImage(PATH_ICON) 
      love.window.setIcon(imgIcon:getData()) 
      love.window.setMode(WIN_WIDTH, WIN_HEIGHT) 
    .
    .
    end
Madox
  • 57
  • 1
  • 10

2 Answers2

0

You need to select LOVE as the interpreter (Project | Lua Interpreter | LOVE) instead of the default Lua interpreter. The error you are getting indicates that the interpreter you are launching doesn't have anything assigned to the love variable.

Paul Kulchenko
  • 25,884
  • 3
  • 38
  • 56
  • i've already selected LOVE as the interpreter, but the problem is, i'm getting the following error and i don't know how to deal with it. I don't know where to find this executable ! - Error : Can't find love2d executable in any of the following folders: /Applications/love.app/Contents/MacOS, /usr/bin, /bin – Madox Apr 28 '17 at 03:55
  • You need to set `path.love2d`; see the documentation for details: https://studio.zerobrane.com/doc-general-preferences#interpreter-path – Paul Kulchenko Apr 28 '17 at 04:59
0

First thing : did you install love2d ?

If yes: did you check that the path to love2d was set in zerobrane?

DorianX
  • 1
  • 1
  • 4