[Solved]Can't get my images working.
Posted: Sun May 17, 2015 5:12 pm
Hi there, Lovers!
I've been making my first steps in game developing and, specially, in Löve2D. I have downloaded the offline documentation and I've been looking on the Wiki for some tutorials. Really beginning here, just with my doing some Callback's tests.
In the tutorial, I've seen how to load and draw an image, but it's not working at all. Don't know if its some GNU/Linux problem (my OS, wouldn't be the first problem I've seen, the price of freedom) or, more probably, I'm doing something wrong.
I attach you the important parts of the code here.
And the rest of it, I've uploaded it to Google Drive. Should be some git repository or something like that, but it's just a main.lua file, you know?
https://drive.google.com/file/d/0B2qq5b ... sp=sharing
Also, here you got a screenshot of my test behavior, in case you can't repeat the problem.
https://drive.google.com/file/d/0B2qq5b ... sp=sharing
By the way, what's all this "obey"-avatar thing you have in this forum? Just curiosity xD
Edited:
I've been keeping doing my tests, and it works with this code (on the post) but no with the full code on my main.lua, so it's obvious I'm doing something wrong.
I've been making my first steps in game developing and, specially, in Löve2D. I have downloaded the offline documentation and I've been looking on the Wiki for some tutorials. Really beginning here, just with my doing some Callback's tests.
In the tutorial, I've seen how to load and draw an image, but it's not working at all. Don't know if its some GNU/Linux problem (my OS, wouldn't be the first problem I've seen, the price of freedom) or, more probably, I'm doing something wrong.
I attach you the important parts of the code here.
Code: Select all
function love.load()
image = love.graphics.newImage("img/face.png")
imgx = 450
imgy = 100
end
function love.draw()
love.graphics.draw(image, imgx, imgy)
end
https://drive.google.com/file/d/0B2qq5b ... sp=sharing
Also, here you got a screenshot of my test behavior, in case you can't repeat the problem.
https://drive.google.com/file/d/0B2qq5b ... sp=sharing
By the way, what's all this "obey"-avatar thing you have in this forum? Just curiosity xD
Edited:
I've been keeping doing my tests, and it works with this code (on the post) but no with the full code on my main.lua, so it's obvious I'm doing something wrong.