This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Creates a custom Affine2 for shadows with rotation | |
* | |
* x, y --> position in world (usually the entity position) | |
* rotation --> angle in degrees | |
* offsetX, offsetY --> if the original sprite is drawn with an offset | |
* originX, originY --> center of the sprite | |
* shearX, shearY --> shear amount (usually day/night cycle shear values) | |
* scaleX, scaleY --> scale amount (usually day/night cycle scale values) | |
*/ |