-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Love.graphics.clear white screen. #8
Comments
I fixed it. Love docs show in version 11 removals / changes that color ranges now go from 0 to 1 instead of 0 to 255, which is insanely stupid and ridiculous. The ONLY reason I can see why a noob might do that is if math is hard for them and they don't want to convert an RGB value to a ratio for use in floats for some kind of in-game color changing purpose. Durrr, yeah I'm being mean because this is ridiculous and pulled me away from my class for a full hour. Here's the easy fix, but not a great one - just to tide you over: Go to the love.graphics.clear line and just put in love.graphics.clear(40/255, 45/255, 52/255, 1) instead. Dividing everything by 255 makes that clean ratio because, SHOCKER, math really isn't that hard after all. I don't have patience for this crap. I take pride in being a helpful, kind person in coding communities, but DAMN. I have been on the FIRST LECTURE ONLY for 3 entire days and I've only gotten 28 minutes into the video because of this crap. And I've been programming for 18 years and already have a lot of months of Unity and UE4 under my belt, so I'm no stranger to this discipline. But I just want to get through the remaining hour of video without having to stop and spend a few hours researching a really stupid bug that shouldn't exist in the first place. 3 days. 28 minutes of progress. That's SAD. I'll never get this class done at this rate. |
Thanks @09jlardinois! Hope you were able to finish the course. |
Thanks for taking the time to post this! your time invested saved hours to many of us. |
Thank you sir!! |
thanks a million.. very helpful.. |
Thanks for this! <3 |
Thanks man!! |
It doesn't work for me, I saved the document and everything and the screen is still white online showing the fps |
Thank you so much it was so helpful!!! |
thank you! |
Thank you so much, I would've never guessed that they would make such a change and I totally understand your reaction. Although I have nowhere near as much experience as you in game dev, this is the ONLY time I've seen an RBG color value not range from 0-255 and it would be super confusing for people whose first language is Lua trying to learn any other language. What also sucks is that you're gonna have to edit the main file in every version of this pong game. |
Thanks a lot |
THANK YOU!!!! |
Thank you @09jlardinois for helping out. |
Thank you so much @09jlardinois i was close to quitting the course because i couldn't find a way to solve this, you really helped me a lot :) thanks again. |
still saving the day in 2021, thanks again |
Thank you, sir! I thought my old laptop had a graphics card problem. You saved me. |
Hey in Pong-2, calling love.graphics.clear in love.draw makes the whole screen white. Commenting it out fixes it.
It's using the color 40, 45, 52, 255.
Further testing: moving it to a new push start/end doesn't work. Changing the color to full 255's doesn't work.
Update: Changing alpha to 0 at least makes the screen contents show. Doesn't apply the color though (alpha 0).
The text was updated successfully, but these errors were encountered: