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.
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!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.