pxt-common-packages 9.4.13 → 9.4.16
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/built/common-sim.d.ts +44 -0
- package/built/common-sim.js +202 -63
- 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 +8290 -8027
- package/libs/controller---none/built/debug/binary.js +8269 -8006
- 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 +19 -0
- package/libs/game/_locales/game-strings.json +2 -0
- package/libs/game/built/debug/binary.js +8182 -7919
- package/libs/game/extendableSprite.ts +80 -0
- package/libs/game/hitbox.ts +42 -1
- package/libs/game/keymap.cpp +12 -0
- package/libs/game/keymap.ts +169 -0
- package/libs/game/pxt.json +4 -1
- package/libs/game/sim/keymap.ts +167 -0
- package/libs/game/sprite.ts +73 -95
- 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/mqtt/built/debug/binary.js +176 -176
- package/libs/net/built/debug/binary.js +176 -176
- package/libs/net-game/built/debug/binary.js +9970 -9707
- package/libs/palette/built/debug/binary.js +8181 -7918
- 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 +8181 -7918
- package/libs/storyboard/built/debug/binary.js +8181 -7918
- package/package.json +1 -1
|
@@ -195,6 +195,20 @@
|
|
|
195
195
|
"info.startCountdown": "Start a countdown of the given duration in seconds",
|
|
196
196
|
"info.startCountdown|param|duration": "the duration of the countdown, eg: 10",
|
|
197
197
|
"info.stopCountdown": "Stop the current countdown and hides the timer display",
|
|
198
|
+
"keymap.KeyCode": "Key codes",
|
|
199
|
+
"keymap.setPlayerKeys": "Sets the keyboard input map for the given player.",
|
|
200
|
+
"keymap.setPlayerKeys|param|A": "The key code for 'A'",
|
|
201
|
+
"keymap.setPlayerKeys|param|B": "The key code for 'B'",
|
|
202
|
+
"keymap.setPlayerKeys|param|down": "The key code for 'down'",
|
|
203
|
+
"keymap.setPlayerKeys|param|left": "The key code for 'left'",
|
|
204
|
+
"keymap.setPlayerKeys|param|player": "The player number. 1 = Player1, etc.",
|
|
205
|
+
"keymap.setPlayerKeys|param|right": "The key code for 'right'",
|
|
206
|
+
"keymap.setPlayerKeys|param|up": "The key code for 'up'.",
|
|
207
|
+
"keymap.setSystemKeys": "Sets the keyboard input map for system keys.",
|
|
208
|
+
"keymap.setSystemKeys|param|gif": "The key code for 'gif'",
|
|
209
|
+
"keymap.setSystemKeys|param|menu": "The key code for 'menu'",
|
|
210
|
+
"keymap.setSystemKeys|param|reset": "The key code for 'reset'",
|
|
211
|
+
"keymap.setSystemKeys|param|screenshot": "The key code for 'screenshot'",
|
|
198
212
|
"particles.AreaFactory": "A factory for creating particles within rectangular area",
|
|
199
213
|
"particles.BubbleSource": "A source of particles where the particles oscillate horizontally, and occasionally change\nbetween a given number of defined states",
|
|
200
214
|
"particles.FireSource": "A source of particles where particles will occasionally change speed based off of each other",
|
|
@@ -255,6 +269,11 @@
|
|
|
255
269
|
"scene.setTileMapLevel": "Set the map for placing tiles in the scene",
|
|
256
270
|
"scene.setTileMapLevel|param|map": "@param scale",
|
|
257
271
|
"sprites": "Sprites on screen",
|
|
272
|
+
"sprites.ExtendableSprite": "A version of the Sprite class that is easier to extend.\n* Unlike the normal Sprite class, this class will automatically add\nitself to the physics engine and run all sprite created handlers\nin the constructor",
|
|
273
|
+
"sprites.ExtendableSprite.draw": "Override to change how the sprite is drawn to the screen\n* @param drawLeft The left position to draw the sprite at (already adjusted for camera)",
|
|
274
|
+
"sprites.ExtendableSprite.draw|param|drawTop": "The top position to draw the sprite at (already adjusted for camera)",
|
|
275
|
+
"sprites.ExtendableSprite.setDimensions": "Sets the width and height of this sprite. Once set, this will also prevent\nthis width and height from automatically changing whenever scale or the image\nchanges",
|
|
276
|
+
"sprites.ExtendableSprite.update": "Override to add update logic for a sprite. This method runs once per frame\n* @param deltaTimeMillis The time that has elapsed since the last frame in milliseconds",
|
|
258
277
|
"sprites.SpriteMap.neighbors": "Returns a potential list of neighbors",
|
|
259
278
|
"sprites.SpriteMap.overlaps": "Gets the overlaping sprites if any",
|
|
260
279
|
"sprites.SpriteMap.resizeBuckets": "Recompute hashes for all objects",
|
|
@@ -234,6 +234,7 @@
|
|
|
234
234
|
"info.startCountdown|block": "start countdown %duration (s)",
|
|
235
235
|
"info.stopCountdown|block": "stop countdown",
|
|
236
236
|
"info|block": "info",
|
|
237
|
+
"keymap|block": "keymap",
|
|
237
238
|
"particles|block": "particles",
|
|
238
239
|
"scene.backgroundColor|block": "background color",
|
|
239
240
|
"scene.backgroundImage|block": "background image",
|
|
@@ -297,6 +298,7 @@
|
|
|
297
298
|
"{id:category}Game": "Game",
|
|
298
299
|
"{id:category}Helpers": "Helpers",
|
|
299
300
|
"{id:category}Info": "Info",
|
|
301
|
+
"{id:category}Keymap": "Keymap",
|
|
300
302
|
"{id:category}Math": "Math",
|
|
301
303
|
"{id:category}Particles": "Particles",
|
|
302
304
|
"{id:category}PhysicsEngine": "PhysicsEngine",
|