Release Candidate 4
Pre-releaseThis version introduces the SurfaceRenderer
constructor and contains some final general fixes and additions for the current development cycle. Unless glaring issues will be found in this version, it should be the final one in the Release Candidate
development cycle before the first stable release of Version Gold
.
The SurfaceRenderer
constructor has the same use as the SpriteRenderer
constructor, adjusted for use with the Surface
constructor, the functionalities of which are unchanged. Unlike Sprites, Surfaces are volatile and therefore require more setup, for which the event system can prove useful.
Changes from Release Candidate 3:
Changes to existing content:
|Angle
: Changed the construction ofundefined
as the first argument from constructing into the "Default value" construction type into the new "Empty" construction type.
|Scale.set()
: AddedVector2
andScale
argument type support.
|Vector2
/Vector4
: AddedScale
argument type support to theset()
,setFloor()
,setRound()
,setCeil()
methods.
|Vector4.getMiddle()
: Changed the calculation method to a mean number.
|Vector4
: Added functionality of returning separate value for each value pair to thegetMinimum()
andgetMaximum()
methods.
|Vector4:
MergedgetAngle1to2()
andgetAngle2to1()
methods into a newgetAngle()
method and made it return theAngle
constructor instead of a real number.Additions:
+SurfaceRenderer
constructor.
+Vector2
:getAngle()
,getDistance()
methods.
+Vector4
:getClosest()
method.
+ArrayParser
:getFirst()
,getLast()
,isEmpty()
methods.Fixes:
-SpriteRenderer
: Fixed aVector4
typelocation
property not being duplicated on constructor copy.
-SpriteRenderer.isFunctional()
: Added missinglocation
andcolor
property data types to the validation.
-SpriteRenderer.toString()
: Added missingpart
,origin
andtarget
properties to the full output.Instructions for conversion from the previous version:
•Angle
: Adjust the code so that construction usingundefined
is replaced either by no argument, the default value of0
or another real number.
•Vector4.getAngle1to2()
: Change the used method togetAngle()
and refer to thevalue
property of the returned result instead.
•Vector4.getAngle2to1()
: Change the used method togetAngle()
withtrue
as the first argument and refer to thevalue
property of the returned result instead.