When try to start code, just open black screen of love. IDE-ZeroBrane
saving not help
windows 10-64
code-
function love.draw()
love.graphics.setColor( 1, 1, 1)
end
Black screen
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Black screen
Well, you are literally not drawing anything, just setting a text color to something very close to black. Try with more code including examples and tutorials and then come back to forum, if the issue persists.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
-
- Prole
- Posts: 6
- Joined: Fri Dec 15, 2023 1:15 pm
Re: Black screen
I've done this before, the code is for an example. No matter what I write, he's still black
Re: Black screen
setColor only affects future instructions, what you are doing here is essentially telling the program 'next time I tell you to draw something, draw it this colour', but that's it. Without telling it what to draw, it will not do anything. You might be thinking of love.graphics.setBackgroundColor instead.Hastenmarlen wrote: ↑Fri Dec 15, 2023 5:33 pm I've done this before, the code is for an example. No matter what I write, he's still black
Not really sure what you mean here, (1,1,1) is pure white, and it effects most draw instructions, not just text.
Dragon
Re: Black screen
Ah yes, sorry, I always think in 0-255 interval of CSS colors. It does not matter after all, you just set the color and don't do anything else.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: Black screen
Maybe you wanted to use love.graphics.setBackgroundColor instead?
-
- Prole
- Posts: 6
- Joined: Fri Dec 15, 2023 1:15 pm
Re: Black screen
no, you didn't understand me, EVERYTHING I write doesn't output anything for, I tried every code that output something, nothing helps
Re: Black screen
Here's a small demo, see if this works.Hastenmarlen wrote: ↑Sat Dec 16, 2023 3:56 am no, you didn't understand me, EVERYTHING I write doesn't output anything for, I tried every code that output something, nothing helps
Code: Select all
function love.draw()
local t = -love.timer.getTime()/4
love.graphics.setBackgroundColor( t%1, (t/3)%1, (t/7)%1)
end
Dragon
-
- Prole
- Posts: 6
- Joined: Fri Dec 15, 2023 1:15 pm
Re: Black screen
ok, the question is closed, I tried everything, nothing helped, I got tired of it and reinstalled Windows, after which everything worked
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: Black screen
If reinstalling your OS solved the issue, it might have been that your GPU's drivers were at fault. AMD driver 22.7.1 for example is known to cause love2d to output purely black visuals.
Who is online
Users browsing this forum: Google [Bot] and 12 guests