You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fade functions found in "Fade.h" appear to be broken when running the non-color version of a game. FadeIn() works (fading the screen to pure white, but FadeOut() appears to have no effect. If called after calling FadeIn() the screen stays pure white. If called without first calling FadeOut(), the color does not change.
These 2 gifs are the same game compiled as Color and Non-Color. In both cases I press START and shortly after I press SELECT. Note that while both versions fade up to white, the DMG version does not fade back down.
The text was updated successfully, but these errors were encountered:
mhughson
added a commit
to mhughson/mbh-firstnes
that referenced
this issue
Dec 21, 2021
NOTE: This can be worked around by forcefully setting the DMG palettes prior to calling FadeOut() like so:
FadeIn();
DISPLAY_OFF;
...
// Fade function on DMG reads the colors directly from registers before fading.
// As a result, the FadeOut fails when called after FadeIn() because it tries to fade to a solid
// color.
// To fix this, we set the real colors right before FadeOut to set the proper
// destination colors.
BGP_REG = OBP0_REG = OBP1_REG = PAL_DEF(0, 1, 2, 3);
DISPLAY_ON;
FadeOut();
mhughson
added a commit
to mhughson/mbh-firstnes
that referenced
this issue
Jan 28, 2022
The fade functions found in "Fade.h" appear to be broken when running the non-color version of a game. FadeIn() works (fading the screen to pure white, but FadeOut() appears to have no effect. If called after calling FadeIn() the screen stays pure white. If called without first calling FadeOut(), the color does not change.
I wrote a simple example game with this Update:
These 2 gifs are the same game compiled as Color and Non-Color. In both cases I press START and shortly after I press SELECT. Note that while both versions fade up to white, the DMG version does not fade back down.
The text was updated successfully, but these errors were encountered: