The darkness works based on your distance to the closest light and interpolates a charge value between 0 and 1 (0=death). I noticed this bug before but i didn't have time to fix it :/ Thanks for the feedback!
Viewing post in Sands of Avarice jam comments
Fair enough. Bugs slip by too easily when working on a tight deadline. I literally just discovered a bug (fortunately one that's just visual and not game breaking) in my game that was caused by me using '==' when I should have used '<='. I just wasn't sure if it was a bug or not, since it could have theoretically been made that way intentionally for the sake of difficulty.
Yeah, at the time it made sense to use '==' since it had to do with player health and there were some specific things that needed to happen when health was exactly zero (and it was easier to just let the player keep taking damage afterwards, and to work around that). This wasn't an issue since everything in the game did exactly 1 damage. Then I introduced sea mines which do double damage if you're too close and completely forgot to update the original code. It doesn't actually affect gameplay (you still lose if your health goes below 1), it's just annoying.