fixing some game content
This commit is contained in:
Родитель
3de977c98f
Коммит
091fbb9db8
|
@ -1,16 +1,6 @@
|
|||
# Move
|
||||
|
||||
The game library
|
||||
|
||||
### Move
|
||||
|
||||
Sprite move by a certain number
|
||||
|
||||
## Block Editor
|
||||
|
||||
![](/static/mb/game-library/move-0.png)
|
||||
|
||||
## KindScript
|
||||
Sprite move by a certain number of LEDs
|
||||
|
||||
```
|
||||
export function move(_this: micro_bitSprites.LedSprite, leds: number)
|
||||
|
|
|
@ -1,19 +1,5 @@
|
|||
# Position
|
||||
|
||||
The game library
|
||||
|
||||
### Create sprite
|
||||
|
||||
Reports the x or y position of a sprite on the LED screen
|
||||
|
||||
## Block Editor
|
||||
|
||||
Reports the x position of a sprite on the LED screen
|
||||
|
||||
![](/static/mb/game-library/position-0.png)
|
||||
|
||||
## KindScript
|
||||
|
||||
Reports the x position of a sprite on the LED screen
|
||||
|
||||
```
|
||||
|
|
|
@ -1,31 +1,7 @@
|
|||
# Reports
|
||||
|
||||
The game library
|
||||
|
||||
### Reports
|
||||
|
||||
Reports the x or y position, the current direction of a sprite, or the brightness of a sprite on the LED screen
|
||||
|
||||
## Block Editor
|
||||
|
||||
Reports the x position of a sprite on the LED screen
|
||||
|
||||
![](/static/mb/game-library/position-0.png)
|
||||
|
||||
Reports the y position of a sprite on the LED screen
|
||||
|
||||
![](/static/mb/game-library/reports-0.jpg)
|
||||
|
||||
Reports the brightness of a sprite on the LED screen
|
||||
|
||||
![](/static/mb/game-library/reports-1.jpg)
|
||||
|
||||
Reports the direction of a sprite on the LED screen
|
||||
|
||||
![](/static/mb/game-library/reports-2.jpg)
|
||||
|
||||
## KindScript
|
||||
|
||||
Reports the x position of a sprite on the LED screen
|
||||
|
||||
```
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
# Start Countdown
|
||||
|
||||
The game library supports simple single-player time-based games. The general goal of a game will be to achieve a top score before time runs out of time.
|
||||
|
||||
## Block Editor
|
||||
|
||||
![](/static/mb/game-library/start-countdown-0.png)
|
||||
|
||||
## KindScript
|
||||
|
||||
The code below shows a simple game where the user gets to press the button ``A`` as much times as possible in 10 seconds.
|
||||
|
||||
```
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
# Touching
|
||||
|
||||
The game library
|
||||
|
||||
### Touching
|
||||
|
||||
Reports true if sprite is touching specified sprite
|
||||
|
||||
## Block Editor
|
||||
|
||||
![](/static/mb/game-library/touching-0.png)
|
||||
|
||||
## KindScript
|
||||
|
||||
Reports true if sprite is touching specified sprite
|
||||
|
||||
```
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
# Turn
|
||||
|
||||
The game library
|
||||
|
||||
Rotates a sprite to the right by a certain number of degrees
|
||||
|
||||
## Block Editor
|
||||
|
||||
Rotates a sprite to the right by a certain number of degrees
|
||||
|
||||
![](/static/mb/game-library/turn-0.png)
|
||||
|
||||
## KindScript
|
||||
|
||||
Rotates a sprite to the right by a certain number of degrees
|
||||
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче