Smarter Smarter maxHits logic

What about this realization for a smarter max hit? It will prevent us from outOfIndex error, and will work with any kind of HP-spritesCount pair.

I’m new at C# and don’t use any prettier or something like this.

Clamping the value is a good idea. Well done! :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms