C morph ball extract inline helpers + label data reinterpretation - #61
Conversation
ShulkMaster
commented
Jul 30, 2026
- Replace raw Morph Ball glow byte arrays with typed RGB color palettes.
- Add reusable helpers for glow and ambient color conversion.
- Refactor Morph Ball glow, transition flash, and lighting code to use the new helpers.
- remove raw pointers arithmetic while preserving matching compiler output.
Report for GM8E01_48 (7c3d8a7 - b941c2b)No changesReport for GM8E01_00 (7c3d8a7 - b941c2b)📈 Matched code: 37.05% (+0.00%, +144 bytes) ✅ 1 new match
📈 2 improvements in unmatched items
Report for GM8E01_01 (7c3d8a7 - b941c2b)📈 Matched code: 35.88% (+0.00%, +144 bytes) ✅ 1 new match
📈 1 improvement in an unmatched item
|
|
LGTM, I'll see if I can find the names for those globals in either the map or Remastered so we can get those updated as well. |
sure, thanks. I have no idea what to name them. |
this is what I was able to recover from Remastered, unfortunately the audio lookup tables don't have names, but we can use context clues to come up with our own. Oh, they're all located in the CMorphBall class, so they can be moved there instead of that unnamed namespace, that also includes the related helpers, they can be static members functions for each table rather than taking the table as an argument, that's how Retro usually handles utilities like this. |
|
I have move the statics variables from a NS into the class as static members, following the |
|
Can you rebase against main? |
…hBallTransitionFlash for the (red,blue,green) repeted extrantion patternt that gave away a possible inline