Hello. My english is not so well, but i try to describe my problem. Today i try Love engine and i have some trouble with displaing images. I need 3 "layers" with image on each of it's. 1 image on background, second image some closer, and third image most closer then other two. I wright Lua-script, but it's no work. I see only one image (second), which i draw more last then first image . I think i do mistake somewhere. Please, help me. I read documentation, but i can't find information about this case (and there's no documentation on russian language, i'm from Russia). Lua - new program language for me (first day). I hope you understand what i whant to say about my problem.
Thank you. I will waiting for your answers.
There i wright my Lua-code:
Code: Select all
function load()
image = love.graphics.newImage("images/back.png")
image2 = love.graphics.newImage("images/kolob.png")
end
function draw()
love.graphics.draw(image, 400, 300)
end
function draw()
love.graphics.draw(image2, 700, 500)
end