Need help with drawing an image!
Posted: Thu Jan 22, 2015 3:45 am
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...
Here's my code to open and draw the image:
In my root folder(where the .love is located) there is:
PS: the "run.bat" file is only renaming the "main.zip" file into "main.love" and then I run it
Thanks for your time!
Here's my code to open and draw the image:
Code: Select all
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
- 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
Thanks for your time!