Page 1 of 1

Black screen when running code in love2d

Posted: Sun Jan 15, 2023 3:36 am
by Dorito10
Hello, I am new I just installed love2d supported by a tutorial on youtube, I completed every step, My compiler is visual studio code, At the moment of wanting to run a test code dragging the folder with the main.lua file, only a black screen appears with nothing else I tried several codes that I saw on the internet quite simple But none managed to do anything

Re: Black screen when running code in love2d

Posted: Sun Jan 15, 2023 7:04 am
by knorke
Hello
that example works for me.
First the obvious question even if it sounds silly:
Did you try to click in the black window?
What the code does is randomly changing the background if the user clicks on the window.

Re: Black screen when running code in love2d

Posted: Sun Jan 15, 2023 7:24 am
by Dorito10
I did not click the black window but yeah Apparently the color does change, but still no text or figures appear

Re: Black screen when running code in love2d

Posted: Sun Jan 15, 2023 7:42 am
by Andlac028
This one example only changes background color on click, you can try some tutorials on wiki to help you in the beginning.

But make sure you use same love version as tutorial is made for (newest is 11.4, so use 11.0 - 11.4 tutorials)

Re: Black screen when running code in love2d

Posted: Sun Jan 15, 2023 9:12 am
by Dorito10
Sorry I was distracted my bad lol