function love.load()
picture = love.graphics.newImage("bg.jpg")
end
function love.update( dt )
end
function love.draw()
love.graphics.draw(picture, 200, 200)
end
In my root folder(where the .love is located) there is:
main.lua
conf.lua
bg.jpg
main.zip
run.bat
PS: the "run.bat" file is only renaming the "main.zip" file into "main.love" and then I run it
Happy5354 wrote:Hello... I'm trying to draw a simple image, I read the filesystem page on the wiki and trying to open an image and draw it but apparently, I can't...
1.) What happens?
2.) Upload your .love
3.) How did you try to run it?
the first two should always be covered when asking for help, we absolutely cannot help if you don't tell us what exactly is happening.