Skip to content

Beta Version 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mtax-Development Mtax-Development released this 05 Jul 13:55
· 303 commits to master since this release

The changes in this version focus on constructors that perform calculations, introducing several methods assisting in them, as well as a few quality of life changes. It also introduces the SpriteDraw constructor for storing the information used in Sprite rendering.


Changes from Beta Version 1:

Changes to the existing content:
| Changed the name of the RangedValue.add() method to RangedValue.modify().
| Changed the name of the RangedValue.addWrap() method to RangedValue.modifyWrap().
| Range.toString()/RangedValue.toString(): Added spaces between the in-line separator of the Range values to improve the readability of negative numbers.
| Surface.setSize(): Added a validation for the target size values.

Additions:
+ SpriteDraw constructor.
+ Angle.set() method.
+ Range.percent() method.
+ RangedValue.percent() method.
+ RangedValue.modifyBounce() method.
+ Scale.getMinimum(), Scale.getMaximum() methods.
+ Scale.approach() method.
+ Scale.set() method.
+ Vector2.getMinimum(), Vector2.getMaximum() methods.
+ Vector2.approach() method.
+ Vector2.set() method.
+ Vector4.getMinimum(), Vector4.getMaximum() methods.
+ Vector4.approach() method.

Fixes:
- General minor code and documentation fixes.

Instructions for conversion from the previous version:
RangedValue: Adjust the code referring to the add() method to refer to its new name, modify().
RangedValue: Adjust the code referring to the addWrap() method to refer to its new name, modifyWrap().
Range/RangedValue: Adjust the code that relied on parsing the result of the toString() method call and string() conversion to incorporate the new format.