Created
October 3, 2021 23:59
-
-
Save Plagman/3f3888395ba0c355f6088091f27e1126 to your computer and use it in GitHub Desktop.
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
rotated_image = image.Rotate( Math.Pi / 2.0 ); | |
sprite = Sprite( rotated_image ); | |
sprite.SetX( Window.GetWidth() / 2 - rotated_image.GetWidth() / 2 ); | |
sprite.SetY( Window.GetHeight() / 2 - rotated_image.GetHeight() / 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment