File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/kotlin/org/scratchapi/scratchdsl Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ plugins {
1515
1616group = " org.scratchapi"
1717version = (System .getenv(" GITHUB_REF_NAME" )?.removePrefix(" v" )
18- ? : " 0.0.1a5 " )
18+ ? : " 0.0.1a7 " )
1919
2020java {
2121 withJavadocJar()
Original file line number Diff line number Diff line change @@ -528,8 +528,8 @@ val yPosition get() =
528528 .withExpression(" DY" , dy, ValueInput .NUMBER .of(" 10" ))
529529 }
530530
531- /* * A reporter for the sprite's rotation . Can also be used to set or change the rotation . */
532- val rotation get() =
531+ /* * A reporter for the sprite's direction . Can also be used to set or change the direction . */
532+ val direction get() =
533533 HandlesSetNormalExpression (" motion_direction" )
534534 .withHandlesSet { direction ->
535535 NormalBlock (" motion_pointindirection" )
@@ -540,6 +540,10 @@ val rotation get() =
540540 .withExpression(" DEGREES" , degrees, ValueInput .NUMBER .of(" 15" ))
541541 }
542542
543+ @Deprecated(" \" rotation\" is a bad name. " , replaceWith = ReplaceWith (" direction" ))
544+ val rotation inline get() =
545+ direction
546+
543547
544548// Looks
545549
You can’t perform that action at this time.
0 commit comments