Page 1 of 1

Images appear as black squares - need help

Posted: Fri Jun 08, 2012 11:44 pm
by mman2112
I'm just starting with Love2d and I'm trying to debug my 'hello world' program. the program is supposed to display the string "Hello world" and display an image, however the image only appears as a black box. I'm going to include a link to where you can download the .love, if anyone can help it would be greatly appreciated.

.love file download (1Kb)

Re: Images appear as black squares - need help

Posted: Fri Jun 08, 2012 11:55 pm
by kikito
In LÖVE images are "tinted" by the current color. If the current color is red, the whites in an image look "redish". If the current color is black, images are completely black.

Try setting the color to white before drawing the images.

Code: Select all

love.graphics.setColor(255, 255, 255)
-- and now draw your images