Closed bigjosh closed 4 years ago
NB: Ignore the
does not work
comments, I misinterpreted how the game was supposed to work so I thought I broke something. I do think (hope?) it works now!
no worries, I'll give it a test after I merge to master (totally a best practice). If the broadcast caching was broken it should be pretty catastrophic 💥 so your probably good but I'll play it safe.
An example of freeing up flash space by favoring compiler-friendly patterns.
In this case, I ....
if
statements with aswitch
Action
to favor register usage rather than memory usageIt is not pretty, but when space is tight this technique can be useful.
I might have messed up somewhere, so please double check my work and also test that functionality is the same!
NB: Ignore the
does not work
comments, I misinterpreted how the game was supposed to work so I thought I broke something. I do think (hope?) it works now!