pxt-common-packages 12.2.7 → 12.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# high Score
|
|
2
2
|
|
|
3
3
|
Get the highest score recored for the game.
|
|
4
4
|
|
|
5
5
|
```sig
|
|
6
|
-
info.
|
|
6
|
+
info.highScore()
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
The highest score recorded by your game program is remembered. So, you can find out what the player's best score was for the game.
|
|
@@ -19,7 +19,7 @@ Add `9` to the life count if the player had a high score of `100000` points.
|
|
|
19
19
|
```blocks
|
|
20
20
|
let lifeBonus = true
|
|
21
21
|
|
|
22
|
-
if (info.
|
|
22
|
+
if (info.highScore() >= 100000) {
|
|
23
23
|
if (lifeBonus) {
|
|
24
24
|
info.changeLifeBy(9)
|
|
25
25
|
lifeBonus = false
|
|
@@ -31,4 +31,4 @@ if (info.score() >= 100000) {
|
|
|
31
31
|
|
|
32
32
|
[set score](/reference/info/set-score),
|
|
33
33
|
[change score by](/reference/info/change-score-by),
|
|
34
|
-
[score](/reference/info/score)
|
|
34
|
+
[score](/reference/info/score)
|
|
@@ -92,7 +92,7 @@ sprites.onOverlap(0, 0, function (sprite, otherSprite) {})
|
|
|
92
92
|
[set kind](/reference/sprites/sprite/set-kind),
|
|
93
93
|
[kind](/reference/sprites/sprite/kind),
|
|
94
94
|
[start effect](/reference/sprites/sprite/start-effect),
|
|
95
|
-
[clear particles](/reference/
|
|
95
|
+
[clear particles](/reference/effects/clear-particles),
|
|
96
96
|
[on created](/reference/sprites/on-created),
|
|
97
97
|
[on destroyed](/reference/sprites/on-destroyed),
|
|
98
98
|
[on overlap](/reference/sprites/on-overlap),
|