/reference/types -> /types

This commit is contained in:
Peli de Halleux
2017-03-16 07:57:41 -07:00
parent 69bd0225ad
commit 00e9217e73
116 changed files with 224 additions and 361 deletions

View File

@ -7,7 +7,7 @@ game.addScore(1)
```
### Parameters
* a [number](/reference/types/number) that means how much to add to the score. A negative number means to subtract from the score.
* a [number](/types/number) that means how much to add to the score. A negative number means to subtract from the score.
### Examples

View File

@ -1,6 +1,6 @@
# Get Sprite Property
Change the kind of [number](/reference/types/number) you say for a [sprite](/reference/game/create-sprite).
Change the kind of [number](/types/number) you say for a [sprite](/reference/game/create-sprite).
```sig
let item: game.LedSprite = null;
@ -10,7 +10,7 @@ item.set(LedSpriteProperty.X, 0);
### Parameters
* the **sprite** you want to change
* the kind of [number](/reference/types/number) you want to change for the sprite, like
* the kind of [number](/types/number) you want to change for the sprite, like
* ``x``, how far up or down the sprite is on the screen (`0`-`4`)
* ``y``, how far left or right the sprite is on the screen (`0`-`4`)
* ``direction``, which way the sprite is pointing (this works the same way as the [turn](/reference/game/turn) function)

View File

@ -10,7 +10,7 @@ item.get(LedSpriteProperty.X);
### Parameters
* the **sprite** you want to know something about
* the kind of [number](/reference/types/number) you want to know about the sprite, like
* the kind of [number](/types/number) you want to know about the sprite, like
* ``x``, how far up or down the sprite is on the screen (`0`-`4`)
* ``y``, how far left or right the sprite is on the screen (`0`-`4`)
* ``direction``, which way the sprite is pointing (this works the same way as the [turn](/reference/game/turn) function)
@ -19,7 +19,7 @@ item.get(LedSpriteProperty.X);
### Returns
The [number](/reference/types/number) you asked for.
The [number](/types/number) you asked for.
### Example

View File

@ -9,7 +9,7 @@ item.move(1);
### Parameters
* a [number](/reference/types/number) that means how many LEDs the sprite should move
* a [number](/types/number) that means how many LEDs the sprite should move
### Example

View File

@ -7,7 +7,7 @@ game.setScore(1)
```
### Parameters
* a [number](/reference/types/number) that represents the new score.
* a [number](/types/number) that represents the new score.
### Examples

View File

@ -1,6 +1,6 @@
# Set Sprite Property
Make a [sprite](/reference/game/create-sprite) store the kind of [number](/reference/types/number) you say.
Make a [sprite](/reference/game/create-sprite) store the kind of [number](/types/number) you say.
```sig
let item: game.LedSprite = null;
@ -10,7 +10,7 @@ item.set(LedSpriteProperty.X, 0);
### Parameters
* the **sprite** you want to make store the number you say
* the kind of [number](/reference/types/number) you want to store in the sprite, like
* the kind of [number](/types/number) you want to store in the sprite, like
* ``x``, how far up or down the sprite is on the screen (`0`-`4`)
* ``y``, how far left or right the sprite is on the screen (`0`-`4`)
* ``direction``, which way the sprite is pointing (this works the same way as the [turn](/reference/game/turn) function)

View File

@ -8,7 +8,7 @@ game.startCountdown(1000)
### Parameters
* ``ms`` is a [number](/reference/types/number) that says how many milliseconds to count down (one second is 1000 milliseconds)
* ``ms`` is a [number](/types/number) that says how many milliseconds to count down (one second is 1000 milliseconds)
### Examples

View File

@ -10,7 +10,7 @@ item.turn(Direction.Right, 45);
### Parameters
* a choice whether the sprite should turn **left** or **right**
* a [number](/reference/types/number) that means how much the sprite should turn.
* a [number](/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.
### Example