Love 2d showing black screen
Love 2d showing black screen
Please i downloaded love2d some weeks ago then working with it with code compiler so yesterday when i wanted to run a code on it the love2d was just a black screen.please what happened and what can i do?
Re: Love 2d showing black screen
Honestly I don't see anything wrong. What about this very little example? It should draw red and blue rectangle with white text.
Code: Select all
function love.draw()
love.graphics.setColor(1, 0, 0)
love.graphics.rectangle("fill", 10, 10, 20, 20)
love.graphics.setColor(1, 1, 1)
love.graphics.print("In white")
love.graphics.setColor(0, 0, 1)
love.graphics.rectangle("fill", 25, 25, 20, 20)
love.graphics.setColor(1, 1, 1)
love.graphics.print("In blue but actually white")
end
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
Re: Love 2d showing black screen
Still the same black screen
- CogentInvalid
- Prole
- Posts: 27
- Joined: Sat Dec 14, 2013 12:15 am
Re: Love 2d showing black screen
Your file should be named main.lua.
Re: Love 2d showing black screen
Just like "CogentInvalid" pointed out, Löve requires you to name your main file "main.lua".
Also it would be best to share the file, rather than a printscreen. Bonus points if you do it in the "Support and Development"
Also it would be best to share the file, rather than a printscreen. Bonus points if you do it in the "Support and Development"
Who is online
Users browsing this forum: Amazon [Bot] and 4 guests