Skip to content

Fix max and min, add maxBy, minBy

Artur Gulik requested to merge extend/Hitbox into main

Add Movement class and trait. Improve collisions and add hitboxes to elements that needed them. Fix max and min functions (defined properties of Array.prototype), by standarizing they way they compare elements. Add similar functions: maxBy and minBy, both of which only take a string with a property name to compare the elements by.

Merge request reports