Search found 3 matches

by Tosse
Thu Sep 25, 2014 7:54 pm
Forum: Support and Development
Topic: How to call Löve functions from regular lua?
Replies: 2
Views: 2707

How to call Löve functions from regular lua?

Is it possible to "wrap" Löve? I wan't to run regular lua files with lua interpreter and invoke Löve inside functions.
For example: I have test.lua with:
...

Code: Select all

function displayText(text,x,y)
  love.graphics.print(text,x,y)
end
...
Then run it with:
lua test.lua
by Tosse
Thu Sep 25, 2014 7:18 pm
Forum: Support and Development
Topic: Can't "drag and drop" folder to run main.lua
Replies: 3
Views: 3738

Re: Can't "drag and drop" folder to run main.lua

I select the folder and drag it to the "Baby inspector window"; Nothing happens. But I can run it with a command prompt (cmd) "C:\Love\love.exe" "c:\test" You have to drag the folder onto the love.exe file (before you run it), not to the actual window. :awesome: Haha, ...
by Tosse
Thu Sep 25, 2014 5:35 pm
Forum: Support and Development
Topic: Can't "drag and drop" folder to run main.lua
Replies: 3
Views: 3738

Can't "drag and drop" folder to run main.lua

Hi, This is a probably a stupid question but i can't solve it. I installed löve 64 bit with the installer on Windows 8. On the wiki it says you can drag a folder with a main.lua in it to run the file. http://www.love2d.org/wiki/Getting_Started I made a folder "test" with a main.lua contain...