I have installed lua using lua rocks and it works fine. Now I want to use the love libraries to do some graphics within my lua script. But I can't find any documentation on how to link love code to lua code... infact I am still confused as to the difference.
I am under the impression that love is a set of libraries for lua, but love seems to have its own binary for running...meaning it is its own language?
Anyway, here is my sad little attempt at writing a lua script using love:
myluatest.lua:
if "test" == "test" then print("yes") else print("no") end
love.graphics.print('love test', 400, 300)
print(string.byte("ABCDE", 3, 4))
If I comment out the "love.graphics...." line it works fine. This is how I run the script:
lua myluatest.lua
I feel I need to include love or somthing, I just can't find the syntax :(
love.load
,love.update
,love.draw
) which are then called and executed from the C++ code.