I would like to check out Love2d:
- Using El Capitan
- Dowloaded Love and placed it in my applications folder
- In ~/.bash_profile I entered:
Code: Select all
# alias to love
alias love="/Applications/love.app/Contents/MacOS/love"
- Installed ZeroBrane and clicked on edit->preferences->settings: system and then entered:
Code: Select all
path.love2d='/Applications/love.app/Contents/MacOS/love'
Try to run the love sample code that comes with ZeroBrane and get the following error message:
Code: Select all
Program starting as '"/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua" -e "io.stdout:setvbuf('no')" "/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/myprograms/LOVE-samples/hello/main.lua"'.
Program 'lua' started in '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/myprograms' (pid: 631).
/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua: ...s/ZeroBraneStudio/myprograms/LOVE-samples/hello/main.lua:1: attempt to index global 'love' (a nil value)
stack traceback:
...s/ZeroBraneStudio/myprograms/LOVE-samples/hello/main.lua:1: in main chunk
[C]: at 0x00001c80
Program completed in 0.02 seconds (pid: 631).
Code: Select all
function love.draw()
love.graphics.print('Hello World!', 400, 300)
end
Code: Select all
Program starting as '"/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua" -e "io.stdout:setvbuf('no')" "/Users/David/Desktop/lovetest/main.lua"'.
Program 'lua' started in '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/myprograms' (pid: 632).
/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua: /Users/David/Desktop/lovetest/main.lua:1: attempt to index global 'love' (a nil value)
stack traceback:
/Users/David/Desktop/lovetest/main.lua:1: in main chunk
[C]: at 0x00001c80
Program completed in 0.01 seconds (pid: 632).
UPDATE:
Hello world works when I run "love" + full path to project folder, for example:
Code: Select all
love /Users/David/Desktop/lovetest
Does that mean that there is a bug in ZeroBrane?