pxt-common-packages 10.3.7 → 10.3.9
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.
- package/libs/azureiot/built/debug/binary.js +461 -461
- package/libs/color/built/debug/binary.js +8 -8
- package/libs/color-sensor/built/debug/binary.js +8 -8
- package/libs/controller/built/debug/binary.js +15483 -15338
- package/libs/controller---none/built/debug/binary.js +15467 -15322
- package/libs/datalogger/built/debug/binary.js +63 -63
- package/libs/edge-connector/built/debug/binary.js +8 -8
- package/libs/esp32/built/debug/binary.js +462 -462
- package/libs/game/_locales/game-jsdoc-strings.json +8 -3
- package/libs/game/_locales/game-strings.json +11 -0
- package/libs/game/ask.ts +0 -1
- package/libs/game/built/debug/binary.js +16092 -15947
- package/libs/game/controller.ts +0 -6
- package/libs/game/game.ts +194 -45
- package/libs/game/gameutil.ts +0 -2
- package/libs/game/info.ts +98 -45
- package/libs/game/multiplayer.ts +9 -8
- package/libs/game/ns.ts +5 -0
- package/libs/game/numberprompt.ts +0 -1
- package/libs/game/particleeffects.ts +30 -0
- package/libs/game/prompt.ts +0 -1
- package/libs/game/pxt.json +1 -0
- package/libs/game/textDialogs.ts +275 -40
- package/libs/lcd/built/debug/binary.js +8 -8
- package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
- package/libs/lora/built/debug/binary.js +8 -8
- package/libs/matrix-keypad/built/debug/binary.js +8 -8
- package/libs/mixer/instrument.ts +20 -1
- package/libs/mixer/melody.ts +13 -15
- package/libs/mixer/playable.ts +181 -0
- package/libs/mixer/pxt.json +1 -0
- package/libs/mixer/soundEffect.ts +19 -2
- package/libs/mqtt/built/debug/binary.js +176 -176
- package/libs/multiplayer/ns.ts +6 -0
- package/libs/multiplayer/player.ts +24 -6
- package/libs/multiplayer/pxt.json +1 -0
- package/libs/music/ns.ts +1 -1
- package/libs/net/built/debug/binary.js +176 -176
- package/libs/net-game/built/debug/binary.js +20403 -20258
- package/libs/palette/built/debug/binary.js +16083 -15938
- package/libs/pixel/built/debug/binary.js +8 -8
- package/libs/power/built/debug/binary.js +8 -8
- package/libs/proximity/built/debug/binary.js +8 -8
- package/libs/radio/built/debug/binary.js +8 -8
- package/libs/radio-broadcast/built/debug/binary.js +8 -8
- package/libs/rotary-encoder/built/debug/binary.js +8 -8
- package/libs/screen/built/debug/binary.js +50 -50
- package/libs/servo/built/debug/binary.js +8 -8
- package/libs/sprite-scaling/built/debug/binary.js +16091 -15946
- package/libs/storyboard/built/debug/binary.js +16091 -15946
- package/package.json +1 -1
|
@@ -148,9 +148,13 @@
|
|
|
148
148
|
"game.setDialogFrame": "Change the default dialog frame to a new image. Dialog frames\nare divided into three rows and three columns and are used to define\nthe outer frame of the dialog box.\n* @param frame A square image with a width and height divisible by three",
|
|
149
149
|
"game.setDialogTextColor": "Change the color for the text in dialog boxes.\n* @param color The index of the color 0-15",
|
|
150
150
|
"game.setGameOverEffect": "Set the effect that occurs when the game is over",
|
|
151
|
-
"game.setGameOverEffect|param|win": "whether the
|
|
152
|
-
"game.
|
|
153
|
-
"game.
|
|
151
|
+
"game.setGameOverEffect|param|win": "whether the effect should run on a win (true) or lose (false)",
|
|
152
|
+
"game.setGameOverMessage": "Set the message that displays when the game is over",
|
|
153
|
+
"game.setGameOverMessage|param|win": "whether the message should show on a win (true) or lose (false)",
|
|
154
|
+
"game.setGameOverScoringType": "Set the method of judging the best score for the game",
|
|
155
|
+
"game.setGameOverScoringType|param|type": "the scoring type",
|
|
156
|
+
"game.setGameOverSound": "Set the music that occurs when the game is over",
|
|
157
|
+
"game.setGameOverSound|param|win": "whether the sound should play on a win (true) or lose (false)",
|
|
154
158
|
"game.showLongText": "Show a long text string in a dialog box that will scroll\nusing the \"A\" or \"down\" buttons. The previous section of the\ntext is shown using the \"up\" button. This function\nhalts execution until the last page of text is dismissed.\n* @param str The text to display",
|
|
155
159
|
"game.showLongText|param|layout": "The layout to use for the dialog box",
|
|
156
160
|
"game.splash": "Show a title and an optional subtitle menu",
|
|
@@ -160,6 +164,7 @@
|
|
|
160
164
|
"info.PlayerInfo.changeScoreBy": "Change the score of a player",
|
|
161
165
|
"info.PlayerInfo.hasLife": "Return true if the given player currently has a value set for health,\nand false otherwise.",
|
|
162
166
|
"info.PlayerInfo.life": "Get the player life",
|
|
167
|
+
"info.PlayerInfo.number": "Returns the one-based number of the player",
|
|
163
168
|
"info.PlayerInfo.onLifeZero": "Runs code when life reaches zero",
|
|
164
169
|
"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
170
|
"info.PlayerInfo.onScore|param|handler": "code to run when the score reaches the given value",
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
"effects.halo|block": "halo",
|
|
189
189
|
"effects.hearts|block": "hearts",
|
|
190
190
|
"effects.melt|block": "melt",
|
|
191
|
+
"effects.none|block": "none",
|
|
191
192
|
"effects.rings|block": "rings",
|
|
192
193
|
"effects.slash|block": "slash",
|
|
193
194
|
"effects.smiles|block": "smiles",
|
|
@@ -197,9 +198,13 @@
|
|
|
197
198
|
"effects.trail|block": "trail",
|
|
198
199
|
"effects.warmRadial|block": "warm radial",
|
|
199
200
|
"effects|block": "effects",
|
|
201
|
+
"game.ScoringType.HighScore|block": "high score",
|
|
202
|
+
"game.ScoringType.LowScore|block": "low score",
|
|
203
|
+
"game.ScoringType.None|block": "none",
|
|
200
204
|
"game.askForNumber|block": "ask for number %message || and max length %answerLength",
|
|
201
205
|
"game.askForString|block": "ask for string %message || and max length %answerLength",
|
|
202
206
|
"game.ask|block": "ask %title||%subtitle",
|
|
207
|
+
"game.gameOver|block": "game over $win",
|
|
203
208
|
"game.onUpdateInterval|block": "on game update every %period=timePicker ms",
|
|
204
209
|
"game.onUpdate|block": "on game update",
|
|
205
210
|
"game.over|block": "game over %win=toggleWinLose || with %effect effect",
|
|
@@ -207,6 +212,10 @@
|
|
|
207
212
|
"game.setDialogCursor|block": "set dialog cursor to %frame=screen_image_picker",
|
|
208
213
|
"game.setDialogFrame|block": "set dialog frame to %frame=dialog_image_picker",
|
|
209
214
|
"game.setDialogTextColor|block": "set dialog text color to %color=colorindexpicker",
|
|
215
|
+
"game.setGameOverEffect|block": "use effect $effect for $win",
|
|
216
|
+
"game.setGameOverMessage|block": "use message $message for $win",
|
|
217
|
+
"game.setGameOverScoringType|block": "use $type as best score",
|
|
218
|
+
"game.setGameOverSound|block": "use sound $sound for $win",
|
|
210
219
|
"game.showLongText|block": "show long text %str %layout",
|
|
211
220
|
"game.splash|block": "splash %title||%subtitle",
|
|
212
221
|
"game|block": "game",
|
|
@@ -304,6 +313,7 @@
|
|
|
304
313
|
"{id:category}Info": "Info",
|
|
305
314
|
"{id:category}Keymap": "Keymap",
|
|
306
315
|
"{id:category}Math": "Math",
|
|
316
|
+
"{id:category}Mp": "Mp",
|
|
307
317
|
"{id:category}Multiplayer": "Multiplayer",
|
|
308
318
|
"{id:category}Particles": "Particles",
|
|
309
319
|
"{id:category}PhysicsEngine": "PhysicsEngine",
|
|
@@ -320,6 +330,7 @@
|
|
|
320
330
|
"{id:group}Create": "Create",
|
|
321
331
|
"{id:group}Dialogs": "Dialogs",
|
|
322
332
|
"{id:group}Effects": "Effects",
|
|
333
|
+
"{id:group}Game Over": "Game Over",
|
|
323
334
|
"{id:group}Gameplay": "Gameplay",
|
|
324
335
|
"{id:group}Image": "Image",
|
|
325
336
|
"{id:group}Life": "Life",
|