Beta Version 4
Pre-releaseThe changes in this version focus on redesigning parts of the code relating to drawing setup, as well as vector calculation in order to bring more consistency and intuitiveness to their use. In effect, several features changed the way they are used. Therefore, it is recommended to take extra caution while upgrading existing code to this version.
Changes from Beta Version 3:
Changes to the existing content:
|Sprite
: Changed thefromFile()
method into a construction type.
|Surface
: Now enforces the minimum size of one pixel at creation.
|Vector4.interpolate()
: Changed the arguments to a singleVector2
.
|Vector2
: Separated code related to the support ofScale
as an argument in place of Vector2.Scale
used instead of aVector2
will still work in most of cases as their properties are the same andVector2
can still be constructed from aScale
, butScale
is no longer listed as a supported argument for methods of aVector2
.
|Font
: Changes to how construction types are referred to in code and documentation. The constructor type previously referred to as "file" in code and "Resource" in documentation is now referred to only as "file". The constructor type previously referred to as "sprite (utf-8)" in code and documentation is now referred to as "sprite (UTF-8)".
|Vector2
/Vector4
: Thesum()
,sumX()
,sumY()
,difference()
,differenceX()
,differenceY()
,product()
,productX()
,productY()
,quotient()
,quotientX()
,quotientY()
methods now support more argument types,{real}
and{Vector2}
for bothVector2
andVector4
, as well as{Vector4}
forVector4
only.
|Vector2
/Vector4
: Thesum()
,difference()
,product()
methods no longer check if the specified argument isself
to treat the execution as if no argument was provided.Additions:
+Sprite
: "From Surface" constructor.
+RangedValue.isMinimum()
,RangedValue.isMaximum()
methods.
+StringParser.contains()
method.
+Vector4.split()
method.
+Vector2.contains()
,Vector4.contains()
methods.Fixes:
- General minor code and documentation fixes.Instructions for conversion from the previous version:
•Sprite.fromFile()
: Adjust the code so it uses the "File" construction type instead of this method.
•Vector4.interpolate()
: Adjust the code to specify the arguments as aVector2
instead ofx
andy
separately.
•Font
: Adjust the code which relied on string parsing of thetype
property and the result oftoString()
call to expect a string containing "sprite (UTF-8)" instead of "sprite (utf-8)".
•Vector2
/Vector4
: Adjust the code which specifiedself
as the argument of thesum()
,difference()
andproduct()
methods to no longer provide any argument.