Page 1 of 1

How do I use love2d in my IDE?

Posted: Fri Dec 13, 2013 5:14 pm
by Love2dNewbie
I'm using Kozola (http://www.matejtomcik.com/Public/Projects/Kozola/ - neat little IDE) and I'm not really sure how to use love2d in it.
I downloaded love2d, but I'm not sure what to do from there.
Any help? :(

Re: How do I use love2d in my IDE?

Posted: Fri Dec 13, 2013 6:11 pm
by Roland_Yonaba
I don't know this editor, but it looks nice, I'll check this out later.
Anyway, if your editor support custom macros, you can run directly your script if löve executable is in your system path.
Assuming the project folder is located somewhere inside a folder named myGame, run this:

Code: Select all

love myGame
If you cannot use custom macros, then, just write your lua files, then drag and drop the project folder on Löve executable.

Re: How do I use love2d in my IDE?

Posted: Fri Dec 13, 2013 6:18 pm
by Hexenhammer
That IDE does not have support for anything except the version of Lua it ships with, thus you cannot use LÖVE directly. But you can still do what Yonaba said, edit your files with the IDE but run them manually by drag and droping the project folder on love.exe. Note that the IDE's debugger will not work for your LÖVE projects either. If you want an IDE with LÖVE support check out ZeroBrane: http://studio.zerobrane.com/