Search found 3 matches

by CrystalMoth
Fri Mar 19, 2010 12:52 am
Forum: Support and Development
Topic: Loading Images
Replies: 1
Views: 2438

Loading Images

function love.load() pic1 = love.graphics.newImage(pic1.bmp) end function love.draw() love.graphics.draw(pic1, 50, 50, 0, 0, 0, 0, 0) end the above is my code but it just gives me this erro: Error main.lua.7 attempt to index global 'pic1' a nil value Traceback: manin.lua.7: in function 'load' [C:] i...
by CrystalMoth
Wed Mar 17, 2010 8:13 pm
Forum: Support and Development
Topic: Love won't start
Replies: 4
Views: 2748

Re: Love won't start

I still get the same error message. I tried putting it in a zip[ file and calling it .love but I still get the same message. Currently I've got a folder name LuaGameOne and inside of it I've got a file called main.lua. I thought all I had to do was drag the folder (unzipped) onto the love exe.
by CrystalMoth
Wed Mar 17, 2010 7:41 pm
Forum: Support and Development
Topic: Love won't start
Replies: 4
Views: 2748

Love won't start

I just get a message when I try to run a basic love game:

Error

boot.lua:258: No code to run
Your game might be packaged incorrectly
Make sure main.lua is at the top level of the zip

Traceback

[C]: in function 'error'
[C]: in function 'xpcall'