pxt-common-packages 9.5.12 → 10.1.2

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.
Files changed (42) hide show
  1. package/built/common-sim.js +2 -2
  2. package/libs/azureiot/built/debug/binary.js +461 -461
  3. package/libs/color/built/debug/binary.js +8 -8
  4. package/libs/color-sensor/built/debug/binary.js +8 -8
  5. package/libs/controller/built/debug/binary.js +6898 -6898
  6. package/libs/controller---none/built/debug/binary.js +6878 -6878
  7. package/libs/datalogger/built/debug/binary.js +63 -63
  8. package/libs/edge-connector/built/debug/binary.js +8 -8
  9. package/libs/esp32/built/debug/binary.js +462 -462
  10. package/libs/game/_locales/game-jsdoc-strings.json +4 -0
  11. package/libs/game/_locales/game-strings.json +2 -0
  12. package/libs/game/built/debug/binary.js +6817 -6817
  13. package/libs/game/docs/reference/info/change-score-by.md +2 -1
  14. package/libs/game/docs/reference/info/on-score.md +72 -0
  15. package/libs/game/docs/reference/info/score.md +2 -1
  16. package/libs/game/docs/reference/info/set-score.md +2 -1
  17. package/libs/game/docs/reference/tiles/tile-image-at-location.md +65 -0
  18. package/libs/game/info.ts +53 -0
  19. package/libs/game/sim/keymap.ts +2 -2
  20. package/libs/game/sprite.ts +1 -0
  21. package/libs/game/tilemap.ts +1 -1
  22. package/libs/lcd/built/debug/binary.js +8 -8
  23. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  24. package/libs/lora/built/debug/binary.js +8 -8
  25. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  26. package/libs/mqtt/built/debug/binary.js +176 -176
  27. package/libs/net/built/debug/binary.js +176 -176
  28. package/libs/net-game/built/debug/binary.js +8406 -8406
  29. package/libs/palette/built/debug/binary.js +6816 -6816
  30. package/libs/pixel/built/debug/binary.js +8 -8
  31. package/libs/power/built/debug/binary.js +8 -8
  32. package/libs/proximity/built/debug/binary.js +8 -8
  33. package/libs/radio/built/debug/binary.js +8 -8
  34. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  35. package/libs/radio-broadcast/docs/reference/radio-broadcast.md +21 -0
  36. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  37. package/libs/screen/built/debug/binary.js +50 -50
  38. package/libs/servo/built/debug/binary.js +8 -8
  39. package/libs/servo/docs/reference/servo.md +41 -0
  40. package/libs/sprite-scaling/built/debug/binary.js +6816 -6816
  41. package/libs/storyboard/built/debug/binary.js +6816 -6816
  42. package/package.json +1 -1
@@ -161,6 +161,8 @@
161
161
  "info.PlayerInfo.hasLife": "Return true if the given player currently has a value set for health,\nand false otherwise.",
162
162
  "info.PlayerInfo.life": "Get the player life",
163
163
  "info.PlayerInfo.onLifeZero": "Runs code when life reaches zero",
164
+ "info.PlayerInfo.onScore": "Runs code once each time the score reaches a given value. This will also\nrun if the score \"passes\" the given value in either direction without ever\nhaving the exact value (e.g. if score is changed by more than 1)\n* @param score the score to fire the event on",
165
+ "info.PlayerInfo.onScore|param|handler": "code to run when the score reaches the given value",
164
166
  "info.PlayerInfo.score": "Get the player score",
165
167
  "info.PlayerInfo.setLife": "Set the player life",
166
168
  "info.PlayerInfo.setScore": "Set the player score",
@@ -175,6 +177,8 @@
175
177
  "info.life": "Get the number of lives",
176
178
  "info.onCountdownEnd": "Run code when the countdown reaches 0. If this function\nis not called then game.over() is called instead",
177
179
  "info.onLifeZero": "Run code when the player's life reaches 0. If this function\nis not called then game.over() is called instead",
180
+ "info.onScore": "Runs code once each time the score reaches a given value. This will also\nrun if the score \"passes\" the given value in either direction without ever\nhaving the exact value (e.g. if score is changed by more than 1)\n* @param score the score to fire the event on",
181
+ "info.onScore|param|handler": "code to run when the score reaches the given value",
178
182
  "info.score": "Get the current score if any",
179
183
  "info.setBackgroundColor": "Sets the color of the background of the score, countdown, and life\nelements. Defaults to 1",
180
184
  "info.setBackgroundColor|param|color": "The index of the color (0-15)",
@@ -215,6 +215,7 @@
215
215
  "info.PlayerInfo.hasLife|block": "%player has life",
216
216
  "info.PlayerInfo.life|block": "%player life",
217
217
  "info.PlayerInfo.onLifeZero|block": "on %player life zero",
218
+ "info.PlayerInfo.onScore|block": "on $this score $score",
218
219
  "info.PlayerInfo.score|block": "%player score",
219
220
  "info.PlayerInfo.setLife|block": "set %player life to %value",
220
221
  "info.PlayerInfo.setScore|block": "set %player score to %value",
@@ -224,6 +225,7 @@
224
225
  "info.life|block": "life",
225
226
  "info.onCountdownEnd|block": "on countdown end",
226
227
  "info.onLifeZero|block": "on life zero",
228
+ "info.onScore|block": "on score $score",
227
229
  "info.player1|block": "player 1",
228
230
  "info.player2|block": "player 2",
229
231
  "info.player3|block": "player 3",