Do a new game, hit enter, screen goes black. Press P and it clears back up. Relevant code is in worldgen.lua at the bottom of the file.
The following is weirdness:
1) The code for the palette box is the same as for the menu box. The menu works fine if you comment out the palette code.
2) The menu used to have this problem too! At some point, it just.. resolved.. or seemed to. Now I suspect I still have a problem.
3) The screen is being overwritten with black. If you change all the color values to non-black colors.. it STILL overwrites with black! So I can't even track down where the issue is.
No idea what's going on. If I do all my setColors manually, this doesn't happen, so I'm using push() and pop() wrong, I guess? What's the deal?
Screen being overwritten (push/pop issue?)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Screen being overwritten (push/pop issue?)
- Attachments
-
- worldgen.love
- (120.46 KiB) Downloaded 89 times
Re: Screen being overwritten (push/pop issue?)
I believe push and pop only affects love.graphics.translate() and love.graphics.scale(). The active color you will have to keep up with manually.
Re: Screen being overwritten (push/pop issue?)
Oh! Well.. that explains that! I thought it handled any love.graphics changes.
Who is online
Users browsing this forum: No registered users and 22 guests