Code: Select all
function love.draw()
love.graphics.rectangle("fill", 100, 200, 50, 80)
end
Code: Select all
[string "function love.draw()..."]:1: attempt to index global 'love' (a nil value)
What am I missing?
Code: Select all
function love.draw()
love.graphics.rectangle("fill", 100, 200, 50, 80)
end
Code: Select all
[string "function love.draw()..."]:1: attempt to index global 'love' (a nil value)
Oh sorry. OS is Windows 10.yetneverdone wrote: ↑Fri Mar 10, 2017 6:56 pm On what OS are you? Make sure the path is correct and installed
Make sure that the love path is correctinging wrote: ↑Fri Mar 10, 2017 9:24 pmOh sorry. OS is Windows 10.yetneverdone wrote: ↑Fri Mar 10, 2017 6:56 pm On what OS are you? Make sure the path is correct and installed
@inging, you can't run Love code in Local console in ZBS as it's executed by the same interpreter that runs the IDE itself, which doesn't know anything about Love objects (since the error you are getting). What you *can* do is to start a debugging session on a simple (dummy) Love project and then execute Love code in the Remote console. You can modify love.draw and other love handlers from the console (although you can also use Scratchpad/Live coding if you want to test some quick/simple changes). Paul.
Users browsing this forum: No registered users and 81 guests