2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@@ -3,17 +3,16 @@
Turn the sprite as much as you say in the direction you say.
```sig
let item: game.LedSprite = null;
item.turn(Direction.Right, 45);
game.createSprite(0, 2).turn(Direction.Right, 45);
```
### Parameters
## Parameters
* a choice whether the sprite should turn **left** or **right**
* a [number](/reference/types/number) that means how much the sprite should turn.
This number is in **degrees**, so a straight left or right turn is 90 degrees.
* **direction**: a choice whether the sprite should turn **left** or **right**
* **degrees**: a [number](/types/number) degrees of angle that the sprite should turn.
A straight left or right turn is 90 degrees.
### Example
## Example
This program starts a sprite in the middle of the screen.
@@ -26,7 +25,7 @@ item.turn(Direction.Right, 45);
item.move(2);
```
### See also
## See also
[move](/reference/game/move),